Source: gddrescue
Version: 1.19-1
Severity: normal
Tags: patch

Hi Maintainer

In gddrescue 1.19, a new configure option '--enable-linux', which enables linux-specific code and ioctls, was added. The attached patch, against my previous patch in bug #788326, adds the '--enable-linux' configure option but only when building on Linux.

I have tested that the package still builds with the patch in place in VM running kfreebsd.

Regards
Graham

diff -Nru gddrescue-1.19/debian/rules gddrescue-1.19/debian/rules
--- gddrescue-1.19/debian/rules	2015-06-11 13:50:15.000000000 +0200
+++ gddrescue-1.19/debian/rules	2015-06-11 13:52:11.000000000 +0200
@@ -1,5 +1,10 @@
 #!/usr/bin/make -f
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+EXTRA_CONFIGURE_ARGS =
+ifeq ($(DEB_HOST_ARCH_OS), linux)
+EXTRA_CONFIGURE_ARGS += --enable-linux
+endif
 
 %:
 	dh $@
@@ -9,7 +14,8 @@
 		CXX='$(CXX)' \
 		CPPFLAGS='$(CPPFLAGS)' \
 		CXXFLAGS='$(CXXFLAGS)' \
-		LDFLAGS='$(LDFLAGS)'
+		LDFLAGS='$(LDFLAGS)' \
+		$(EXTRA_CONFIGURE_ARGS)
 
 override_dh_installinfo:
 	rm -f $(CURDIR)/debian/gddrescue/usr/share/info/dir

Reply via email to