[packages/percona-toolkit] Up to 3.7.2

arekm arekm at pld-linux.org
Fri Nov 27 22:14:18 CET 2026


commit 3f6dfd4fa55c5c18be4001e54dae631a2d3daa5f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 16:10:06 2026 +0100

    Up to 3.7.2

 no-gotools.patch      | 36 +++++++++++++++++++++++++++
 no-versioncheck.patch | 69 +++++++++++++++------------------------------------
 percona-toolkit.spec  | 14 ++++++-----
 3 files changed, 64 insertions(+), 55 deletions(-)
---
diff --git a/percona-toolkit.spec b/percona-toolkit.spec
index 3a13dc8..d2d701b 100644
--- a/percona-toolkit.spec
+++ b/percona-toolkit.spec
@@ -1,16 +1,17 @@
 Summary:	Essential command-line utilities for MySQL
 Name:		percona-toolkit
-Version:	3.1
-Release:	2
+Version:	3.7.2
+Release:	1
 License:	GPL v2
 Group:		Applications/Databases
-Source0:	https://www.percona.com/downloads/percona-toolkit/%{version}/source/tarball/%{name}-%{version}.tar.gz
-# Source0-md5:	7521f8cbe1f5e579fbc742e3c1667327
+Source0:	https://github.com/percona/percona-toolkit/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	8510989c6250b7bf9eef40bfd9b48a77
 Source1:	%{name}.conf
 Source2:	%{name}.tmpfiles
 Source3:	pt-kill.init
 Patch0:		no-versioncheck.patch
 Patch1:		bug-1314696.patch
+Patch2:		no-gotools.patch
 URL:		https://www.percona.com/software/mysql-tools/percona-toolkit
 BuildRequires:	perl-ExtUtils-MakeMaker
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -54,6 +55,7 @@ server administration.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p2
+%patch -P2 -p1
 
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -v
 
@@ -91,7 +93,7 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/percona-version-check
 ln -s pt-show-grants $RPM_BUILD_ROOT%{_bindir}/mysqldumpgrants
 echo '.so man1/pt-show-grants.1p' > $RPM_BUILD_ROOT%{_mandir}/man1/mysqldumpgrants.1
 
-%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/%{name}/.packlist
+%{__rm} -r $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Percona
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -114,7 +116,7 @@ fi
 %ghost %{_sysconfdir}/%{name}/percona-version-check
 %attr(754,root,root) /etc/rc.d/init.d/pt-kill
 %attr(755,root,root) %{_bindir}/pt-*
-%attr(755,root,root) %{_bindir}/mysqldumpgrants
+%{_bindir}/mysqldumpgrants
 %{systemdtmpfilesdir}/%{name}.conf
 %{_mandir}/man1/%{name}.1*
 %{_mandir}/man1/pt-*.1*
diff --git a/no-gotools.patch b/no-gotools.patch
new file mode 100644
index 0000000..427b038
--- /dev/null
+++ b/no-gotools.patch
@@ -0,0 +1,36 @@
+# Go tools (MongoDB, PostgreSQL, k8s) need network-fetched modules; only the MySQL Perl/shell tools are packaged
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,24 +1,6 @@
+ use ExtUtils::MakeMaker;
+ use ExtUtils::MY;
+ 
+-sub MY::postamble {
+-    return <<'MAKE_GOTOOLS';
+-pkgs = $(shell find src/go -type d -name "pt-*" -exec basename {} \;)
+-
+-gotools:
+-	cd src/go && VERSION=$(VERSION) $(MAKE) build
+-	@$(foreach pkg,$(pkgs),cp bin/$(pkg) $(INST_BIN);)
+-
+-goclean:
+-	@$(foreach pkg,$(pkgs),rm -f bin/$(pkg) 2> /dev/null;)
+-
+-all :: gotools
+-install :: gotools
+-clean :: goclean
+-
+-MAKE_GOTOOLS
+-}
+-
+ WriteMakefile(
+     NAME      => 'Percona::Toolkit',
+     VERSION   => '3.7.2',
+@@ -38,7 +20,6 @@
+       } <bin/*>
+     },
+     MAN3PODS     => {}, # man(3) pages are for C libs
+-    depend => {manifypods => gotools},
+     PREREQ_PM    => {
+         DBI           => 1.46,
+         DBD::mysql    => 5.0130_0,
diff --git a/no-versioncheck.patch b/no-versioncheck.patch
index 0bc7ea9..1ddc98d 100644
--- a/no-versioncheck.patch
+++ b/no-versioncheck.patch
@@ -1,8 +1,7 @@
 diff --git a/bin/pt-archiver b/bin/pt-archiver
-index 73aa429..e9edddd 100755
 --- a/bin/pt-archiver
 +++ b/bin/pt-archiver
-@@ -7482,7 +7482,6 @@ Show version and exit.
+@@ -8577,7 +8577,6 @@
  
  =item --[no]version-check
  
@@ -11,10 +10,9 @@ index 73aa429..e9edddd 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-config-diff b/bin/pt-config-diff
-index bc16421..e0bb3a2 100755
 --- a/bin/pt-config-diff
 +++ b/bin/pt-config-diff
-@@ -5580,7 +5580,6 @@ Show version and exit.
+@@ -5893,7 +5893,6 @@
  
  =item --[no]version-check
  
@@ -23,10 +21,9 @@ index bc16421..e0bb3a2 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-deadlock-logger b/bin/pt-deadlock-logger
-index e7ae5cc..fe21fcc 100755
 --- a/bin/pt-deadlock-logger
 +++ b/bin/pt-deadlock-logger
-@@ -5349,7 +5349,6 @@ Show version and exit.
+@@ -5650,7 +5650,6 @@
  
  =item --[no]version-check
  
@@ -35,10 +32,9 @@ index e7ae5cc..fe21fcc 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-diskstats b/bin/pt-diskstats
-index 96daf17..bc3ebe7 100755
 --- a/bin/pt-diskstats
 +++ b/bin/pt-diskstats
-@@ -5485,7 +5485,6 @@ Show version and exit.
+@@ -5587,7 +5587,6 @@
  
  =item --[no]version-check
  
@@ -47,10 +43,9 @@ index 96daf17..bc3ebe7 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-duplicate-key-checker b/bin/pt-duplicate-key-checker
-index 6b2ac8a..fb404f3 100755
 --- a/bin/pt-duplicate-key-checker
 +++ b/bin/pt-duplicate-key-checker
-@@ -5450,7 +5450,6 @@ Show version and exit.
+@@ -5689,7 +5689,6 @@
  
  =item --[no]version-check
  
@@ -59,10 +54,9 @@ index 6b2ac8a..fb404f3 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-find b/bin/pt-find
-index a397d37..b19780f 100755
 --- a/bin/pt-find
 +++ b/bin/pt-find
-@@ -4457,7 +4457,6 @@ Show version and exit.
+@@ -4706,7 +4706,6 @@
  
  =item --[no]version-check
  
@@ -71,10 +65,9 @@ index a397d37..b19780f 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-fk-error-logger b/bin/pt-fk-error-logger
-index 06d3cae..2fc700d 100755
 --- a/bin/pt-fk-error-logger
 +++ b/bin/pt-fk-error-logger
-@@ -4352,7 +4352,6 @@ Show version and exit.
+@@ -4638,7 +4638,6 @@
  
  =item --[no]version-check
  
@@ -83,10 +76,9 @@ index 06d3cae..2fc700d 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-heartbeat b/bin/pt-heartbeat
-index 6f4e5f9..71eb22b 100755
 --- a/bin/pt-heartbeat
 +++ b/bin/pt-heartbeat
-@@ -6036,7 +6036,6 @@ Show version and exit.
+@@ -7604,7 +7604,6 @@
  
  =item --[no]version-check
  
@@ -95,10 +87,9 @@ index 6f4e5f9..71eb22b 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-index-usage b/bin/pt-index-usage
-index 2aabfb2..06b736f 100755
 --- a/bin/pt-index-usage
 +++ b/bin/pt-index-usage
-@@ -7365,7 +7365,6 @@ Show version and exit.
+@@ -7593,7 +7593,6 @@
  
  =item --[no]version-check
  
@@ -107,10 +98,9 @@ index 2aabfb2..06b736f 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-kill b/bin/pt-kill
-index eb82a47..c0ff2c4 100755
 --- a/bin/pt-kill
 +++ b/bin/pt-kill
-@@ -7643,7 +7643,6 @@ Show version and exit.
+@@ -8382,7 +8382,6 @@
  
  =item --[no]version-check
  
@@ -119,10 +109,9 @@ index eb82a47..c0ff2c4 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change
-index 4a6dade..b2d21dd 100755
 --- a/bin/pt-online-schema-change
 +++ b/bin/pt-online-schema-change
-@@ -11315,7 +11315,6 @@ Show version and exit.
+@@ -13907,7 +13907,6 @@
  
  =item --[no]version-check
  
@@ -131,10 +120,9 @@ index 4a6dade..b2d21dd 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-query-digest b/bin/pt-query-digest
-index dda7196..4b2ba8e 100755
 --- a/bin/pt-query-digest
 +++ b/bin/pt-query-digest
-@@ -16285,7 +16285,6 @@ Show version and exit.
+@@ -16851,7 +16851,6 @@
  
  =item --[no]version-check
  
@@ -142,23 +130,10 @@ index dda7196..4b2ba8e 100755
  
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
-diff --git a/bin/pt-slave-delay b/bin/pt-slave-delay
-index 35f7baf..a702c62 100755
---- a/bin/pt-slave-delay
-+++ b/bin/pt-slave-delay
-@@ -4715,7 +4715,6 @@ Show version and exit.
- 
- =item --[no]version-check
- 
--default: yes
- 
- Check for the latest version of Percona Toolkit, MySQL, and other programs.
- 
-diff --git a/bin/pt-slave-restart b/bin/pt-slave-restart
-index fd0887e..feda0aa 100755
---- a/bin/pt-slave-restart
-+++ b/bin/pt-slave-restart
-@@ -5655,7 +5655,6 @@ Show version and exit.
+diff --git a/bin/pt-replica-restart b/bin/pt-replica-restart
+--- a/bin/pt-replica-restart
++++ b/bin/pt-replica-restart
+@@ -6343,7 +6343,6 @@
  
  =item --[no]version-check
  
@@ -167,10 +142,9 @@ index fd0887e..feda0aa 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-table-checksum b/bin/pt-table-checksum
-index 590ba87..f6653ec 100755
 --- a/bin/pt-table-checksum
 +++ b/bin/pt-table-checksum
-@@ -12331,7 +12331,6 @@ Show version and exit.
+@@ -14186,7 +14186,6 @@
  
  =item --[no]version-check
  
@@ -179,10 +153,9 @@ index 590ba87..f6653ec 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-table-sync b/bin/pt-table-sync
-index 5eb3d8c..7d29957 100755
 --- a/bin/pt-table-sync
 +++ b/bin/pt-table-sync
-@@ -12518,7 +12518,6 @@ Show version and exit.
+@@ -13250,7 +13250,6 @@
  
  =item --[no]version-check
  
@@ -191,10 +164,9 @@ index 5eb3d8c..7d29957 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-upgrade b/bin/pt-upgrade
-index c22a09b..e088e40 100755
 --- a/bin/pt-upgrade
 +++ b/bin/pt-upgrade
-@@ -11020,7 +11020,6 @@ Show version and exit.
+@@ -11358,7 +11358,6 @@
  
  =item --[no]version-check
  
@@ -203,10 +175,9 @@ index c22a09b..e088e40 100755
  Check for the latest version of Percona Toolkit, MySQL, and other programs.
  
 diff --git a/bin/pt-variable-advisor b/bin/pt-variable-advisor
-index 981788d..8fc9d08 100755
 --- a/bin/pt-variable-advisor
 +++ b/bin/pt-variable-advisor
-@@ -5985,7 +5985,6 @@ Show version and exit.
+@@ -6252,7 +6252,6 @@
  
  =item --[no]version-check
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/percona-toolkit.git/commitdiff/3f6dfd4fa55c5c18be4001e54dae631a2d3daa5f



More information about the pld-cvs-commit mailing list