[packages/abrick] Rel 4
arekm
arekm at pld-linux.org
Mon May 11 23:44:34 CEST 2026
commit c20f5a43dfbdd5ccdb37aff3db28fd3bc060f474
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon May 11 23:44:19 2026 +0200
Rel 4
abrick-format-security.patch | 20 ++++++++++++++++++++
abrick.spec | 7 +++++--
2 files changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/abrick.spec b/abrick.spec
index 1dd0291..fb20077 100644
--- a/abrick.spec
+++ b/abrick.spec
@@ -3,7 +3,7 @@ Summary(hu.UTF-8): Egy Tetris-klón
Summary(pl.UTF-8): Abandoned Bricks to gra typu tetris oparta o SDL
Name: abrick
Version: 1.12
-Release: 3
+Release: 4
License: GPL v2
Group: X11/Applications/Games
Source0: http://dl.sourceforge.net/project/abrick/abrick/abrick-1.12/%{name}-%{version}-src.tar.gz
@@ -11,6 +11,7 @@ Source0: http://dl.sourceforge.net/project/abrick/abrick/abrick-1.12/%{name}-%{v
Patch0: %{name}-buildfix.patch
Patch1: %{name}-paths.patch
Patch2: %{name}-usage.patch
+Patch3: %{name}-format-security.patch
URL: http://abrick.sourceforge.net/
BuildRequires: SDL-devel
BuildRequires: SDL_image-devel
@@ -59,9 +60,11 @@ linię, przeciwnik otrzymuje dodatkowe śmieci.
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
+%patch -P3 -p1
%build
-%{__make}
+%{__make} \
+ MY_CFLAGS="%{rpmcppflags} %{rpmcxxflags} $(sdl-config --cflags)"
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/abrick-format-security.patch b/abrick-format-security.patch
new file mode 100644
index 0000000..e94fc6a
--- /dev/null
+++ b/abrick-format-security.patch
@@ -0,0 +1,20 @@
+--- abrick-1.12-src/njamfont.cpp.orig 2026-05-11 23:25:44.670794614 +0200
++++ abrick-1.12-src/njamfont.cpp 2026-05-11 23:25:44.674443764 +0200
+@@ -37,7 +37,7 @@
+ if (!temp)
+ {
+ printf("FAILED.\n");
+- printf((const char *)SDL_GetError());
++ printf("%s", (const char *)SDL_GetError());
+ return;
+ }
+ printf("OK.\n");
+@@ -133,7 +133,7 @@
+ if (0 != SDL_BlitSurface(m_Surface, &src, Destination, &dest))
+ {
+ printf("Failed to blit font character image.\n");
+- printf((const char *)SDL_GetError());
++ printf("%s", (const char *)SDL_GetError());
+ return false;
+ }
+ break;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/abrick.git/commitdiff/c20f5a43dfbdd5ccdb37aff3db28fd3bc060f474
More information about the pld-cvs-commit
mailing list