Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285595 - dev-libs/libgweather-2.26.2.1 fails to build (missing dep on pygtk with USE="-python")
Summary: dev-libs/libgweather-2.26.2.1 fails to build (missing dep on pygtk with USE="...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-19 16:34 UTC by Petteri Räty (RETIRED)
Modified: 2009-10-01 23:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2009-09-19 16:34:31 UTC
Making all in data
  GEN   Locations.xml.gz
Generating and caching the translation database
Merging translations into Locations.xml.
CREATED Locations.xml
Making all in python
  GEN   gweather.c
/bin/sh: line 2: pygtk-codegen-2.0: command not found
make[2]: *** [gweather.c] Error 127
make[2]: *** Waiting for unfinished jobs....
  CC    gweathermodule.o
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

pena betelgeuse # emerge --info
Portage 2.2_rc40 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo i686)
=================================================================
System uname: Linux-2.6.31-gentoo-i686-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Unknown
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.5.4-r2, 2.6.2-r1, 3.1.1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/var/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox verify-rdepend"
GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="fi en"
MAKEOPTS="-j8"
PKGDIR="/home/pkg/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/checkouts/overlays/flameeyes-overlay /mnt/checkouts/overlays/openrc /mnt/checkouts/overlays/sunrise /mnt/checkouts/overlays/wschlich-testing /mnt/checkouts/overlays/finnish /mnt/checkouts/overlays/jokey"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="a52 aac acl acpi alsa audiofile bash-completion bluetooth branding bzip2 cairo caps cdb cddb cdparanoia cdr cli cracklib crypt cups custom-cxxflags dbus dri dts dvd dvdr dvdread emboss evo fam ffmpeg firefox gif glib hal iconv ipv6 isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility libnotify logitech-mouse mad mikmod mjpeg mmx mp3 mp4 mpeg mudflap ncurses network nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pcre pdf png ppds pppd pulseaudio qt3 qt3support quicktime readline reflection rtc samba session spell spl sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs theora threads thunar tiff truetype udev unicode usb userlocales vim-syntax vorbis win32codecs x264 x86 xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi en" NETBEANS_MODULES="ruby ide webcommon nb harness" USERLAND="GNU" VIDEO_CARDS="none radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2009-09-19 16:38:59 UTC
Probably needs a dep on pygtk:

betelgeuse@pena /usr/portage/app-pda $ qfile /usr/bin/pygtk-codegen-2.0
dev-python/pygtk (/usr/bin/pygtk-codegen-2.0)
Comment 2 Romain Perier (RETIRED) gentoo-dev 2009-09-19 18:31:43 UTC
Making all in python
  GEN   gweather.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
  CC    gweathermodule.o
***INFO*** The coverage of global functions is 100.00% (1/1)
***INFO*** The coverage of methods is 100.00% (23/23)
***INFO*** There are no declared virtual proxies.
***INFO*** There are no declared virtual accessors.
***INFO*** There are no declared interface proxies.
  CC    gweather.o
  LINK  gweather.la
>>> Source compiled.

It builds just fine here...

python? (>=dev-python/pygobject-2
	 >=dev-python/pygtk-2 )

Already in RDEPEND, it's weird, normally pygobject-codegen-2.0 should be used...

emerge --info
Portage 2.2_rc40 (default/linux/amd64/10.0/developer, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 19 Sep 2009 15:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1, 3.1.1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -msse4 -msse4.1 -msse4.2 -mcx16 -msahf -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -msse4 -msse4.1 -msse4.2 -mcx16 -msahf -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect cvs distlocks fixpackages multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://gentoo.imj.fr/pub/gentoo/ http://mirror.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="fr"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay /usr/local/portage/layman/gnome /usr/local/portage/layman/sunrise /usr/local/portage/layman/gamerlay /usr/local/portage/layman/mrpouet /usr/local/portage/layman/desktop-effects"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 ao apache2 berkdb bluetooth branding bzip2 cairo cddb cdr cli cracklib crypt css dbus dri dts dvd dvdr dvdread emacs emboss encode evo fam ffmpeg firefox flac fortran gdbm gif gnome gstreamer gtk hal iconv ipv6 isdnlog jpeg laptop latex ldap libnotify mad mikmod mmx mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session snmp spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype type1 unicode usb vorbis x264 xcomposite xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Romain Perier (RETIRED) gentoo-dev 2009-09-19 18:42:59 UTC
however a full build.log could be helpful...
Comment 4 Romain Perier (RETIRED) gentoo-dev 2009-09-19 18:45:07 UTC
sorry for the flood, but what is your pygtk version ?
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2009-09-19 18:45:48 UTC
(In reply to comment #2)
> 
> It builds just fine here...
> 
> python? (>=dev-python/pygobject-2
>          >=dev-python/pygtk-2 )
> 
> Already in RDEPEND, it's weird, normally pygobject-codegen-2.0 should be
> used...
> 

I don't use the python use flag:
[ebuild   R   ] dev-libs/libgweather-2.26.2.1  USE="-doc -python" 0 kB

Comment 6 Romain Perier (RETIRED) gentoo-dev 2009-09-19 18:52:23 UTC
(In reply to comment #5)
> I don't use the python use flag:
> [ebuild   R   ] dev-libs/libgweather-2.26.2.1  USE="-doc -python" 0 kB
> 

I found something :

AC_ARG_ENABLE(python,
        [AC_HELP_STRING([--enable-python],
                        [Build libgweather python bindings])],
        [enable_python=yes],
        [enable_python=no])

==> in other words, even if --disable-python the python support is enabled.. which could explain your issue.
Comment 7 Romain Perier (RETIRED) gentoo-dev 2009-09-19 19:06:11 UTC
+19 Sep 2009; Romain Perier <mrpouet@gentoo.org>
+  libgweather-2.26.2.1.ebuild,
+  +files/libgweather-2.26.2.1-automagic-python.patch:
+  Fix bug #285595, automagic python support which caused compilation fail
+  when pygtk was not installed.

Fixed into the main tree without a bump, feel free to reopen this bug in case of problem, thanks for reporting.
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2009-09-19 20:02:33 UTC
(In reply to comment #7)
> +19 Sep 2009; Romain Perier <mrpouet@gentoo.org>
> +  libgweather-2.26.2.1.ebuild,
> +  +files/libgweather-2.26.2.1-automagic-python.patch:
> +  Fix bug #285595, automagic python support which caused compilation fail
> +  when pygtk was not installed.
> 
> Fixed into the main tree without a bump, feel free to reopen this bug in case
> of problem, thanks for reporting.
> 

Probably warrants a bump as people requesting -python could have had python support installed if the deps were met if I understood you correctly.
Comment 9 Mart Raudsepp gentoo-dev 2009-09-28 16:05:35 UTC
Also, has this been reported to upstream already?
Comment 10 Romain Perier (RETIRED) gentoo-dev 2009-09-29 17:10:23 UTC
reported, see URL field (thanks to nirbheek btw)
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-01 23:15:24 UTC
re-closing since upstream issue has been filled.