Package: zsnes Version: 1.510+bz2-5 Severity: normal Tags: patch User: [email protected] Usertags: origin-ubuntu raring ubuntu-patch
Dear Maintainer, In Ubuntu, we define _FORTIFY_SOURCE which causes a build problem with zsnes. To work around this, I've added the attached patch to undefine _FORTIFY_SOURCES in generated code. This is the last diff Ubuntu has with Debian, and it would be nice to be able to drop it. Patch by Hans de Goede. Thanks for considering it. -- System Information: Debian Release: wheezy/sid APT prefers raring-updates APT policy: (500, 'raring-updates'), (500, 'raring-security'), (500, 'raring') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.8.0-1-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 zsnes-1.510+bz2/debian/changelog zsnes-1.510+bz2/debian/changelog diff -Nru zsnes-1.510+bz2/debian/patches/disable-fortify-source.patch zsnes-1.510+bz2/debian/patches/disable-fortify-source.patch --- zsnes-1.510+bz2/debian/patches/disable-fortify-source.patch 1969-12-31 19:00:00.000000000 -0500 +++ zsnes-1.510+bz2/debian/patches/disable-fortify-source.patch 2013-01-25 18:15:06.000000000 -0500 @@ -0,0 +1,17 @@ +Description: Fix FTBFS when _FORTIFY_SOURCE is defined +Author: Hans de Goede <[email protected]> +Origin: http://lists.rpmfusion.org/pipermail/rpmfusion-developers/2011-September/010127.html +Bug-Ubuntu: https://launchpad.net/bugs/250425 + +Index: zsnes-1.510+bz2-5ubuntu1/src/parsegen.cpp +=================================================================== +--- zsnes-1.510+bz2-5ubuntu1.orig/src/parsegen.cpp 2013-01-25 17:04:06.607723248 -0500 ++++ zsnes-1.510+bz2-5ubuntu1/src/parsegen.cpp 2013-01-25 17:56:47.535582069 -0500 +@@ -656,6 +656,7 @@ + << "Config file handler generated by Nach's Config file handler creator.\n" + << "*/\n" + << "\n" ++ << "#undef _FORTIFY_SOURCE\n" + << "#include <stdio.h>\n" + << "#include <stdlib.h>\n" + << "#include <ctype.h>\n" diff -Nru zsnes-1.510+bz2/debian/patches/series zsnes-1.510+bz2/debian/patches/series --- zsnes-1.510+bz2/debian/patches/series 2012-11-05 16:23:54.000000000 -0500 +++ zsnes-1.510+bz2/debian/patches/series 2013-01-25 17:56:19.000000000 -0500 @@ -12,3 +12,4 @@ 0012-Fix-build-with-gcc-4.7.patch 0013-Fix-sound-with-libao.patch 0014-Initialize-driver_format.matrix-with-NULL.patch +disable-fortify-source.patch

