[packages/mydumper] Up to 1.0.19

arekm arekm at pld-linux.org
Sat Nov 28 17:44:49 CET 2026


commit bd7407a6febfabcc0e851b9282bea6c83e60aaf7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 16:13:29 2026 +0100

    Up to 1.0.19
    
    Fixes CVE-2025-30224.

 mydumper-cflags.patch | 12 ++++++++++++
 mydumper.spec         | 23 ++++++++++++++---------
 2 files changed, 26 insertions(+), 9 deletions(-)
---
diff --git a/mydumper.spec b/mydumper.spec
index 23b1671..299e6cd 100644
--- a/mydumper.spec
+++ b/mydumper.spec
@@ -1,23 +1,23 @@
 #
 # Conditional build:
-%bcond_with	doc		# build documentation
 %bcond_without	tests		# build without tests
 
 Summary:	MySQL Data Dumper
 Name:		mydumper
-Version:	0.9.5
-Release:	2
+Version:	1.0.19
+Release:	1
 License:	GPL v3
 Group:		Applications/Databases
-Source0:	https://github.com/maxbube/mydumper/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	6599d60f0088dfe55582a3f71c87f284
-URL:		https://github.com/maxbube/mydumper
+Source0:	https://github.com/mydumper/mydumper/archive/v%{version}-1/%{name}-%{version}-1.tar.gz
+# Source0-md5:	3ba0c23d3b14d3c6c627084fe1ade10c
+Patch0:		%{name}-cflags.patch
+URL:		https://github.com/mydumper/mydumper
 BuildRequires:	cmake
 BuildRequires:	glib2-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	mysql-devel
 BuildRequires:	openssl-devel
-BuildRequires:	pcre-devel
+BuildRequires:	pcre2-8-devel
 BuildRequires:	pkgconfig
 BuildRequires:	zlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,16 +34,20 @@ mydumper/myloader:
   inclusions and exclusions
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}-1
+%patch -P0 -p1
 
 %build
 install -d build
 cd build
 %cmake \
-	-DBUILD_DOCS=%{!?with_doc:OFF}%{?with_doc:ON} \
 	..
 %{__make}
 
+%if %{with tests}
+%{__make} test
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install -C build \
@@ -55,5 +59,6 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README.md
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mydumper.cnf
 %attr(755,root,root) %{_bindir}/mydumper
 %attr(755,root,root) %{_bindir}/myloader
diff --git a/mydumper-cflags.patch b/mydumper-cflags.patch
new file mode 100644
index 0000000..c6e254e
--- /dev/null
+++ b/mydumper-cflags.patch
@@ -0,0 +1,12 @@
+# upstream overwrites CMAKE_C_FLAGS, dropping the flags passed by the packager
+--- mydumper-1.0.19-1/CMakeLists.txt.orig
++++ mydumper-1.0.19-1/CMakeLists.txt
+@@ -44,7 +44,7 @@
+     set(WITH_SSL OFF)
+ endif()
+ 
+-set(CMAKE_C_FLAGS "-std=gnu99 -Wall -Wno-deprecated-declarations -Wunused -Wwrite-strings -Wno-strict-aliasing -Wextra -Wshadow -g -Werror ${MYSQL_CFLAGS}")
++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -Wno-deprecated-declarations -Wunused -Wwrite-strings -Wno-strict-aliasing -Wextra -Wshadow -g -Werror ${MYSQL_CFLAGS}")
+ include_directories(${MYDUMPER_SOURCE_DIR} ${MYSQL_INCLUDE_DIR} ${GLIB2_INCLUDE_DIR} ${PCRE2_INCLUDE_DIR} ${ZLIB_INCLUDE_DIRS} )
+ 
+ OPTION(WITH_ASAN "Build with ASAN" OFF)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mydumper.git/commitdiff/bd7407a6febfabcc0e851b9282bea6c83e60aaf7



More information about the pld-cvs-commit mailing list