Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#18917 closed update (fixed)

parrot-1.0.0 version bump and dylib problem

Reported by: jdfrens@… Owned by: bfulgham@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: will@…, alakazam@…
Port: parrot

Description

I've tweaked the existing Portfile for parrot-0.5.2 to install parrot-1.0.0. My new Portfile is attached, and it mostly works. The parrot executable fails to find the right dylib file (looking in the destroot, I believe):

$ parrot
dyld: Library not loaded: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_parrot/work/parrot-1.0.0/blib/lib/libparrot.dylib
  Referenced from: /opt/local/bin/parrot
  Reason: image not found
Trace/BPT trap

I can get it to work if I do this:

$ export DYLD_LIBRARY_PATH=/opt/local/lib/parrot/lib
$ parrot
parrot -[acEGhprtvVwy.] [-d [FLAGS]] [-D [FLAGS]][-O [level]] [-o FILE] <file>

Attachments (2)

Portfile (1.5 KB) - added by jdfrens@… 8 years ago.
working Portfile
parrot.diff (1.8 KB) - added by jdfrens@… 8 years ago.
diff from Portfile current in macports

Download all attachments as: .zip

Change History (16)

comment:1 Changed 8 years ago by macsforever2000@…

  • Cc will@… added
  • Owner changed from macports-tickets@… to bfulgham@…

comment:2 Changed 8 years ago by macsforever2000@…

  • Milestone changed from Port Enhancements to Port Updates

comment:3 follow-up: Changed 8 years ago by danielluke (Daniel J. Luke)

If it's too difficult to fix the build so that the correct path gets saved in the app (and/or the library), you should fix it in the port with install_name_tool

Changed 8 years ago by jdfrens@…

working Portfile

Changed 8 years ago by jdfrens@…

diff from Portfile current in macports

comment:4 in reply to: ↑ 3 Changed 8 years ago by jdfrens@…

I used install_name_tool to get the parrot executable to find the right dylib, and so now the installed parrot works.

I updated the Portfile attachment, and I added a patch file from the Portfile in MacPorts to this new version.

comment:5 Changed 8 years ago by will@…

Testing...

comment:6 Changed 8 years ago by will@…

Thanks!

I took the version you had and modified it based on the updated (but still non-functional) version for 0.9.1 that was in the parrot repository.

The updated version for 1.0.0 is now at:

https://trac.parrot.org/parrot/browser/trunk/ports/macports/Portfile

And includes the installation of all the parrot utilities, modifying each as you did with install_name_tool (I updated that command to use the version'd library as well, just in case.)

Someone with commit bits, please update the official Portfile using the one from parrot.org, linked to above.

Woot!

comment:7 Changed 8 years ago by will@…

whoops. noticed that the old version you worked from also changed the description and the homepage back. Fixed those in r37746 of the parrot repository.

comment:8 Changed 8 years ago by will@…

  • Cc will@… removed

Cc Me!

comment:9 Changed 8 years ago by will@…

  • Cc will@… added

Cc Me!

comment:10 Changed 8 years ago by alakazam@…

  • Cc alakazam@… added

Cc Me!

comment:11 Changed 8 years ago by macsforever2000@…

  • Resolution set to fixed
  • Status changed from new to closed

Committed in r48645. Let me know if the homepage and description need to be fixed - I wasn't clear on that.

comment:12 Changed 8 years ago by will@…

As mentioned on IRC, looks like you grabbed the right version. Thanks for the quick turnaround!

comment:13 Changed 8 years ago by jmroot (Joshua Root)

  • Type changed from enhancement to update

comment:14 Changed 8 years ago by anonymous

  • Milestone Port Updates deleted

Milestone Port Updates deleted

Note: See TracTickets for help on using tickets.