Package: stereograph
Version: 0.30a-6
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch
*** /tmp/tmpbOzU85
In Ubuntu, the attached patch was applied to fix a FTBFS:
* Changed library references, changed and updated parameters
to linker to solve FTBFS (LP: #755934):
- Makefile: replaced hardcoded libraries with library
parameters for libpng and libz.
- Makefile.in: added target to build stereograph executable
putting the library references after the objects that
needs them, to build with ld --no-as-needed.
- debian/control: updated build depends for libpng.
Thanks for considering the patch.
-- System Information:
Debian Release: squeeze/sid
APT prefers natty-updates
APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500,
'natty-proposed'), (500, 'natty')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-10-generic (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u stereograph-0.30a/debian/control stereograph-0.30a/debian/control
--- stereograph-0.30a/debian/control
+++ stereograph-0.30a/debian/control
@@ -1,9 +1,10 @@
Source: stereograph
Section: graphics
Priority: optional
-Maintainer: Peter Palfrader <[email protected]>
+Maintainer: Ubuntu Developers <[email protected]>
+XSBC-Original-Maintainer: Peter Palfrader <[email protected]>
Standards-Version: 3.6.2
-Build-Depends: libpng-dev, debhelper, zlib1g-dev
+Build-Depends: libpng12-dev, debhelper, zlib1g-dev
Package: stereograph
Architecture: any
diff -u stereograph-0.30a/debian/changelog stereograph-0.30a/debian/changelog
diff -u stereograph-0.30a/Makefile.in stereograph-0.30a/Makefile.in
--- stereograph-0.30a/Makefile.in
+++ stereograph-0.30a/Makefile.in
@@ -8,6 +8,8 @@
make: all
stereograph: $(OBJ0)
+ gcc -g -o $@ $(OBJ0) $(LDFLAGS)
+
stereograph.o: stereograph.c stereograph.h renderer.h gfxio.h globals.h
renderer.o: renderer.c renderer.h globals.h
gfxio.o: gfxio.c gfxio.h renderer.h globals.h
diff -u stereograph-0.30a/Makefile stereograph-0.30a/Makefile
--- stereograph-0.30a/Makefile
+++ stereograph-0.30a/Makefile
@@ -17,7 +17,7 @@
else
CFLAGS += -O2
endif
-LDFLAGS = -lm /usr/lib/libpng.so /usr/lib/libz.so
+LDFLAGS = -lm -lpng -lz
# HPUX
#CC = cc