Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483342 - app-emulation/wine : does not respect AR and RANLIB
Summary: app-emulation/wine : does not respect AR and RANLIB
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Wine Maintainers
: 483344 (view as bug list)
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2013-09-02 06:52 UTC by Agostino Sarubbo
Modified: 2013-10-09 04:31 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-02 06:52:55 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 rc libwpp.a preproc.o wpp.o ppl.yy.o
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-10-09 03:26:40 UTC
*** Bug 483344 has been marked as a duplicate of this bug. ***
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-10-09 03:37:15 UTC
wine directly calls /usr/bin/ar and /usr/bin/ranlib because those are the correct values of AR and RANLIB when building 32-bit code on amd64.

As far as I can see, "tc-export AR RANLIB" won't change anything: if you don't have /usr/bin/i686-pc-linux-gnu-ar or /usr/bin/i686-pc-linux-gnu-ranlib on your machine, tc-export won't be able to use them.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-10-09 04:31:40 UTC
Actually, on second thought: if you have only x86_64-pc-linux-gnu-ranlib but not i686-pc-linux-gnu-ranlib, even for 32-bit code you do probably want to use x86_64-pc-linux-gnu-ranlib and not /usr/bin/ranlib, which might be something unexpected (e.g. if cross-compiling).

Fixed :)

+*wine-1.7.3 (09 Oct 2013)
+  09 Oct 2013; Alexandre Rostovtsev <> wine-1.6.ebuild,
+  +wine-1.7.3.ebuild, wine-9999.ebuild, metadata.xml:
+  Belated version bump (bug #483276); see
+  (and .../1.7.2 and .../1.7.1) for release notes. Respect AR and RANLIB (bug
+  #483342 and #483344, thanks to Agostino Sarubbo). Make rtkit dependency
+  optional since apparently winepulse can work without it (bug #487152, thanks
+  to Stefan Reimer).