Opened 16 years ago

Closed 16 years ago

Last modified 16 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: coke (Will Coleda), 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@… 16 years ago.
working Portfile
parrot.diff (1.8 KB) - added by jdfrens@… 16 years ago.
diff from Portfile current in macports

Download all attachments as: .zip

Change History (16)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

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

comment:2 Changed 16 years ago by mf2k (Frank Schima)

Milestone: Port EnhancementsPort Updates

comment:3 Changed 16 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 16 years ago by jdfrens@…

Attachment: Portfile added

working Portfile

Changed 16 years ago by jdfrens@…

Attachment: parrot.diff added

diff from Portfile current in macports

comment:4 in reply to:  3 Changed 16 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 16 years ago by coke (Will Coleda)

Testing...

comment:6 Changed 16 years ago by coke (Will Coleda)

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 16 years ago by coke (Will Coleda)

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 16 years ago by coke (Will Coleda)

Cc: will@… removed

Cc Me!

comment:9 Changed 16 years ago by coke (Will Coleda)

Cc: will@… added

Cc Me!

comment:10 Changed 16 years ago by alakazam@…

Cc: alakazam@… added

Cc Me!

comment:11 Changed 16 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

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

comment:12 Changed 16 years ago by coke (Will Coleda)

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

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

Type: enhancementupdate

comment:14 Changed 16 years ago by (none)

Milestone: Port Updates

Milestone Port Updates deleted

Note: See TracTickets for help on using tickets.