Bug#732289: gst-plugins-base1.0: re-enable libtoolize for better new-ports coverage
Colin Watson
cjwatson at ubuntu.com
Mon Dec 16 12:21:34 UTC 2013
Package: gst-plugins-base1.0
Version: 1.2.1-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch trusty
Hi,
The ppc64el port requires a patch to libtool.m4. I don't think that's
in Debian yet, but when it is it will require autoreconfing a bunch of
packages to pick it up. gst-plugins-base1.0 uses dh_autoreconf, but it
disables libtoolize because of its ltmain.sh patch; it could instead use
dh_autoreconf --as-needed and then it would be able to pick up other
libtool changes automatically.
* Use dh_autoreconf --as-needed rather than disabling libtoolize and
manually patching ltmain.sh, to pick up other libtool macro changes for
new ports.
diff -Nru gst-plugins-base1.0-1.2.1/debian/patches/99_ltmain_as-needed.patch gst-plugins-base1.0-1.2.1/debian/patches/99_ltmain_as-needed.patch
--- gst-plugins-base1.0-1.2.1/debian/patches/99_ltmain_as-needed.patch 2013-11-11 04:08:38.000000000 +0000
+++ gst-plugins-base1.0-1.2.1/debian/patches/99_ltmain_as-needed.patch 1970-01-01 01:00:00.000000000 +0100
@@ -1,32 +0,0 @@
-diff --git a/ltmain.sh b/ltmain.sh
-index c7d06c3..7bc27f2 100644
---- a/ltmain.sh
-+++ b/ltmain.sh
-@@ -5800,6 +5800,11 @@ func_mode_link ()
- arg=$func_stripname_result
- ;;
-
-+ -Wl,--as-needed)
-+ deplibs="$deplibs $arg"
-+ continue
-+ ;;
-+
- -Wl,*)
- func_stripname '-Wl,' '' "$arg"
- args=$func_stripname_result
-@@ -6163,6 +6168,15 @@ func_mode_link ()
- 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-plugins-base1.0-1.2.1/debian/patches/series gst-plugins-base1.0-1.2.1/debian/patches/series
--- gst-plugins-base1.0-1.2.1/debian/patches/series 2013-11-11 04:08:38.000000000 +0000
+++ gst-plugins-base1.0-1.2.1/debian/patches/series 2013-12-16 12:09:32.000000000 +0000
@@ -1,1 +0 @@
-99_ltmain_as-needed.patch
diff -Nru gst-plugins-base1.0-1.2.1/debian/rules gst-plugins-base1.0-1.2.1/debian/rules
--- gst-plugins-base1.0-1.2.1/debian/rules 2013-11-11 04:08:38.000000000 +0000
+++ gst-plugins-base1.0-1.2.1/debian/rules 2013-12-16 11:58:37.000000000 +0000
@@ -8,8 +8,8 @@
export HOME=$(CURDIR)/fake-home
-# make autoreconf not call libtoolize since we ship a patch for ltmain.sh
-export LIBTOOLIZE=true
+DEB_DH_AUTORECONF_ARGS := --as-needed
+
# make autoreconf not call autopoint since we ship a patch for po/Makefile.in.in
export AUTOPOINT=true
Thanks,
--
Colin Watson [cjwatson at ubuntu.com]
More information about the pkg-gstreamer-maintainers
mailing list