Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479352 - sys-devel/llvm-3.3-r1 should depend on app-admin/chrpath
Summary: sys-devel/llvm-3.3-r1 should depend on app-admin/chrpath
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-01 05:41 UTC by Sergey Golubev
Modified: 2013-08-02 12:33 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Golubev 2013-08-01 05:41:18 UTC
sys-devel/llvm-3.3-r1 fails to install due to "chrpath: command not found". To solve this problem, need to install app-admin/chrpath to depencencies of llvm.

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-devel/llvm-3.3-r1
2. /home/portage/sys-devel/llvm-3.3-r1/temp/environment: line 3232: chrpath: command not found
 * ERROR: sys-devel/llvm-3.3-r1::gentoo failed (install phase):
 *   (no error message)
3. * The specific snippet of code:
 *       chrpath -r "${EPREFIX}"/usr/$(get_libdir)/llvm "${ED}"/usr/bin/* || die;
Actual Results:  
llvm fails to install, but compiles successfully

Expected Results:  
llvm successfully merged

Portage 2.2.0_alpha191_p9 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.1, glibc-2.17, 3.9.11-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.9.11-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:     6008376 total,   1114824 free
KiB Swap:    6291452 total,   5858844 free
Timestamp of tree: Thu, 01 Aug 2013 04:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r1, 3.3.2-r1
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.8.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo seden kde proaudio sunrise Tzar
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=corei7-avx -fno-align-labels -fno-align-loops -fomit-frame-pointer -fpredictive-commoning -ftree-vectorize -mmmx -mno-sahf -pthread -fexcess-precision=fast -msse4.2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -mtune=corei7-avx -fno-align-labels -fno-align-loops -fomit-frame-pointer -fpredictive-commoning -ftree-vectorize -mmmx -mno-sahf -pthread -fexcess-precision=fast -msse4.2"
DISTDIR="/home/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FCFLAGS="-O2 -march=native -mtune=corei7-avx -fno-align-labels -fno-align-loops -fomit-frame-pointer -fpredictive-commoning -ftree-vectorize -mmmx -mno-sahf -pthread -fexcess-precision=fast -msse4.2"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox xattr"
FFLAGS="-O2 -march=native -mtune=corei7-avx -fno-align-labels -fno-align-loops -fomit-frame-pointer -fpredictive-commoning -ftree-vectorize -mmmx -mno-sahf -pthread -fexcess-precision=fast -msse4.2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/seden /var/lib/layman/kde /var/lib/layman/pro-audio /var/lib/layman/sunrise /var/lib/layman/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdda cdr cleartype cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran freetype gdbm gif gles gpm gstreamer gtk gtk3 iconv icu ieee1394 iodbc java jpeg jpeg2k kde kerberos kipi lcdfilter lcms ldap libnotify llvm lua lzma mad mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib multitarget mysql ncurses nls nptl nsplugin oci8-instant-client odbc ogg openexr opengl openldap openmp openrc oracle pam pango pcre pdf phonon php pic plasma png policykit portaudio postgres postscript ppds pulse pulseaudio python3 qt qt3support qt4 readline samba sasl scanner sdl session spell sse sse2 sse3 ssl ssse3 startup-notification svg systemtap tcpd telepathy threads tiff tk truetype type1 udev udisks unicode upnp upower usb userlocales v4l vorbis wayland webdav wicd wxwidgets x264 xcb xcomposite xine xinerama xml xmp xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_dbd auth_digest charset_lite proxy reqtimeout version authn_core authz_core socache_shmcb unixd 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 cache_disk lbmethod_byrequests slotmem_shm proxy_balancer" APACHE2_MPMS="worker" CALLIGRA_FEATURES="krita" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer pdfimport scripting-javascript wiki-publisher" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_3 python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm" QEMU_USER_TARGETS="i386 x86_64 arm" RUBY_TARGETS="ruby20 ruby19" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Sergey Golubev 2013-08-01 05:43:41 UTC
I'm, sorry. Installation of app-admin/chrpath solves this problem. Possibly, need to add app-admin/chrpath to dependencies of llvm?
Comment 2 jospezial 2013-08-01 08:46:17 UTC
On yesterdays world update on my system at least one ebuild pulled chrpath in:

1375306076:  ::: completed emerge (10 of 21) media-libs/libdvdread-4.2.0-r1 to /
1375306076:  >>> emerge (11 of 21) app-admin/chrpath-0.13-r2 to /
1375306076:  === (11 of 21) Cleaning (app-admin/chrpath-0.13-r2::/usr/portage/app-admin/chrpath/chrpath-0.13-r2.ebuild)
1375306076:  === (11 of 21) Compiling/Merging (app-admin/chrpath-0.13-r2::/usr/portage/app-admin/chrpath/chrpath-0.13-r2.ebuild)
1375306108:  === (11 of 21) Merging (app-admin/chrpath-0.13-r2::/usr/portage/app-admin/chrpath/chrpath-0.13-r2.ebuild)
1375306112:  >>> AUTOCLEAN: app-admin/chrpath:0
1375306117:  === (11 of 21) Post-Build Cleaning (app-admin/chrpath-0.13-r2::/usr/portage/app-admin/chrpath/chrpath-0.13-r2.ebuild)
1375306117:  ::: completed emerge (11 of 21) app-admin/chrpath-0.13-r2 to /
1375306117:  >>> emerge (12 of 21) media-libs/libdvdnav-4.2.0-r1 to /
1375306117:  === (12 of 21) Cleaning (media-libs/libdvdnav-4.2.0-r1::/usr/portage/media-libs/libdvdnav/libdvdnav-4.2.0-r1.ebuild)
1375306118:  === (12 of 21) Compiling/Merging (media-libs/libdvdnav-4.2.0-r1::/usr/portage/media-libs/libdvdnav/libdvdnav-4.2.0-r1.ebuild)
1375306154:  === (12 of 21) Merging (media-libs/libdvdnav-4.2.0-r1::/usr/portage/media-libs/libdvdnav/libdvdnav-4.2.0-r1.ebuild)
1375306158:  >>> AUTOCLEAN: media-libs/libdvdnav:0
1375306158:  === Unmerging... (media-libs/libdvdnav-4.2.0)
1375306163:  >>> unmerge success: media-libs/libdvdnav-4.2.0
1375306169:  === (12 of 21) Post-Build Cleaning (media-libs/libdvdnav-4.2.0-r1::/usr/portage/media-libs/libdvdnav/libdvdnav-4.2.0-r1.ebuild)
1375306169:  ::: completed emerge (12 of 21) media-libs/libdvdnav-4.2.0-r1 to /
1375306169:  >>> emerge (13 of 21) net-analyzer/wireshark-1.10.1 to /
1375306169:  === (13 of 21) Cleaning (net-analyzer/wireshark-1.10.1::/usr/portage/net-analyzer/wireshark/wireshark-1.10.1.ebuild)
1375306170:  === (13 of 21) Compiling/Merging (net-analyzer/wireshark-1.10.1::/usr/portage/net-analyzer/wireshark/wireshark-1.10.1.ebuild)
1375307239:  === (13 of 21) Merging (net-analyzer/wireshark-1.10.1::/usr/portage/net-analyzer/wireshark/wireshark-1.10.1.ebuild)
1375307249:  >>> AUTOCLEAN: net-analyzer/wireshark:0
1375307249:  === Unmerging... (net-analyzer/wireshark-1.10.0-r1)
1375307253:  >>> unmerge success: net-analyzer/wireshark-1.10.0-r1
1375307259:  === (13 of 21) Post-Build Cleaning (net-analyzer/wireshark-1.10.1::/usr/portage/net-analyzer/wireshark/wireshark-1.10.1.ebuild)
1375307259:  ::: completed emerge (13 of 21) net-analyzer/wireshark-1.10.1 to /
1375307260:  >>> emerge (14 of 21) sys-devel/llvm-3.3-r1 to /
1375307260:  === (14 of 21) Cleaning (sys-devel/llvm-3.3-r1::/usr/portage/sys-devel/llvm/llvm-3.3-r1.ebuild)
1375307261:  === (14 of 21) Compiling/Merging (sys-devel/llvm-3.3-r1::/usr/portage/sys-devel/llvm/llvm-3.3-r1.ebuild)
1375311454:  === (14 of 21) Merging (sys-devel/llvm-3.3-r1::/usr/portage/sys-devel/llvm/llvm-3.3-r1.ebuild)
1375311470:  >>> AUTOCLEAN: sys-devel/llvm:0
1375311470:  === Unmerging... (sys-devel/llvm-3.3)
1375311475:  >>> unmerge success: sys-devel/llvm-3.3
1375311482:  === (14 of 21) Post-Build Cleaning (sys-devel/llvm-3.3-r1::/usr/portage/sys-devel/llvm/llvm-3.3-r1.ebuild)
1375311482:  ::: completed emerge (14 of 21) sys-devel/llvm-3.3-r1 to /
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-02 12:29:08 UTC
The ChangeLog doesn't state this, but apparently this DEPEND change was quietly introduced in CVS revision 1.3:

--- llvm-3.3-r1.ebuild  28 Jul 2013 15:59:24 -0000      1.2
+++ llvm-3.3-r1.ebuild  30 Jul 2013 14:04:12 -0000      1.3
@@ -1,6 +1,6 @@
 # Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-3.3-r1.ebuild,v 1.2 2013/07/28 15:59:24 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-3.3-r1.ebuild,v 1.3 2013/07/30 14:04:12 mgorny Exp $
 
 EAPI=5
 
@@ -22,7 +22,8 @@
 IUSE="clang debug doc gold kernel_FreeBSD +libffi multitarget ocaml python
        +static-analyzer test udis86 video_cards_radeon"
 
-DEPEND="dev-lang/perl
+DEPEND="app-admin/chrpath
+       dev-lang/perl
        >=sys-devel/make-3.79
        >=sys-devel/flex-2.5.4
        >=sys-devel/bison-1.875d
[...]
@@ -289,24 +268,18 @@
                GENTOO_LIBDIR="$(get_libdir)"
        )
 
-       local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
-       llvm_add_ldpath
+       emake "${mymakeopts[@]}" install
 
-       if multilib_is_native_abi; then
-               emake "${mymakeopts[@]}" install
+       # Fix rpaths.
+       chrpath -r "${EPREFIX}"/usr/$(get_libdir)/llvm \
+               "${ED}"/usr/bin/* || die
 
+       if multilib_is_native_abi; then
                # Move files back.
                if path_exists -o "${ED}"/tmp/llvm-config.*; then
                        mv "${ED}"/tmp/llvm-config.* "${ED}"/usr/bin || die
                fi
        else
-               # we need to install libs for llvm, then whole clang
-               # since libs-only omits clang dir
-               # and clang install-libs doesn't install headers and stuff
-               # (we build it anyway, so install is not a problem)
-               emake "${mymakeopts[@]}" install-libs
-               use clang && emake -C tools/clang "${mymakeopts[@]}" install
-
                # Preserve ABI-variant of llvm-config,
                # then drop all the executables since LLVM doesn't like to
                # clobber when installing.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-02 12:33:37 UTC
And that's the same commit that adds use of chrpath. Did you use '--nodep' maybe, or did you find a bug in portage?