You receive this bug because this package does not respect my system's AR (x86_64-pc-linux-gnu-ar) and calls directly /usr/bin/ar The possible solutions to fix this issue are: 1)Fix the buildsystem, if you can; 2)inherit toolchain-funcs and use tc-export AR 3)inherit toolchain-funcs and use emake AR="$(tc-getAR)" From the build log: libtool: link: /usr/bin/ar cru .libs/libhtword.a WordBitCompress.o WordContext.o WordCursor.o WordDB.o WordDBCompress.o WordDBInfo.o WordDBPage.o WordKey.o WordKeyInfo.o WordList.o WordMonitor.o WordRecord.o WordRecordInfo.o WordReference.o WordStat.o WordType.o
--- htdig-3.2.0_beta6-r3.ebuild +++ htdig-3.2.0_beta6-r3.ebuild @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-misc/htdig/htdig-3.2.0_beta6-r3.ebuild,v 1.12 2013/05/02 04:13:35 patrick Exp $ +EAPI=5 + inherit eutils autotools MY_PV=${PV/_beta/b} @@ -20,20 +22,18 @@ app-arch/unzip ssl? ( dev-libs/openssl )" -src_unpack() { - unpack ${A} - - cd "${S}" +src_prepare() { epatch "${FILESDIR}"/${P}-gcc4.patch epatch "${FILESDIR}"/${P}-as-needed.patch epatch "${FILESDIR}"/${P}-quoting.patch - sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in db/configure.in || die + sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" \ + -e "s/AC_PATH_PROG(AR, ar, ar)/AM_PROG_AR/g" \ + -e "s/AC_PATH_PROG(SED, sed, \/bin\/sed)/AC_PROG_SED/g" \ + -i configure.in db/configure.in || die eautoreconf } -src_compile() { - use prefix || EPREFIX= - +src_configure() { econf \ --with-config-dir="${EPREFIX}"/etc/${PN} \ --with-default-config-file="${EPREFIX}"/etc/${PN}/${PN}.conf \ @@ -44,13 +44,9 @@ $(use_with ssl) # --with-image-url-prefix="file://${EPREFIX}/var/www/localhost/htdocs/${PN}" \ - - emake || die "emake failed" } src_install () { - use prefix || ED="${D}" - emake DESTDIR="${D}" install || die "make install failed" dodoc ChangeLog README
[...] libtool: link: x86_64-pc-linux-gnu-ar cru .libs/libhtword.a WordBitCompress.o WordContext.o WordCursor.o WordDB.o WordDBCompress.o WordDBInfo.o WordDBPage.o WordKey.o WordKeyInfo.o WordList.o WordMonitor.o WordRecord.o WordRecordInfo.o WordReference.o WordStat.o WordType.o [...]
I've updated the ebuild to EAPI 5 while at it. I removed setting EPREFIX explicitly (the maintainers might want to check on this) and changed how phases were handled.
Can't reproduce.