[Pkg-cli-libs-commits] r4363 - in /packages/gnome-desktop-sharp2/trunk/debian: changelog ltmain-add-as-needed.patch ltmain-as-needed.sh rules

raof-guest at users.alioth.debian.org raof-guest at users.alioth.debian.org
Thu Jan 7 10:48:07 UTC 2010


Author: raof-guest
Date: Thu Jan  7 10:48:03 2010
New Revision: 4363

URL: http://svn.debian.org/wsvn/pkg-cli-libs/?sc=1&rev=4363
Log:
Perform the ltmain.sh --as-needed dance for gnome-desktop-sharp2, too

Added:
    packages/gnome-desktop-sharp2/trunk/debian/ltmain-add-as-needed.patch
Removed:
    packages/gnome-desktop-sharp2/trunk/debian/ltmain-as-needed.sh
Modified:
    packages/gnome-desktop-sharp2/trunk/debian/changelog
    packages/gnome-desktop-sharp2/trunk/debian/rules

Modified: packages/gnome-desktop-sharp2/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/gnome-desktop-sharp2/trunk/debian/changelog?rev=4363&op=diff
==============================================================================
--- packages/gnome-desktop-sharp2/trunk/debian/changelog (original)
+++ packages/gnome-desktop-sharp2/trunk/debian/changelog Thu Jan  7 10:48:03 2010
@@ -1,5 +1,6 @@
 gnome-desktop-sharp2 (2.26.0-2) UNRELEASED; urgency=low
 
+  [ Jo Shields ]
   * debian/lib*.install,
     debian/control:
     + Add new unversioned and API-versioned -dev packages containing pkg-config 
@@ -19,7 +20,15 @@
     + Explicitly add Depends: for -dev packages to pull in their pcfile's 
       Requires: lines (Closes: #521118)
 
- -- Jo Shields <directhex at apebox.org>  Fri, 27 Nov 2009 15:44:52 +0000
+  [ Christopher James Halse Rogers ]
+  * debian/ltmain-add-as-needed.patch
+    + Add --as-needed magic to ltmain.sh
+  * debian/rules:
+    + Apply ltmain-add-as-needed.patch after running autoreconf.  This should
+      be more robust than copying a patched ltmain.sh from debian/ as ltmain.sh
+      is required to be versioned in lock-step with the rest of libtool.      
+
+ -- Christopher James Halse Rogers <raof at ubuntu.com>  Thu, 07 Jan 2010 20:00:02 +1100
 
 gnome-desktop-sharp2 (2.26.0-1) unstable; urgency=low
 

Added: packages/gnome-desktop-sharp2/trunk/debian/ltmain-add-as-needed.patch
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/gnome-desktop-sharp2/trunk/debian/ltmain-add-as-needed.patch?rev=4363&op=file
==============================================================================
--- packages/gnome-desktop-sharp2/trunk/debian/ltmain-add-as-needed.patch (added)
+++ packages/gnome-desktop-sharp2/trunk/debian/ltmain-add-as-needed.patch Thu Jan  7 10:48:03 2010
@@ -1,0 +1,40 @@
+Description: Patch to add --as-needed magic to ltmain.sh
+ This patch needs to be applied after autoreconf is run, and autoreconf should
+ be copying files, not symlinking (ie: the '-s' option should not be given) so
+ that system-wide files aren't accidentally patched.
+ .
+ This should be more robust than copying a pre-patched version of ltmain.sh
+ from debian/ on build, as ltmain.sh needs to be exactly the same version as 
+ the rest of libtool.
+Author: Christopher James Halse Rogers <raof at ubuntu.com>
+
+--- libtool-2.2.6b/libltdl/config/ltmain.sh	2010-01-04 05:33:00.810981679 +0000
++++ libtool-as-needed/libltdl/config/ltmain.sh	2010-01-04 00:18:29.715388881 +0000
+@@ -4716,6 +4716,11 @@
+ 	arg=$func_stripname_result
+ 	;;
+ 
++      -Wl,--as-needed)
++	deplibs="$deplibs $arg"
++	continue
++	;;
++
+       -Wl,*)
+ 	func_stripname '-Wl,' '' "$arg"
+ 	args=$func_stripname_result
+@@ -5070,6 +5075,15 @@
+ 	lib=
+ 	found=no
+ 	case $deplib in
++	-Wl,--as-needed)
++	  if test "$linkmode,$pass" = "prog,link"; then
++	    compile_deplibs="$deplib $compile_deplibs"
++	    finalize_deplibs="$deplib $finalize_deplibs"
++	  else
++	    deplibs="$deplib $deplibs"
++	  fi
++	  continue
++	  ;;
+ 	-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ 	  if test "$linkmode,$pass" = "prog,link"; then
+ 	    compile_deplibs="$deplib $compile_deplibs"

Modified: packages/gnome-desktop-sharp2/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/gnome-desktop-sharp2/trunk/debian/rules?rev=4363&op=diff
==============================================================================
--- packages/gnome-desktop-sharp2/trunk/debian/rules (original)
+++ packages/gnome-desktop-sharp2/trunk/debian/rules Thu Jan  7 10:48:03 2010
@@ -23,8 +23,8 @@
 
 autoreconf: autoreconf-stamp
 autoreconf-stamp: patch-stamp
-	autoreconf -f -i -s
-	install --mode=755 $(CURDIR)/debian/ltmain-as-needed.sh $(CURDIR)/ltmain.sh
+	autoreconf -f -i
+	patch -p3 < debian/ltmain-add-as-needed.patch
 	touch $@
 
 config: config-stamp




More information about the Pkg-cli-libs-commits mailing list