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

Bug 177619

Summary: java-config-2.0.32 fails to merge: 'GENTOO_LIBDIR' variable invalid
Product: Gentoo Linux Reporter: Alan McKinnon <alan.mckinnon>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alan McKinnon 2007-05-08 12:29:30 UTC
java-config-2.0.32 does not merge on my system:

function subst_vars in /usr/lib/python2.4/distutils/util.py, line 234, 
fails with this error:
ValueError: invalid variable '$'GENTOO_LIBDIR''

The output is:
changing mode of build/scripts-2.4/java-config-2 from 644 to 755
changing mode of build/scripts-2.4/depend-java-query from 644 to 755
changing mode of build/scripts-2.4/run-java-tool from 644 to 755
changing mode of build/scripts-2.4/gjl from 644 to 755
>>> Source compiled.
>>> Test phase [not enabled]: dev-java/java-config-2.0.32

>>> 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''





Reproducible: Always

Steps to Reproduce:
1. emerge =dev-java/java-config-2.0.32
2.
3.

Actual Results:  
emerge failed

Expected Results:  
emerge should succeed

nazgul linux-2.6.21-gentoo-fb # emerge --info
Portage 2.1.2.7 (default-linux/x86/2006.0, gcc-4.1.2, glibc-2.5-r2, 2.6.20-vs2.3.0.11-gentoo i686)
=================================================================
System uname: 2.6.20-vs2.3.0.11-gentoo i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 07 May 2007 11:00:10 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.4.4-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
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="-O2 -march=pentium-m -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/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php4/ext-active/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/var/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="/mnt/distfiles http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="af en en_GB en_US en_ZA"
MAKEOPTS="-j2"
PKGDIR="/var/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/portage/local/layman/enlightenment /var/portage/local/layman/vmware /var/portage/local/layman/kde /var/portage/local/alan"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi adns aiglx alsa apache2 apm audiofile avahi bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo cdr cli cracklib crypt cups curl curlwrappers dbus dbx dga directfb dri dts dv dvb dvd dvdr dvdread encode etk ewl fam fbcon ffmpeg firefox flac foomaticdb freetds ftp gd gdbm gif gimp glitz gnutls gpm gtk gtk2 gtkhtml hal howl iconv imagemagick imap imlib irda irmc jabber javascript jbig jce jpeg jpeg2k kdeenablefinal lcms lesstif libc_glibc libcaca libg++ libwww lm_sensors mad maildir matroska mbox mcal midi mikmod milter mime mmx mng motif mp3 mpeg mysql mysqli ncurses netboot nptl nsplugin odbc offensive ogg openal opengl pam pango pcmcia pcre pdf perl php plotutils pmu png posix postgres ppds pppd profile python qt3 quicktime readline real reflection samba scanner sdl session slp sms spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysvipc tcl tcltk tcpd tetex theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode usb utempter vcd vim-syntax vorbis wifi win32codecs wmf wxwindows x264 x86 xattr xcomposite xine xinetd xml xorg xosd xpm xv xvid xvmc 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="af en en_GB en_US en_ZA" USERLAND="GNU" VIDEO_CARDS="fbdev radeon vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-08 12:30:43 UTC

*** This bug has been marked as a duplicate of bug 177490 ***
Comment 2 Alan McKinnon 2007-05-08 13:03:21 UTC
(In reply to comment #1)
> 
> *** This bug has been marked as a duplicate of bug 177490 ***

Solution:

emerge =python-2.4.4-r2
emerge java-config