Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482188 - dev-db/kyotocabinet : does not respect AR, CFLAGS
Summary: dev-db/kyotocabinet : does not respect AR, CFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Patrick Lauer
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2013-08-23 08:58 UTC by Agostino Sarubbo
Modified: 2014-05-15 21:46 UTC (History)
3 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
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
(or apply below).

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

    Use system linker


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 @@


-inherit eutils
+inherit eutils toolchain-funcs

 DESCRIPTION="A straightforward implementation of DBM"
@@ -23,6 +23,7 @@ src_prepare() {
        epatch "${FILESDIR}/fix_configure-1.2.62.patch"
        sed -ie "/ldconfig/d"
        sed -ie "/DOCDIR/d"
+       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.