Package: src:upower
Version: 0.99.0-3
Severity: normal
Tags: patch

Dear Maintainer,

I got a failure while building the package on ppc64el architecture.
Since this package uses libtool, a full autoreconf seems necessary. This is because it needs new libtool macros for ppc64el.

The attached patch was applied to achieve the following:
  * Build using dh-autoreconf.
* Patch configure.ac because side-by-side use of IT_PROG_INTLTOOL and AM_GNU_GETTEXT is not supported.

Thanks for considering the patch.

Thanks in advance,
Erwan.


-- 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-08-04 17:23:04.346734439 +0200
+++ b/debian/control	2014-08-05 10:29:32.479461085 +0200
@@ -21,6 +21,7 @@
  libimobiledevice-dev (>= 0.9.7) [linux-any],
  libgirepository1.0-dev (>= 0.10.7-1~),
  gobject-introspection (>= 0.9.12-4~),
+ dh-autoreconf
 Standards-Version: 3.9.5
 Vcs-Git: git://git.debian.org/git/pkg-utopia/upower.git
 Vcs-Browser: http://git.debian.org/?p=pkg-utopia/upower.git;a=summary
diff -Naur a/debian/patches/configure.patch b/debian/patches/configure.patch
--- a/debian/patches/configure.patch	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/patches/configure.patch	2014-08-06 09:06:20.747134308 +0200
@@ -0,0 +1,12 @@
+--- a/configure.ac	2014-08-04 17:23:03.682734474 +0200
++++ b/configure.ac	2014-08-05 12:32:56.283067579 +0200
+@@ -234,9 +234,6 @@
+ # i18n support
+ IT_PROG_INTLTOOL([0.40.0])
+ 
+-AM_GNU_GETTEXT_VERSION([0.17])
+-AM_GNU_GETTEXT([external])
+-
+ AC_SUBST([GETTEXT_PACKAGE],[${PACKAGE_TARNAME}])
+ AC_DEFINE([GETTEXT_PACKAGE],[PACKAGE_TARNAME],[Define to the gettext package name])
+ 
diff -Naur a/debian/patches/series b/debian/patches/series
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/patches/series	2014-08-06 09:07:53.931129355 +0200
@@ -0,0 +1 @@
+configure.patch
diff -Naur a/debian/rules b/debian/rules
--- a/debian/rules	2014-08-04 17:23:04.358734438 +0200
+++ b/debian/rules	2014-08-05 17:27:09.714129315 +0200
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@ --with gir
+	dh $@ --with gir --with autoreconf
 
 override_dh_auto_configure:
 	dh_auto_configure -- \
@@ -29,3 +29,11 @@
 
 override_dh_makeshlibs:
 	dh_makeshlibs -- -c4
+
+override_dh_auto_clean:
+	rm -f libupower-glib/up-client-glue.c \
+		libupower-glib/up-client-glue.h \
+		libupower-glib/up-device-glue.c \
+		libupower-glib/up-device-glue.h \
+		libupower-glib/up-wakeups-glue.c \
+		libupower-glib/up-wakeups-glue.h

Reply via email to