I'm attempting to install dev-libs/blitz in my prefix, so I used 'ecopy dev-libs/blitz' in my local overlay. When running 'emerge -va blitz', it gets to '>>> Completed installing blitz-0.9-r3 into /Users/andrew/Gentoo/var/tmp/portage/dev-libs/blitz-0.9-r3/image/Users/andrew/Gentoo/', then 'QA Notice: invalid self-reference install_name /Users/andrew/Gentoo/usr/lib/libblitz.0.dylib in /Users/andrew/Gentoo/Users/andrew/Gentoo/usr/lib/libblitz.0.0.0.dylib'. The complete build log is attached. I'm not sure how to proceed, any advice is appreciated. Reproducible: Always Steps to Reproduce: 1. ecopy dev-libs/blitz in overlay 2. emerge -va blitz Actual Results: error listed above Expected Results: successful emerge here is the output of emerge -pqv =dev-libs/blitz-0.9-r3: [ebuild N ] dev-libs/blitz-0.9-r3 USE="-debug -doc -examples" and the output of emerge --info =dev-libs/blitz-0.9-r3: Portage 2.2.01.15553-prefix (prefix/darwin/macos/10.6/x86, gcc-4.2.1, unavailable, 10.4.0 i386) ================================================================= System Settings ================================================================= System uname: Darwin-10.4.0-i386-32bit Timestamp of tree: Thu, 30 Sep 2010 21:11:34 +0000 distcc 3.1-toolwhip.1 i386-apple-darwin10.0 [disabled] app-shells/bash: 4.1_p7 dev-lang/python: 2.6.5-r2 dev-util/cmake: 2.8.1-r2 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.11.1 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 ACCEPT_KEYWORDS="~x86-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-apple-darwin10" CFLAGS="-O2 -pipe -march=prescott -fomit-frame-pointer" CHOST="i686-apple-darwin10" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=prescott -fomit-frame-pointer" DISTDIR="/Users/andrew/Gentoo/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_CA.UTF-8" LDFLAGS="-Wl,-dead_strip_dylibs" LINGUAS="en_CA en_GB en" PKGDIR="/Users/andrew/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/andrew/Gentoo/" 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="/Users/andrew/Gentoo/var/tmp" PORTDIR="/Users/andrew/Gentoo/usr/portage" PORTDIR_OVERLAY="/Users/andrew/Gentoo/usr/local/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aqua coreaudio cracklib cxx mmx mmxext modules ncurses nls objc objc++ prefix readline sse sse2 ssl unicode x86-macos zlib" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" 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" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_CA en_GB en" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 249255 [details] Build log
(In reply to comment #1) > Created an attachment (id=249255) [details] > Build log > I spotted several occurrences of '/Users/andrew/Gentoo/Users/andrew/Gentoo/' which looks like double prefix to me. In src_install you need to use DESTDIR="${D}" instead of DESTDIR="${ED}", since configure was already provided with the --prefix=${EPREFIX} offeset (the result would then be ${ED}/${EPREFIX}, which is basically ${D}/${EPREFIX}/${EPREFIX}). Though I would've expected portage to complain about the double prefix before checking and failing at the (correct) install_name of the library.
Thanks for the help. I had tried replacing ${ED} with ${D} in src_install previously, but I then got a different error, with emerge complaining that it was installing files outside the prefix, in /usr/share/doc/blitz-0.9-r3/html. I had thought this meant I was doing something wrong, but your suggestion gave me the confidence that I was on the right track, and looking closer, what I actually had to do was manually add $EPREFIX before the docdir=/usr/... install path. blitz now emerges fine -- I'll describe the steps I did in more detail in a moment.
Created attachment 249357 [details] ecopy output from 'ecopy dev-libs/blitz'
Created attachment 249360 [details] edits to blitz-0.9-r3.ebuild
Steps I used to import the ebuild: 1. ecopy dev-libs/blitz. I've attached the ecopy output if that's helpful 2. edited the DESTDIR and docdir paths, diff is attached blitz now emerges. Thanks!
Thanks, I ran into the same problem and using the ${EPREFIX} in front of the docdir worked. Could we ask for this package to be included in the main prefix tree? Best regards, Guilherme
done, thanks.