Summary: | net-fs/autofs-5: automount map directory is '/etc' instead of '/etc/autofs' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alberto Casari <albe.casari> |
Component: | Current packages | Assignee: | Peter Volkov (RETIRED) <pva> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | DuPol, net-fs |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
Build log without '/etc/autofs' directory Build log with '/etc/autofs' directory Patch to autofs-5.0.6-r3.ebuild |
Description
Alberto Casari
2011-09-30 17:56:10 UTC
Please attach full build.log and post your emerge --info Created attachment 288871 [details]
emerge --info
This is the 'emerge --info' you requested
Created attachment 288873 [details]
Build log without '/etc/autofs' directory
Build log _without_ '/etc/autofs' directory
Created attachment 288875 [details]
Build log with '/etc/autofs' directory
This is the build log _with_ '/etc/autofs' directory,
and this is a macro passed to 'gcc':
-DAUTOFS_MAP_DIR=\"/etc/autofs\"
And this is the build log _without_ '/etc/autofs' directory,
for instance when you install 'autofs' for the first time,
and this is a macro passed to 'gcc':
-DAUTOFS_MAP_DIR=\"/etc\"
Peter, this issue seems to be similar to bug #361481. I can't figure out why this behaves differently on similar machines, but safest way is to specify the correct dir by adding '--with-mapdir=/etc/autofs' to econf as proposed by albecasari. Should we add an elog message as well to get users attention in case they need to migrate misplaced config files (I don't know if autofs even worked with such a configuration...)? Created attachment 289785 [details, diff]
Patch to autofs-5.0.6-r3.ebuild
Peter,
if you want to add a elog message as well, please let me know. I will then come up with something.
Dustin, ./aclocal.m4 has following function: dnl Check the location of the autofs maps directory dnl -------------------------------------------------------------------------- AC_DEFUN(AF_MAP_D, [if test -z "$mapdir"; then for map_d in /etc/autofs /etc; do if test -z "$mapdir"; then if test -d "$map_d"; then mapdir="$map_d" fi fi done fi]) Thus if /etc/autofs exists files will go there (and it does not exist on new installations). So the fix is correct. Commited into 5.0.6-r4. Thank you guys. |