GnuCash packaging

Charles Day cedayiv at gmail.com
Fri Jan 2 22:24:05 PST 2009


On Fri, Jan 2, 2009 at 7:02 PM, Joshua Root <jmr at macports.org> wrote:

> Ben Greenfield wrote:
> >
> > On Jan 1, 2009, at 4:57 AM, Charles Day wrote:
> >
> >> Olaf,
> >>
> >> Before I joined the list, I saw an email from you in October
> >> (see
> http://lists.macosforge.org/pipermail/macports-users/2008-October/012020.html)
> about
> >> trying to package gnucash with "port mdmg". Were you ever successful
> >> in working around the error? I ask because I now have the same problem.
> >>
> >> $ sudo port mdmg gnucash +no_x11
> >> --->  Creating pkg for gnucash-2.2.8
> >> Error: Target org.macports.pkg returned: shell command
> >> "PMResourceLocale=English
> >>
> /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
> >> -AppleLanguages "(English)"
> >
> > I just tried
> >
> > slip:~ slipadmin$ sudo port -d pkg gnucash +no_x11
> >
> > and got this...
> <snip>
> > DEBUG: Found Dependency: receipt exists for lzmautils
> > DEBUG: Skipping org.macports.main (gnucash) since this port is already
> > installed
> > DEBUG: Skipping org.macports.fetch (gnucash) since this port is already
> > installed
> > DEBUG: Skipping org.macports.checksum (gnucash) since this port is
> > already installed
> > DEBUG: setting option extract.cmd to /opt/local/bin/lzma
> > DEBUG: Skipping org.macports.extract (gnucash) since this port is
> > already installed
> > DEBUG: Skipping org.macports.patch (gnucash) since this port is already
> > installed
> > DEBUG: Skipping org.macports.configure (gnucash) since this port is
> > already installed
> > DEBUG: Skipping org.macports.build (gnucash) since this port is already
> > installed
> > DEBUG: Skipping org.macports.destroot (gnucash) since this port is
> > already installed
> > DEBUG: Executing org.macports.pkg (gnucash)
> > --->  Creating pkg for gnucash-2.2.8
> > DEBUG: Calling
> >
> /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
> > for gnucash pkg
> > Warning: Unknown argument: -AppleLanguages
> > Warning: Unknown argument: (English)
> > ERROR: The specified root is invalid:
> >
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnucash/work/destroot
>
> > It is the same error I checked the the Apple docs on Packagmaker.app and
> > they describe how Packmaker has been recreated for leopard. I suspect
> > that the problem is that Packmaker no longer has an -AppleLanguages
> > option. I will dig around and see if I can figure out how macports uses
> > Packagmaker.app.
>
> The -AppleLanguages warning is harmless. The real problem is this bug:
> <http://trac.macports.org/ticket/10881>
>

Well I tried the following workaround for ticket 10881, but macports started
trying to include the wrong dependencies. For example, it tried to include
dependencies based on X11 when I specified gnucash +no_x11 (see
gnome-desktop at the end as an example).

In addition, it seems that some dependencies are required to be built into
their own destroots in advance (see the error message for aqbanking below).

So I'm not sure how I should try again to make it work.

Here's what I did:

(I'm not sure this first step is necessary, but I did it anyway.)

$ sudo port uninstall gnucash
Password:
--->  Deactivating gnucash @2.2.8_0+no_x11
--->  Uninstalling gnucash @2.2.8_0+no_x11

$ sudo port -f destroot gnucash +no_x11
--->  Fetching gnucash
--->  Verifying checksum(s) for gnucash
--->  Extracting gnucash
--->  Applying patches to gnucash
--->  Configuring gnucash
--->  Building gnucash
--->  Staging gnucash into destroot

$ sudo port mdmg gnucash +no_x11
sudo port mdmg gnucash +no_x11
Password:
--->  Creating pkg for gnucash-2.2.8
--->  Fetching xorg-xproto
--->  Attempting to fetch xproto-7.0.14.tar.bz2 from
http://distfiles.macports.org/xorg-xproto
--->  Verifying checksum(s) for xorg-xproto
--->  Extracting xorg-xproto
--->  Configuring xorg-xproto
--->  Building xorg-xproto
--->  Staging xorg-xproto into destroot
--->  Installing xorg-xproto @7.0.14_1
--->  Activating xorg-xproto @7.0.14_1
--->  Cleaning xorg-xproto
--->  Fetching Xft2
--->  Attempting to fetch libXft-2.1.13.tar.bz2 from
http://distfiles.macports.org/Xft2
--->  Verifying checksum(s) for Xft2
--->  Extracting Xft2
--->  Configuring Xft2
--->  Building Xft2
--->  Staging Xft2 into destroot
--->  Creating pkg for Xft2-2.1.13
--->  Creating pkg for aqbanking-3.7.2
Error: Target org.macports.pkg returned: shell command
"PMResourceLocale=English
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
-AppleLanguages "(English)" --root
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_aqbanking/work/destroot
--out
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnucash/work/gnucash-2.2.8.mpkg/Contents/Packages/aqbanking-3.7.2.pkg
 --resources
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_aqbanking/work/pkg_resources
--title "aqbanking-3.7.2" --info
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_aqbanking/work/Info.plist
--target 10.3 --domain system --id org.macports.aqbanking" returned error 1
Command output: Warning: Unknown argument: -AppleLanguages
Warning: Unknown argument: (English)
ERROR: The specified root is invalid:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_aqbanking/work/destroot

--->  Fetching atk
--->  Verifying checksum(s) for atk
--->  Extracting atk
--->  Configuring atk
--->  Building atk
--->  Staging atk into destroot
--->  Creating pkg for atk-1.24.0
--->  Creating pkg for audiofile-0.2.6
Error: Target org.macports.pkg returned: shell command
"PMResourceLocale=English
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
-AppleLanguages "(English)" --root
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_audiofile/work/destroot
--out
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnucash/work/gnucash-2.2.8.mpkg/Contents/Packages/audiofile-0.2.6.pkg
 --resources
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_audiofile/work/pkg_resources
--title "audiofile-0.2.6" --info
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_audiofile/work/Info.plist
--target 10.3 --domain system --id org.macports.audiofile" returned error 1
Command output: Warning: Unknown argument: -AppleLanguages
Warning: Unknown argument: (English)
ERROR: The specified root is invalid:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_audiofile/work/destroot

--->  Fetching bzip2
--->  Verifying checksum(s) for bzip2
--->  Extracting bzip2
--->  Applying patches to bzip2
--->  Configuring bzip2
--->  Building bzip2
--->  Staging bzip2 into destroot
--->  Creating pkg for bzip2-1.0.5
--->  Fetching cairo
--->  Attempting to fetch cairo-1.8.6.tar.gz from
http://distfiles.macports.org/cairo
--->  Verifying checksum(s) for cairo
--->  Extracting cairo
--->  Applying patches to cairo
--->  Configuring cairo
--->  Building cairo
--->  Staging cairo into destroot
--->  Creating pkg for cairo-1.8.6
--->  Fetching dbus-glib
--->  Attempting to fetch dbus-glib-0.78.tar.gz from
http://distfiles.macports.org/dbus-glib
--->  Verifying checksum(s) for dbus-glib
--->  Extracting dbus-glib
--->  Configuring dbus-glib
--->  Building dbus-glib
--->  Staging dbus-glib into destroot
--->  Creating pkg for dbus-glib-0.78
--->  Fetching dbus
--->  Attempting to fetch dbus-1.2.10.tar.gz from
http://distfiles.macports.org/dbus
--->  Verifying checksum(s) for dbus
--->  Extracting dbus
--->  Applying patches to dbus
--->  Configuring dbus
--->  Building dbus
--->  Staging dbus into destroot
--->  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting dbus with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.dbus.plist
###########################################################
--->  Creating pkg for dbus-1.2.10
--->  Fetching desktop-file-utils
--->  Verifying checksum(s) for desktop-file-utils
--->  Extracting desktop-file-utils
--->  Configuring desktop-file-utils
--->  Building desktop-file-utils
--->  Staging desktop-file-utils into destroot
--->  Creating pkg for desktop-file-utils-0.15
--->  Fetching xmlcatmgr
--->  Verifying checksum(s) for xmlcatmgr
--->  Extracting xmlcatmgr
--->  Configuring xmlcatmgr
--->  Building xmlcatmgr
--->  Staging xmlcatmgr into destroot
--->  Installing xmlcatmgr @2.2_1
--->  Activating xmlcatmgr @2.2_1
--->  Cleaning xmlcatmgr
--->  Fetching docbook-xsl
--->  Verifying checksum(s) for docbook-xsl
--->  Extracting docbook-xsl
--->  Configuring docbook-xsl
--->  Building docbook-xsl
--->  Staging docbook-xsl into destroot
--->  Installing docbook-xsl @1.74.0_0
--->  Activating docbook-xsl @1.74.0_0
######################################################################
# As MacPorts does not currently have a post-deactivate hook,
# you will need to ensure that you manually remove the catalog
# entry for this port when you uninstall it.  To do so, run
# "xmlcatmgr remove nextCatalog
/opt/local/share/xsl/docbook-xsl/catalog.xml".
######################################################################
--->  Cleaning docbook-xsl
--->  Fetching gnome-doc-utils
--->  Verifying checksum(s) for gnome-doc-utils
--->  Extracting gnome-doc-utils
--->  Configuring gnome-doc-utils
--->  Building gnome-doc-utils
--->  Staging gnome-doc-utils into destroot
--->  Installing gnome-doc-utils @0.14.1_0
--->  Activating gnome-doc-utils @0.14.1_0
--->  Cleaning gnome-doc-utils
--->  Fetching gtk-engines2
--->  Verifying checksum(s) for gtk-engines2
--->  Extracting gtk-engines2
--->  Configuring gtk-engines2
--->  Building gtk-engines2
--->  Staging gtk-engines2 into destroot
--->  Installing gtk-engines2 @2.16.1_0
--->  Activating gtk-engines2 @2.16.1_0
--->  Cleaning gtk-engines2
--->  Fetching gnome-themes
--->  Verifying checksum(s) for gnome-themes
--->  Extracting gnome-themes
--->  Configuring gnome-themes
--->  Building gnome-themes
--->  Staging gnome-themes into destroot
--->  Installing gnome-themes @2.24.1_1
--->  Activating gnome-themes @2.24.1_1
--->  Cleaning gnome-themes
--->  Fetching fftw-3
--->  Attempting to fetch fftw-3.2.tar.gz from
http://distfiles.macports.org/fftw-3
--->  Verifying checksum(s) for fftw-3
--->  Extracting fftw-3
--->  Configuring fftw-3
--->  Building fftw-3
--->  Staging fftw-3 into destroot
--->  Installing fftw-3 @3.2_1
--->  Activating fftw-3 @3.2_1
--->  Cleaning fftw-3
--->  Fetching py25-zlib
--->  Attempting to fetch Python-2.5.4.tar.bz2 from
http://distfiles.macports.org/python25
--->  Verifying checksum(s) for py25-zlib
--->  Extracting py25-zlib
--->  Configuring py25-zlib
--->  Building py25-zlib
--->  Staging py25-zlib into destroot
--->  Installing py25-zlib @2.5.4_0
--->  Activating py25-zlib @2.5.4_0
--->  Cleaning py25-zlib
--->  Fetching py25-setuptools
--->  Attempting to fetch setuptools-0.6c9.tar.gz from
http://distfiles.macports.org/python
--->  Verifying checksum(s) for py25-setuptools
--->  Extracting py25-setuptools
--->  Configuring py25-setuptools
--->  Building py25-setuptools
--->  Staging py25-setuptools into destroot
--->  Installing py25-setuptools @0.6c9_0
--->  Activating py25-setuptools @0.6c9_0
--->  Cleaning py25-setuptools
--->  Fetching py25-nose
--->  Verifying checksum(s) for py25-nose
--->  Extracting py25-nose
--->  Configuring py25-nose
--->  Building py25-nose
--->  Staging py25-nose into destroot
--->  Installing py25-nose @0.10.4_0
--->  Activating py25-nose @0.10.4_0
--->  Cleaning py25-nose
--->  Fetching py25-numpy
--->  Verifying checksum(s) for py25-numpy
--->  Extracting py25-numpy
--->  Applying patches to py25-numpy
--->  Configuring py25-numpy
--->  Building py25-numpy
--->  Staging py25-numpy into destroot
--->  Installing py25-numpy @1.2.1_0
--->  Activating py25-numpy @1.2.1_0
--->  Cleaning py25-numpy
--->  Fetching py25-cairo
--->  Attempting to fetch pycairo-1.8.0.tar.gz from
http://distfiles.macports.org/py25-cairo
--->  Verifying checksum(s) for py25-cairo
--->  Extracting py25-cairo
--->  Configuring py25-cairo
--->  Building py25-cairo
--->  Staging py25-cairo into destroot
--->  Installing py25-cairo @1.8.0_0+darwin_9
--->  Activating py25-cairo @1.8.0_0+darwin_9
--->  Cleaning py25-cairo
--->  Fetching py25-gobject
--->  Verifying checksum(s) for py25-gobject
--->  Extracting py25-gobject
--->  Configuring py25-gobject
--->  Building py25-gobject
--->  Staging py25-gobject into destroot
--->  Installing py25-gobject @2.14.2_0+darwin_9
--->  Activating py25-gobject @2.14.2_0+darwin_9
--->  Cleaning py25-gobject
--->  Fetching py25-gtk
--->  Verifying checksum(s) for py25-gtk
--->  Extracting py25-gtk
--->  Configuring py25-gtk
--->  Building py25-gtk
--->  Staging py25-gtk into destroot
--->  Installing py25-gtk @2.12.1_0+darwin_9
--->  Activating py25-gtk @2.12.1_0+darwin_9
--->  Cleaning py25-gtk
--->  Fetching py25-orbit
--->  Attempting to fetch pyorbit-2.24.0.tar.bz2 from
http://mirror.aarnet.edu.au/pub/GNOME/sources/pyorbit/2.24/
--->  Verifying checksum(s) for py25-orbit
--->  Extracting py25-orbit
--->  Configuring py25-orbit
--->  Building py25-orbit
--->  Staging py25-orbit into destroot
--->  Installing py25-orbit @2.24.0_0+darwin_9
--->  Activating py25-orbit @2.24.0_0+darwin_9
--->  Cleaning py25-orbit
--->  Fetching py25-gnome
--->  Attempting to fetch gnome-python-2.22.3.tar.bz2 from
http://mirror.internode.on.net/pub/gnome/sources/gnome-python/2.22/
--->  Verifying checksum(s) for py25-gnome
--->  Extracting py25-gnome
--->  Configuring py25-gnome
--->  Building py25-gnome
--->  Staging py25-gnome into destroot
--->  Installing py25-gnome @2.22.3_0+darwin_9
--->  Activating py25-gnome @2.22.3_0+darwin_9
--->  Cleaning py25-gnome
--->  Fetching startup-notification
--->  Verifying checksum(s) for startup-notification
--->  Extracting startup-notification
--->  Configuring startup-notification
--->  Building startup-notification
--->  Staging startup-notification into destroot
--->  Installing startup-notification @0.9_0
--->  Activating startup-notification @0.9_0
--->  Cleaning startup-notification
--->  Fetching gnome-desktop
--->  Attempting to fetch gnome-desktop-2.24.2.tar.bz2 from
http://mirror.internode.on.net/pub/gnome/sources/gnome-desktop/2.24/
--->  Verifying checksum(s) for gnome-desktop
--->  Extracting gnome-desktop
--->  Applying patches to gnome-desktop
--->  Configuring gnome-desktop
Error: Target org.macports.configure returned: +x11 variant selected, but
gtk2+quartz is installed
Error: The following dependencies failed to build: gnome-desktop gnome-menus
librsvg libcroco



>
> - Josh
>

-Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090102/ce27cb33/attachment.html>


More information about the macports-users mailing list