From 590bddacc010fb6450db0364936a5b42a3033e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Wed, 27 Nov 2024 23:27:45 +0000 Subject: [PATCH 1/4] Add boggle_fread_chk.patch --- boggle_fread_chk.patch | 11 +++++++++++ bsd-games.spec | 8 ++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 boggle_fread_chk.patch diff --git a/boggle_fread_chk.patch b/boggle_fread_chk.patch new file mode 100644 index 0000000..60a7ee8 --- /dev/null +++ b/boggle_fread_chk.patch @@ -0,0 +1,11 @@ +--- bsd-games-2.17/boggle/boggle/word.c.orig 2024-11-27 23:17:50.170707535 +0000 ++++ bsd-games-2.17/boggle/boggle/word.c 2024-11-27 23:22:28.601210911 +0000 +@@ -165,7 +165,7 @@ loaddict(fp) + + p = dictspace; + st = -1; +- while (n > 0 && (st = fread(p, 1, BUFSIZ, fp)) > 0) { ++ while (n > 0 && (st = fread(p, 1, n > st ? BUFSIZ : n, fp)) > 0) { + p += st; + n -= st; + } diff --git a/bsd-games.spec b/bsd-games.spec index d246c5e..47e534b 100644 --- a/bsd-games.spec +++ b/bsd-games.spec @@ -6,7 +6,7 @@ Summary: Collection of text-based games Name: bsd-games Version: 2.17 -Release: 78%{?dist} +Release: 79%{?dist} # Automatically converted from old format: BSD and BSD with advertising - review is highly recommended. License: LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising URL: ftp://metalab.unc.edu/pub/Linux/games/ @@ -44,8 +44,8 @@ Patch23: bsd-games-2.17-printf.patch Patch24: bsd-games-2.17-printw.patch Patch25: bsd-games-c99.patch Patch26: atc.patch +Patch27: boggle_fread_chk.patch -BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: ncurses-devel @@ -97,6 +97,7 @@ popd %patch -P24 -p1 -b .printw %patch -P25 -p1 -b .c99 %patch -P26 -p1 -b .atc +%patch -P27 -p1 -b .fread_chk %build # We include a templatized configuration settings file to set @@ -225,6 +226,9 @@ exit 0 %doc AUTHORS COPYING ChangeLog ChangeLog.0 THANKS YEAR2000 README.hunt trek/USD.doc/trek.me %changelog +* Wed Nov 27 2024 Sérgio Basto - 2.17-79 +- Add boggle_fread_chk.patch + * Tue Sep 24 2024 Sérgio Basto - 2.17-78 - Only show offensive acronyms with usage: wtf [-o] [-f dbfile] [is] term ... From 45ae1dd827243731a7b047aef4aae94afb06aecd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 12:54:24 +0000 Subject: [PATCH 2/4] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- bsd-games.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bsd-games.spec b/bsd-games.spec index 47e534b..2a5f56a 100644 --- a/bsd-games.spec +++ b/bsd-games.spec @@ -6,7 +6,7 @@ Summary: Collection of text-based games Name: bsd-games Version: 2.17 -Release: 79%{?dist} +Release: 80%{?dist} # Automatically converted from old format: BSD and BSD with advertising - review is highly recommended. License: LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising URL: ftp://metalab.unc.edu/pub/Linux/games/ @@ -226,6 +226,9 @@ exit 0 %doc AUTHORS COPYING ChangeLog ChangeLog.0 THANKS YEAR2000 README.hunt trek/USD.doc/trek.me %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 2.17-80 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Nov 27 2024 Sérgio Basto - 2.17-79 - Add boggle_fread_chk.patch From b8c9baac4a6d96e0294a7a5fc62ababd95a47db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 23 Jan 2025 17:23:36 +0100 Subject: [PATCH 3/4] Add sysusers.d config file to allow rpm to create users/groups automatically --- bsd-games.spec | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/bsd-games.spec b/bsd-games.spec index 2a5f56a..8f60146 100644 --- a/bsd-games.spec +++ b/bsd-games.spec @@ -6,7 +6,7 @@ Summary: Collection of text-based games Name: bsd-games Version: 2.17 -Release: 80%{?dist} +Release: 81%{?dist} # Automatically converted from old format: BSD and BSD with advertising - review is highly recommended. License: LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising URL: ftp://metalab.unc.edu/pub/Linux/games/ @@ -57,7 +57,6 @@ BuildRequires: libfl-static BuildRequires: flex-devel %endif BuildRequires: bison -Requires(pre): shadow-utils %description Bsd-games includes adventure, arithmetic, atc, backgammon, battlestar, @@ -99,6 +98,13 @@ popd %patch -P26 -p1 -b .atc %patch -P27 -p1 -b .fread_chk +# Create a sysusers.d config file +cat >bsd-games.sysusers.conf </dev/null || groupadd -r $group -done -exit 0 +install -m0644 -D bsd-games.sysusers.conf %{buildroot}%{_sysusersdir}/bsd-games.conf %files %{_bindir}/adventure @@ -224,8 +226,12 @@ exit 0 %config(noreplace) %attr(664,root,games) %{_var}/games/snakerawscores %config(noreplace) %attr(664,root,games) %{_var}/games/bsd-fbg.scores %doc AUTHORS COPYING ChangeLog ChangeLog.0 THANKS YEAR2000 README.hunt trek/USD.doc/trek.me +%{_sysusersdir}/bsd-games.conf %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 2.17-81 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.17-80 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From a6da96cc00ed74a2dd139222f35ba3ac7774122d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 17:53:54 +0000 Subject: [PATCH 4/4] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- bsd-games.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bsd-games.spec b/bsd-games.spec index 8f60146..df28236 100644 --- a/bsd-games.spec +++ b/bsd-games.spec @@ -6,7 +6,7 @@ Summary: Collection of text-based games Name: bsd-games Version: 2.17 -Release: 81%{?dist} +Release: 82%{?dist} # Automatically converted from old format: BSD and BSD with advertising - review is highly recommended. License: LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising URL: ftp://metalab.unc.edu/pub/Linux/games/ @@ -229,6 +229,9 @@ install -m0644 -D bsd-games.sysusers.conf %{buildroot}%{_sysusersdir}/bsd-games. %{_sysusersdir}/bsd-games.conf %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 2.17-82 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 2.17-81 - Add sysusers.d config file to allow rpm to create users/groups automatically