Automount map files should be installed in '/etc/autofs' directory instead of '/etc' since 'auto.master' is installed there(see 'ebuild'). Reproducible: Always Steps to Reproduce: 1.emerge 'net-fs/autofs-5.0.6-r2' 2. 3. Actual Results: /etc/autofs/auto.master /etc/auto.misc /etc/auto.net /etc/auto.smb /etc/autofs_ldap_auth.conf Expected Results: /etc/autofs/auto.master /etc/autofs/auto.misc /etc/autofs/auto.net /etc/autofs/auto.smb /etc/autofs/autofs_ldap_auth.conf Add '--with-mapdir=/etc/autofs' to 'econf' resolves the issue.
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.