Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474068 - x11-proto/xcb-proto installs python files in /xcbgen/
Summary: x11-proto/xcb-proto installs python files in /xcbgen/
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-21 18:35 UTC by ta2002
Modified: 2016-12-18 21:43 UTC (History)
2 users (show)

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


Attachments
x11-proto:xcb-proto-1.8-r1:20130621-113026.log (20130621-113026.log,12.83 KB, text/plain)
2013-06-21 18:35 UTC, ta2002
Details
/var/db/pkg/x11-proto/xcb-proto-1.8-r1/environment.bz2 (environment.bz2,30.61 KB, application/bzip2)
2013-06-21 23:53 UTC, ta2002
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2013-06-21 18:35:51 UTC
Created attachment 351580 [details]
x11-proto:xcb-proto-1.8-r1:20130621-113026.log

Don't think this should ever happen.

# emerge -p xcb-proto

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-proto/xcb-proto-1.8-r1  PYTHON_SINGLE_TARGET="python2_7 -python2_5 -python2_6 -python3_1 -python3_2 (-python3_3)" PYTHON_TARGETS="python2_7 -python2_5 -python2_6 -python3_1 -python3_2 (-python3_3)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

[...]

# qlist x11-proto/xcb-proto-1.8-r1
/xcbgen/__init__.py
/xcbgen/xtypes.py
/xcbgen/expr.py
/xcbgen/state.py
/xcbgen/matcher.py
/xcbgen/error.py
/usr/lib64/pkgconfig/xcb-proto.pc
/usr/share/doc/xcb-proto-1.8-r1/TODO.bz2
/usr/share/doc/xcb-proto-1.8-r1/NEWS.bz2
/usr/share/doc/xcb-proto-1.8-r1/README.bz2
/usr/share/xcb/xkb.xml
/usr/share/xcb/xinerama.xml
/usr/share/xcb/xselinux.xml
/usr/share/xcb/xc_misc.xml
/usr/share/xcb/sync.xml
/usr/share/xcb/damage.xml
/usr/share/xcb/shape.xml
/usr/share/xcb/xf86vidmode.xml
/usr/share/xcb/xfixes.xml
/usr/share/xcb/res.xml
/usr/share/xcb/xv.xml
/usr/share/xcb/dri2.xml
/usr/share/xcb/xinput.xml
/usr/share/xcb/bigreq.xml
/usr/share/xcb/shm.xml
/usr/share/xcb/xcb.xsd
/usr/share/xcb/xevie.xml
/usr/share/xcb/dpms.xml
/usr/share/xcb/randr.xml
/usr/share/xcb/ge.xml
/usr/share/xcb/composite.xml
/usr/share/xcb/xtest.xml
/usr/share/xcb/glx.xml
/usr/share/xcb/record.xml
/usr/share/xcb/screensaver.xml
/usr/share/xcb/xproto.xml
/usr/share/xcb/render.xml
/usr/share/xcb/xprint.xml
/usr/share/xcb/xf86dri.xml
/usr/share/xcb/xvmc.xml

# emerge --info
Portage 2.1.12.2 (default/linux/amd64/13.0/no-multilib, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8400_@_2.66GHz-with-gentoo-2.2
KiB Mem:     2038444 total,   1264996 free
KiB Swap:    1047548 total,   1008644 free
Timestamp of tree: Fri, 21 Jun 2013 03:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=natxve -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=natxve -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit R X a52 aac aalib accessibility acpi additions aio alsa amd64 aspell audio audiofile blksha1 bookmarks bwscheduler bzip2 cairo caps cdda cdio cdr chm chroot client consolekit cpumining cracklib crypt css cups cxx dbus device-mapper dga directfb djvu downloadorder dri dvd dvdnav dvdr ebook egl encode espeak exceptions exif expat fam fbcon ffmpeg flac fluidsynth fontconfig fortran gcj gcrypt gecko ggi gif git glib glibc-omitfp gmp gpg gphoto2 gpm gsm gstreamer gtk handbook hardcoded-tables hddtemp holidays hpn iconv idea imap infowidget iostats ipc ipfilter ipv6 jabber javascript jbig jit joystick jpeg jsbsim kde kmod lame lcms less libass libkms libwww live lm_sensors logviewer lzma mad matroska mbox mdns-bundled memlimit midi minizip mmx mmxext mp3 mpeg mta mudflap nas ncurses net netapi network nls no-old-linux nodrm nptl ntfsprogs ntp ocamlopt offlinehelp ofx ogg opencl opengl openmedia openmp oscar osdmenu pcre pdf pm-utils png policykit portmon ps qt3support quotes raptor readline real recursion-limit redland rss rtc rtmp savedconfig scanfolder scanner scrypt sdl search secure-delete sensord server shared-glapi shm silc smbclient smtp sndfile sound speex spell sse sse2 sse2_4way sse2check sse4 ssl ssse3 stats subversion svg sysfs tcpd theora threads threadsafe tiff tremor truetype udev udisks unicode upnp upower urandom usb userlocales utils v4l2 vdpau video vorbis wav webdav-neon webinterface win64 wps x264 xcb xinerama xml xpdf-headers xv xvid yahoo zlib zrtp" ABI_X86="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python3_2" PYTHON_TARGETS="python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY, USE_PYTHON
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-06-21 18:55:51 UTC
Please attach environment too.
Comment 2 ta2002 2013-06-21 23:53:46 UTC
Created attachment 351612 [details]
/var/db/pkg/x11-proto/xcb-proto-1.8-r1/environment.bz2

Hope this is what you meant. :)
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2013-06-22 17:58:32 UTC
testuser@archtester ~/cvsPortage/gentoo-x86/x11-proto/xcb-proto $ qlist xcb-proto |grep gen
/usr/lib64/python3.2/site-packages/xcbgen/xtypes.py
/usr/lib64/python3.2/site-packages/xcbgen/matcher.pyc
plus another 20 or so lines of entry

damned if I can figure how you did that...

xcb-proto-1.8-r?.ebuild also comes in options xcb-proto-1.8-r[2-3].ebuild.

I suggest you try those 2 and see if this oddity extends to those too.
Comment 4 ta2002 2013-06-23 13:20:53 UTC
I think I figured out what happened.

Take a look at these lines in the log file:

checking for /usr/bin/python2.7 version... 
checking for /usr/bin/python2.7 platform... 
checking for /usr/bin/python2.7 script directory... 
checking for /usr/bin/python2.7 extension module directory... 

On another machine with a proper installation, those lines are:

checking for /usr/bin/python2.7 version... 2.7
checking for /usr/bin/python2.7 platform... linux2
checking for /usr/bin/python2.7 script directory... ${prefix}/lib64/python2.7/site-packages
checking for /usr/bin/python2.7 extension module directory... ${exec_prefix}/lib64/python2.7/site-packages

I don't think those checks should allow empty values there (they should fail), but that explains installing those files off of the root directory.

As for the reason for the empty values, a qcheck of dev-lang/python-2.7.3-r3 revealed a damaged /usr/bin/python2.7 (which a reinstall of python repaired). After fixing python, xcb-proto installed correctly.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-19 09:04:39 UTC
I wonder if the issue is xcb-proto-specific, or generic issue with the macros.

@x11: do we want to proxy this upstream or just do not care?
Comment 6 Matt Turner gentoo-dev 2013-11-05 07:37:31 UTC
I'm planning to look into this. Sorry for not getting to it sooner.
Comment 7 Patrice Clement gentoo-dev 2016-12-18 21:43:05 UTC
Please reopen if this is still a problem. Thanks.