On May 14, 2009, at 23:23, EmmGunn wrote:

Howdy,
I don't seem to have very good luck with this. I've been able to install mplayer-devel. I then tried to create a mpkg for mplayer- devel but got the following:

sudo port mpkg mplayer-devel
Password:
--->  Fetching mplayer-devel
--->  Verifying checksum(s) for mplayer-devel
--->  Extracting mplayer-devel
--->  Applying patches to mplayer-devel
--->  Configuring mplayer-devel
--->  Building mplayer-devel
--->  Staging mplayer-devel into destroot
--->  Creating pkg for mplayer-devel-29181
--->  Creating pkg for bzip2-1.0.5
Error: Target org.macports.pkg returned: shell command "PMResourceLocale=English /Developer/Applications/Utilities/ PackageMaker.app/Contents/MacOS/PackageMaker -AppleLanguages "(English)" --root /emmgunn/var/macports/build/ _emmgunn_var_macports_sources_rsync.macports.org_release_ports_archive rs_bzip2/work/destroot --out /emmgunn/var/macports/build/ _emmgunn_var_macports_sources_rsync.macports.org_release_ports_multime dia_mplayer-devel/work/mplayer-devel-29181.mpkg/Contents/Packages/ bzip2-1.0.5.pkg --resources /emmgunn/var/macports/build/ _emmgunn_var_macports_sources_rsync.macports.org_release_ports_archive rs_bzip2/work/pkg_resources --title "bzip2-1.0.5" --info /emmgunn/ var/macports/build/ _emmgunn_var_macports_sources_rsync.macports.org_release_ports_archive rs_bzip2/work/Info.plist --target 10.3 --domain system --id org.macports.bzip2" returned error 1
Command output: Warning: Unknown argument: -AppleLanguages
Warning: Unknown argument: (English)
ERROR: The specified root is invalid: /emmgunn/var/macports/build/ _emmgunn_var_macports_sources_rsync.macports.org_release_ports_archive rs_bzip2/work/destroot

Then it finds a few more ports that it can handle, and then the same error repeats for glib2, libmad, liboil, libpng, perl5.8, and zlib. Any thoughts. Did I miss something important? Was I not supposed to install mplayer-devel before I try to create the mpkg? Thanks in advance for any help.

mpkg is a bit tricky. It needs the destroots of all ports to exist when it tries to package them, but by default MacPorts removes them after a port is installed. You should uninstall mplayer-devel and all its dependencies, then edit your macports.conf and turn autoclean off. Then you can run sudo port mpkg mplayer-devel and it will rebuild itself and all the dependencies and leave a copy of them in the destroot this time, where mpkg will be able to find them.


_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to