[packages/eboard] Rel 9
arekm
arekm at pld-linux.org
Thu May 21 15:26:46 CEST 2026
commit 87772b272ef8962883a0f203001bee285515e0be
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 15:26:00 2026 +0200
Rel 9
eboard-extra-flags.patch | 21 +++++++++++++++
eboard-format-security.patch | 61 ++++++++++++++++++++++++++++++++++++++++++++
eboard-libpng15.patch | 12 ++++-----
eboard.spec | 10 ++++++--
4 files changed, 96 insertions(+), 8 deletions(-)
---
diff --git a/eboard.spec b/eboard.spec
index 0e45074..1afe936 100644
--- a/eboard.spec
+++ b/eboard.spec
@@ -2,7 +2,7 @@ Summary: GTK+ chess board interface for ICS and chess engines
Summary(pl.UTF-8): Interfejs GTK+ do szachowych programów i serwerów
Name: eboard
Version: 1.1.1
-Release: 8
+Release: 9
License: GPL v2+
Group: X11/Applications/Games
Source0: http://dl.sourceforge.net/eboard/%{name}-%{version}.tar.bz2
@@ -10,6 +10,8 @@ Source0: http://dl.sourceforge.net/eboard/%{name}-%{version}.tar.bz2
Source1: %{name}.desktop
Patch0: %{name}-const.patch
Patch1: %{name}-libpng15.patch
+Patch2: %{name}-extra-flags.patch
+Patch3: %{name}-format-security.patch
URL: http://www.bergo.eng.br/eboard/
BuildRequires: gtk+2-devel
BuildRequires: libpng-devel
@@ -37,6 +39,8 @@ szachowymi jak GNUchess, Sjeng czy Crafty.
%setup -q
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
# This way is needed, because package contains non-standard configure file
%build
@@ -45,7 +49,9 @@ szachowymi jak GNUchess, Sjeng czy Crafty.
--compiler="%{__cxx}" \
--extra-libs="dl" \
--man-prefix="%{_mandir}"
-%{__make}
+%{__make} \
+ EXTRA_CXXFLAGS="%{rpmcxxflags} %{rpmcppflags}" \
+ EXTRA_LDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/eboard-extra-flags.patch b/eboard-extra-flags.patch
new file mode 100644
index 0000000..d15d81c
--- /dev/null
+++ b/eboard-extra-flags.patch
@@ -0,0 +1,21 @@
+Allow injecting additional flags via EXTRA_CXXFLAGS / EXTRA_LDFLAGS so the
+distro can append %{rpmcxxflags}, %{rpmcppflags} and %{rpmldflags} without
+losing the pkg-config flags that configure puts into CXXFLAGS/LDFLAGS
+(configure's --extra-flags splits on ':', which is incompatible with
+flag values that contain ':' or spaces).
+
+--- eboard-1.1.1/elifekam.orig 2026-05-21 01:23:21.943855709 +0200
++++ eboard-1.1.1/elifekam 2026-05-21 01:23:21.946148116 +0200
+@@ -24,10 +24,10 @@
+ all: eboard nls-dicts
+
+ eboard: $(OBJS)
+- $(CXX) $(LDFLAGS) -o eboard $(OBJS)
++ $(CXX) $(LDFLAGS) $(EXTRA_LDFLAGS) -o eboard $(OBJS)
+
+ .cc.o: $< $(HEADERS) $(XPMS)
+- $(CXX) $(CXXFLAGS) -c $< -o $@
++ $(CXX) $(CXXFLAGS) $(EXTRA_CXXFLAGS) -c $< -o $@
+
+ nls-dicts:
+ $(MAKE) -C multilang dicts
diff --git a/eboard-format-security.patch b/eboard-format-security.patch
new file mode 100644
index 0000000..50b292c
--- /dev/null
+++ b/eboard-format-security.patch
@@ -0,0 +1,61 @@
+Use "%s" format with translated strings to satisfy -Werror=format-security.
+
+--- eboard-1.1.1/clock.cc.orig 2026-05-21 01:25:37.072175364 +0200
++++ eboard-1.1.1/clock.cc 2026-05-21 01:25:37.082336582 +0200
+@@ -310,7 +310,7 @@
+ char z[64],y[64];
+ switch(mode) {
+ case TC_NONE:
+- snprintf(dest,maxlen,_("untimed")); // TRANSLATE
++ snprintf(dest,maxlen,"%s",_("untimed")); // TRANSLATE
+ break;
+ case TC_SPM:
+ TimeControl::secondsToString(z,64,value[0],true);
+@@ -330,7 +330,7 @@
+ char z[64],y[64];
+ switch(mode) {
+ case TC_NONE:
+- snprintf(dest,maxlen,_("no time control set"));
++ snprintf(dest,maxlen,"%s",_("no time control set"));
+ break;
+ case TC_SPM:
+ TimeControl::secondsToString(z,64,value[0],true);
+--- eboard-1.1.1/sound.cc.orig 2026-05-21 01:25:37.074161271 +0200
++++ eboard-1.1.1/sound.cc 2026-05-21 01:25:37.084794086 +0200
+@@ -320,7 +320,7 @@
+ snprintf(pvt,128,_("run %s"),ExtraData);
+ break;
+ case PLAIN_BEEP:
+- snprintf(pvt,128,_("plain console beep"));
++ snprintf(pvt,128,"%s",_("plain console beep"));
+ break;
+ default:
+ g_strlcpy(pvt,_("nothing"),128);
+--- eboard-1.1.1/network.cc.orig 2026-05-21 01:25:37.075938306 +0200
++++ eboard-1.1.1/network.cc 2026-05-21 01:25:37.087363374 +0200
+@@ -667,7 +667,7 @@
+ arguments[i]=0;
+
+ if (HelperBin[0]==0) {
+- snprintf(errorMessage,128,_("Helper program not found"));
++ snprintf(errorMessage,128,"%s",_("Helper program not found"));
+ return -1;
+ }
+
+--- eboard-1.1.1/dgtboard.cc.orig 2026-05-21 01:25:37.077675391 +0200
++++ eboard-1.1.1/dgtboard.cc 2026-05-21 01:25:37.092701242 +0200
+@@ -111,12 +111,12 @@
+ const char *error;
+ if (!dgtnix_dll_handle)
+ {
+- count += snprintf(fErrorString+count,512-count,_("Unable to load dgtnix library.\n"));
++ count += snprintf(fErrorString+count,512-count,"%s",_("Unable to load dgtnix library.\n"));
+ count+= snprintf(fErrorString+count,512-count,"dlerror: %s\n",dlerror());
+ global.output->append(fErrorString,global.Colors.TextDefault,IM_NORMAL);
+ return false;
+ }
+- count += snprintf(fErrorString+count,512-count,_("Unable to load dgtnix library symbol.\n"));
++ count += snprintf(fErrorString+count,512-count,"%s",_("Unable to load dgtnix library symbol.\n"));
+ dlerror();
+
+ ptr_dgtnix_errno=(int *)dlsym(dgtnix_dll_handle, "dgtnix_errno");
diff --git a/eboard-libpng15.patch b/eboard-libpng15.patch
index d37cf3c..f1cbdda 100644
--- a/eboard-libpng15.patch
+++ b/eboard-libpng15.patch
@@ -1,16 +1,16 @@
---- eboard-1.1.1/cimg.cc~ 2008-02-22 16:51:22.000000000 +0100
-+++ eboard-1.1.1/cimg.cc 2012-02-11 12:13:32.243687703 +0100
+--- eboard-1.1.1/cimg.cc.orig 2008-02-22 16:51:22.000000000 +0100
++++ eboard-1.1.1/cimg.cc 2026-05-21 01:21:23.112780356 +0200
@@ -94,11 +94,11 @@
ct == PNG_COLOR_TYPE_GRAY_ALPHA)
- png_set_gray_to_rgb(pngp, infp);
-
+ png_set_gray_to_rgb(pngp);
+
- alloc(pngp->width,pngp->height);
+ alloc(png_get_image_width(pngp, infp), png_get_image_height(pngp, infp));
if (!ok) { fclose(f); return; }
ok = 0;
-
+
- for(i=0;i<pngp->height;i++) {
+ for(i=0;i<png_get_image_height(pngp, infp);i++) {
png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL);
}
-
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eboard.git/commitdiff/87772b272ef8962883a0f203001bee285515e0be
More information about the pld-cvs-commit
mailing list