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

Bug 483716

Summary: net-fs/autofs : does not respect AR
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Yixun Lan <dlan>
Status: RESOLVED FIXED    
Severity: QA CC: proxy-maint, robbat2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: autofs-5.0.7-r4.ebuild.patch

Description Agostino Sarubbo gentoo-dev 2013-09-05 13:53:46 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 autofs.a cache.o mount_clnt.o mount_xdr.o cat_path.o rpc_subs.o mounts.o log.o nsswitch.o master_tok.o master_parse.tab.o nss_tok.o nss_parse.tab.o args.o alarm.o 
macros.o master.o defaults.o parse_subs.o dev-ioctl-lib.o
Comment 1 Yixun Lan archtester gentoo-dev 2013-09-05 15:24:35 UTC
Created attachment 357936 [details, diff]
autofs-5.0.7-r4.ebuild.patch

respect ar, ranlib, pass those variables during compile phase.
I don't think we need a revision bump here, let me know if I'm wrong..
Comment 2 Sergey Popov gentoo-dev 2013-09-06 07:38:53 UTC
(In reply to Dennis 'dlan' Lan from comment #1)
> I don't think we need a revision bump here, let me know if I'm wrong..

You are right, this is build-time issue(package just does not build in some cases).

+  06 Sep 2013; Sergey Popov <pinkbyte@gentoo.org> autofs-5.0.7-r4.ebuild:
+  Respect AR and RANLIB, wrt bug #483716. Thanks to Agostino Sarubbo for
+  discovering this issue and Dennis Lan for provided patch