autofs: set some paths for configure script
PATCH 1/2 autofs: set some paths for configure script
The configure script used by autofs tries to detect paths on the build system. Avoid it by presetting fixed values.
Signed-off-by Andreas Oberritter <[email protected]>
--- meta-networking/recipes-daemons/autofs/autofs_5.1.6.bb | 6 ++++++ 1 file changed, 6 insertions(+)
meta-networking/recipes-daemons/autofs/autofs_5.1.6.bb +6 -0
@@ -47,13 +47,19 @@ PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" EXTRA_OEMAKE = "DONTSTRIP=1" EXTRA_OECONF += "--disable-mount-locking \ --enable-ignore-busy --with-openldap=no \ + --with-confdir=${sysconfdir}/default \ + --with-fifodir=/run \ + --with-flagdir=/run \ --with-sasl=no --with-libtirpc \ + --with-mapdir=${sysconfdir} \ --with-path=${STAGING_BINDIR_NATIVE} \ --with-fifodir=${localstatedir}/run \ --with-flagdir=${localstatedir}/run \ " CACHED_CONFIGUREVARS = "ac_cv_path_RANLIB=${RANLIB} \ ac_cv_path_RPCGEN=rpcgen \ + initdir=${INIT_D_DIR} \ + piddir=/run \ " do_configure_prepend () {
Signature · 1 line
2.17.1
PATCH 2/2 autofs: install sysvinit script manually if systemd is enabled
Update-rc.d complains if no sysvinit script is present. This happens in hybrid systemd/sysvinit builds, because autofs does not install the init script if configured with '--with-systemd'.
Signed-off-by Andreas Oberritter <[email protected]>
--- meta-networking/recipes-daemons/autofs/autofs_5.1.6.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta-networking/recipes-daemons/autofs/autofs_5.1.6.bb +5 -0
@@ -79,6 +79,11 @@ do_install_append () { if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run fi + # On hybrid systemd/sysvinit builds, we need to install the sysvinit script by hand. + if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d -m 755 ${D}${INIT_D_DIR} + install -m 755 ${S}/samples/rc.autofs ${D}${INIT_D_DIR}/autofs + fi } SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}"
Signature · 1 line
2.17.1