mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
configure fixes
a+=b is not supported by all shells. It is equivalent to a=${a}b, so just rewrite it as that. This also fixes commit9ea6c3d3
, which intended to only make the definitions of _dracutdir, _udevdir, and _udevruledir conditional, but actually ensured that _initconfdir no longer got defined if _dracutdir was defined, and defined _udevdir to the value that should have been used for _udevruledir. This also fixes the fact that the checks introduced by commit9ea6c3d3
could never work: ZFS_AC_PACKAGE was called before the configuration options were processed. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Harald van Dijk <harald@gigawatt.nl> Closes #10518
This commit is contained in:
parent
2ac6aa1176
commit
22831636c8
@ -110,7 +110,7 @@ AC_DEFUN([ZFS_AC_DEBUG_KMEM], [
|
||||
[enable_debug_kmem=no])
|
||||
|
||||
AS_IF([test "x$enable_debug_kmem" = xyes], [
|
||||
KERNEL_DEBUG_CPPFLAGS+=" -DDEBUG_KMEM"
|
||||
KERNEL_DEBUG_CPPFLAGS="${KERNEL_DEBUG_CPPFLAGS} -DDEBUG_KMEM"
|
||||
DEBUG_KMEM_ZFS="_with_debug_kmem"
|
||||
], [
|
||||
DEBUG_KMEM_ZFS="_without_debug_kmem"
|
||||
@ -140,7 +140,7 @@ AC_DEFUN([ZFS_AC_DEBUG_KMEM_TRACKING], [
|
||||
[enable_debug_kmem_tracking=no])
|
||||
|
||||
AS_IF([test "x$enable_debug_kmem_tracking" = xyes], [
|
||||
KERNEL_DEBUG_CPPFLAGS+=" -DDEBUG_KMEM_TRACKING"
|
||||
KERNEL_DEBUG_CPPFLAGS="${KERNEL_DEBUG_CPPFLAGS} -DDEBUG_KMEM_TRACKING"
|
||||
DEBUG_KMEM_TRACKING_ZFS="_with_debug_kmem_tracking"
|
||||
], [
|
||||
DEBUG_KMEM_TRACKING_ZFS="_without_debug_kmem_tracking"
|
||||
@ -261,10 +261,10 @@ AC_DEFUN([ZFS_AC_RPM], [
|
||||
])
|
||||
|
||||
RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
|
||||
RPM_DEFINE_COMMON+=' --define "$(DEBUG_KMEM_ZFS) 1"'
|
||||
RPM_DEFINE_COMMON+=' --define "$(DEBUG_KMEM_TRACKING_ZFS) 1"'
|
||||
RPM_DEFINE_COMMON+=' --define "$(DEBUGINFO_ZFS) 1"'
|
||||
RPM_DEFINE_COMMON+=' --define "$(ASAN_ZFS) 1"'
|
||||
RPM_DEFINE_COMMON=${RPM_DEFINE_COMMON}' --define "$(DEBUG_KMEM_ZFS) 1"'
|
||||
RPM_DEFINE_COMMON=${RPM_DEFINE_COMMON}' --define "$(DEBUG_KMEM_TRACKING_ZFS) 1"'
|
||||
RPM_DEFINE_COMMON=${RPM_DEFINE_COMMON}' --define "$(DEBUGINFO_ZFS) 1"'
|
||||
RPM_DEFINE_COMMON=${RPM_DEFINE_COMMON}' --define "$(ASAN_ZFS) 1"'
|
||||
|
||||
RPM_DEFINE_UTIL=' --define "_initconfdir $(DEFAULT_INITCONF_DIR)"'
|
||||
|
||||
@ -274,20 +274,20 @@ AC_DEFUN([ZFS_AC_RPM], [
|
||||
dnl # ./configure --with-config=srpm
|
||||
dnl #
|
||||
AS_IF([test -n "$dracutdir" ], [
|
||||
RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)"'
|
||||
RPM_DEFINE_UTIL=${RPM_DEFINE_UTIL}' --define "_dracutdir $(dracutdir)"'
|
||||
])
|
||||
AS_IF([test -n "$udevdir" ], [
|
||||
RPM_DEFINE_UTIL+=' --define "_udevdir $(udevdir)"'
|
||||
RPM_DEFINE_UTIL=${RPM_DEFINE_UTIL}' --define "_udevdir $(udevdir)"'
|
||||
])
|
||||
AS_IF([test -n "$udevruledir" ], [
|
||||
RPM_DEFINE_UTIL+=' --define "_udevdir $(udevruledir)"'
|
||||
RPM_DEFINE_UTIL=${RPM_DEFINE_UTIL}' --define "_udevruledir $(udevruledir)"'
|
||||
])
|
||||
RPM_DEFINE_UTIL+=' $(DEFINE_INITRAMFS)'
|
||||
RPM_DEFINE_UTIL+=' $(DEFINE_SYSTEMD)'
|
||||
RPM_DEFINE_UTIL+=' $(DEFINE_PYZFS)'
|
||||
RPM_DEFINE_UTIL+=' $(DEFINE_PAM)'
|
||||
RPM_DEFINE_UTIL+=' $(DEFINE_PYTHON_VERSION)'
|
||||
RPM_DEFINE_UTIL+=' $(DEFINE_PYTHON_PKG_VERSION)'
|
||||
RPM_DEFINE_UTIL=${RPM_DEFINE_UTIL}' $(DEFINE_INITRAMFS)'
|
||||
RPM_DEFINE_UTIL=${RPM_DEFINE_UTIL}' $(DEFINE_SYSTEMD)'
|
||||
RPM_DEFINE_UTIL=${RPM_DEFINE_UTIL}' $(DEFINE_PYZFS)'
|
||||
RPM_DEFINE_UTIL=${RPM_DEFINE_UTIL}' $(DEFINE_PAM)'
|
||||
RPM_DEFINE_UTIL=${RPM_DEFINE_UTIL}' $(DEFINE_PYTHON_VERSION)'
|
||||
RPM_DEFINE_UTIL=${RPM_DEFINE_UTIL}' $(DEFINE_PYTHON_PKG_VERSION)'
|
||||
|
||||
dnl # Override default lib directory on Debian/Ubuntu systems. The
|
||||
dnl # provided /usr/lib/rpm/platform/<arch>/macros files do not
|
||||
@ -299,14 +299,14 @@ AC_DEFUN([ZFS_AC_RPM], [
|
||||
dnl #
|
||||
AS_IF([test "$DEFAULT_PACKAGE" = "deb"], [
|
||||
MULTIARCH_LIBDIR="lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)"
|
||||
RPM_DEFINE_UTIL+=' --define "_lib $(MULTIARCH_LIBDIR)"'
|
||||
RPM_DEFINE_UTIL=${RPM_DEFINE_UTIL}' --define "_lib $(MULTIARCH_LIBDIR)"'
|
||||
AC_SUBST(MULTIARCH_LIBDIR)
|
||||
])
|
||||
|
||||
RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
|
||||
RPM_DEFINE_KMOD+=' --define "ksrc $(LINUX)"'
|
||||
RPM_DEFINE_KMOD+=' --define "kobj $(LINUX_OBJ)"'
|
||||
RPM_DEFINE_KMOD+=' --define "_wrong_version_format_terminate_build 0"'
|
||||
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "ksrc $(LINUX)"'
|
||||
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "kobj $(LINUX_OBJ)"'
|
||||
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "_wrong_version_format_terminate_build 0"'
|
||||
|
||||
RPM_DEFINE_DKMS=''
|
||||
|
||||
|
@ -55,8 +55,8 @@ AX_CODE_COVERAGE
|
||||
_AM_PROG_TAR(pax)
|
||||
|
||||
ZFS_AC_LICENSE
|
||||
ZFS_AC_PACKAGE
|
||||
ZFS_AC_CONFIG
|
||||
ZFS_AC_PACKAGE
|
||||
ZFS_AC_DEBUG
|
||||
ZFS_AC_DEBUGINFO
|
||||
ZFS_AC_DEBUG_KMEM
|
||||
|
Loading…
Reference in New Issue
Block a user