tags 684443 + patch
tags 684443 + pending
thanks

Dear maintainer,

I've prepared an NMU for rep-gtk (versioned as 1:0.90.0-2.2) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Regards,

-- 
Colin Watson                                       [cjwat...@debian.org]
diff -Nru rep-gtk-0.90.0/debian/changelog rep-gtk-0.90.0/debian/changelog
--- rep-gtk-0.90.0/debian/changelog	2012-06-22 10:51:17.000000000 +0100
+++ rep-gtk-0.90.0/debian/changelog	2013-01-07 10:10:22.000000000 +0000
@@ -1,3 +1,10 @@
+rep-gtk (1:0.90.0-2.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Restore .la files, but with dependency_libs emptied (closes: #684443).
+
+ -- Colin Watson <cjwat...@debian.org>  Mon, 07 Jan 2013 10:10:19 +0000
+
 rep-gtk (1:0.90.0-2.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru rep-gtk-0.90.0/debian/rules rep-gtk-0.90.0/debian/rules
--- rep-gtk-0.90.0/debian/rules	2012-06-22 10:58:51.000000000 +0100
+++ rep-gtk-0.90.0/debian/rules	2013-01-07 10:09:29.000000000 +0000
@@ -55,7 +55,18 @@
 	dh_installdirs
 
 	$(MAKE) install DESTDIR=`pwd`/debian/tmp
-	find debian/tmp/usr/lib -name '*.la' -delete
+
+	#Fix libdir in *.la files
+	find debian/tmp -name '*.la' |\
+	 while read file; do\
+	  DIRNAME=$$(dirname $$file | sed 's@debian/tmp@@');\
+	  sed -i "/libdir/ s@^.*@libdir=$$DIRNAME@" $$file;\
+	 done
+	#... and remove dependency_libs
+	find debian/tmp -name '*.la' |\
+	 while read file; do\
+	  sed -i "/dependency_libs/ s/'.*'/''/" $$file;\
+	 done
 
 	dh_install --list-missing
 	touch install-stamp

Reply via email to