rev 20140 - kde-extras/kwave/trunk/debian

Pino Toscano pino at moszumanska.debian.org
Sat Dec 12 22:37:27 UTC 2015


Author: pino
Date: 2015-12-12 22:37:27 +0000 (Sat, 12 Dec 2015)
New Revision: 20140

Modified:
   kde-extras/kwave/trunk/debian/changelog
   kde-extras/kwave/trunk/debian/rules
Log:
fix the stripping of plugins

create temporary .so links to plugins (whose filenames have no
extensions), so dh_strip is able to strip them


Modified: kde-extras/kwave/trunk/debian/changelog
===================================================================
--- kde-extras/kwave/trunk/debian/changelog	2015-12-12 19:08:43 UTC (rev 20139)
+++ kde-extras/kwave/trunk/debian/changelog	2015-12-12 22:37:27 UTC (rev 20140)
@@ -14,6 +14,8 @@
     patch upstream_fix-for-cmake-issues-with-l10n-fix-for-policy-CMP005.patch.
   * Remove unused build dependencies: imagemagick, recode, libgsl0-dev, and
     libicu-dev.
+  * Fix the stripping of plugins: create temporary .so links to plugins (whose
+    filenames have no extensions), so dh_strip is able to strip them.
 
  -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Sat, 12 Dec 2015 19:17:52 +0100
 

Modified: kde-extras/kwave/trunk/debian/rules
===================================================================
--- kde-extras/kwave/trunk/debian/rules	2015-12-12 19:08:43 UTC (rev 20139)
+++ kde-extras/kwave/trunk/debian/rules	2015-12-12 22:37:27 UTC (rev 20140)
@@ -13,8 +13,16 @@
 	dh_auto_configure -- $(DEB_CMAKE_CUSTOM_FLAGS)
 
 override_dh_strip:
+	# since the kwave plugins have no .so extension, dh_strip does not
+	# find them (leaving them unstripped); since we want to both strip
+	# them and place their debug symbols in the -dbg package, do a small
+	# hack:
+	# 1) link each plugin to a new a .so name
+	find debian/kwave/usr/lib/kde4/plugins/kwave/ -type f -execdir ln '{}' '{}.so' \;
+	# 2) invoke dh_strip normally (which will do the job)
 	dh_strip --dbg-package=kwave-dbg
-	strip --strip-unneeded --remove-section=.comment debian/kwave/usr/lib/kde4/plugins/kwave/*
+	# 3) remove the .so links
+	find debian/kwave/usr/lib/kde4/plugins/kwave/ -type f -name '*.so' -delete
 
 override_dh_auto_install:
 	dh_auto_install --destdir=debian/kwave




More information about the pkg-kde-commits mailing list