Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 482188

Summary: dev-db/kyotocabinet : does not respect AR, CFLAGS
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: QA CC: bugs, jer, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    

Description Agostino Sarubbo gentoo-dev 2013-08-23 08:58:03 UTC
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:

ar rv libkyotocabinet.a kcutil.o kcthread.o kcfile.o kccompress.o kccompare.o kcmap.o kcregex.o kcdb.o kcplantdb.o kcprotodb.o kcstashdb.o kccachedb.o kchashdb.o kcdirdb.o 
kctextdb.o kcpolydb.o kcdbext.o kclangc.o
Comment 1 Johan Bergström 2013-11-22 03:02:00 UTC
Fixed, thanks for reporting. Pull here https://github.com/jbergstroem/gentoo-overlay/compare/master...kyotocabinet-system-ar
(or apply below).

commit 3b03b731c244b747c33912b0b9bbaaffc009421e
Author: Johan Bergström <bugs@bergstroem.nu>
Date:   Fri Nov 22 14:00:36 2013 +1100

    Use system linker

    Fixes https://bugs.gentoo.org/show_bug.cgi?id=482188

diff --git dev-db/kyotocabinet/kyotocabinet-1.2.76.ebuild dev-db/kyotocabinet/kyotocabinet-1.2.76.ebuild
index 6da3f53..d971162 100644
--- dev-db/kyotocabinet/kyotocabinet-1.2.76.ebuild
+++ dev-db/kyotocabinet/kyotocabinet-1.2.76.ebuild
@@ -4,7 +4,7 @@

 EAPI="2"

-inherit eutils
+inherit eutils toolchain-funcs

 DESCRIPTION="A straightforward implementation of DBM"
 HOMEPAGE="http://fallabs.com/kyotocabinet/"
@@ -23,6 +23,7 @@ src_prepare() {
        epatch "${FILESDIR}/fix_configure-1.2.62.patch"
        sed -ie "/ldconfig/d" Makefile.in
        sed -ie "/DOCDIR/d" Makefile.in
+       tc-export AR
 }

 src_configure() {
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-15 20:34:44 UTC
x86_64-pc-linux-gnu-gcc -march=native -m64 <-- I never asked for that.

Debian uses a patch for that.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-15 21:46:49 UTC
Fixed in 1.2.76-r1.