Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ninvaders for openSUSE:Factory checked in at 2026-10-23 20:29:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ninvaders (Old) and /work/SRC/openSUSE:Factory/.ninvaders.new.2252680 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ninvaders" Fri Oct 23 20:29:10 2026 rev:5 rq:1387242 version:0.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/ninvaders/ninvaders.changes 2025-07-17 17:20:43.080629784 +0200 +++ /work/SRC/openSUSE:Factory/.ninvaders.new.2252680/ninvaders.changes 2026-10-23 20:30:13.573432978 +0200 @@ -1,0 +2,14 @@ +Sun Oct 18 09:20:39 UTC 2026 - Martin Pluskal <[email protected]> + +- Update to version 0.1.2 (first upstream release after 19 years): + * Fix build with GCC 11 and newer by declaring globals extern + in headers with the definitions in the .c files + * Fix buffer overflow in render() +- Switch Source and URL to the author site (dettus.net), as + SourceForge is stuck at 0.1.1 +- Drop ninvaders-fix-multiple-definitions.patch and + ninvaders-fix-render-loop.patch: adopted upstream +- Drop the -fcommon workaround, no longer needed; add explicit + gcc and make BuildRequires + +------------------------------------------------------------------- Old: ---- ninvaders-0.1.1.tar.gz ninvaders-fix-multiple-definitions.patch ninvaders-fix-render-loop.patch New: ---- ninvaders-0.1.2.tar.bz2 ----------(Old B)---------- Old: SourceForge is stuck at 0.1.1 - Drop ninvaders-fix-multiple-definitions.patch and ninvaders-fix-render-loop.patch: adopted upstream Old:- Drop ninvaders-fix-multiple-definitions.patch and ninvaders-fix-render-loop.patch: adopted upstream - Drop the -fcommon workaround, no longer needed; add explicit ----------(Old E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ninvaders.spec ++++++ --- /var/tmp/diff_new_pack.4eqrRH/_old 2026-10-23 20:30:14.282462732 +0200 +++ /var/tmp/diff_new_pack.4eqrRH/_new 2026-10-23 20:30:14.283462774 +0200 @@ -1,7 +1,7 @@ # # spec file for package ninvaders # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,24 +17,25 @@ Name: ninvaders -Version: 0.1.1 +Version: 0.1.2 Release: 0 Summary: A space invaders-like game using ncurses License: GPL-2.0-or-later -Group: Amusements/Games/Action/Arcade -URL: http://ninvaders.sourceforge.net/ -Source: http://downloads.sourceforge.net/ninvaders/%{version}/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM ninvaders-fix-multiple-definitions.patch -- upstream bug #2 -Patch0: ninvaders-fix-multiple-definitions.patch -# PATCH-FIX-UPSTREAM ninvaders-fix-render-loop.patch -- fix Leap 15+ build error -Patch1: ninvaders-fix-render-loop.patch +URL: https://dettus.net/ninvaders/ +Source: https://dettus.net/ninvaders/%{name}-%{version}.tar.bz2 # PATCH-FIX-UPSTREAM ninvaders-obey-cflags.patch -- don't clear pre-set CFLAGS -Patch2: ninvaders-obey-cflags.patch +Patch0: ninvaders-obey-cflags.patch # PATCH-FIX-UPSTREAM ninvaders-sighandler_t.patch -- fix gcc15 build -Patch3: ninvaders-sighandler_t.patch +Patch1: ninvaders-sighandler_t.patch # PATCH-FIX-UPSTREAM ninvaders-fix-doSleep-decl.patch -- fix gcc15 build -Patch4: ninvaders-fix-doSleep-decl.patch -BuildRequires: ncurses-devel +Patch2: ninvaders-fix-doSleep-decl.patch +BuildRequires: gcc +BuildRequires: make +BuildRequires: pkgconfig +BuildRequires: pkgconfig(ncurses) +BuildRequires: pkgconfig(tic) +BuildRequires: pkgconfig(ticw) +BuildRequires: pkgconfig(tinfo) %description A Space Invaders type game with text-only graphics. @@ -43,8 +44,7 @@ %autosetup -p1 %build -export CFLAGS="%{optflags} -fcommon" -make %{?_smp_mflags} +%make_build %install install -Dm 0755 nInvaders %{buildroot}%{_bindir}/%{name} ++++++ ninvaders-0.1.1.tar.gz -> ninvaders-0.1.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/ChangeLog new/ninvaders-0.1.2/ChangeLog --- old/ninvaders-0.1.1/ChangeLog 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/ChangeLog 2022-07-02 15:00:58.000000000 +0200 @@ -1,4 +1,10 @@ +****** Release 0.1.2 ****** + +2022-07-02 Thomas Dettbarn <[email protected]> + + * compiles again with gcc 11. + ****** Release 0.1.1 ****** 2003-04-22 Alexander Hollinger <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/README new/ninvaders-0.1.2/README --- old/ninvaders-0.1.1/README 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/README 2022-07-02 14:59:04.000000000 +0200 @@ -1,6 +1,6 @@ *** nInvaders -*** (C)opyleft 2k2 by dettus -*** [email protected] +*** (C)opyleft 2k22 by dettus +*** [email protected] Hello and welcome to nInvaders! Right now you are earth's only hope to save it from alien invaders from space. Make your job, and make it good, mankind diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/aliens.c new/ninvaders-0.1.2/aliens.c --- old/ninvaders-0.1.1/aliens.c 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/aliens.c 2022-07-02 15:05:42.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,6 +25,15 @@ #include "aliens.h" #include "player.h" #include "nInvaders.h" +Aliens aliens; +int shipnum; +int lowest_ship[ALIENS_MAX_NUMBER_X]; +int alienshotx[ALIENS_MAX_MISSILES]; +int alienshoty[ALIENS_MAX_MISSILES]; +int alienshotnum; +int alienBlock[ALIENS_MAX_NUMBER_Y][ALIENS_MAX_NUMBER_X]; +int bunker[BUNKERHEIGHT][BUNKERWIDTH + 1]; + /** * initialize aliens attributes @@ -163,7 +172,7 @@ aliens.right=-1; aliens.bottom=-1; shipnum=0; - for (k=0;k<11;k++) { + for (k=0;k<10;k++) { lowest_ship[k]=-1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/aliens.h new/ninvaders-0.1.2/aliens.h --- old/ninvaders-0.1.1/aliens.h 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/aliens.h 2022-07-02 15:05:23.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,22 +38,22 @@ int speed; // 0: no movement; 1: one per turn; etc. }; -Aliens aliens; +extern Aliens aliens; -int shipnum; +extern int shipnum; #define ALIENS_MAX_NUMBER_X 10 #define ALIENS_MAX_NUMBER_Y 5 #define ALIENS_MAX_MISSILES 10 // todo: move to structure -int lowest_ship[ALIENS_MAX_NUMBER_X]; -int alienshotx[ALIENS_MAX_MISSILES]; -int alienshoty[ALIENS_MAX_MISSILES]; -int alienshotnum; -int alienBlock[ALIENS_MAX_NUMBER_Y][ALIENS_MAX_NUMBER_X]; +extern int lowest_ship[ALIENS_MAX_NUMBER_X]; +extern int alienshotx[ALIENS_MAX_MISSILES]; +extern int alienshoty[ALIENS_MAX_MISSILES]; +extern int alienshotnum; +extern int alienBlock[ALIENS_MAX_NUMBER_Y][ALIENS_MAX_NUMBER_X]; -int bunker[BUNKERHEIGHT][BUNKERWIDTH + 1]; +extern int bunker[BUNKERHEIGHT][BUNKERWIDTH + 1]; void aliensReset(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/globals.c new/ninvaders-0.1.2/globals.c --- old/ninvaders-0.1.1/globals.c 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/globals.c 2022-07-02 15:02:21.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,7 +29,7 @@ #define MAJOR 0 #define MINOR 1 -#define RELEASE 1 +#define RELEASE 2 @@ -53,8 +53,8 @@ void showVersion() { fprintf(stderr, "*** nInvaders %i.%i.%i\n", MAJOR, MINOR, RELEASE); - fprintf(stderr, "*** (C)opyleft 2k2 by Dettus\n"); - fprintf(stderr, "*** [email protected]\n"); + fprintf(stderr, "*** (C)opyleft 2k22 by Dettus\n"); + fprintf(stderr, "*** [email protected]\n"); fprintf(stderr, "Additional code by Mike Saarna,\n"); fprintf(stderr, "Sebastian Gutsfeld -> [email protected],\n"); fprintf(stderr, "Alexander Hollinger -> [email protected] and\n"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/globals.h new/ninvaders-0.1.2/globals.h --- old/ninvaders-0.1.1/globals.h 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/globals.h 2022-07-02 15:01:41.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/nInvaders.c new/ninvaders-0.1.2/nInvaders.c --- old/ninvaders-0.1.1/nInvaders.c 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/nInvaders.c 2022-07-02 15:01:26.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -35,6 +35,9 @@ int lives; long score; int status; // status handled in timer +int weite; +int level; +int skill_level; #define GAME_LOOP 1 #define GAME_NEXTLEVEL 2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/nInvaders.h new/ninvaders-0.1.2/nInvaders.h --- old/ninvaders-0.1.1/nInvaders.h 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/nInvaders.h 2022-07-02 15:01:45.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,9 +46,9 @@ void doScoring(int alienType); // todo: let's try to not having to declare these "public" -int weite; -int level; -int skill_level; +extern int weite; +extern int level; +extern int skill_level; // included from globals.h extern void doSleep(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/player.c new/ninvaders-0.1.2/player.c --- old/ninvaders-0.1.1/player.c 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/player.c 2022-07-02 15:01:29.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/player.h new/ninvaders-0.1.2/player.h --- old/ninvaders-0.1.1/player.h 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/player.h 2022-07-02 15:01:50.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/ufo.c new/ninvaders-0.1.2/ufo.c --- old/ninvaders-0.1.1/ufo.c 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/ufo.c 2022-07-02 15:01:32.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,6 +27,7 @@ #include "nInvaders.h" static int fShowUfo = 0; +Ufo ufo; /** * initialize ufo attributes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/ufo.h new/ninvaders-0.1.2/ufo.h --- old/ninvaders-0.1.1/ufo.h 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/ufo.h 2022-07-02 15:01:53.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,7 +34,7 @@ int posY; // vertical position of aliens }; -Ufo ufo; +extern Ufo ufo; void ufoReset(); int ufoShowUfo(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/view.c new/ninvaders-0.1.2/view.c --- old/ninvaders-0.1.1/view.c 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/view.c 2022-07-02 15:01:34.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ninvaders-0.1.1/view.h new/ninvaders-0.1.2/view.h --- old/ninvaders-0.1.1/view.h 2003-05-08 21:19:50.000000000 +0200 +++ new/ninvaders-0.1.2/view.h 2022-07-02 15:05:32.000000000 +0200 @@ -1,6 +1,6 @@ /** * nInvaders - a space invaders clone for ncurses - * Copyright (C) 2002-2003 Dettus + * Copyright (C) 2002-2022 Dettus * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by
