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
Created attachment 246448 [details] build output
I have the same issue on my amd64 box - symlinks are installed into root directory. Should i post a new bug for it?
(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.
Created attachment 246706 [details, diff] Workaround to build build distcc with >=portage-2.1.9
> 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
I was lead to believe this was an ARM problem by a stupid mistake of mine. I updated the summary to be more appropriate.
This is fixed in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c8d1bcd28c29802dc2bc1f7ac9d6df475ff4700d
This is fixed in 2.1.9.6 and 2.2_rc82.