Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336433 - sys-devel/distcc-3.1-r4: with e.g. portage-2.2_rc75 or 2.1.9, symlinks get installed into the wrong place
Summary: sys-devel/distcc-3.1-r4: with e.g. portage-2.2_rc75 or 2.1.9, symlinks get in...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: ARM Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 335925
  Show dependency tree
 
Reported: 2010-09-08 11:57 UTC by Christian Franke
Modified: 2010-09-15 00:44 UTC (History)
3 users (show)

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


Attachments
build output (distcc-build2,104.17 KB, text/plain)
2010-09-08 11:59 UTC, Christian Franke
Details
Workaround to build build distcc with >=portage-2.1.9 (distcc-3.1-r4.ebuild.patch,1.49 KB, patch)
2010-09-10 13:12 UTC, Stanislav Cymbalov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Franke 2010-09-08 11:57:45 UTC
When emerging distcc on my kirkwood box, all those symlinks like cc -> /usr/bin/distcc which usually go into /usr/lib/distcc/bin are installed into /.

Reproducible: Always

Steps to Reproduce:
1. Log in to my ARM box
2. emerge -1 =sys-devel/distcc-3.1-r4
Actual Results:  
wolf / # ls -l / | grep '\->'
lrwxrwxrwx  1 root root        15 Sep  8 13:27 armv5tel-softfloat-linux-gnueabi-c++ -> /usr/bin/distcc
lrwxrwxrwx  1 root root        15 Sep  8 13:27 armv5tel-softfloat-linux-gnueabi-g++ -> /usr/bin/distcc
lrwxrwxrwx  1 root root        15 Sep  8 13:27 armv5tel-softfloat-linux-gnueabi-gcc -> /usr/bin/distcc
lrwxrwxrwx  1 root root        15 Sep  8 13:27 c++ -> /usr/bin/distcc
lrwxrwxrwx  1 root root        15 Sep  8 13:27 cc -> /usr/bin/distcc
lrwxrwxrwx  1 root root        15 Sep  8 13:27 g++ -> /usr/bin/distcc
lrwxrwxrwx  1 root root        15 Sep  8 13:27 gcc -> /usr/bin/distcc


Expected Results:  
This should have been installed into /usr/lib/distcc/bin

Portage 2.2_rc75 (default/linux/arm/10.0/server, gcc-4.4.4, glibc-2.11.2-r0, 2.6.33.7-dockstar-00003-g9492926 armv5tel)
=================================================================
System uname: Linux-2.6.33.7-dockstar-00003-g9492926-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-1.12.13
Timestamp of tree: Mon, 06 Sep 2010 00:00:01 +0000
distcc 3.1 armv5tel-softfloat-linux-gnueabi [disabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.33 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-Os -pipe -mcpu=arm926ej-s"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/portage /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -pipe -mcpu=arm926ej-s"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 arm bash-completion berkdb bzip2 caps cli cracklib crypt cups cxx fortran gdbm gpm iconv ipv6 ldap modules mudflap mysql ncurses nls nptl nptlonly openmp openntp pam pcre perl pppd python readline reflection session snmp spl ssl symlink sysfs tcpd truetype unicode vim-syntax xml xorg zlib" 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 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" ELIBC="glibc" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage sis tdfx trident 	voodoo" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Christian Franke 2010-09-08 11:59:14 UTC
Created attachment 246448 [details]
build output
Comment 2 Stanislav Cymbalov 2010-09-10 11:14:18 UTC
I have the same issue on my amd64 box - symlinks are installed into root directory. Should i post a new bug for it?
Comment 3 Stanislav Cymbalov 2010-09-10 13:10:43 UTC
(In reply to comment #2)
> I have the same issue on my amd64 box - symlinks are installed into root
> directory. Should i post a new bug for it?
> 

It seems that it is bug in portage-2.1.9.2. A DCCC_PATH variable setted at beginning of ebuild are not seen in src_install() and it also missing in /var/tmp/portage/sys-devel/distcc-3.1-r4/build-info/environment.bz2

I found that this strange behavior caused by underscore in variable name. So I deleted underscores from variable names in ebuild (see following patch) and distcc was emerged correctly: symlinks was on their right place: /usr/lib64/distcc/bin

P.S. Downgrading to stable portage-2.1.8.3 also fixes this issue.
Comment 4 Stanislav Cymbalov 2010-09-10 13:12:24 UTC
Created attachment 246706 [details, diff]
Workaround to build build distcc with >=portage-2.1.9
Comment 5 Stanislav Cymbalov 2010-09-10 14:28:00 UTC
> I found that this strange behavior caused by underscore in variable name.

This is wrong. DCCC_PATH is explicitly filtered by portage, underscore doesn't matter. Commit introduced this bug: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=2da227e57f695dc173b22802443084c5fec539b0
Comment 6 Christian Franke 2010-09-10 16:17:10 UTC
I was lead to believe this was an ARM problem by a stupid mistake of mine. I updated the summary to be more appropriate.
Comment 8 Zac Medico gentoo-dev 2010-09-15 00:44:53 UTC
This is fixed in 2.1.9.6 and 2.2_rc82.