Hi all, I plan to fix this bug by NMU. The debdiff is as attachment.
I'll upload it to delay/3 queue. Yours, Paul
diff -Nru netris-0.52/debian/changelog netris-0.52/debian/changelog --- netris-0.52/debian/changelog 2022-09-26 19:54:16.000000000 +0800 +++ netris-0.52/debian/changelog 2025-04-08 22:05:49.000000000 +0800 @@ -1,3 +1,13 @@ +netris (0.52-11.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix FTBFS because implicit declaration of functions (Closes: #1075313) + - Add debian/patches/11_fix_implicit_declaraion.patch + - Update debian/patches/01_multi-games-with-scoring + * debian/control: change libncurses5-dev to libncurses-dev + + -- Ying-Chun Liu (PaulLiu) <paul...@debian.org> Tue, 08 Apr 2025 22:05:49 +0800 + netris (0.52-11) unstable; urgency=low [ Rhonda D'Vine ] diff -Nru netris-0.52/debian/control netris-0.52/debian/control --- netris-0.52/debian/control 2022-09-26 19:54:16.000000000 +0800 +++ netris-0.52/debian/control 2025-04-08 22:05:49.000000000 +0800 @@ -2,7 +2,7 @@ Section: games Priority: optional Maintainer: Rhonda D'Vine <rho...@debian.org> -Build-Depends: debhelper-compat (= 13), libncurses5-dev +Build-Depends: debhelper-compat (= 13), libncurses-dev Standards-Version: 4.6.1 Vcs-Git: https://salsa.debian.org/rhonda/netris.git Vcs-Browser: https://salsa.debian.org/rhonda/netris diff -Nru netris-0.52/debian/patches/01_multi-games-with-scoring netris-0.52/debian/patches/01_multi-games-with-scoring --- netris-0.52/debian/patches/01_multi-games-with-scoring 2022-09-26 19:40:50.000000000 +0800 +++ netris-0.52/debian/patches/01_multi-games-with-scoring 2025-04-08 22:05:49.000000000 +0800 @@ -1,10 +1,10 @@ Author: Tomas Berndtsson <to...@nocrew.org> vim:ft=diff: Description: Add multi game support with scoring -Index: b/curses.c +Index: netris-0.52/curses.c =================================================================== ---- a/curses.c -+++ b/curses.c +--- netris-0.52.orig/curses.c ++++ netris-0.52/curses.c @@ -201,6 +201,8 @@ ExtFunc void InitScreen(int scr) for (y = boardVisible[scr] - 1; y >= 0; --y) { move(boardYPos[scr] - y, boardXPos[scr] - 1); @@ -38,10 +38,10 @@ move(statusYPos - 9, statusXPos); printw("Seed: %d", initSeed); clrtoeol(); -Index: b/netris.h +Index: netris-0.52/netris.h =================================================================== ---- a/netris.h -+++ b/netris.h +--- netris-0.52.orig/netris.h ++++ netris-0.52/netris.h @@ -65,7 +65,7 @@ typedef long netint4; #define DEFAULT_PORT 9284 /* Very arbitrary */ @@ -75,10 +75,19 @@ EXT char scratch[1024]; extern ShapeOption stdOptions[]; -Index: b/util.c +Index: netris-0.52/util.c =================================================================== ---- a/util.c -+++ b/util.c +--- netris-0.52.orig/util.c ++++ netris-0.52/util.c +@@ -35,7 +35,7 @@ static EventGenRec alarmGen = + { &alarmGen, 0, FT_read, -1, AlarmGenFunc, EM_alarm }; + static EventGenRec *nextGen = &alarmGen; + +-static myRandSeed = 1; ++static int myRandSeed = 1; + + static struct timeval baseTimeval; + @@ -74,7 +74,7 @@ ExtFunc void Usage(void) " -p <port> Set port number (default is %d)\n" " -k <keys> Remap keys. The argument is a prefix of the string\n" @@ -88,10 +97,10 @@ " \"^\" prefixes controls. (default is \"%s\")\n" " -i <sec> Set the step-down interval, in seconds\n" " -r <robot> Execute <robot> (a command) as a robot controlling\n" -Index: b/game.c +Index: netris-0.52/game.c =================================================================== ---- a/game.c -+++ b/game.c +--- netris-0.52.orig/game.c ++++ netris-0.52/game.c @@ -28,11 +28,11 @@ #include <netinet/in.h> @@ -384,10 +393,10 @@ return 0; } -Index: b/board.c +Index: netris-0.52/board.c =================================================================== ---- a/board.c -+++ b/board.c +--- netris-0.52.orig/board.c ++++ netris-0.52/board.c @@ -36,6 +36,18 @@ static int oldFalling[MAX_SCREENS][MAX_B ExtFunc void InitBoard(int scr) diff -Nru netris-0.52/debian/patches/11_fix_implicit_declaraion.patch netris-0.52/debian/patches/11_fix_implicit_declaraion.patch --- netris-0.52/debian/patches/11_fix_implicit_declaraion.patch 1970-01-01 08:00:00.000000000 +0800 +++ netris-0.52/debian/patches/11_fix_implicit_declaraion.patch 2025-04-08 22:05:49.000000000 +0800 @@ -0,0 +1,25 @@ +Index: netris-0.52/game.c +=================================================================== +--- netris-0.52.orig/game.c ++++ netris-0.52/game.c +@@ -25,6 +25,7 @@ + #include <stdlib.h> + #include <ctype.h> + #include <string.h> ++#include <unistd.h> + #include <sys/types.h> + #include <netinet/in.h> + +Index: netris-0.52/Configure +=================================================================== +--- netris-0.52.orig/Configure ++++ netris-0.52/Configure +@@ -76,7 +76,7 @@ done + CFLAGS="$COPT $CEXTRA" + + echo "Checking for libraries" +-echo 'main(){}' > test.c ++echo 'int main(){return 0;}' > test.c + LFLAGS="" + for lib in -lcurses -lncurses; do + if $CC $CFLAGS $LEXTRA test.c $lib > /dev/null 2>&1; then diff -Nru netris-0.52/debian/patches/series netris-0.52/debian/patches/series --- netris-0.52/debian/patches/series 2022-09-26 19:40:50.000000000 +0800 +++ netris-0.52/debian/patches/series 2025-04-08 22:03:50.000000000 +0800 @@ -8,3 +8,4 @@ 08_various-fixes 09_ipv6 10_fix-memory-leak +11_fix_implicit_declaraion.patch