shithub: sox

Download patch

ref: 3fc06b82fbb35653411a9899f1da2177a7f20326
parent: 1ce580619583ce14c28b91933840b91eb2a00988
author: evilynux <evilynux>
date: Sun Sep 9 12:43:02 EDT 2007

Fixed all lintian binary-or-shlib-defines-rpath warnings using chrpath.

--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,8 @@
     - No longer conflicting with libst and libst-dev.
     - Splitted format libraries in different packages (libsox-fmt-foo).
     - Added !hurd-i386 to dependency on libasound-dev (closes: #440470).
+    - Replaced ${Source-Version} with ${binary:Version}.
+    - Added Build-Dep on chrpath.
   * [debian/libsox-dev.dirs]:
     - Added /usr/lib/sox/ for format plugins.
   * [debian/libsox0.install, debian/libsox-dev.install]:
@@ -29,8 +31,9 @@
     - Removed fPIC from CFLAGS as libtool takes care of it upstream.
     - Removed LDFLAGS -Wl,-z,defs as upstream is now doing it.
     - Added DEB_DH_MAKESHLIBS_ARGS -Xfmt to avoid useless calls to ldconfig.
+    - Fixed all lintian binary-or-shlib-defines-rpath warnings using chrpath.
 	
- -- Pascal Giard <evilynux@gmail.com>  Fri, 06 Jul 2007 02:57:39 -0400
+ -- Pascal Giard <evilynux@gmail.com>  Sun, 09 Sep 2007 11:22:32 -0400
 
 sox (13.0.0-1) unstable; urgency=low
 
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Pascal Giard <pascal@debian.org>
 Uploaders: Guenter Geiger (Debian/GNU) <geiger@debian.org>
-Build-Depends: debhelper (>= 1.2.64), cdbs, libltdl3-dev, libvorbis-dev, libmad0-dev, libgsm1-dev, libsndfile1-dev (>= 1.0.12), libsamplerate0-dev, libavcodec-dev (>= 0.cvs20070301), libao-dev, ladspa-sdk, libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386]
+Build-Depends: debhelper (>= 1.2.64), cdbs, libltdl3-dev, libvorbis-dev, libmad0-dev, libgsm1-dev, libsndfile1-dev (>= 1.0.12), libsamplerate0-dev, libavcodec-dev (>= 0.cvs20070301), libao-dev, ladspa-sdk, libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], chrpath
 Standards-Version: 3.7.2
 
 Package: sox
@@ -24,7 +24,7 @@
 Package: libsox0
 Architecture: any
 Section: sound
-Depends: ${shlibs:Depends}, libsox-fmt-base (=${Source-Version})
+Depends: ${shlibs:Depends}, libsox-fmt-base (=${binary:Version})
 Recommends: libsox-fmt-all, libsox-fmt-alsa | libsox-fmt-ao | libsox-fmt-oss
 Description: SoX library
  SoX is the swiss army knife of sound processing.
@@ -166,7 +166,7 @@
 Package: libsox-dev
 Architecture: any
 Section: devel
-Depends: libsox0 (=${Source-Version}), libsox-fmt-base (=${Source-Version}), ${shlibs:Depends}
+Depends: libsox0 (=${binary:Version}), libsox-fmt-base (=${binary:Version}), ${shlibs:Depends}
 Description: Development files for the SoX library
  SoX is the swiss army knife of sound processing.
  .
--- a/debian/rules
+++ b/debian/rules
@@ -12,3 +12,12 @@
 DEB_CONFIGURE_EXTRA_FLAGS := --disable-lame
 # Takes care of postinst-has-useless-call-to-ldconfig for libsox-fmt-*
 DEB_DH_MAKESHLIBS_ARGS := -Xfmt
+
+binary-post-install/sox::
+	chrpath -d debian/sox/usr/bin/sox
+
+binary-post-install/libsox0::
+	chrpath -d debian/libsox0/usr/lib/lib*.so.*
+
+binary-post-install/libsox-fmt-all::
+	chrpath -d debian/libsox-fmt-*/usr/lib/sox/libsox_fmt_*.so.*