Package: frozen-bubble / 2.212-9

Metadata

Package Version Patches format
frozen-bubble 2.212-9 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
hard code share dir path | (download)

lib/Games/FrozenBubble/Config.pm | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 hard code share dir path
 Module::Build share dir mechanisn and File::ShareDir impose a path not
 compatible with Debian FHS. debian/frozen-bubble-data.install takes care of 
 this, but frozen-bubble config files must be patched to take this into
 account. This patch hard-codes Debian path in Frozen-bubble config.
total_bubbles | (download)

bin/frozen-bubble | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

---
de_po | (download)

share/locale/de.po | 9 5 + 4 - 0 !
1 file changed, 5 insertions(+), 4 deletions(-)

---
spelling error in manpage.patch | (download)

lib/Games/FrozenBubble.pm | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 spelling error in manpage
shorter nick | (download)

bin/frozen-bubble | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 shorter nick
 nickname for lan game is limited to 12 char by the server. frozen-bubble adds a 'lan-' prefix so the limit
 is actually 8. THis nick is used only for lan games so
 the hi-score should not be affected.
Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=459666

kick out accelerometers | (download)

bin/frozen-bubble | 5 3 + 2 - 0 !
1 file changed, 3 insertions(+), 2 deletions(-)

---
hardening server | (download)

inc/My/Builder.pm | 1 1 + 0 - 0 !
server/tools.c | 8 6 + 2 - 0 !
2 files changed, 7 insertions(+), 2 deletions(-)

 pass cppflags to compile flags for server
 And then the build fails with an unused-return-value error.
 So let's handle setgid/setuid results.
pt_po | (download)

share/locale/pt.po | 328 178 + 150 - 0 !
1 file changed, 178 insertions(+), 150 deletions(-)

 updated portuguese translation for package messages
fix translations.patch | (download)

lib/Games/FrozenBubble/Stuff.pm | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 fixes translations
no posix tmpnam call | (download)

bin/frozen-bubble | 11 4 + 7 - 0 !
1 file changed, 4 insertions(+), 7 deletions(-)

 remove call to deprecated posix::tmpnam
 This patch replaces the call to POSIX::tmpnam with a call to File::Temp. This call is deprecated and will break with perl 26.
 .
 File::Temp object handles file cleanup when the object is destroyed, so the call to unlink($filename) is no longer needed.
 .
 While I was at it, I've replaced a call to POSIX::_exit with good old die, so frozen-bubble no longer depends on POSIX.
Bug-Debian: https://bugs.debian.org/866321
gcc8.patch | (download)

server/log.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix compilation with gcc 8
 The following fragment of code:
 .
 char current_date[50];
 {
    char buf[50];
    strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", lt);
    snprintf(current_date, sizeof(current_date), "%s.%03d", buf, (int)(1000 * (time-seconds)));
 }
 .
 leads to the following error when compiled with format string fortification
 flags (default on Debian):
 .
 server/log.c: In function 'get_current_date':
 server/log.c:64:54: error: '%03d' directive output may be truncated writing
 between 3 and 11 bytes into a region of size between 0 and 49 [-Werror=format-truncation=]
     snprintf(current_date, sizeof(current_date), "%s.%03d", buf, (int)(1000 * (time-seconds)));
                                                      ^~~~
 .
 the reason is that in the 'snprintf' call, the %s item is of maximum
 length of 50, which leads to insufficient room for the %03d item. The 'buf'
 string doesn't need the room for 50 characters, so decreasing that to 25 seems
 like a good fix.