Opened 15 years ago

Closed 14 years ago

#22221 closed defect (fixed)

gnome-python-desktop fails to build

Reported by: jmartini206@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: gnome-python-desktop

Description (last modified by jmroot (Joshua Root))

I'm on Snow Leopard using Macports 1.8.1

I'm very new to osX and to Macports. I am trying to install gnome-games and I receive the following output:

jmartini_mac:Downloads admin$ sudo port variants gnome-python-desktop
gnome-python-desktop has the variants:
   darwin_9: Platform variant, selected automatically
   universal: Build for multiple architectures
jmartini_mac:Downloads admin$ sudo port clean gnome-python-desktop
--->  Cleaning gnome-python-desktop
jmartini_mac:Downloads admin$ sudo port install universal gnome-python-desktop
Error: Port universal not found
jmartini_mac:Downloads admin$ sudo port install gonme-python-desktop:universal
Error: Port gonme-python-desktop:universal not found
jmartini_mac:Downloads admin$ sudo port install gnome-games
--->  Computing dependencies for gnome-games
--->  Fetching gnome-python-desktop
--->  Verifying checksum(s) for gnome-python-desktop
--->  Extracting gnome-python-desktop
--->  Configuring gnome-python-desktop
--->  Building gnome-python-desktop
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnome-python-desktop/work/gnome-python-desktop-2.26.0" && /usr/bin/make -j2 all " returned error 2
Command output: /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gnome-media -I/opt/local/include/gconf/2 -I/opt/local/include/gtk-2.0 -I/opt/local/include/libglade-2.0 -I/opt/local/include/libgnome-2.0 -I/opt/local/include/orbit-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/opt/local/include/libxml2 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/bonobo-activation-2.0 -I/opt/local/include/pygtk-2.0   -I/opt/local/include/pygtk-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include    -I/opt/local/include  -O2 -arch x86_64 -Wall -std=c9x -fno-strict-aliasing -MT mediaprofilesmodule.lo -MD -MP -MF .deps/mediaprofilesmodule.Tpo -c -o mediaprofilesmodule.lo mediaprofilesmodule.c
(cd .\
	 && /opt/local/bin/pygtk-codegen-2.0 \
		--override mediaprofiles.override \
	    --py_ssize_t-clean \
	    --register /opt/local/share/pygtk/2.0/defs/gdk-types.defs \
	    --register /opt/local/share/pygtk/2.0/defs/gtk-types.defs \
	    --register /gconf.defs \
		--prefix pymediaprofiles mediaprofiles.defs) > gen-mediaprofiles.c \
	    && cp gen-mediaprofiles.c mediaprofiles.c \
	    && rm -f gen-mediaprofiles.c
note: pygtk-codegen-2.0 is deprecated, use pygobject-codegen-2.0 instead
note: I will now try to invoke pygobject-codegen-2.0 in the same directory
Traceback (most recent call last):
  File "/opt/local/share/pygobject/2.0/codegen/codegen.py", line 1717, in <module>
    sys.exit(main(sys.argv))
  File "/opt/local/share/pygobject/2.0/codegen/codegen.py", line 1675, in main
    p.startParsing()
  File "/opt/local/share/pygobject/2.0/codegen/scmexpr.py", line 113, in startParsing
    for statement in statements:
  File "/opt/local/share/pygobject/2.0/codegen/scmexpr.py", line 27, in parse
    fp = open(filename, 'r')
IOError: [Errno 2] No such file or directory: '/gconf.defs'
make[2]: *** [mediaprofiles.c] Error 1
make[2]: *** Waiting for unfinished jobs....
mkdir .libs
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gnome-media -I/opt/local/include/gconf/2 -I/opt/local/include/gtk-2.0 -I/opt/local/include/libglade-2.0 -I/opt/local/include/libgnome-2.0 -I/opt/local/include/orbit-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/opt/local/include/libxml2 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/bonobo-activation-2.0 -I/opt/local/include/pygtk-2.0 -I/opt/local/include/pygtk-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -O2 -arch x86_64 -Wall -std=c9x -fno-strict-aliasing -MT mediaprofilesmodule.lo -MD -MP -MF .deps/mediaprofilesmodule.Tpo -c mediaprofilesmodule.c  -fno-common -DPIC -o .libs/mediaprofilesmodule.o
mv -f .deps/mediaprofilesmodule.Tpo .deps/mediaprofilesmodule.Plo
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: The following dependencies failed to build: gnome-python-desktop
Error: Status 1 encountered during processing.

Change History (3)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: changed from macports-tickets@… to devans@…
Port: gnome-python-desktop added

Please remember to preview your tickets and use WikiFormatting.

comment:2 in reply to:  description Changed 15 years ago by lal22@…

This is caused by lacking dependencies in the Portfile. It should help to install py25-gnome and py26-gnome. (Sorry, I do not know which of the two really does it.) Afterwards gnome-python-desktop can be installed - but it must be *reconfigured*. (I.e. make a "port clear gnome-python-desktop".)

The problem is caused by the parameters "--register /gconf.defs", which is executed by the Makefile. (The file "/gconf.defs" does not exist.) If the python bindings for gnome are missing, the configuration fails to provide a useful path for gconf.defs.

comment:3 Changed 14 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Dependency on py26-gnome added in r72718. Thanks for the report.

Note: See TracTickets for help on using tickets.