Package: libapache2-mod-defensible
Version: 1.4-3.1
Severity: normal
Tags: patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

* Use dh-autoreconf to fix FTBFS on ppc64el by getting new libtool macros.
 * Use automake's "foreign" option to fix FTBFS while autoreconfing.

Thanks for considering the patch.

Erwan Prioul.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.13-1-powerpc64le (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

diff -Naur a/debian/control b/debian/control
--- a/debian/control	2014-07-07 15:24:59.727689299 +0200
+++ b/debian/control	2014-07-07 15:25:46.255686827 +0200
@@ -3,7 +3,7 @@
 Section: web
 Priority: extra
 Standards-Version: 3.8.0
-Build-Depends: debhelper (>= 5.0.0), dh-apache2, apache2-dev (>= 2.2.3-2)
+Build-Depends: debhelper (>= 5.0.0), dh-apache2, apache2-dev (>= 2.2.3-2), dh-autoreconf
 
 Package: libapache2-mod-defensible
 Architecture: any
diff -Naur a/debian/patches/automake-foreign.patch b/debian/patches/automake-foreign.patch
--- a/debian/patches/automake-foreign.patch	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/patches/automake-foreign.patch	2014-07-07 15:39:50.515641955 +0200
@@ -0,0 +1,13 @@
+--- a/configure.in
++++ b/configure.in
+@@ -1,8 +1,8 @@
+ # configure.in for mod_defensible
+ # © 2007 Julien Danjou <[email protected]>
+ 
+-AC_INIT(mod_defensible)
+-AM_INIT_AUTOMAKE(mod_defensible, 1.2)
++AC_INIT([mod_defensible], [1.2])
++AM_INIT_AUTOMAKE([foreign])
+ 
+ AC_CONFIG_SRCDIR(mod_defensible.c) 
+ 
diff -Naur a/debian/patches/series b/debian/patches/series
--- a/debian/patches/series	2014-07-07 15:24:59.739689299 +0200
+++ b/debian/patches/series	2014-07-07 15:39:50.515641955 +0200
@@ -2,3 +2,4 @@
 aplog-use-module.patch
 server-banner.patch
 conn-rec-remote-ip.patch
+automake-foreign.patch
diff -Naur a/debian/rules b/debian/rules
--- a/debian/rules	2014-07-07 15:24:59.735689299 +0200
+++ b/debian/rules	2014-07-07 15:26:34.291684273 +0200
@@ -5,6 +5,7 @@
 
 config.status:
 	dh_testdir
+	dh_autoreconf
 	./configure
 
 build: build-stamp
@@ -20,6 +21,7 @@
 	dh_testroot
 	rm -f build-stamp config.log
 	[ ! -f Makefile ] || $(MAKE) distclean
+	dh_autoreconf_clean
 	dh_clean 
 
 install: build

Reply via email to