Package: crafty Version: 23.4-5 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu oneiric ubuntu-patch
In Ubuntu, the attached patch was applied to achieve the following: * Update 01-Makefile.dpatch to reorder libs so that linking succeeds. Fixes FTBFS. (LP: #771009) Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers oneiric-updates APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric-proposed'), (500, 'oneiric') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-11-generic (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru crafty-23.4/debian/patches/01-Makefile.dpatch crafty-23.4/debian/patches/01-Makefile.dpatch --- crafty-23.4/debian/patches/01-Makefile.dpatch 2011-01-11 16:56:40.000000000 -0500 +++ crafty-23.4/debian/patches/01-Makefile.dpatch 2011-09-13 00:22:22.000000000 -0400 @@ -8,8 +8,10 @@ ## DP: Disabled profiling -pg switch for the linux target @DPATCH@ ---- a/Makefile -+++ b/Makefile +Index: crafty-23.4/Makefile +=================================================================== +--- crafty-23.4.orig/Makefile 2011-09-13 00:21:18.000000000 -0400 ++++ crafty-23.4/Makefile 2011-09-13 00:22:18.000000000 -0400 @@ -38,6 +38,38 @@ # -DTRACE N This enables the "trace" command so that the search tree # can be dumped while running. @@ -75,3 +77,12 @@ linux-profile: $(MAKE) target=LINUX \ CC=gcc CXX=g++ \ +@@ -335,7 +375,7 @@ + crafty.o: *.c *.h + + crafty: $(objects) egtb.o +- $(CC) $(LDFLAGS) -o crafty $(objects) egtb.o -lm $(LIBS) ++ $(CC) -o crafty $(objects) $(LDFLAGS) egtb.o -lm $(LIBS) + + egtb.o: egtb.cpp + $(CXX) -c $(CXFLAGS) $(opts) egtb.cpp