[packages/python3] - allow building without Berkeley DB

hawk hawk at pld-linux.org
Sun May 31 13:21:19 CEST 2026


commit aa3c555584e7c96d2e2435ed2dc399e0966c4251
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Sun May 31 13:20:58 2026 +0200

    - allow building without Berkeley DB

 python3.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/python3.spec b/python3.spec
index b87e30c..50c9874 100644
--- a/python3.spec
+++ b/python3.spec
@@ -8,6 +8,7 @@
 %bcond_without	tests			# disables Python testing
 %bcond_with	verbose_tests		# runs tests in verbose mode
 %bcond_without	optimizations		# expensive, stable optimizations (PGO etc.) + LTO
+%bcond_without	bdb			# disable support for Berkeley DB
 #
 # tests which will not work on 64-bit platforms
 %define		no64bit_tests	-x test_rgbimg -x test_imageop
@@ -76,7 +77,7 @@ BuildRequires:	autoconf-archive
 BuildRequires:	automake
 BuildRequires:	bluez-libs-devel
 BuildRequires:	bzip2-devel
-BuildRequires:	db-devel >= 4
+%{?with_bdb:BuildRequires:	db-devel >= 4}
 %{?with_info:BuildRequires:	emacs >= 21}
 BuildRequires:	expat-devel >= 1:1.95.7
 BuildRequires:	file
@@ -529,7 +530,7 @@ export SETUPTOOLS_USE_DISTUTILS=stdlib
 	--enable-ipv6 \
 	--enable-shared \
 	--with-computed-gotos \
-	--with-dbmliborder=gdbm:ndbm:bdb \
+	--with-dbmliborder=gdbm:ndbm%{?with_bdb::bdb} \
 	--with-doc-strings \
 	--without-ensurepip \
         --with-platlibdir="%{_lib}" \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3.git/commitdiff/aa3c555584e7c96d2e2435ed2dc399e0966c4251



More information about the pld-cvs-commit mailing list