Package: zsnes / 1.510+bz2-8

Metadata

Package Version Patches format
zsnes 1.510+bz2-8 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0003 gcc 4.3 ftbfs.patch | (download)

src/parsegen.cpp | 3 2 + 1 - 0 !
src/tools/depbuild.cpp | 3 2 + 1 - 0 !
src/tools/strutil.h | 1 1 + 0 - 0 !
3 files changed, 5 insertions(+), 2 deletions(-)

 gcc-4.3-ftbfs

Miscellaneous fixes to build with gcc 4.3:

  - missing headers
  - argc should have type int, not size_t

0004 manpage in usr share man.patch | (download)

src/Makefile.in | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 manpage-in-usr-share-man

Manpage should go in /usr/share/man, not /usr/man.

0005 hyphens as minus signs in manpage.patch | (download)

src/linux/zsnes.1 | 106 53 + 53 - 0 !
1 file changed, 53 insertions(+), 53 deletions(-)

 hyphens-as-minus-signs-in-manpage

Plain '-' characters in the manpage are rendered as hyphens, not minus signs
(like command-line switches). This patch converts those hyphens to minus signs,
en-dashes (for ranges) and proper hyphens.

0006 spelling error separately.patch | (download)

src/md.psr | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 spelling-error-separately

This patch fixes a spelling error in src/md.psr.

0007 removed license in html doc.patch | (download)

docs/readme.htm/about.htm | 8 4 + 4 - 0 !
docs/readme.htm/advanced.htm | 6 3 + 3 - 0 !
docs/readme.htm/faq.htm | 6 3 + 3 - 0 !
docs/readme.htm/games.htm | 6 3 + 3 - 0 !
docs/readme.htm/gui.htm | 8 4 + 4 - 0 !
docs/readme.htm/history.htm | 6 3 + 3 - 0 !
docs/readme.htm/index.htm | 8 4 + 4 - 0 !
docs/readme.htm/netplay.htm | 6 3 + 3 - 0 !
docs/readme.htm/readme.htm | 8 4 + 4 - 0 !
docs/readme.htm/support.htm | 6 3 + 3 - 0 !
10 files changed, 34 insertions(+), 34 deletions(-)

 removed-license-in-html-doc

The license in HTML format is redundant with respect to the copyright
information available at /usr/share/doc/zsnes/copyright. This patch prevents the
installation of license.htm and replaces references to it by the former.

0008 manpage debugger.patch | (download)

src/linux/zsnes.1 | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 manpage-debugger

This documents the use of the '-d' switch.

0009 hat events.patch | (download)

src/linux/sdllink.c | 8 8 + 0 - 0 !
1 file changed, 8 insertions(+)

 hat-events

Properly reset directions on joysticks.

This patch was pulled from Simeon Maxein's Ubuntu PPA :
https://launchpad.net/~smaxein/+archive/ppa/+packages

Its original author is hakonrk from the zsnes forum :
http://board.zsnes.com/phpBB3/viewtopic.php?t=12544

Ubuntu bug report :
https://bugs.launchpad.net/ubuntu/+source/zsnes/+bug/519845

===================================================================

0010 Fix build with libpng 1.5.patch | (download)

src/zip/zpng.c | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 fix build with libpng 1.5

Fixes #649801.

0011 Don t strip binaries upstream.patch | (download)

src/configure.in | 6 2 + 4 - 0 !
1 file changed, 2 insertions(+), 4 deletions(-)

 don't strip binaries upstream

In order to honor DEB_BUILD_OPTIONS=nostrip, upstream build system should not
strip binaries.

Bug-Debian: http://bugs.debian.org/438384

0012 Fix build with gcc 4.7.patch | (download)

src/tools/depbuild.cpp | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 fix build with gcc 4.7

Headers in the new C++ library do not implicitly import unistd.h, so it is
necessary to do it in the source.

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667429

0013 Fix sound with libao.patch | (download)

src/linux/audio.c | 12 2 + 10 - 0 !
1 file changed, 2 insertions(+), 10 deletions(-)

 fix sound with libao

0014 Initialize driver_format.matrix with NULL.patch | (download)

src/linux/audio.c | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 initialize driver_format.matrix with null;

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679826

zsnes linux resume freeze fix.patch | (download)

src/linux/sdllink.c | 35 12 + 23 - 0 !
1 file changed, 12 insertions(+), 23 deletions(-)

 [patch] replace floating point arithmetic causing freeze with 64bit
 integer arithmetic

It seems that sem_GetTicks sometimes returns NAN. If this happens when
resuming the game (i.e. from Start60HZ), than the start variable can be
set to NAN, which causes this test in CheckTimers to never succeed:
while ((end - start) >= update_ticks_pc)

So it never runs Game60hzcall and therefore appears to freeze.

Using gdb to change start to a real number less than end allows zsnes to
continue.

See this forum post for more details:
http://board.zsnes.com/phpBB3/viewtopic.php?f=3&t=2337&p=225071#p225071

This patch changes it to use a 64bit integer instead of floating point
arithmetic to avoid hitting these cases.

Also, remove the unused start2, end2, and update_ticks_pc2 variables.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=687107
fortify source.patch | (download)

src/Makefile.in | 2 1 + 1 - 0 !
src/gblvars.h | 6 3 + 3 - 0 !
src/initc.c | 10 5 + 5 - 0 !
src/zstate.c | 8 4 + 4 - 0 !
4 files changed, 13 insertions(+), 13 deletions(-)

 fix compilation with fortify_source.
fortify source load.patch | (download)

src/cpu/regs.inc | 1 1 + 0 - 0 !
src/gblvars.h | 7 4 + 3 - 0 !
src/init.asm | 1 1 + 0 - 0 !
src/initc.c | 1 1 + 0 - 0 !
src/zstate.c | 10 5 + 5 - 0 !
5 files changed, 12 insertions(+), 8 deletions(-)

 fix loading save files under fortify_source.
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1173090


hurd.patch | (download)

src/configure.in | 3 3 + 0 - 0 !
src/gblhdr.h | 4 4 + 0 - 0 !
2 files changed, 7 insertions(+)

 fix ftbfs on hurd-i386
privacy breach.patch | (download)

docs/readme.htm/about.htm | 9 1 + 8 - 0 !
docs/readme.htm/advanced.htm | 7 0 + 7 - 0 !
docs/readme.htm/faq.htm | 7 0 + 7 - 0 !
docs/readme.htm/games.htm | 7 0 + 7 - 0 !
docs/readme.htm/gui.htm | 7 0 + 7 - 0 !
docs/readme.htm/history.htm | 7 0 + 7 - 0 !
docs/readme.htm/index.htm | 7 0 + 7 - 0 !
docs/readme.htm/license.htm | 7 0 + 7 - 0 !
docs/readme.htm/netplay.htm | 9 1 + 8 - 0 !
docs/readme.htm/readme.htm | 9 1 + 8 - 0 !
docs/readme.htm/support.htm | 9 1 + 8 - 0 !
11 files changed, 4 insertions(+), 81 deletions(-)

 privacy breaches