diff -Nru viruskiller-1.03-1+dfsg1/debian/changelog viruskiller-1.03-1+dfsg1/debian/changelog --- viruskiller-1.03-1+dfsg1/debian/changelog 2012-04-12 19:46:16.000000000 +0000 +++ viruskiller-1.03-1+dfsg1/debian/changelog 2017-11-20 23:40:24.000000000 +0000 @@ -1,3 +1,28 @@ +viruskiller (1.03-1+dfsg1-2) unstable; urgency=medium + + * Team upload. + + [ Ansgar Burchardt ] + * Remove myself from Uploaders. + + [ Markus Koschany ] + * Declare compliance with Debian Policy 4.1.1. + * Drop deprecated menu file. (Closes: #726900) + * d/copyright: Use https for Format field. + * Use canonical Vcs fields. + * Switch to compat level 10. + * Remove source/options file because xz compression is the default now. + * Remove Pre-Depends: dpkg (>= 1.15.6) line. Satisfied in all supported + distributions. + * Remove override for dh_builddeb. + * Apply reproducible-build.patch and make the build reproducible. + Thanks to Chris Lamb for the report and patch. (Closes: #860731) + * Fix Lintian warning copyright-refers-to-symlink-license and simply license + all Debian files under GPL-2+ like the rest of the program. + * Add keywords to desktop file. + + -- Markus Koschany Tue, 21 Nov 2017 00:40:24 +0100 + viruskiller (1.03-1+dfsg1-1) unstable; urgency=low * Merged new upstream 1.03-1 (closes: #617955) diff -Nru viruskiller-1.03-1+dfsg1/debian/compat viruskiller-1.03-1+dfsg1/debian/compat --- viruskiller-1.03-1+dfsg1/debian/compat 2012-04-12 19:46:16.000000000 +0000 +++ viruskiller-1.03-1+dfsg1/debian/compat 2017-11-20 23:40:24.000000000 +0000 @@ -1 +1 @@ -7 +10 diff -Nru viruskiller-1.03-1+dfsg1/debian/control viruskiller-1.03-1+dfsg1/debian/control --- viruskiller-1.03-1+dfsg1/debian/control 2012-04-12 19:46:16.000000000 +0000 +++ viruskiller-1.03-1+dfsg1/debian/control 2017-11-20 23:40:24.000000000 +0000 @@ -2,9 +2,8 @@ Section: games Priority: optional Maintainer: Debian Games Team -Uploaders: Ansgar Burchardt , - Stephen M. Webb -Build-Depends: debhelper (>= 7.0.50), +Uploaders: Stephen M. Webb +Build-Depends: debhelper (>= 10), libsdl-image1.2-dev, libsdl-mixer1.2-dev, libsdl-net1.2-dev, @@ -12,14 +11,13 @@ libsdl1.2-dev, perl, zlib1g-dev -Standards-Version: 3.9.3 +Standards-Version: 4.1.1 Homepage: http://www.parallelrealities.co.uk/projects/virusKiller.php -Vcs-Git: git://git.debian.org/git/pkg-games/viruskiller.git -Vcs-Browser: http://git.debian.org/?p=pkg-games/viruskiller.git +Vcs-Git: https://anonscm.debian.org/git/pkg-games/viruskiller.git +Vcs-Browser: https://anonscm.debian.org/git/pkg-games/viruskiller.git Package: viruskiller Architecture: any -Pre-Depends: dpkg (>= 1.15.6) Depends: ${misc:Depends}, ${shlibs:Depends} Description: Game about viruses invading your computer Your computer has been invaded! Dozens of little viruses are pouring in via diff -Nru viruskiller-1.03-1+dfsg1/debian/copyright viruskiller-1.03-1+dfsg1/debian/copyright --- viruskiller-1.03-1+dfsg1/debian/copyright 2012-04-12 19:46:16.000000000 +0000 +++ viruskiller-1.03-1+dfsg1/debian/copyright 2017-11-20 23:40:24.000000000 +0000 @@ -1,4 +1,4 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: Virus Killer Upstream-Source: http://www.parallelrealities.co.uk/projects/virusKiller.php @@ -54,7 +54,7 @@ Copyright: © 2005, Florian Ragwitz © 2008-2009, Ansgar Burchardt -License: GPL +License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or @@ -70,9 +70,3 @@ . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. - -License: GPL - This software is licensed under the GNU General Public License. - . - On Debian systems, the complete text of the GNU General Public License - can be found in `/usr/share/common-licenses/GPL'. diff -Nru viruskiller-1.03-1+dfsg1/debian/patches/desktop-file.patch viruskiller-1.03-1+dfsg1/debian/patches/desktop-file.patch --- viruskiller-1.03-1+dfsg1/debian/patches/desktop-file.patch 2012-04-12 19:46:16.000000000 +0000 +++ viruskiller-1.03-1+dfsg1/debian/patches/desktop-file.patch 2017-11-20 23:40:24.000000000 +0000 @@ -3,18 +3,26 @@ Subject: Update desktop file Update desktop file so desktop-file-validate does no longer complain. +--- + icons/viruskiller.desktop | 11 +++++------ + 1 file changed, 5 insertions(+), 6 deletions(-) + +diff --git a/icons/viruskiller.desktop b/icons/viruskiller.desktop +index 0156098..37f2c4e 100644 --- a/icons/viruskiller.desktop +++ b/icons/viruskiller.desktop @@ -1,9 +1,8 @@ [Desktop Entry] -Encoding=UTF-8 -Categories=Application;Game;ArcadeGame; +-X-Desktop-File-Install-Version=1.0 +Categories=Game;ArcadeGame; - X-Desktop-File-Install-Version=1.0 Name=Virus Killer -Icon=viruskiller.png -+Icon=viruskiller - Exec=/usr/games/viruskiller +-Exec=/usr/games/viruskiller -Terminal=0 ++Icon=viruskiller ++Exec=viruskiller +Terminal=false Type=Application ++Keywords=arcade;virus;computer; diff -Nru viruskiller-1.03-1+dfsg1/debian/patches/reproducible-build.patch viruskiller-1.03-1+dfsg1/debian/patches/reproducible-build.patch --- viruskiller-1.03-1+dfsg1/debian/patches/reproducible-build.patch 1970-01-01 00:00:00.000000000 +0000 +++ viruskiller-1.03-1+dfsg1/debian/patches/reproducible-build.patch 2017-11-20 23:40:24.000000000 +0000 @@ -0,0 +1,72 @@ +--- viruskiller-1.03-1+dfsg1.orig/src/pak.cpp ++++ viruskiller-1.03-1+dfsg1/src/pak.cpp +@@ -88,19 +88,19 @@ void countFiles(const char *dirName) + + void recurseDirectory(const char *dirName) + { +- DIR *dirp, *dirp2; +- dirent *dfile; ++ int n; ++ DIR *dirp2; + gzFile fp; + FILE *infile; + char filename[1024]; ++ struct dirent **namelist; + + uLongf cSize = 0; + uLongf fSize = 0; + +- dirp = opendir(dirName); + +- if (dirp == NULL) +- { ++ n = scandir(dirName, &namelist, NULL, alphasort); ++ if (n == -1) { + printf("%s: Directory does not exist or is not accessible\n", dirName); + return; + } +@@ -108,14 +108,14 @@ void recurseDirectory(const char *dirNam + float percentage; + long filesize; + +- while ((dfile = readdir(dirp))) ++ while (n--) + { +- if (dfile->d_name[0] == '.') ++ if (namelist[n]->d_name[0] == '.') + { + continue; + } + +- sprintf(filename, "%s/%s", dirName, dfile->d_name); ++ sprintf(filename, "%s/%s", dirName, namelist[n]->d_name); + + dirp2 = opendir(filename); + +@@ -130,7 +130,7 @@ void recurseDirectory(const char *dirNam + if (!infile) + { + printf("Couldn't open %s for reading!\n", filename); +- closedir(dirp); ++ free(namelist); + fclose(pak); + exit(1); + } +@@ -162,7 +162,7 @@ void recurseDirectory(const char *dirNam + if (!fp) + { + printf("Couldn't open %s for reading!\n", filename); +- closedir(dirp); ++ free(namelist); + fclose(pak); + exit(1); + } +@@ -190,7 +190,7 @@ void recurseDirectory(const char *dirNam + } + } + +- closedir(dirp); ++ free(namelist); + + dirs++; + } diff -Nru viruskiller-1.03-1+dfsg1/debian/patches/series viruskiller-1.03-1+dfsg1/debian/patches/series --- viruskiller-1.03-1+dfsg1/debian/patches/series 2012-04-12 19:46:16.000000000 +0000 +++ viruskiller-1.03-1+dfsg1/debian/patches/series 2017-11-20 23:40:24.000000000 +0000 @@ -8,3 +8,4 @@ 0009-start-with-fewer-directories.patch 0010-mismatched-delete.patch 0011-remove-bad-gzclose.patch +reproducible-build.patch diff -Nru viruskiller-1.03-1+dfsg1/debian/rules viruskiller-1.03-1+dfsg1/debian/rules --- viruskiller-1.03-1+dfsg1/debian/rules 2012-04-12 19:46:16.000000000 +0000 +++ viruskiller-1.03-1+dfsg1/debian/rules 2017-11-20 23:40:24.000000000 +0000 @@ -13,5 +13,3 @@ rm $(CURDIR)/debian/viruskiller/usr/share/doc/viruskiller/LICENSE \ $(CURDIR)/debian/viruskiller/usr/share/doc/viruskiller/README -override_dh_builddeb: - dh_builddeb -- -Zxz diff -Nru viruskiller-1.03-1+dfsg1/debian/source/options viruskiller-1.03-1+dfsg1/debian/source/options --- viruskiller-1.03-1+dfsg1/debian/source/options 2012-04-12 19:46:16.000000000 +0000 +++ viruskiller-1.03-1+dfsg1/debian/source/options 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -compression = xz diff -Nru viruskiller-1.03-1+dfsg1/debian/viruskiller.menu viruskiller-1.03-1+dfsg1/debian/viruskiller.menu --- viruskiller-1.03-1+dfsg1/debian/viruskiller.menu 2012-04-12 19:46:16.000000000 +0000 +++ viruskiller-1.03-1+dfsg1/debian/viruskiller.menu 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -?package(viruskiller):command="/usr/games/viruskiller" needs="X11" \ - section="Games/Action" title="Virus Killer"