Created attachment 439802 [details, diff] Change LDFLAGS to LIBS This is a spin-off from bug #587458 comment #2. Even after adding the libtirpc USE flag for the net-fs/autofs-5.1.2 package, the build failed. Configure reported checking if libtirpc is requested and available... no and the non-libtirpc build encountered the issues described in bug #587458. The configure problem is due to the fact that the configure script passes -ltirpc in LDFLAGS, not in LIBS, causing an incorrect order of arguments in the linker invocation. https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed instructs changing that, which is what the attached patch does. With this I could merge the package successfully. The patch relies on the ebuild doing an autoreconf step, which the current ebuild does.
the patch looks good, thanks would you like to push this patch to autofs upstream? so other user may benefit, also less burden we (Gentoo) will carry ..
I've pushed this patch to portage tree (without revision bump), many thanks https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1069c56a8946a005eadfaebc3c75ab6eceee1bed
(In reply to Yixun Lan from comment #1) > would you like to push this patch to autofs upstream? so other user may > benefit, also less burden we (Gentoo) will carry .. I HATE sending patches via Majordomo lists. Subscribing to the list. Confirming your address. Realizing I was already subscribed since bug #453778. Checking what folder these mails get directed to. Reading the manual for git-send-email since I hardly ever use that. Checking git sendemail configuration. Sending. I wish they'd be using GitHub… Anyway, I finally managed to post that patch: http://thread.gmane.org/gmane.linux.kernel.autofs/7437