Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257151 - x11-misc/driconf-0.9.1 imports gtk python module during src_compile and src_install
Summary: x11-misc/driconf-0.9.1 imports gtk python module during src_compile and src_i...
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-31 22:50 UTC by Martin Mokrejš
Modified: 2017-01-30 03:31 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 Martin Mokrejš 2009-01-31 22:50:26 UTC
While hoping to debug some core dumps of xorg-server I had recompiled most of the x11-libs and -drivers with FEATURES=splitdebug and CFLAGS="-DDEBUG -DNDEBUG". While installing some other packages I obtained some debug output from "X11" proving that __init__.py got executed. I think python executes this during import of the modules but why is it imported at all? Is the aim to byte-compile it instead. Please note it happens twice.


>>> Emerging (3 of 3) x11-misc/driconf-0.9.1
 * driconf-0.9.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                           [ ok ]
 * checking ebuild checksums ;-) ...                                                                                              [ ok ]
 * checking auxfile checksums ;-) ...                                                                                             [ ok ]
 * checking miscfile checksums ;-) ...                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking driconf-0.9.1.tar.gz to /var/tmp/portage/x11-misc/driconf-0.9.1/work
>>> Source unpacked in /var/tmp/portage/x11-misc/driconf-0.9.1/work
>>> Compiling source in /var/tmp/portage/x11-misc/driconf-0.9.1/work/driconf-0.9.1 ...
running build
running build_py
creating build
creating build/lib
copying dri.py -> build/lib
copying driconf.py -> build/lib
copying driconf_commonui.py -> build/lib
copying driconf_complexui.py -> build/lib
copying driconf_simpleui.py -> build/lib
running build_scripts
creating build/scripts-2.5
copying and adjusting driconf -> build/scripts-2.5
changing mode of build/scripts-2.5/driconf from 644 to 755
***
*** BEGIN Database
***
  0: XLC_XLOCALE, cs6.ct_encoding, 	[1: ISO10646-1, ]
  1: XLC_XLOCALE, cs6.side, 	[1: none, ]
  2: XLC_XLOCALE, cs5.ct_encoding, 	[1: JISX0201.1976-0:GR, ]
  3: XLC_XLOCALE, cs5.length, 	[1: 1, ]
  4: XLC_XLOCALE, cs5.side, 	[1: GR, ]
  5: XLC_XLOCALE, cs4.ct_encoding, 	[2: GB2312.1980-0:GL, GB2312.1980-0:GR, ]
  6: XLC_XLOCALE, cs4.length, 	[1: 2, ]
  7: XLC_XLOCALE, cs4.side, 	[1: GR, ]
  8: XLC_XLOCALE, cs3.ct_encoding, 	[4: KSC5601.1987-0:GL, KSC5601.1987-0:GR, KSC5601.1987-1:GL, KSC5601.1987-1:GR, ]
  9: XLC_XLOCALE, cs3.length, 	[1: 2, ]
 10: XLC_XLOCALE, cs3.side, 	[1: GL, ]
 11: XLC_XLOCALE, cs2.ct_encoding, 	[4: JISX0208.1983-0:GL, JISX0208.1983-0:GR, JISX0208.1983-1:GL, JISX0208.1983-1:GR, ]
 12: XLC_XLOCALE, cs2.length, 	[1: 2, ]
 13: XLC_XLOCALE, cs2.side, 	[1: GR, ]
 14: XLC_XLOCALE, cs1.ct_encoding, 	[1: ISO8859-1:GR, ]
 15: XLC_XLOCALE, cs1.length, 	[1: 1, ]
 16: XLC_XLOCALE, cs1.side, 	[1: GR:Default, ]
 17: XLC_XLOCALE, cs0.ct_encoding, 	[1: ISO8859-1:GL, ]
 18: XLC_XLOCALE, cs0.length, 	[1: 1, ]
 19: XLC_XLOCALE, cs0.side, 	[1: GL:Default, ]
 20: XLC_XLOCALE, state_depend_encoding, 	[1: False, ]
 21: XLC_XLOCALE, mb_cur_max, 	[1: 6, ]
 22: XLC_XLOCALE, encoding_name, 	[1: UTF-8, ]
 23: XLC_FONTSET, fs6.font.primary, 	[1: ISO10646-1, ]
 24: XLC_FONTSET, fs6.charset.name, 	[1: ISO10646-1, ]
 25: XLC_FONTSET, fs5.font.vertical_rotate, 	[1: all, ]
 26: XLC_FONTSET, fs5.font.primary, 	[1: JISX0201.1976-0:GR, ]
 27: XLC_FONTSET, fs5.charset.name, 	[1: JISX0201.1976-0:GR, ]
 28: XLC_FONTSET, fs4.font.primary, 	[1: GB2312.1980-0:GL, ]
 29: XLC_FONTSET, fs4.charset.name, 	[1: GB2312.1980-0:GL, ]
 30: XLC_FONTSET, fs3.font.primary, 	[1: KSC5601.1987-0:GL, ]
 31: XLC_FONTSET, fs3.charset.name, 	[1: KSC5601.1987-0:GL, ]
 32: XLC_FONTSET, fs2.font.primary, 	[1: JISX0208.1983-0:GL, ]
 33: XLC_FONTSET, fs2.charset.name, 	[1: JISX0208.1983-0:GL, ]
 34: XLC_FONTSET, fs1.font.primary, 	[1: ISO8859-1:GR, ]
 35: XLC_FONTSET, fs1.charset.name, 	[1: ISO8859-1:GR, ]
 36: XLC_FONTSET, fs0.font.vertical_rotate, 	[1: all, ]
 37: XLC_FONTSET, fs0.font.primary, 	[1: ISO8859-1:GL, ]
 38: XLC_FONTSET, fs0.charset.name, 	[1: ISO8859-1:GL, ]
 39: XLC_FONTSET, object_name, 	[1: generic, ]
 40: XLC_FONTSET, on_demand_loading, 	[1: True, ]
***
*** END   Database
***
/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
>>> Source compiled.
>>> Test phase [not enabled]: x11-misc/driconf-0.9.1

>>> Install driconf-0.9.1 into /var/tmp/portage/x11-misc/driconf-0.9.1/image/ category x11-misc
running install
running build
running build_py
running build_scripts
running install_lib
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/lib/driconf
copying build/lib/dri.py -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/lib/driconf
copying build/lib/driconf_complexui.py -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/lib/driconf
copying build/lib/driconf.py -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/lib/driconf
copying build/lib/driconf_commonui.py -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/lib/driconf
copying build/lib/driconf_simpleui.py -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/lib/driconf
running install_scripts
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/bin
copying build/scripts-2.5/driconf -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/bin
changing mode of /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/bin/driconf to 755
running install_data
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/driconf
copying card.png -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/driconf
copying screen.png -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/driconf
copying screencard.png -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/driconf
copying drilogo.jpg -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/driconf
copying driconf-icon.png -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/driconf
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/de
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/de/LC_MESSAGES
copying de/LC_MESSAGES/driconf.mo -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/de/LC_MESSAGES
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/es
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/es/LC_MESSAGES
copying es/LC_MESSAGES/driconf.mo -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/es/LC_MESSAGES
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/it
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/it/LC_MESSAGES
copying it/LC_MESSAGES/driconf.mo -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/it/LC_MESSAGES
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/ru
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/ru/LC_MESSAGES
copying ru/LC_MESSAGES/driconf.mo -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/ru/LC_MESSAGES
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/nl
creating /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/nl/LC_MESSAGES
copying nl/LC_MESSAGES/driconf.mo -> /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/share/locale/nl/LC_MESSAGES
running install_egg_info
Writing /var/tmp/portage/x11-misc/driconf-0.9.1/image/usr/lib/driconf/driconf-0.9.1-py2.5.egg-info
***
*** BEGIN Database
***
  0: XLC_XLOCALE, cs6.ct_encoding, 	[1: ISO10646-1, ]
  1: XLC_XLOCALE, cs6.side, 	[1: none, ]
  2: XLC_XLOCALE, cs5.ct_encoding, 	[1: JISX0201.1976-0:GR, ]
  3: XLC_XLOCALE, cs5.length, 	[1: 1, ]
  4: XLC_XLOCALE, cs5.side, 	[1: GR, ]
  5: XLC_XLOCALE, cs4.ct_encoding, 	[2: GB2312.1980-0:GL, GB2312.1980-0:GR, ]
  6: XLC_XLOCALE, cs4.length, 	[1: 2, ]
  7: XLC_XLOCALE, cs4.side, 	[1: GR, ]
  8: XLC_XLOCALE, cs3.ct_encoding, 	[4: KSC5601.1987-0:GL, KSC5601.1987-0:GR, KSC5601.1987-1:GL, KSC5601.1987-1:GR, ]
  9: XLC_XLOCALE, cs3.length, 	[1: 2, ]
 10: XLC_XLOCALE, cs3.side, 	[1: GL, ]
 11: XLC_XLOCALE, cs2.ct_encoding, 	[4: JISX0208.1983-0:GL, JISX0208.1983-0:GR, JISX0208.1983-1:GL, JISX0208.1983-1:GR, ]
 12: XLC_XLOCALE, cs2.length, 	[1: 2, ]
 13: XLC_XLOCALE, cs2.side, 	[1: GR, ]
 14: XLC_XLOCALE, cs1.ct_encoding, 	[1: ISO8859-1:GR, ]
 15: XLC_XLOCALE, cs1.length, 	[1: 1, ]
 16: XLC_XLOCALE, cs1.side, 	[1: GR:Default, ]
 17: XLC_XLOCALE, cs0.ct_encoding, 	[1: ISO8859-1:GL, ]
 18: XLC_XLOCALE, cs0.length, 	[1: 1, ]
 19: XLC_XLOCALE, cs0.side, 	[1: GL:Default, ]
 20: XLC_XLOCALE, state_depend_encoding, 	[1: False, ]
 21: XLC_XLOCALE, mb_cur_max, 	[1: 6, ]
 22: XLC_XLOCALE, encoding_name, 	[1: UTF-8, ]
 23: XLC_FONTSET, fs6.font.primary, 	[1: ISO10646-1, ]
 24: XLC_FONTSET, fs6.charset.name, 	[1: ISO10646-1, ]
 25: XLC_FONTSET, fs5.font.vertical_rotate, 	[1: all, ]
 26: XLC_FONTSET, fs5.font.primary, 	[1: JISX0201.1976-0:GR, ]
 27: XLC_FONTSET, fs5.charset.name, 	[1: JISX0201.1976-0:GR, ]
 28: XLC_FONTSET, fs4.font.primary, 	[1: GB2312.1980-0:GL, ]
 29: XLC_FONTSET, fs4.charset.name, 	[1: GB2312.1980-0:GL, ]
 30: XLC_FONTSET, fs3.font.primary, 	[1: KSC5601.1987-0:GL, ]
 31: XLC_FONTSET, fs3.charset.name, 	[1: KSC5601.1987-0:GL, ]
 32: XLC_FONTSET, fs2.font.primary, 	[1: JISX0208.1983-0:GL, ]
 33: XLC_FONTSET, fs2.charset.name, 	[1: JISX0208.1983-0:GL, ]
 34: XLC_FONTSET, fs1.font.primary, 	[1: ISO8859-1:GR, ]
 35: XLC_FONTSET, fs1.charset.name, 	[1: ISO8859-1:GR, ]
 36: XLC_FONTSET, fs0.font.vertical_rotate, 	[1: all, ]
 37: XLC_FONTSET, fs0.font.primary, 	[1: ISO8859-1:GL, ]
 38: XLC_FONTSET, fs0.charset.name, 	[1: ISO8859-1:GL, ]
 39: XLC_FONTSET, object_name, 	[1: generic, ]
 40: XLC_FONTSET, on_demand_loading, 	[1: True, ]
***
*** END   Database
***
/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
>>> Completed installing driconf-0.9.1 into /var/tmp/portage/x11-misc/driconf-0.9.1/image/


>>> Installing x11-misc/driconf-0.9.1
 * Performing Python Module Cleanup .. ...
 * Cleaning orphaned Python bytecode from /usr/lib/python2.4/site-packages ..
 * Cleaning orphaned Python bytecode from /usr/lib/python2.5/site-packages ..                                                      [ ok ]
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

# emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.29-rc3-git1 i686)
=================================================================
System uname: Linux-2.6.29-rc3-git1-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-glibc2.0
Timestamp of tree: Fri, 30 Jan 2009 16:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/spool/torque /var/vpopmail/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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs cz"
PKGDIR="/usr/portage/packages"
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/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage/layman/science /usr/local/portage /usr/local/java-experimental /usr/local/portage/layman/java-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache2 audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo cblas cddb cdparanoia cdr clamav cli colordiff compress cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat fam fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glitz glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gstreamer gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb isdnlog ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libedit libnotify libwww live lzo lzw mad maildir matroska mhash midi mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3 qt3support qt4 quicktime rar raw readline recode reflection reiserfs rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads tidy tiff tk transcode truetype unicode urandom usb userlocales uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcf xfs xft xinerama xinetd xml xorg xpm xprint xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2009-01-31 23:25:20 UTC
(In reply to comment #0)
> /usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py:72: GtkWarning: could
> not open display
>   warnings.warn(str(e), _gtk.Warning)

This has nothing to do with portage. It's the ebuild or build system doing that.
Comment 2 Marek Szuba archtester gentoo-dev 2016-04-25 09:32:57 UTC
This is a side effect of intentional upstream behaviour, please see line 58 in setup.py - it tries to confirm Python bindings for GTK+2 are available by importing them. In principle we could patch this section of the setup out, the ebuild already ensures the presence of pygtk - but do we really want to bother? It would be nice to decide one way or another and finally close this bug, though.