Package: src:alsa-oss
Version: 1.0.28-1
Tags: patch
Usertags: origin-ubuntu ubuntu-patch utopic

The package fails to build on ppc64el with autotools_dev. Switching to autoreconf fixes that problem. Here is buildlog:

make[1]: Leaving directory '/build/buildd/alsa-oss-1.0.28'
   debian/rules override_dh_install
make[1]: Entering directory '/build/buildd/alsa-oss-1.0.28'
find debian/tmp -name '*.la' -delete
find debian/tmp -name '*.a' -delete
dh_install --fail-missing
dh_install: alsa-oss missing files (usr/lib/*/*.so), aborting
debian/rules:11: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 255
make[1]: Leaving directory '/build/buildd/alsa-oss-1.0.28'
debian/rules:3: recipe for target 'binary-arch' failed
make: *** [binary-arch] Error 2
dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary-arch gave error exit status 2
******************************************************************************
Build finished at 20140815-0318
FAILED [dpkg-buildpackage died]

In Ubuntu, we've applied the attached patch to achieve the following:

    * debian/control, debian/rules:
      - Switch to dh-autoreconf to update libtool macros for ppc64el.

Because this is an automake-using package, dh-autoreconf can be viewed
as a superset of dh-autotools-dev, in that it still updates config.*
but also updates libtool and configure.  Please apply this patch, to
make life easier for new ports.

We thought you might be interested in doing the same.


diff -pruN -x '*~' alsa-oss-1.0.28.orig/debian/control alsa-oss-1.0.28/debian/control
--- alsa-oss-1.0.28.orig/debian/control	2014-07-18 21:14:27.000000000 +0200
+++ alsa-oss-1.0.28/debian/control	2014-08-15 23:10:10.634057577 +0200
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian ALSA Maintainers <pkg-alsa-de...@lists.alioth.debian.org>
 Uploaders: Jordi Mallach <jo...@debian.org>,
            Elimar Riesebieter <riese...@lxtec.de>
-Build-Depends: autotools-dev, debhelper (>= 9), libasound2-dev (>= 1.0.15)
+Build-Depends: autotools-dev, debhelper (>= 9), libasound2-dev (>= 1.0.15), dh-autoreconf
 Standards-Version: 3.9.5
 Homepage: http://www.alsa-project.org/
 Vcs-Svn: svn://anonscm.debian.org/pkg-alsa/trunk/alsa-oss
diff -pruN -x '*~' alsa-oss-1.0.28.orig/debian/rules alsa-oss-1.0.28/debian/rules
--- alsa-oss-1.0.28.orig/debian/rules	2013-10-25 15:17:34.000000000 +0200
+++ alsa-oss-1.0.28/debian/rules	2014-08-15 09:34:07.516146939 +0200
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 %:
-	dh $@ --with autotools_dev
+	dh $@ --with autoreconf
 
 # Install in debian/tmp to retain control through dh_install:
 override_dh_auto_install:

Reply via email to