Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#58103 - [autofs] yp/nis lookup module file (lookup_yp.so) missing from package

Attached to Project: Community Packages
Opened by Sebastian Stammler (epinephrine) - Wednesday, 04 April 2018, 15:59 GMT
Last edited by Lukas Fleischer (lfleischer) - Friday, 13 April 2018, 05:33 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:
The current autofs package is missing the file /usr/lib/autofs/lookup_yp.so. The file /usr/lib/autofs/lookup_nis.so is a dead symlink to it.
nis/yp mounts don't work without it:
automount[977]: open_lookup:104: cannot open lookup module yp (/usr/lib/autofs/lookup_yp.so: cannot open shared object file: No such file or directory)

Additional info:
* package version: 5.1.4-1


This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Friday, 13 April 2018, 05:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 5.1.4-2.
Comment by Brian BIdulock (bidulock) - Thursday, 05 April 2018, 02:13 GMT
From what I can tell, some change in the tool chain causes `configure' to fail to compile checked headers. However, ultimate problem is upstream because headers are test compiled long before AC_PROG_CC is called in configure.in. This is what prompted adding the export CPP=/usr/bin/cpp line (because $CC variable is not set by AC_PROG_CC at that point). Adding the following two lines to prepare() and removing the export CPP line fixes the build:

sed -i -r -e 's|AC_SUBST\(flagdir\)|AC_SUBST(flagdir)\nAC_PROG_CC|' configure.in

autoreconf -fiv
Comment by Philipp Hanslovsky (hanslovsky) - Monday, 09 April 2018, 15:26 GMT
Thanks for sharing this workaround.
Comment by Leonid Isaev (lisaev) - Thursday, 12 April 2018, 22:58 GMT
Huh?? There is no such bug that I can see. Attached is the PKGBUILD that I used to compile autofs 5.1.4; it is a cleaned up version of the one in [community]... I'll test it soon, when noone is using my machine.
   PKGBUILD (1.5 KiB)
Comment by Leonid Isaev (lisaev) - Thursday, 12 April 2018, 23:01 GMT
Also, in the $pkgdir:
[lisaev@vika autofs]$ ldd pkg/autofs/usr/lib/autofs/lookup_nis.so
linux-vdso.so.1 (0x00007fffa511a000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fcf10294000)
libnsl.so.1 => /usr/lib/libnsl.so.1 (0x00007fcf1007c000)
librt.so.1 => /usr/lib/librt.so.1 (0x00007fcf0fe74000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007fcf0fabd000)
/usr/lib64/ld-linux-x86-64.so.2 (0x00007fcf106e7000)
[lisaev@vika autofs]$ ls -alph pkg/autofs/usr/lib/autofs/lookup_nis.so
lrwxrwxrwx 1 lisaev users 12 Apr 12 16:46 pkg/autofs/usr/lib/autofs/lookup_nis.so -> lookup_yp.so
Comment by Brian BIdulock (bidulock) - Thursday, 12 April 2018, 23:21 GMT
Ah, you removed options=(!makeflags) and the CPP line. This sets CC and CPP when it was not before. That was added for  FS#22328  I suppose it could not handle multi-threaded build at one point.

Still an upstream bug in configure.in, though: AC_PROG_CC is set too late.
Comment by Brian BIdulock (bidulock) - Thursday, 12 April 2018, 23:23 GMT
I like your workaround better than mine, though.
Comment by Leonid Isaev (lisaev) - Thursday, 12 April 2018, 23:48 GMT
I'm building with -j8... And I'd prefer to call this spring cleaning, not workaround :P

I don't understand why the CPP line was added though. Shouldn't gcc handle preprocessing? And how does it matter what MAKEFLAGS are at the configure stage? Grepping config.log for CPP shows that CPP=gcc -E, as it is with any other package...

Comment by Lukas Fleischer (lfleischer) - Friday, 13 April 2018, 05:33 GMT
Interestingly, it is the addition of --with-libtirpc, not the other chages, that fixes compilation.

Anyways, I updated the official PKGBUILD with some of your changes and pushed 5.1.4-2.

Loading...