Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292660 - distutils based packages install into /usr/bin prefix
Summary: distutils based packages install into /usr/bin prefix
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-10 11:01 UTC by Giulio Casella
Modified: 2015-05-27 13:26 UTC (History)
1 user (show)

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


Attachments
java-config-2 build.log (build.log,13.08 KB, text/plain)
2009-11-13 19:12 UTC, Giulio Casella
Details
/var/db/pkg/dev-java/java-config-2.1.9-r1/environment.bz2 (environment.bz2,24.96 KB, application/octet-stream)
2009-11-14 08:59 UTC, Giulio Casella
Details
here m/usr/lib/python2.6/config/Makefile (Makefile,41.80 KB, text/plain)
2009-11-21 15:21 UTC, Giulio Casella
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giulio Casella 2009-11-10 11:01:36 UTC
After a long time from my last world update I've got problem compiling every program java-config dependent. The proble is the java-config installation tree: part of it is correctly installed (all /etc part, /usr/share/doc, /usr/share/java-config-2), and part is wrongly installed (prefixed with /usr/bin instead of /usr (all binaries in /usr/bin/bin)

Reproducible: Always

Steps to Reproduce:
emerge java-config

Actual Results:  
/usr/bin/bin/java-config-2

Expected Results:  
/usr/bin/java-config-2

emerge --info output:

Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 09 Nov 2009 23:00:05 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.4.4-r13, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
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.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en it"
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/local/layman/enlightenment-svn"
USE="X a52 aac aalib acl acpi alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdda cddb cdio cdr cli consolekit cpudetection cracklib crypt ctype cups dba dbus dlloader dpms dri dv dvd dvdr dvdread eds emboss emerald encode esd ethereal exif expat fam fastbuild fbcondecor ffmpeg fftw foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimpprint glitz glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv idn ieee1394 imlib iproute2 java jpeg kde kerberos lcms libg++ libwww lm_sensors logrotate lzo mad mbox memlimit mikmod mime mmx mmxext mng modules motif mp3 mpeg mplayer mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf pdflib perl php pmu png posix pppd python qt qt3 qt3support qt4 quicktime readline reflection samba sdl session simplexml soap sockets spell spl sql sse ssl svg sysfs tcltk tcpd theora tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales vhosts vim vorbis webkit win32codecs wxwindows x86 xcb xine xml xml2 xmms xorg xsl xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it" USERLAND="GNU" VIDEO_CARDS="ati radeon vesa fglrx none"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2009-11-13 16:10:46 UTC
At very least, attach build.log from such build.
Comment 2 Giulio Casella 2009-11-13 19:12:59 UTC
Created attachment 210166 [details]
java-config-2 build.log
Comment 3 Rafał Mużyło 2009-11-14 03:54:00 UTC
Attach environment file too:
after successful emerge, you can find it somewhere under
/var/db/pkg/.
Comment 4 Giulio Casella 2009-11-14 08:59:04 UTC
Created attachment 210215 [details]
/var/db/pkg/dev-java/java-config-2.1.9-r1/environment.bz2
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-11-17 10:58:04 UTC
I suspected the EBIN=/usr/bin variable (where does it come from anyway?) but setting that didn't do it here.

CCing python for advice: did you ever see distutils-based ebuild install binaries under /usr/bin/bin/ instead of /usr/bin ?
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-17 11:12:04 UTC
(In reply to comment #5)
> CCing python for advice: did you ever see distutils-based ebuild install
> binaries under /usr/bin/bin/ instead of /usr/bin ?

Personally I haven't seen it.
Comment 7 Giulio Casella 2009-11-17 11:33:39 UTC
(In reply to comment #5)
> I suspected the EBIN=/usr/bin variable (where does it come from anyway?)

Nice question :) I didn't (explicitly) set EBIN at all.
I cannot even explain why some of the installation files go (correctly) in /usr/share and some others go (incorrectly) in /usr/bin/share:

[root@giuliomobile ~]# equery f java-config  
[ Searching for packages matching java-config... ]
* Contents of dev-java/java-config-2.1.9-r1:
/etc
/etc/env.d
/etc/env.d/20java-config
/etc/java-config-2
/etc/java-config-2/build
/etc/java-config-2/build/compilers.conf
/etc/java-config-2/build/jdk.conf
/etc/java-config-2/virtuals
/etc/profile.d
/etc/profile.d/java-config-2.csh
/etc/profile.d/java-config-2.sh
/etc/revdep-rebuild
/etc/revdep-rebuild/60-java
/usr
/usr/bin
/usr/bin/bin
/usr/bin/bin/ControlPanel -> run-java-tool
[...cut...]
/usr/bin/bin/xjc -> run-java-tool
/usr/bin/lib
/usr/bin/lib/python2.6
/usr/bin/lib/python2.6/site-packages
/usr/bin/lib/python2.6/site-packages/java_config-2.1.9-py2.6.egg-info
/usr/bin/lib/python2.6/site-packages/java_config_2
/usr/bin/lib/python2.6/site-packages/java_config_2/EnvironmentManager.py
[...cut...]
/usr/bin/lib/python2.6/site-packages/java_config_2/__init__.py
/usr/bin/share
/usr/bin/share/applications
/usr/bin/share/applications/javaws.desktop
/usr/bin/share/eselect
/usr/bin/share/eselect/modules
/usr/bin/share/eselect/modules/java-nsplugin.eselect
/usr/bin/share/eselect/modules/java-vm.eselect
/usr/bin/share/icons
/usr/bin/share/icons/hicolor
[...cut...]
/usr/bin/share/pixmaps/java-icon48.png
/usr/share
/usr/share/doc
/usr/share/doc/java-config-2.1.9-r1
/usr/share/doc/java-config-2.1.9-r1/ChangeLog.bz2
/usr/share/doc/java-config-2.1.9-r1/NEWS.bz2
/usr/share/doc/java-config-2.1.9-r1/PKG-INFO.bz2
/usr/share/doc/java-config-2.1.9-r1/README.bz2
/usr/share/doc/java-config-2.1.9-r1/TODO.bz2
/usr/share/java-config-2
/usr/share/java-config-2/config
/usr/share/java-config-2/config/jdk-defaults.conf


> but
> setting that didn't do it here.
> 
> CCing python for advice: did you ever see distutils-based ebuild install
> binaries under /usr/bin/bin/ instead of /usr/bin ?
> 

Inside /usr/bin/bin I can find binaries (and symlinks) from a number of packages:

[root@giuliomobile ~]# equery b /usr/bin/bin
[ Searching for file(s) /usr/bin/bin in *... ]
dev-python/pyrex-0.9.8.5-r1 (/usr/bin/bin)
dev-python/setuptools-0.6.4 (/usr/bin/bin)
dev-python/pyxml-0.8.4-r2 (/usr/bin/bin)
dev-python/numpy-1.3.0 (/usr/bin/bin)
sys-process/iotop-0.2.1 (/usr/bin/bin)
app-portage/layman-1.2.3 (/usr/bin/bin)
dev-java/java-config-2.1.9-r1 (/usr/bin/bin)
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-11-17 13:25:32 UTC
Looks similar to bug 150690
Do you use any custom distutils.cfg or something? Hand-installed python?
Comment 9 Giulio Casella 2009-11-17 14:01:57 UTC
(In reply to comment #8)
> Looks similar to bug 150690
> Do you use any custom distutils.cfg or something? Hand-installed python?
> 

No, this is my python scenario:


[root@giuliomobile ~]# equery l dev-lang/python
[ Searching for package 'python' in 'dev-lang' among: ]
 * installed packages
[I--] [  ] dev-lang/python-2.5.4-r3 (2.5)
[I--] [  ] dev-lang/python-2.6.2-r1 (2.6)

[root@giuliomobile ~]# eselect python list
Available python interpreters:
  [1]   python2.5
  [2]   python2.6 *

[root@giuliomobile ~]# genlop -t python
 * dev-lang/python

[...cut...]

     Tue Nov 17 14:50:15 2009 >>> dev-lang/python-2.5.4-r3
       merge time: 3 minutes and 14 seconds.

     Tue Nov 17 14:53:51 2009 >>> dev-lang/python-2.6.2-r1
       merge time: 3 minutes and 36 seconds.


(just reinstalled).
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-21 14:45:08 UTC
Please attach /usr/lib/python2.6/config/Makefile.
Comment 11 Giulio Casella 2009-11-21 15:21:40 UTC
Created attachment 210795 [details]
here m/usr/lib/python2.6/config/Makefile
Comment 12 Patrice Clement gentoo-dev 2015-05-27 13:26:09 UTC
Python-based packages are migrating away from distutils, since it's been obsoleted long ago by distutils-r1. Python 2.5 and 2.6 have been removed from Portage a while ago. java-config has also been updated since. Consider syncing your system with our current sources. Closing this bug.