2015-12-22 17:51:10 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# autofs
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-01-31 20:25:22 +01:00
|
|
|
AUTOFS_VERSION = 5.1.4
|
2015-12-22 17:51:10 +01:00
|
|
|
AUTOFS_SOURCE = autofs-$(AUTOFS_VERSION).tar.xz
|
|
|
|
AUTOFS_SITE = $(BR2_KERNEL_MIRROR)/linux/daemons/autofs/v5
|
2017-03-30 15:43:32 +02:00
|
|
|
AUTOFS_LICENSE = GPL-2.0+
|
2015-12-22 17:51:10 +01:00
|
|
|
AUTOFS_LICENSE_FILES = COPYING COPYRIGHT
|
2018-05-23 19:44:49 +02:00
|
|
|
AUTOFS_DEPENDENCIES = host-flex host-bison host-pkgconf host-nfs-utils
|
2015-12-22 17:51:10 +01:00
|
|
|
|
autofs: really fix build
The autofs configure script does a number of weird things.
First, instead of using the default search path for AC_CHECK_PROGS(),
it overrides it its own search path, ignoring the PATH environment
variable. Due to this, autofs fails to find flex even though flex is
available in the PATH. Fortunately, the authors provided a --with-path
configure option which allows to override this search path.
In addition, the configure script is checking on the build machine
that a number of programs are available, while those programs are in
fact only needed on the target. The one causing build issues is
modprobe, because it may not necessarily be installed on build
machines, so we explicitly tell autofs that modprobe is located in
/sbin/modprobe. It might be necessary to provide additional values for
other programs, as we discover other problems.
Fixes:
http://autobuild.buildroot.org/results/447/4479382b2d4d762991cab2e93fd08ad6160c2921/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-12-24 11:07:53 +01:00
|
|
|
# autofs looks on the build machine for the path of modprobe, so tell
|
|
|
|
# it explicitly where it will be located on the target.
|
|
|
|
AUTOFS_CONF_ENV = \
|
2016-06-19 05:25:11 +02:00
|
|
|
ac_cv_path_KRB5_CONFIG=no \
|
2016-07-30 22:32:47 +02:00
|
|
|
ac_cv_path_MODPROBE=/sbin/modprobe \
|
|
|
|
ac_cv_linux_procfs=yes
|
autofs: really fix build
The autofs configure script does a number of weird things.
First, instead of using the default search path for AC_CHECK_PROGS(),
it overrides it its own search path, ignoring the PATH environment
variable. Due to this, autofs fails to find flex even though flex is
available in the PATH. Fortunately, the authors provided a --with-path
configure option which allows to override this search path.
In addition, the configure script is checking on the build machine
that a number of programs are available, while those programs are in
fact only needed on the target. The one causing build issues is
modprobe, because it may not necessarily be installed on build
machines, so we explicitly tell autofs that modprobe is located in
/sbin/modprobe. It might be necessary to provide additional values for
other programs, as we discover other problems.
Fixes:
http://autobuild.buildroot.org/results/447/4479382b2d4d762991cab2e93fd08ad6160c2921/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-12-24 11:07:53 +01:00
|
|
|
|
|
|
|
# instead of looking in the PATH like any reasonable package, autofs
|
|
|
|
# configure looks only in an hardcoded search path for host tools,
|
|
|
|
# which we have to override with --with-path.
|
2015-12-22 17:51:10 +01:00
|
|
|
AUTOFS_CONF_OPTS = \
|
|
|
|
--disable-mount-locking \
|
|
|
|
--enable-ignore-busy \
|
|
|
|
--without-openldap \
|
autofs: really fix build
The autofs configure script does a number of weird things.
First, instead of using the default search path for AC_CHECK_PROGS(),
it overrides it its own search path, ignoring the PATH environment
variable. Due to this, autofs fails to find flex even though flex is
available in the PATH. Fortunately, the authors provided a --with-path
configure option which allows to override this search path.
In addition, the configure script is checking on the build machine
that a number of programs are available, while those programs are in
fact only needed on the target. The one causing build issues is
modprobe, because it may not necessarily be installed on build
machines, so we explicitly tell autofs that modprobe is located in
/sbin/modprobe. It might be necessary to provide additional values for
other programs, as we discover other problems.
Fixes:
http://autobuild.buildroot.org/results/447/4479382b2d4d762991cab2e93fd08ad6160c2921/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-12-24 11:07:53 +01:00
|
|
|
--without-sasl \
|
2016-06-19 05:25:11 +02:00
|
|
|
--with-path="$(BR_PATH)" \
|
|
|
|
--with-hesiod=no
|
2015-12-22 17:51:10 +01:00
|
|
|
|
|
|
|
AUTOFS_MAKE_ENV = DONTSTRIP=1
|
|
|
|
|
2018-02-01 21:09:04 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
|
|
|
AUTOFS_CONF_OPTS += --with-libtirpc
|
|
|
|
AUTOFS_DEPENDENCIES += libtirpc
|
|
|
|
else
|
|
|
|
AUTOFS_CONF_OPTS += --without-libtirpc
|
|
|
|
endif
|
|
|
|
|
2015-12-22 17:51:10 +01:00
|
|
|
$(eval $(autotools-package))
|