Package: libonig
Version: 5.9.1-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu trusty ubuntu-patch
Dear Maintainer,
For the ppc64el architecture in Ubuntu, since this package uses libtool, a full
autoreconf is necessary instead of just config.{sub,guess} updates with
autotools-dev. This is because we need new libtool macros for ppc64el.
In Ubuntu, the attached patch was applied to achieve the following:
* Use dh-autoreconf instead of autotools-dev to also fix FTBFS on ppc64el by
getting new libtool macros (still updates config.{sub,guess}).
* Use automake's "foreign" option to fix FTBFS while autoreconfing.
Thanks for considering the patch.
Logan Rosen
-- System Information:
Debian Release: jessie/sid
APT prefers trusty-updates
APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500,
'trusty'), (100, 'trusty-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13.0-1-generic (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 -u libonig-5.9.1/debian/rules libonig-5.9.1/debian/rules
--- libonig-5.9.1/debian/rules
+++ libonig-5.9.1/debian/rules
@@ -18,15 +18,7 @@
configure: debian/stamp-configure
debian/stamp-configure:
dh_testdir
-
- # update libonig's autotools files
-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
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--disable-dependency-tracking \
--without-rubydir \
@@ -56,7 +48,7 @@
rm -f debian/stamp-*
[ ! -f Makefile ] || $(MAKE) distclean
-
+ dh_autoreconf_clean
dh_clean
install: debian/stamp-install
diff -u libonig-5.9.1/debian/control libonig-5.9.1/debian/control
--- libonig-5.9.1/debian/control
+++ libonig-5.9.1/debian/control
@@ -4,7 +4,7 @@
Maintainer: Max Kellermann <[email protected]>
Uploaders: Alexander Wirt <[email protected]>
Homepage: http://www.geocities.jp/kosako3/oniguruma/
-Build-Depends: debhelper (>= 5), autotools-dev
+Build-Depends: debhelper (>= 5), dh-autoreconf
Standards-Version: 3.7.3
Package: libonig2
only in patch2:
unchanged:
--- libonig-5.9.1.orig/configure.in
+++ libonig-5.9.1/configure.in
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(onig, 5.9.1)
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_HEADER(config.h)