Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164525 - dev-ruby/rake-0.7.1 installs to 'interesting' locations (unexpanded vars)
Summary: dev-ruby/rake-0.7.1 installs to 'interesting' locations (unexpanded vars)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 10:51 UTC by Andreas Arens
Modified: 2007-02-01 01:49 UTC (History)
4 users (show)

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


Attachments
Spike's rbconfig.rb (rbconfig.rb,6.94 KB, text/plain)
2007-01-30 15:48 UTC, Luká Polívka
Details
equery f rake output (yuntaku.rake.txt,7.46 KB, text/plain)
2007-01-31 06:27 UTC, teidakankan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Arens 2007-01-30 10:51:37 UTC
emerging the above led to to following strange entries in my root dir:
/$(exec_prefix)
/$(sitedir)



Reproducible: Always

Steps to Reproduce:
1.emerge dev-ruby/rake
2.
3.

Actual Results:  
files installed in wrong place

Expected Results:  
files installed in /usr


Investingation revealed:
# equery belongs /\$\(sitedir\)/\$\(ruby_version\)/rake
[ Searching for file(s) /$(sitedir)/$(ruby_version)/rake in *... ]
dev-ruby/rake-0.7.1 (/$(sitedir)/$(ruby_version)/rake)
#

info:
# bash --version
GNU bash, version 3.2.9(1)-release (x86_64-pc-linux-gnu)

Portage 2.1.2-r5 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.9
Timestamp of tree: Mon, 29 Jan 2007 22:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-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 /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 apache2 arts asf audiofile avi berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt cscope css ctype cups curl curlwrappers dba dbm dbus dga dio divx4linux djbfft dlloader dri dts dv dvd dvdr dvdread eds emboss emu-linux-x86 encode esd exif expat fam fame ffmpeg firefox flac flatfile fontconfig foomaticdb fortran ftp gcj gd gdbm ggi gif glitz glut gnome gnutls gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml hal iconv ieee1394 imagemagick imlib ipv6 isdnlog jack java javascript jbig jpeg jpeg2k kde kdeenablefinal lame lcms ldap libg++ libwww lirc lm_sensors lzo mad matroska mbox mhash mikmod mime mjpeg mmap mng motif mp3 mp4 mpeg musepack mysql ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl oss pam pcre pdf pdflib perl php plotutils png posix ppds pppd python qt qt3 qt4 quicktime readline reflection rle samba sasl sdl session sharedext sharedmem slp sndfile sockets sox speex spell spl ssl svg swat symlink sysvipc szip tcltk tcpd tetex theora threads tidy tiff transcode truetype truetype-fonts type1 type1-fonts udev unicode usb v4l v4l2 vcd vorbis wifi wmf x264 xface xine xinerama xinetd xml xml2 xmlrpc xorg xpm xsl xv xvid xvmc yv12 zlib" ALSA_CARDS="emu10k1,via82xx,bt87x" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nvidia nv v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-01-30 12:42:13 UTC
Those things come from /usr/lib/ruby/1.8/i486-linux/rbconfig.rb and should have been expanded automatically.
Andreas please let me know your ruby version and post the output of this command:
ruby -r rbconfig -e 'puts Config::CONFIG["sitedir"]'
If the result has unexpanded vars, then please attach your rbconfig.rb (its path is similar to above, or you can find it in ruby package listing)
Comment 2 Andreas Arens 2007-01-30 13:32:23 UTC
Everything looks normal if called this way:

# ruby -r rbconfig -e 'puts Config::CONFIG["sitedir"]'
/usr/lib64/ruby/site_ruby

# equery -N list "ruby"
[ Searching for package 'ruby' in all categories among: ]
 * installed packages
[I--] [ ~] dev-lang/ruby-1.8.5_p12 (1.8)
[I--] [ ~] dev-ruby/ruby-config-0.3.2 (0)
[I--] [ ~] dev-ruby/rubygems-0.9.0-r2 (0)
[I--] [ ~] kde-base/qtruby-3.5.6 (0)

Comment 3 Luká Polívka 2007-01-30 15:48:39 UTC
Created attachment 108626 [details]
Spike's rbconfig.rb

I have the same problem. Clean Gentoo/Linux ~x86 install, installed the rake package because of new Amarok.

itsuki / # ruby -r rbconfig -e 'puts Config::CONFIG["sitedir"]'
/usr/lib/ruby/site_ruby

Attached rbconfig.rb from /usr/lib/ruby/1.8/i686-linux/rbconfig.rb
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2007-01-31 00:01:43 UTC
Same problem here... I'm on ~x86 with dev-lang/ruby-1.8.5_p12 and:
# ruby -r rbconfig -e 'puts Config::CONFIG["sitedir"]'
/usr/lib/ruby/site_ruby

Please be quick to solve this issue because rake is being installed as a new dependency for amarok-1.4.4-r4.
Comment 5 Christian Marie (RETIRED) gentoo-dev 2007-01-31 05:57:20 UTC
Can anyone with the issue please attach the output of 'equery f rake'?
Comment 6 teidakankan 2007-01-31 06:27:23 UTC
Created attachment 108721 [details]
equery f rake output
Comment 7 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-01-31 13:48:41 UTC
It's my fault again trying to fix bug 159922 and get you into troubles. Please sync the tree (make sure you have gems.eclass revision 1.16 and ruby.eclass rev 1.62), then check if the bug is fixed.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2007-01-31 15:53:41 UTC
Just synced, bug is fixed. No more "interesting" locations on my system, rake is installed correctly now. If everyone is ok, you can close this bug as RESOLVED FIXED. Thanks.
Comment 9 Andreas Arens 2007-01-31 18:01:47 UTC
Yep. Fixed
Comment 10 teidakankan 2007-01-31 23:47:23 UTC
Fine here.  Thanks.
Comment 11 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-02-01 01:49:45 UTC
Alright. So close the bug.