Package: flobopuyo Version: 0.20-4 Severity: normal Tags: patch User: [email protected] Usertags: origin-ubuntu natty ubuntu-patch
Hi, This FTBFS is fixed in Ubuntu with the following patch: *** /tmp/tmp60hbvb What this patch do is moving the libs at the end of the link command. If you are going to upload shortly a fixed package, just tell it to me, and I'll wait before uploading the patch in Ubuntu. Thanks, Fabrice -- System Information: Debian Release: squeeze/sid APT prefers maverick-updates APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick-proposed'), (500, 'maverick') Architecture: amd64 (x86_64) Kernel: Linux 2.6.35-24-generic (SMP w/2 CPU cores) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- flobopuyo-0.20.orig/debian/patches/99_binutils-gold.patch +++ flobopuyo-0.20/debian/patches/99_binutils-gold.patch @@ -0,0 +1,41 @@ +Description: Fix FTBFS when using --as-needed by putting the libs as last + argument of the link line (and creating a LIBS variable) +Author: Fabrice Coutadeur <[email protected]> +--- flobopuyo-0.20.orig/Makefile ++++ flobopuyo-0.20/Makefile +@@ -49,7 +49,8 @@ + + ifneq ($(PLATFORM), $(CYGWIN_VERSION)) + CFLAGS:=$(CFLAGS) `$(SDL_CONFIG) --cflags` -I/sw/include +-LDFLAGS:=$(LDFLAGS) `$(SDL_CONFIG) --cflags --libs` ++LDFLAGS:=$(LDFLAGS) `$(SDL_CONFIG) --cflags` ++LIBS:=$(LIBS) `$(SDL_CONFIG) --libs` + endif + + HFILES= HiScores.h IosException.h IosImgProcess.h IosVector.h PuyoCommander.h\ +@@ -90,7 +91,7 @@ + CFLAGS:=$(CFLAGS) -DHAVE_OPENGL=1 + OBJFILES:=$(OBJFILES) glSDL.o + ifeq ($(PLATFORM), Linux) +-LDFLAGS:=$(LDFLAGS) -lGL ++LIBS:=$(LIBS) -lGL + endif + endif + +@@ -110,7 +111,7 @@ + all: prelude flobopuyo + + flobopuyo: ${OBJFILES} +- @echo "[flobopuyo]" && g++ $(CFLAGS) $(LDFLAGS) -o flobopuyo -lSDL_mixer -lSDL_image ${OBJFILES} ++ @echo "[flobopuyo]" && g++ $(CFLAGS) $(LDFLAGS) -o flobopuyo ${OBJFILES} -lSDL_mixer -lSDL_image ${LIBS} + @echo "--------------------------------------" + @echo " Compilation finished" + @[ "x`cat WARNINGS | wc -l`" != "x0" ] && echo -e "--------------------------------------\n There have been some warnings:\n" && cat WARNINGS && rm -f WARNINGS && echo "--------------------------------------" || true +@@ -123,6 +124,7 @@ + @touch WARNINGS + @echo "Compiling with CFLAGS=$(CFLAGS)" + @echo "Compiling with LDFLAGS=$(LDFLAGS)" ++ @echo "Compiling with LIBS=$(LIBS)" + + %.o:%.c + @echo "[...@]" && $(CC) $(CFLAGS) -c $< 2>> WARNINGS || (cat WARNINGS && false)

