Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483734 - dev-util/biew : does not respect AR
Summary: dev-util/biew : does not respect AR
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Michael Weber (RETIRED)
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2013-09-05 14:40 UTC by Agostino Sarubbo
Modified: 2013-09-05 17:03 UTC (History)
0 users

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-09-05 14:40:43 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 -rcu biewlib/libbiew.a biewlib/bbio.o biewlib/biewlib.o biewlib/file_ini.o biewlib/pmalloc.o biewlib/twin.o biewlib/tw_class.o biewlib/sysdep/x86_64/aclib.o 
biewlib/sysdep/x86_64/cpu_info.o biewlib/sysdep/x86_64/linux/fileio.o biewlib/sysdep/x86_64/linux/keyboard.o biewlib/sysdep/x86_64/linux/mmfio.o 
biewlib/sysdep/x86_64/linux/mouse.o biewlib/sysdep/x86_64/linux/misc.o biewlib/sysdep/x86_64/linux/nls.o biewlib/sysdep/x86_64/linux/os_dep.o 
biewlib/sysdep/x86_64/linux/timer.o biewlib/sysdep/x86_64/linux/vio.o
Comment 1 Michael Weber (RETIRED) gentoo-dev 2013-09-05 16:21:43 UTC
Is it legit to add " -rcu" in a static way like here?

@@ -34,14 +34,15 @@
 src_configure() {
        if use gpm; then
-               append-flags -DHAVE_MOUSE
+               append-cppflags -DHAVE_MOUSE
-               append-flags -UHAVE_MOUSE
+               append-cppflags -UHAVE_MOUSE
        ./configure --datadir=/usr/share/${PN} \
                --prefix=/usr \
                --cc="$(tc-getCC)" \
                --ld="$(tc-getCC)" \
+               --ar="$(tc-getAR) -rcu" \
                --as="$(tc-getAS)" \
                --ranlib="$(tc-getRANLIB)" || die "configure failed."

+*biew-6.1.0-r3 (05 Sep 2013)
+  05 Sep 2013; Michael Weber <> +biew-6.1.0-r3.ebuild:
+  Respect AR, thanks ago, bug 483734.
Comment 2 Agostino Sarubbo gentoo-dev 2013-09-05 17:03:02 UTC
(In reply to Michael Weber from comment #1)
> Is it legit to add " -rcu" in a static way like here?

Yes, this is fine. Sometimes upstream uses AR="ar $something" like one block, so your fix is right.