Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 177557

Summary: Build of dev-java/java-config-2.0.32 fails during install phase
Product: Gentoo Linux Reporter: Robert Grieve <sonofthejedi>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The build log mentioned in the error message posted with the bug.

Description Robert Grieve 2007-05-07 21:04:37 UTC
During update of world deps, (-avuDN world) upgrading java-config-2
to v 2.0.32 fails during the install phase with the following messages:


>>> Install java-config-2.0.32 into /var/tmp/portage/dev-java/java-config-2.0.32/image/ category dev-java
running install
Traceback (most recent call last):
  File "setup.py", line 23, in ?
    data_files = [
  File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.4/distutils/dist.py", line 965, in run_command
    cmd_obj.ensure_finalized()
  File "/usr/lib/python2.4/distutils/cmd.py", line 117, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python2.4/distutils/command/install.py", line 300, in finalize_options
    self.expand_dirs()
  File "/usr/lib/python2.4/distutils/command/install.py", line 446, in expand_dirs
    self._expand_attrs(['install_purelib',
  File "/usr/lib/python2.4/distutils/command/install.py", line 436, in _expand_attrs
    val = subst_vars(val, self.config_vars)
  File "/usr/lib/python2.4/distutils/util.py", line 234, in subst_vars
    raise ValueError, "invalid variable '$%s'" % var
ValueError: invalid variable '$'GENTOO_LIBDIR''

!!! ERROR: dev-java/java-config-2.0.32 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_install
  ebuild.sh, line 1061:   Called qa_call 'src_install'
  ebuild.sh, line 44:   Called src_install
  java-config-2.0.32.ebuild, line 21:   Called distutils_src_install
  distutils.eclass, line 51:   Called die

!!! (no error message)
!!! 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/dev-java/java-config-2.0.32/temp/build.log'.

I think the problem is in the Ebuild.
I'm not sure what 

ValueError: invalid variable '$'GENTOO_LIBDIR''

means but it sounds like a typo has been made somewhere in there
I attach below the build log etc to assist but I havn't a hope to fix this.

Reproducible: Always

Steps to Reproduce:
1.emerge -avuDN java-config-2
2. The java-config-2.0.32 build fails -- always

Actual Results:  
>>> Install java-config-2.0.32 into /var/tmp/portage/dev-java/java-config-2.0.32/image/ category dev-java
running install
Traceback (most recent call last):
  File "setup.py", line 23, in ?
    data_files = [
  File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.4/distutils/dist.py", line 965, in run_command
    cmd_obj.ensure_finalized()
  File "/usr/lib/python2.4/distutils/cmd.py", line 117, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python2.4/distutils/command/install.py", line 300, in finalize_options
    self.expand_dirs()
  File "/usr/lib/python2.4/distutils/command/install.py", line 446, in expand_dirs
    self._expand_attrs(['install_purelib',
  File "/usr/lib/python2.4/distutils/command/install.py", line 436, in _expand_attrs
    val = subst_vars(val, self.config_vars)
  File "/usr/lib/python2.4/distutils/util.py", line 234, in subst_vars
    raise ValueError, "invalid variable '$%s'" % var
ValueError: invalid variable '$'GENTOO_LIBDIR''

!!! ERROR: dev-java/java-config-2.0.32 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_install
  ebuild.sh, line 1061:   Called qa_call 'src_install'
  ebuild.sh, line 44:   Called src_install
  java-config-2.0.32.ebuild, line 21:   Called distutils_src_install
  distutils.eclass, line 51:   Called die

!!! (no error message)
!!! 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/dev-java/java-config-2.0.32/temp/build.log'.



Expected Results:  
umm... a build, that just, installs, you know?
Like I would have thought that Gentoo would know where to put there libraries, man.

sonofthejedi portage # emerge --info
Portage 2.1.2.7 (default-linux/x86/2006.0, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r5 i686)
=================================================================
System uname: 2.6.20-gentoo-r5 i686 AMD Sempron(tm) 2400+
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 07 May 2007 08:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4-r1
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/conf
ig"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc
/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splas
h /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=i686 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.gg3.net/ http://gentoo.channelx.biz/ ftp://ftp2.tnc.edu.tw/pub1/Gentoo/ ftp://mirror.avers
e.net/pub/gentoo http://mirror.averse.net/pub/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-a
fter --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dfx 3dnow X Xaw3d a52 aac accessibility acl alsa apache2 apm arts audiofile bashlogger berkdb bitmap-fonts bzip2 c
dr cli cracklib crypt cups dbus dga doc dri dvd dvdr eds emacs emboss encode esd ffmpeg flac foomaticdb fortran fpx gcj 
gdbm gif gimp gimpprint gpm graphviz gstreamer gtk gtk2 gtkhtml hal icon iconv imlib ipv6 isdnlog java javascript jikes 
jpeg jpeg2k justify kde leim libclamav libg++ libwww mad midi mikmod mmx mng motif mp3 mpeg mysql ncurses nls nptl nptlo
nly objc ogg opengl oss pam pcre perl png povray pppd python qt qt3 qt4 quicktime readline reflection samba sdl session 
sndfile spell spl sse ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis win32codecs 
winbind wmf x86 xml xorg xprint xv zlib" ALSA_CARDS="via82xx cmipci usb-usx2y" ALSA_PCM_PLUGINS="adpcm alaw asym copy dm
ix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route shar
e shm softvol" CAMERAS="adc65 agfa-cl20 aox barbie canon casio clicksmart310 digigr8 digita dimera directory enigma13 fu
ji gsmart300 hp215 iclick jamcam jd11 kodak konica largan lg_gsm mars minolta mustek panasonic pccam300 pccam600 polaroi
d ptp2 ricoh samsung sierra sipix smal sonix sonydscf1 sonydscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z templ
ate toshiba" 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="nvidia vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_F
LAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Robert Grieve 2007-05-07 21:06:40 UTC
Created attachment 118498 [details]
The build log mentioned in the error message posted with the bug.
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-07 21:14:06 UTC

*** This bug has been marked as a duplicate of bug 177490 ***

*** This bug has been marked as a duplicate of bug 177490 ***