Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361739 - dev-python/notify-python-0.1.1-r2 ebuild failed (compile phase)
Summary: dev-python/notify-python-0.1.1-r2 ebuild failed (compile phase)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-03 03:06 UTC by Slava
Modified: 2011-04-03 22:03 UTC (History)
0 users

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


Attachments
build.log (build.log,13.88 KB, text/plain)
2011-04-03 03:09 UTC, Slava
Details
config.log (config.log,41.75 KB, text/plain)
2011-04-03 17:24 UTC, Slava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Slava 2011-04-03 03:06:47 UTC
I wanted to install HPLIP which pulled dev-python/notify-python-0.1.1-r2 as a dependency.  dev-python/notify-python-0.1.1-r2 failed to compile.  I ran revdep-rebuild, but that did not help.

Reproducible: Always

Steps to Reproduce:
1. emerge notify-python
2.
3.
Actual Results:  
dev-python/notify-python-0.1.1-r2 ebuild failed (compile phase)

Expected Results:  
It should have compiled and installed

emerge --info =dev-python/notify-python-0.1.1-r2
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r3, 2.6.37 x86_64)                                                                                                                                                                             
=================================================================                                                                                                                                                                                                              
                        System Settings                                                                                                                                                                                                                                        
=================================================================                                                                                                                                                                                                              
System uname: Linux-2.6.37-x86_64-Intel-R-_Core-TM-_i5_CPU_760_@_2.80GHz-with-gentoo-1.12.14                                                                                                                                                                                   
Timestamp of tree: Sun, 03 Apr 2011 02:15:01 +0000                                                                                                                                                                                                                             
app-shells/bash:     4.1_p9                                                                                                                                                                                                                                                    
dev-java/java-config: 2.1.11-r3                                                                                                                                                                                                                                                
dev-lang/python:     2.6.6-r1, 3.1.2-r4                                                                                                                                                                                                                                        
dev-util/cmake:      2.8.1-r2                                                                                                                                                                                                                                                  
sys-apps/baselayout: 1.12.14-r1                                                                                                                                                                                                                                                
sys-apps/sandbox:    2.4                                                                                                                                                                                                                                                       
sys-devel/autoconf:  2.13, 2.65-r1                                                                                                                                                                                                                                             
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1                                                                                                                                                                                                                                  
sys-devel/binutils:  2.20.1-r1                                                                                                                                                                                                                                                 
sys-devel/gcc:       4.4.4-r2                                                                                                                                                                                                                                                  
sys-devel/gcc-config: 1.4.1                                                                                                                                                                                                                                                    
sys-devel/libtool:   2.2.10                                                                                                                                                                                                                                                    
sys-devel/make:      3.81-r2                                                                                                                                                                                                                                                   
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)                                                                                                                                                                                                                      
ACCEPT_KEYWORDS="amd64"                                                                                                                                                                                                                                                        
ACCEPT_LICENSE="*"                                                                                                                                                                                                                                                             
CBUILD="x86_64-pc-linux-gnu"                                                                                                                                                                                                                                                   
CFLAGS="-march=native -O2 -pipe"                                                                                                                                                                                                                                               
CHOST="x86_64-pc-linux-gnu"                                                                                                                                                                                                                                                    
CONFIG_PROTECT="/etc /usr/share/config"                                                                                                                                                                                                                                        
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"              
CXXFLAGS="-march=native -O2 -pipe"                                                                                                                                                                                                                                             
DISTDIR="/usr/portage/distfiles"                                                                                                                                                                                                                                               
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"                                                                                   
FFLAGS=""
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync4.ca.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gd gdbm gdu gif gpm gtk iconv jpeg kde lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg openal opengl openmp pam pango pcre pdf perl php png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="virtuoso oxygen" 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 cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



emerge -pqv =dev-python/notify-python-0.1.1-r2
[ebuild  N    ] dev-python/notify-python-0.1.1-r2  USE="-examples"
Comment 1 Slava 2011-04-03 03:09:00 UTC
Created attachment 268273 [details]
build.log

Attaching build log to help troubleshoot
Comment 2 Rafał Mużyło 2011-04-03 03:31:23 UTC
As the error is:
In file included from pynotifymodule.c:2:
/usr/include/pygtk-2.0/pygtk/pygtk.h:8:21: error: gtk/gtk.h: No such file or directory

it seems something fails on pkg-config side.

Does config.log provide any hints ?
Comment 3 Slava 2011-04-03 04:58:03 UTC
Hi Rafal

There is no config.log generated.

I'm not very farmiliar with how GTK works; is gtk+-2.0 backwords compatible with gtk/gtk+?  I tried to run pkg-config with the following results:

# pkg-config --libs gtk+-2.0
-pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0

# pkg-config --libs gtk+    
sh: gtk-config: command not found
sh: gtk-config: command not found
sh: gtk-config: command not found

# pkg-config --libs gtk 
Package gtk was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk' found

Does any of the above point to anything obvious or relevant at all?

Thanks
Comment 4 Rafał Mużyło 2011-04-03 16:17:01 UTC
Try 'pkg-config pygtk-2.0 libnotify --cflags'.
config.log is generated, look again.
Comment 5 Slava 2011-04-03 17:22:03 UTC
Out put from pkg-config pygtk-2.0 libnotify --cflags is below.

# pkg-config pygtk-2.0 libnotify --cflags
-pthread -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng14


I still can't find config.log though.  It's not in the present directory and locate doesn't turn anything up on the system.  Where should it be logged?
Comment 6 Slava 2011-04-03 17:24:53 UTC
Created attachment 268369 [details]
config.log

Nevermind, I found it.  Attached config.log for further troubleshooting
Comment 7 Rafał Mużyło 2011-04-03 18:48:25 UTC
(In reply to comment #5)
> Out put from pkg-config pygtk-2.0 libnotify --cflags is below.
> 
> # pkg-config pygtk-2.0 libnotify --cflags
> -pthread -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0
> -I/usr/include/libpng14
> 
That's significantly shorter than it's supposed to be.
I.e. in pygtk-2.0.pc pkg-config file there should be an entry

Requires: pygobject-2.0 gtk+-2.0

which should result in correct cflags, but for you, it does not.
Comment 8 Slava 2011-04-03 22:03:40 UTC
Upgrading pygtk and pygobject to the latest versions resolved the problem.

dev-python/pygobject-2.26.0-r1 [2.20.0]
dev-python/pygtk-2.22.0-r1 [2.17.0]


notify-python-0.1.1-r2 compiled and installed after upgrading those to the latest.

Thank you for pointing me in the right direction.