Summary: | net-fs/autofs-5.0.5 does not install /etc/conf.d/autofs on some systems | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Stefaan De Roeck (RETIRED) <stefaan> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | DuPol, net-fs, pva |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 346537 | ||
Bug Blocks: | |||
Attachments: | /var/tmp/portage/net-fs/autofs-5.0.5/temp/build.log |
Description
Juergen Rose
2011-03-31 15:21:44 UTC
Also a fresh install of autofs does not install /etc/conf.d/autofs on 'condor': root@condor:/root(9)# FEATURES=-sandbox emerge -v1 autofs >/dev/null 2>&1 root@condor:/root(10)# equery f autofs-5.0.5 | grep conf.d root@condor:/root(11)# genlop -t autofs | tail -n8 merge time: 34 seconds. Thu Mar 31 17:23:42 2011 >>> net-fs/autofs-5.0.5 merge time: 25 seconds. Thu Mar 31 17:24:56 2011 >>> net-fs/autofs-5.0.5 merge time: 24 seconds. (In reply to comment #1) > Also a fresh install of autofs does not install /etc/conf.d/autofs on 'condor': > > root@condor:/root(9)# FEATURES=-sandbox emerge -v1 autofs >/dev/null 2>&1 > root@condor:/root(10)# equery f autofs-5.0.5 | grep conf.d > root@condor:/root(11)# genlop -t autofs | tail -n8 > merge time: 34 seconds. > > Thu Mar 31 17:23:42 2011 >>> net-fs/autofs-5.0.5 > merge time: 25 seconds. > > Thu Mar 31 17:24:56 2011 >>> net-fs/autofs-5.0.5 > merge time: 24 seconds. I can't reproduce this: # ebuild /usr/portage/net-fs/autofs/autofs-5.0.5.ebuild install [...] # ls /var/tmp/portage/net-fs/autofs-5.0.5/image/etc/conf.d/autofs /var/tmp/portage/net-fs/autofs-5.0.5/image/etc/conf.d/autofs Please attach build.log. root@condor:/root(5)# FEATURES=-sandbox emerge -vD1 autofs ... * Applying autofs-5.0.5-fix-building-without-sasl.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/net-fs/autofs-5.0.5/work/autofs-5.0.5' ... * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] >>> Source prepared. ... Installing autofs default configuation in /etc/sysconfig `autofs.conf.default' -> `/var/tmp/portage/net-fs/autofs-5.0.5/image//etc/sysconfig/autofs' Installed package configuration configuration as "autofs". Installing autofs ldap auth config "autofs_ldap_auth.conf" in /etc/autofs `autofs_ldap_auth.conf' -> `/var/tmp/portage/net-fs/autofs-5.0.5/image//etc/autofs/autofs_ldap_auth.conf' Installed package auth config as "autofs_ldap_auth.conf". Installing autofs default master map in /etc/autofs `auto.master' -> `/var/tmp/portage/net-fs/autofs-5.0.5/image//etc/autofs/auto.master' Installed package master map as "auto.master". Installing autofs sample map "auto.misc" in /etc/autofs `auto.misc' -> `/var/tmp/portage/net-fs/autofs-5.0.5/image//etc/autofs/auto.misc' Installed package sample map as "auto.misc". Backup of existing map made to "auto.misc.orig". Installing autofs sample map "auto.net" in /etc/autofs `auto.net' -> `/var/tmp/portage/net-fs/autofs-5.0.5/image//etc/autofs/auto.net' Installed package sample map as "auto.net". >>> Installing (1 of 1) net-fs/autofs-5.0.5 * checking 62 files for package collisions ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. root@condor:/root(6)# ls /var/tmp/portage/net-fs/autofs-5.0.5/image/etc/ autofs init.d sysconfig There is no /var/tmp/portage/net-fs/autofs-5.0.5/image/etc/conf.d Build.log will be attached Created attachment 268107 [details]
/var/tmp/portage/net-fs/autofs-5.0.5/temp/build.log
So it looks if the /etc/init.d/autofs-configuration file is copied to /etc/sysconfig/ and not to /etc/conf.d. I am installing autofs from the default portage tree and not from any overlay: root@condor:/root(13)# emerge -pvD autofs These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] net-fs/autofs-5.0.5 USE="ldap sasl -hesiod" 0 kB Hi Fab, I am running linux-2.6.38: root@condor:/root(15)# uname -a Linux condor 2.6.38 #1 SMP Sun Mar 20 11:32:09 CET 2011 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux I will upgrade to linux-2.6.38.2 and linux-2.6.38-gentoo-r1 and report the results. Thank you for report, Juergen! As I see the error you have comes from: ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-openldap --with-sasl --without-hesiod --enable-ignore-busy ... checking for autofs configuration file directory... /etc/sysconfig Which in turns comes from AF_CONF_D autoconf macros (in aclocal.m4) AC_DEFUN(AF_CONF_D, [if test -z "$confdir"; then for conf_d in /etc/sysconfig /etc/defaults /etc/conf.d /etc/default; do if test -z "$confdir"; then if test -d "$conf_d"; then confdir="$conf_d" fi fi done fi]) To workaround this we need to define confdir or in other words provide --with-confdir=/etc/conf.d to ./configure. I'll include fix with next version bump. Fixed in 5.0.5-r1. |