[packages/subversion] fix build with setuptools >= 81
atler
atler at pld-linux.org
Mon Jul 27 12:07:40 CEST 2026
commit 46e75c85bd06cb8ebf9ffef5514411a5a1453f77
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jul 27 00:26:57 2026 +0200
fix build with setuptools >= 81
setuptools 81 dropped dry run mode. it's not used in PLD so just drop
the problematic part. especially that upstream considers python3
bindings broken and already removed python bindings entirely in soon to
be released subversion 1.15.0.
setuptools81.patch | 15 +++++++++++++++
subversion.spec | 2 ++
2 files changed, 17 insertions(+)
---
diff --git a/subversion.spec b/subversion.spec
index 7e3b847..5b2229e 100644
--- a/subversion.spec
+++ b/subversion.spec
@@ -75,6 +75,7 @@ Patch5: %{name}-sh.patch
Patch6: %{name}-ctypes.patch
Patch7: %{name}-perl.patch
Patch8: %{name}-swig-py.patch
+Patch9: setuptools81.patch
URL: http://subversion.apache.org/
%{?with_apache:BuildRequires: apache-devel >= 2.4.14}
BuildRequires: apr-devel >= 1:1.4
@@ -511,6 +512,7 @@ uwierzytelniać się przy użyciu Portfela KDE.
%patch -P 6 -p1
%patch -P 7 -p1
%patch -P 8 -p1
+%patch -P 9 -p1
%{__sed} -i -e 's#serf_prefix/lib#serf_prefix/%{_lib}#g' build/ac-macros/serf.m4
diff --git a/setuptools81.patch b/setuptools81.patch
new file mode 100644
index 0000000..279dce7
--- /dev/null
+++ b/setuptools81.patch
@@ -0,0 +1,15 @@
+--- subversion-1.14.5/subversion/bindings/ctypes-python/setup.py.orig 2013-05-05 15:57:03.000000000 +0200
++++ subversion-1.14.5/subversion/bindings/ctypes-python/setup.py 2026-07-26 23:17:12.574187631 +0200
+@@ -112,12 +112,6 @@
+ def finalize_options (self):
+ _build.finalize_options(self)
+
+- # Distutils doesn't appear to like when you have --dry-run after the build
+- # build command so fail out if this is the case.
+- if self.dry_run != self.distribution.dry_run:
+- raise DistutilsOptionError("The --dry-run flag must be specified " \
+- "before the 'build' command")
+-
+ # finalize_options()
+
+ ##############################################################################
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/subversion.git/commitdiff/46e75c85bd06cb8ebf9ffef5514411a5a1453f77
More information about the pld-cvs-commit
mailing list