Package: reglookup
Version: 0.12.0-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch
User: debian-...@lists.debian.org
Usertags: ld-as-needed

see http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

failed build
https://launchpad.net/ubuntu/+archive/test-rebuild-20110816/+build/2710392

diff -u reglookup-0.12.0/debian/changelog reglookup-0.12.0/debian/changelog
--- reglookup-0.12.0/debian/changelog
+++ reglookup-0.12.0/debian/changelog
@@ -1,3 +1,15 @@
+reglookup (0.12.0-1ubuntu2) oneiric; urgency=low
+
+  * Don't pass a library in OPT in debian/rules. LP: #771023.
+
+ -- Matthias Klose <d...@ubuntu.com>  Wed, 14 Sep 2011 12:54:49 +0200
+
+reglookup (0.12.0-1ubuntu1) oneiric; urgency=low
+
+  * Fix FTBFS with ld --as-needed. LP: #771023.
+
+ -- Matthias Klose <d...@ubuntu.com>  Tue, 13 Sep 2011 23:19:29 +0200
+
 reglookup (0.12.0-1) unstable; urgency=low
 
   [ Daniel Baumann ]
diff -u reglookup-0.12.0/debian/rules reglookup-0.12.0/debian/rules
--- reglookup-0.12.0/debian/rules
+++ reglookup-0.12.0/debian/rules
@@ -4,7 +4,7 @@
        dh ${@}
 
 override_dh_auto_build:
-       dh_auto_build -- OPTS="-std=gnu89 -pedantic -lm -Wall -ggdb" 
INC="-I../include" LIB="-L/usr/lib"
+       dh_auto_build -- OPTS="-std=gnu89 -pedantic -Wall -ggdb" 
INC="-I../include" LIB="-L/usr/lib -lm"
 
 override_dh_auto_install:
        dh_auto_install -- PREFIX=$(CURDIR)/debian/reglookup/usr 
MAN_PREFIX=\$${PREFIX}/share/man
only in patch2:
unchanged:
--- reglookup-0.12.0.orig/src/Makefile
+++ reglookup-0.12.0/src/Makefile
@@ -10,10 +10,10 @@
 all: $(FILES)
 
 $(REGLOOKUP): reglookup.o $(OBJ)
-       $(CC) $(CFLAGS) $(OPTS) $(LIB) -o $@ reglookup.o $(OBJ) $(EXTRA_OBJ)
+       $(CC) $(CFLAGS) $(OPTS) -o $@ reglookup.o $(OBJ) $(EXTRA_OBJ) $(LIB)
 
 $(REGLOOKUP_RECOVER): reglookup-recover.o $(OBJ)
-       $(CC) $(CFLAGS) $(OPTS) $(LIB) -o $@ reglookup-recover.o $(OBJ) 
$(EXTRA_OBJ)
+       $(CC) $(CFLAGS) $(OPTS) -o $@ reglookup-recover.o $(OBJ) $(EXTRA_OBJ) 
$(LIB)
 
 reglookup.o: reglookup.c
        $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ reglookup.c
_______________________________________________
forensics-devel mailing list
forensics-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/forensics-devel

Reply via email to