configure.in: Declare a requirement for at least autoconf 2.50
PATCH 1/3 configure.in: Declare a requirement for at least autoconf 2.50
On Debian/Ubuntu systems, if autoconf version 2.13 is installed, autoconf will try to automatically figure out whether autoconf 2.13 or something more modern is required (since the autoconf maintainers, curses be upon them, didn't bother to maintain compatibility between autoconf 2.13 and 2.50). Unfortunately, the hueristics aren't perfect, and although the configure.in file looks superficially like it will be compatible with autoconf 2.13, it isn't. You will end up with a number of very subtle compilation failures if you use autoconf 2.13.
So declare a requirement for autoconf 2.50 using AC_PREREQ(2.50).
--- configure.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
configure.in +1 -0
@@ -1,4 +1,5 @@ AC_INIT(src/xfsctl.c) +AC_PREREQ(2.50) AC_PACKAGE_GLOBALS(xfstests) AC_PACKAGE_UTILITIES(xfstests)
Signature · 1 line
1.7.4.1.22.gec8e1.dirty
PATCH 2/3 Build without enabling DEBUG by default
--- m4/package_globals.m4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
m4/package_globals.m4 +1 -1
@@ -15,7 +15,7 @@ AC_DEFUN([AC_PACKAGE_GLOBALS], test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION" AC_SUBST(pkg_release) - DEBUG=${DEBUG:-'-DDEBUG'} dnl -DNDEBUG + DEBUG=${DEBUG:-'-DNDEBUG'} dnl -DNDEBUG debug_build="$DEBUG" AC_SUBST(debug_build)
Signature · 1 line
1.7.4.1.22.gec8e1.dirty
PATCH 3/3 dmapi: fix build failure if libdm is provided via -ldm
In reply to Theodore Ts'oThe value of $(LIBDM) may be a linker specification -ldm, and not a file. So it's not OK to add this to the dependency, since make will then complain that it doesn't know how to make the target -ldm.
--- dmapi/src/common/cmd/Makefile | 2 +- dmapi/src/sample_hsm/Makefile | 2 +- dmapi/src/suite1/cmd/Makefile | 2 +- dmapi/src/suite1/cmd/probe_punch_xfsctl_hole.c | 2 +- dmapi/src/suite2/src/Makefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
dmapi/src/common/cmd/Makefile +1 -1
@@ -38,7 +38,7 @@ include $(BUILDRULES) install install-dev: default -$(TARGETS): $(LLDLIBS) +$(TARGETS): @echo " [CC] $@" $(Q)$(LTLINK) [email protected] -o $@ $(CFLAGS) $(LDFLAGS) $(LDLIBS)
dmapi/src/sample_hsm/Makefile +1 -1
@@ -38,7 +38,7 @@ include $(BUILDRULES) install install-dev: default -$(TARGETS): $(LLDLIBS) +$(TARGETS): @echo " [CC] $@" $(Q)$(LTLINK) [email protected] -o $@ $(CFLAGS) $(LDFLAGS) $(LDLIBS)
dmapi/src/suite1/cmd/Makefile +1 -1
@@ -61,7 +61,7 @@ include $(BUILDRULES) install install-dev: default -$(TARGETS): $(LLDLIBS) +$(TARGETS): @echo " [CC] $@" $(Q)$(LTLINK) [email protected] -o $@ $(CFLAGS) $(LDFLAGS) $(LDLIBS)
dmapi/src/suite1/cmd/probe_punch_xfsctl_hole.c +1 -1
@@ -69,7 +69,7 @@ xfsctl_punch_hole(xfs_flock64_t flock;int fd; -if ((fd =open (path,O_RDWR |O_CREAT )) <0 ) { +if ((fd =open (path,O_RDWR |O_CREAT ,0600 )) <0 ) {perror (path);exit (errno); }
dmapi/src/suite2/src/Makefile +1 -1
@@ -44,7 +44,7 @@ include $(BUILDRULES) install install-dev: default -$(TARGETS): $(LLDLIBS) +$(TARGETS): @echo " [CC] $@" $(Q)$(LTLINK) [email protected] -o $@ $(CFLAGS) $(LDFLAGS) $(LDLIBS)
Signature · 1 line
1.7.4.1.22.gec8e1.dirty
Christoph Hellwig
AppliedRe: [PATCH XFSTESTS 3/3] dmapi: fix build failure if libdm is provided via -ldm
Thanks, applied.