Package: opencity Version: 0.0.6.3stable-1 Severity: grave Tags: patch Justification: renders package unusable User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu maverick ubuntu-patch
This patch fixes the FTBFS due to the --as-needed ld change. *** /tmp/tmp9EpJFd In Ubuntu, we've applied the attached patch to achieve the following: * Added debian/patches/01-fix-ftbfs. - Fixes FTBFS from --as-needed linker change We thought you might be interested in doing the same. -- System Information: Debian Release: squeeze/sid APT prefers lucid-updates APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid-proposed'), (500, 'lucid-backports'), (500, 'lucid') Architecture: i386 (i686) Kernel: Linux 2.6.32-33-generic (SMP w/2 CPU cores) Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru opencity-0.0.6.3stable/debian/changelog opencity-0.0.6.3stable/debian/changelog diff -Nru opencity-0.0.6.3stable/debian/patches/01-fix-ftbfs opencity-0.0.6.3stable/debian/patches/01-fix-ftbfs --- opencity-0.0.6.3stable/debian/patches/01-fix-ftbfs 1970-01-01 05:30:00.000000000 +0530 +++ opencity-0.0.6.3stable/debian/patches/01-fix-ftbfs 2011-06-30 02:32:27.000000000 +0530 @@ -0,0 +1,51 @@ +# Description: Fix FTBFS due to --as-needed change +# Author: Nigel Babu <nigelb...@ubuntu.com> +# Bug-Ubuntu: 621996 +# Bug: 3344653 +--- a/configure ++++ b/configure +@@ -4373,7 +4373,7 @@ + + + CXXFLAGS="$SDL_CFLAGS" +-LDFLAGS="$LDFLAGS $SDL_LIBS" ++LIBS="$LIBS $SDL_LIBS" + + ac_ext=cpp + ac_cpp='$CXXCPP $CPPFLAGS' +@@ -5701,7 +5701,7 @@ + + if test "x$SDL_mixer_h" = "xyes"; then + if test "x$SDL_mixer_lib" = "xyes"; then +- LDFLAGS="$LDFLAGS -lSDL_mixer" ++ LIBS="$LIBS -lSDL_mixer" + + cat >>confdefs.h <<\_ACEOF + #define OPENCITY_SDL_MIXER 1 +@@ -5787,7 +5787,7 @@ + + + if test "x$enable_mingw" = "xyes"; then +- LDFLAGS="-lmingw32 -lSDLmain -mwindows -lglu32 -lopengl32 $LDFLAGS" ++ LIBS="-lmingw32 -lSDLmain -mwindows -lglu32 -lopengl32 $LIBS" + else + + { $as_echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5 +@@ -6121,7 +6121,7 @@ + for PNG in png png12 png13 dummypng; do + if $PACKAGE_CONFIG --exists lib$PNG > /dev/null 2>&1 ; then + CXXFLAGS="$CXXFLAGS `$PACKAGE_CONFIG --cflags lib$PNG`" +- LDFLAGS="$LDFLAGS `$PACKAGE_CONFIG --libs lib$PNG`" ++ LIBS="$LIBS `$PACKAGE_CONFIG --libs lib$PNG`" + break + fi + done +@@ -6143,7 +6143,7 @@ + + CXXFLAGS="-std=c++98 $CXXFLAGS" + +-LDFLAGS="-L$with_gl_prefix/lib $enable_gprof $LDFLAGS" ++LIBS="-L$with_gl_prefix/lib $enable_gprof $LIBS" + + + diff -Nru opencity-0.0.6.3stable/debian/patches/series opencity-0.0.6.3stable/debian/patches/series --- opencity-0.0.6.3stable/debian/patches/series 2011-03-11 19:39:43.000000000 +0530 +++ opencity-0.0.6.3stable/debian/patches/series 2011-06-30 02:08:18.000000000 +0530 @@ -1 +1,2 @@ +01-fix-ftbfs