Package: scotch Version: 5.1.11.dfsg-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu natty ubuntu-patch User: debian-...@lists.debian.org Usertags: ld-as-needed
object files should appear before libraries when linking
diff -Nru scotch-5.1.11.dfsg/debian/changelog scotch-5.1.11.dfsg/debian/changelog --- scotch-5.1.11.dfsg/debian/changelog 2010-12-29 18:07:19.000000000 +0000 +++ scotch-5.1.11.dfsg/debian/changelog 2010-12-30 20:13:05.000000000 +0000 @@ -1,3 +1,9 @@ +scotch (5.1.11.dfsg-1ubuntu1) natty; urgency=low + + * Fix FTBFS with ld --as-needed. + + -- Matthias Klose <d...@ubuntu.com> Thu, 30 Dec 2010 21:12:48 +0100 + scotch (5.1.11.dfsg-1) unstable; urgency=low [Christophe Trophime] diff -Nru scotch-5.1.11.dfsg/debian/patches/ld-as-needed.diff scotch-5.1.11.dfsg/debian/patches/ld-as-needed.diff --- scotch-5.1.11.dfsg/debian/patches/ld-as-needed.diff 1970-01-01 00:00:00.000000000 +0000 +++ scotch-5.1.11.dfsg/debian/patches/ld-as-needed.diff 2010-12-30 20:49:44.000000000 +0000 @@ -0,0 +1,73 @@ +Description: Upstream changes introduced in version 5.1.11.dfsg-1ubuntu1 + This patch has been created by dpkg-source during the package build. + Here's the last changelog entry, hopefully it gives details on why + those changes were made: + . + scotch (5.1.11.dfsg-1ubuntu1) natty; urgency=low + . + * Fix FTBFS with ld --as-needed. + . + The person named in the Author field signed this changelog entry. +Author: Matthias Klose <d...@ubuntu.com> + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: <vendor|upstream|other>, <url of original patch> +Bug: <url in upstream bugtracker> +Bug-Debian: http://bugs.debian.org/<bugnumber> +Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> +Forwarded: <no|not-needed|url proving that it has been forwarded> +Reviewed-By: <name and email of someone who approved the patch> +Last-Update: <YYYY-MM-DD> + +Index: scotch-5.1.11.dfsg/src/libscotch/Makefile +=================================================================== +--- scotch-5.1.11.dfsg.orig/src/libscotch/Makefile 2010-12-30 20:13:24.418229590 +0000 ++++ scotch-5.1.11.dfsg/src/libscotch/Makefile 2010-12-30 20:49:31.108228585 +0000 +@@ -2528,37 +2528,37 @@ + ./dummysizes$(EXE) libraryf.h scotchf.h + + libptscotch$(LIB) : $(LIBPTSCOTCHDEPS) $(LIBSCOTCHDEPS) +- $(CC) -shared -Wl,-soname,libptscotch-5.1.so -L. -lptscotcherr -lscotch -lz -lpthread -lm -lrt -o libptscotch-5.1.so $^ ++ $(CC) -shared -Wl,-soname,libptscotch-5.1.so $^ -L. -lptscotcherr -lscotch -lz -lpthread -lm -lrt -o libptscotch-5.1.so + ln -s libptscotch-5.1.so libptscotch.so + $(AR) $(ARFLAGS) $(@) $(?) + -$(RANLIB) $(@) + + libscotch$(LIB) : $(LIBSCOTCHDEPS) +- $(CC) -shared -Wl,-soname,libscotch-5.1.so -L. -lscotcherr -lz -lpthread -lm -lrt -o libscotch-5.1.so $^ ++ $(CC) -shared -Wl,-soname,libscotch-5.1.so $^ -L. -lscotcherr -lz -lpthread -lm -lrt -o libscotch-5.1.so + ln -s libscotch-5.1.so libscotch.so + $(AR) $(ARFLAGS) $(@) $(?) + -$(RANLIB) $(@) + + libptscotcherr$(LIB) : library_error$(OBJ) +- $(CC) -shared -Wl,-soname,libptscotcherr-5.1.so -o libptscotcherr-5.1.so $^ ++ $(CC) -shared -Wl,-soname,libptscotcherr-5.1.so $^ -o libptscotcherr-5.1.so + ln -s libptscotcherr-5.1.so libptscotcherr.so + $(AR) $(ARFLAGS) $(@) $(?) + -$(RANLIB) $(@) + + libptscotcherrexit$(LIB) : library_error_exit$(OBJ) +- $(CC) -shared -Wl,-soname,libptscotcherrexit-5.1.so -o libptscotcherrexit-5.1.so $^ ++ $(CC) -shared -Wl,-soname,libptscotcherrexit-5.1.so $^ -o libptscotcherrexit-5.1.so + ln -s libptscotcherrexit-5.1.so libptscotcherrexit.so + $(AR) $(ARFLAGS) $(@) $(?) + -$(RANLIB) $(@) + + libscotcherr$(LIB) : library_error$(OBJ) +- $(CC) -shared -Wl,-soname,libscotcherr-5.1.so -o libscotcherr-5.1.so $^ ++ $(CC) -shared -Wl,-soname,libscotcherr-5.1.so $^ -o libscotcherr-5.1.so + ln -s libscotcherr-5.1.so libscotcherr.so + $(AR) $(ARFLAGS) $(@) $(?) + -$(RANLIB) $(@) + + libscotcherrexit$(LIB) : library_error_exit$(OBJ) +- $(CC) -shared -Wl,-soname,libscotcherrexit-5.1.so -o libscotcherrexit-5.1.so $^ ++ $(CC) -shared -Wl,-soname,libscotcherrexit-5.1.so $^ -o libscotcherrexit-5.1.so + ln -s libscotcherrexit-5.1.so libscotcherrexit.so + $(AR) $(ARFLAGS) $(@) $(?) + -$(RANLIB) $(@) diff -Nru scotch-5.1.11.dfsg/debian/patches/series scotch-5.1.11.dfsg/debian/patches/series --- scotch-5.1.11.dfsg/debian/patches/series 2010-12-29 17:40:28.000000000 +0000 +++ scotch-5.1.11.dfsg/debian/patches/series 2010-12-30 20:24:42.000000000 +0000 @@ -3,3 +3,4 @@ ptscotch.patch esmumps-fix.patch #scotch-include-mpi.patch +ld-as-needed.diff