[pulseaudio] 05/06: shlibs.local: only the major and minor version elements are used for the internal library SONAMEs

Felipe Sateler fsateler at moszumanska.debian.org
Thu Jan 5 12:35:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

fsateler pushed a commit to branch debian/experimental
in repository pulseaudio.

commit 51cb205bd9740ef2ab4bd10503878d677471dc78
Author: Felipe Sateler <fsateler at debian.org>
Date:   Wed Jan 4 12:16:37 2017 -0300

    shlibs.local: only the major and minor version elements are used for the internal library SONAMEs
---
 debian/rules           | 4 +++-
 debian/shlibs.local.in | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index e8d24b0..11ee1b1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,6 +25,8 @@ DEB_CONFIGURE_EXTRA_FLAGS = --enable-x11 --disable-hal-compat \
   --disable-bluez4
 
 
+PA_MAJORMINOR = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -r -e 's/^([0-9]+\.[0-9]+).*/\1/')
+
 ifeq ($(words $(sort $(filter stage1,$(DEB_BUILD_PROFILES)))),1)
   DEB_CONFIGURE_EXTRA_FLAGS += --disable-bluez5
 endif
@@ -49,7 +51,7 @@ ifeq ($(DEB_HOST_ARCH_OS),linux)
 endif
 
 override_dh_makeshlibs:
-	sed 's/DEB_VERSION_UPSTREAM/$(DEB_VERSION_UPSTREAM)/' debian/shlibs.local.in > debian/shlibs.local
+	sed 's/PA_MAJORMINOR/$(PA_MAJORMINOR)/' debian/shlibs.local.in > debian/shlibs.local
 	dh_makeshlibs --exclude=usr/lib/pulse-$(DEB_VERSION_UPSTREAM)/modules \
 		--exclude=usr/lib/$(DEB_HOST_MULTIARCH)/pulseaudio
 
diff --git a/debian/shlibs.local.in b/debian/shlibs.local.in
index 144cd58..27d7ef6 100644
--- a/debian/shlibs.local.in
+++ b/debian/shlibs.local.in
@@ -1,2 +1,2 @@
-libpulsecommon DEB_VERSION_UPSTREAM libpulse0 (= ${binary:Version})
-libpulsecore DEB_VERSION_UPSTREAM pulseaudio (= ${binary:Version})
+libpulsecommon PA_MAJORMINOR libpulse0 (= ${binary:Version})
+libpulsecore PA_MAJORMINOR pulseaudio (= ${binary:Version})

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-pulseaudio/pulseaudio.git



More information about the pkg-pulseaudio-devel mailing list