Package: gst-libav1.0
Version: 1.2.2-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu trusty ubuntu-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:

  * Actually use dh-autoreconf to get new libtool macros for ppc64el.
  * Drop 99_ltmain_as-needed.patch (use --as-needed in d/rules instead).
  * Drop LIBTOOLIZE boolean in debian/rules, as we now want to do it with
    dh-autoreconf.

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-3-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 -Nru gst-libav1.0-1.2.2/debian/patches/99_ltmain_as-needed.patch gst-libav1.0-1.2.2/debian/patches/99_ltmain_as-needed.patch
--- gst-libav1.0-1.2.2/debian/patches/99_ltmain_as-needed.patch	2013-09-24 11:04:04.000000000 -0400
+++ gst-libav1.0-1.2.2/debian/patches/99_ltmain_as-needed.patch	1969-12-31 19:00:00.000000000 -0500
@@ -1,32 +0,0 @@
-Index: gst-libav1.0/ltmain.sh
-===================================================================
---- gst-libav1.0.orig/ltmain.sh	2012-08-09 11:59:48.322044780 +0200
-+++ gst-libav1.0/ltmain.sh	2012-12-18 11:40:28.530169305 +0100
-@@ -5800,6 +5800,11 @@
- 	arg=$func_stripname_result
- 	;;
- 
-+      -Wl,--as-needed)
-+	deplibs="$deplibs $arg"
-+	continue
-+	;;
-+
-       -Wl,*)
- 	func_stripname '-Wl,' '' "$arg"
- 	args=$func_stripname_result
-@@ -6163,6 +6168,15 @@
- 	lib=
- 	found=no
- 	case $deplib in
-+	-Wl,--as-needed)
-+	  if test "$linkmode,$pass" = "prog,link"; then
-+	    compile_deplibs="$deplib $compile_deplibs"
-+	    finalize_deplibs="$deplib $finalize_deplibs"
-+	  else
-+	    deplibs="$deplib $deplibs"
-+	  fi
-+	  continue
-+	  ;;
- 	-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
-         |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
- 	  if test "$linkmode,$pass" = "prog,link"; then
diff -Nru gst-libav1.0-1.2.2/debian/patches/series gst-libav1.0-1.2.2/debian/patches/series
--- gst-libav1.0-1.2.2/debian/patches/series	2013-09-24 11:04:10.000000000 -0400
+++ gst-libav1.0-1.2.2/debian/patches/series	2014-01-14 23:53:09.000000000 -0500
@@ -1,2 +1 @@
 02_plugin-dependencies.patch
-99_ltmain_as-needed.patch
diff -Nru gst-libav1.0-1.2.2/debian/rules gst-libav1.0-1.2.2/debian/rules
--- gst-libav1.0-1.2.2/debian/rules	2013-09-24 11:03:59.000000000 -0400
+++ gst-libav1.0-1.2.2/debian/rules	2014-01-14 23:53:00.000000000 -0500
@@ -5,9 +5,10 @@
 include /usr/share/cdbs/1/rules/utils.mk
 include /usr/share/cdbs/1/rules/autoreconf.mk
 
-export LIBTOOLIZE=true
 export AUTOPOINT=true
 
+DEB_DH_AUTORECONF_ARGS=--as-needed
+
 export DEB_BUILD_MAINT_OPTIONS=hardening=-all
 include /usr/share/dpkg/buildflags.mk
 

Reply via email to