[SCM] libav/experimental: Fix internal shlibs

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sat Jan 19 08:06:43 UTC 2013


The following commit has been merged in the experimental branch:
commit a68ba220a3638591cc00b1c2b98e62edf54cd26e
Author: Reinhard Tartler <siretart at tauware.de>
Date:   Sat Jan 19 09:06:35 2013 +0100

    Fix internal shlibs
    
    The -extra- producing package need an shlibs file that points to their
    non-extra counterparts. This by construction avoids that the internal
    dependencies depend on the -extra- variants only.

diff --git a/debian/rules b/debian/rules
index 6a9e2e3..9607129 100755
--- a/debian/rules
+++ b/debian/rules
@@ -226,9 +226,16 @@ endif
 	dh_compress
 	dh_fixperms
 
-	for pkg in $(LIB_PKGS) $(LIB_EXTRA_PKGS); do \
+	# operate on non -extra package producing packages
+	for pkg in $(LIB_PKGS); do \
 	    dh_makeshlibs -p"$$pkg" -V"$$pkg (>= $(SHLIBS_VERSION))"; \
 	done
+	# operate e.g. the -extra- packages, produce shlibs on their counterparts
+	for pkg in $(LIB_EXTRA_PKGS); do \
+	    npkg=$$(echo "$$pkg" | sed -r 's/-extra-//'); \
+	    dh_makeshlibs -p"$$pkg" -V"$$npkg (>= $(SHLIBS_VERSION))"; \
+	done
+	# operate on libavcodec54 - these produce shlibs that have alternative dependencies
 	for pkg in $(LIB_PKGS2); do \
 	    upkg=$$(echo "$$pkg" | sed -r 's/([0-9]+)$$/-extra-\1/'); \
 	    dh_makeshlibs -p"$$pkg" -V"$$pkg (>= $(SHLIBS_VERSION)) | $$upkg (>= $(EPOCH)$(UPSTREAM_VERSION))"; \

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list