Package: src:m17n-lib
Version: 1.6.4-2
Severity: normal
Tags: patch

Dear Maintainer,

For the ppc64el architecture in Ubuntu, since this package uses libtool, a full autoreconf is necessary. This is because we need new libtool macros for ppc64el.

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

  * Build using dh-autoreconf.

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

--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: m17n-lib
 Section: utils
 Priority: optional
 Maintainer: Harshula Jayasuriya <[email protected]>
-Build-Depends: debhelper (>= 9), autotools-dev, libtool (>= 2.2.4), automake (>= 1.9.6), autoconf (>= 2.61), pkg-config (>= 0.22), libxt-dev, libx11-dev, libxaw7-dev, libxmu-dev, libfribidi-dev, libotf-dev (>= 0.9.11), libfreetype6-dev, libxft-dev, libxrender-dev, libfontconfig1-dev, libgd2-noxpm-dev, libxml2-dev, libanthy-dev, ispell, libthai-dev, m17n-db
+Build-Depends: debhelper (>= 9), autotools-dev, libtool (>= 2.2.4), automake (>= 1.9.6), autoconf (>= 2.61), pkg-config (>= 0.22), libxt-dev, libx11-dev, libxaw7-dev, libxmu-dev, libfribidi-dev, libotf-dev (>= 0.9.11), libfreetype6-dev, libxft-dev, libxrender-dev, libfontconfig1-dev, libgd2-noxpm-dev, libxml2-dev, libanthy-dev, ispell, libthai-dev, m17n-db, dh-autoreconf
 Standards-Version: 3.9.3
 Homepage: http://www.nongnu.org/m17n/
 
--- a/debian/rules
+++ b/debian/rules
@@ -37,26 +37,22 @@ version=`ls src/.libs/lib*.so.* | \
 major=`ls src/.libs/lib*.so.* | \
  awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
-config.status: configure
+configure-stamp:
 	dh_testdir
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	cp -f /usr/share/misc/config.guess config.guess
-endif
+	dh_autoreconf
 	./configure $(CROSS) \
 			--prefix=/usr \
 			--mandir=\$${prefix}/share/man \
 			--infodir=\$${prefix}/share/info \
 			$(shell $(dpkg_buildflags) --export=configure)
+	touch $@
 
 build-arch: build
 build-indep: build
 
 build: build-stamp
 
-build-stamp: config.status
+build-stamp: configure-stamp
 	dh_testdir
 	$(MAKE)
 	touch $@
@@ -66,12 +62,7 @@ clean:
 	dh_testroot
 	rm -f build-stamp
 	[ ! -f Makefile ] || $(MAKE) distclean
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	rm -f config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	rm -f config.guess
-endif
+	dh_autoreconf_clean
 	dh_clean
 
 install: build

Reply via email to