Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280973 - gnome-extra/deskbar-applet-2.26.2 fails to emerge due to error in configure script preventing detection of gnomeapplet Python module
Summary: gnome-extra/deskbar-applet-2.26.2 fails to emerge due to error in configure s...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome2.26
  Show dependency tree
 
Reported: 2009-08-10 08:00 UTC by Timo Nieminen
Modified: 2009-12-02 06:25 UTC (History)
1 user (show)

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


Attachments
file: /var/tmp/portage/gnome-extra/deskbar-applet-2.26.2/work/deskbar-applet-2.26.2/config.log (config.log,36.92 KB, text/plain)
2009-08-10 12:20 UTC, Timo Nieminen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Nieminen 2009-08-10 08:00:06 UTC
gnome-extra/deskbar-applet-2.26.2 fails to emerge due to error in configure script preventing detection of gnomeapplet Python module.

It seems that the configure script has a small double paste of the gnomeapplet detection code, after adding following patch to local ebuild, configure and compilation of package worked fine:
*** configure   Mon May 18 19:04:35 2009
--- configure   Mon Aug 10 10:43:10 2009
***************
*** 15103,15120 ****
  except:
      pass
  '") >&5
-   (DISPLAY= $PYTHON -c '
- import pygtk
- pygtk.require("2.0")
-
- try:
-     import gnomeapplet
- except ImportError, e:
-     if str(e).find("gnomeapplet") >= 0:
-           raise
- except:
-     pass
- ') 2>&5
    ac_status=$?
    $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; then
--- 15103,15108 ----


Reproducible: Always

Steps to Reproduce:
1. emerging gnomeapplet Python module
2. emerge fails

Actual Results:  
checking for DESKBAR... yes
checking for gnomeapplet module... ./configure: line 15129: 17701 Segmentation fault      ( DISPLAY= $PYTHON -c '
import pygtk
pygtk.require("2.0")

try:
    import gnomeapplet
except ImportError, e:
    if str(e).find("gnomeapplet") >= 0:
          raise
except:
    pass
' ) 2>&5
no
configure: error: gnomeapplet Python module required to build deskbar

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/gnome-extra/deskbar-applet-2.26.2/work/deskbar-applet-2.26.2/config.log
 * 
 * ERROR: gnome-extra/deskbar-applet-2.26.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3394:  Called gnome2_src_compile
 *             environment, line 2265:  Called gnome2_src_configure
 *             environment, line 2279:  Called econf '--disable-evolution' '--exec-prefix=/usr' '--disable-scrollkeeper'
 *               ebuild.sh, line  534:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/gnome-extra/deskbar-applet-2.26.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-extra/deskbar-applet-2.26.2/temp/environment'.
 * 


Expected Results:  
checking for gnomeapplet module... yes
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-10 08:09:39 UTC
emerge --info and config.log please. I suspect this is a python-updater run missing.
Comment 2 Timo Nieminen 2009-08-10 12:20:39 UTC
Created attachment 200838 [details]
file: /var/tmp/portage/gnome-extra/deskbar-applet-2.26.2/work/deskbar-applet-2.26.2/config.log
Comment 3 Timo Nieminen 2009-08-10 12:30:56 UTC
I have ran python-updater several times, to no avail. I have also re-emerged all packets that I could suspect as being possible causes. Only thing that I could try is emerge -e for the package. Which I don't really find logical as the patch I mentioned at first did make the package compile and install just fine.

Problem is that the configure script fails to run the following python code:
-----------------------
import pygtk
pygtk.require("2.0")

try:
    import gnomeapplet
except ImportError, e:
    if str(e).find("gnomeapplet") >= 0:
          raise
except:
    pass
-----------------------

I tested basically same script with prints for verifying execution:
-----------------------
python -c '
import pygtk
pygtk.require("2.0")

try:
    import gnomeapplet
except ImportError, e:
    if str(e).find("gnomeapplet") >= 0:
          print "ImportError"
          raise
except:
    print "pass"
    pass
print "end"
'
-----------------------
Executing this prints:
-----------------------
/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
end
-----------------------

Which means the gnomeapplet can be imported just fine, the configure script just won't detect the output right.



emerge --info
-------------------------
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.4, glibc-2.10.1-r0, 2.6.27.7 x86_64)
=================================================================
System uname: Linux-2.6.27.7-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 10 Aug 2009 04:45:03 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1, 3.1
dev-python/pycrypto: 2.0.1-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.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 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="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tnnet.fi/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://gentoo.tnnet.fi/gentoo-portage"
USE="X a52 aac acl alsa amd64 amr apache2 berkdb bzip2 cgi cli cracklib crypt cups dbus directv dri dts dvb dvd emerald encode ffmpeg fftw filter firefox fortran gd gdbm glitz gnome gpm gtk hauppauge_dvb iconv imlib ipv6 isdnlog java jpeg kde keyscrub mmx mode-owner mp3 mp4live mpeg mudflap multilib mysql ncurses network nls nptl nptlonly ogg opengl openmp overlays pam pcre pdf perl pic png pppd python qt3 qt3support qt4 readline reflection rpc samba sdl session skins sockets spl sqlite sse sse2 ssl svg sysfs tcpd theora tiff truetype unicode v4l v4l2 vorbis wmp wxwindows x264 xinerama xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 misiek78 2009-08-13 06:53:53 UTC
Downgrading eselect-python from  app-admin/eselect-python-20090804 to app-admin/eselect-python-20090606 solved the problem for me.
It's a eselect-python bug.

Comment 5 Sandro Bonazzola 2009-08-21 10:43:31 UTC
(In reply to comment #4)
> Downgrading eselect-python from  app-admin/eselect-python-20090804 to
> app-admin/eselect-python-20090606 solved the problem for me.
> It's a eselect-python bug.

I can confirm: it's a python-wrapper bug introduced by latest eselect-python.

Comment 6 Chris Picton 2009-12-02 06:25:35 UTC
app-admin/eselect-python-20090824 also fixes this issue