Skip to contentSkip to conversation

configure.in: Declare a requirement for at least autoconf 2.50

PATCH Applied Theodore Ts'o 2 participants 4 messages Jul 21, 2011 – Jul 22, 2011

lore
Share & tools
lore
#0 lore raw

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
index 45b7fd1..c697b4f 100644
@@ -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
#1 lore raw

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
index 72fbbb7..f468f50 100644
@@ -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
#2 lore raw

PATCH 3/3 dmapi: fix build failure if libdm is provided via -ldm

In reply to Theodore Ts'o

The 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
index 4b0e550..4525581 100644
@@ -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
index 7a4ca8c..55df563 100644
@@ -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
index 7e51763..05dbead 100644
@@ -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
index 6b4d0b6..c01dff0 100644
@@ -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
index 91a0f00..c5cf6da 100644
@@ -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
#3 lore raw

Re: [PATCH XFSTESTS 3/3] dmapi: fix build failure if libdm is provided via -ldm

Thanks, applied.