From d32c8fadd05aeb2738c047b6fcfea99e9788fa61 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Sun, 30 Nov 2025 20:11:31 +0100 Subject: [PATCH] gnu: bdb: Do not inherit from bdb-4.8. * gnu/packages/dbm.scm (bdb): Copy-paste all fields from bdb-4.8. [inherit]: Remove field. [source]: Do not inherit. Change-Id: I4b231218e30da5f651e59eb4a80e9efccca37402 --- gnu/packages/dbm.scm | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/gnu/packages/dbm.scm b/gnu/packages/dbm.scm index da24dde6499be27edb6a75f3b6151f682427385d..76599685b83dcaea854ade14d4902db12e44e64d 100644 --- a/gnu/packages/dbm.scm +++ b/gnu/packages/dbm.scm @@ -251,20 +251,23 @@ SQL, Key/Value, XML/XQuery or Java Object storage for their data model.") "See LICENSE in the distribution.")))) (define-public bdb-6 - (package (inherit bdb-4.8) + (package (name "bdb") (version "6.2.32") (source (origin - (inherit (package-source bdb-4.8)) (method url-fetch) (uri (string-append "https://download.oracle.com/berkeley-db/db-" version ".tar.gz")) (sha256 (base32 "1yx8wzhch5wwh016nh0kfxvknjkafv6ybkqh6nh7lxx50jqf5id9")) - (patches '()))) - ;; Copy-paste the arguments from bdb-4.8 and drop the + (modules '((guix build utils) + (srfi srfi-1))) + (snippet bdb-snippet))) + ;; Copy-paste the arguments from bdb-5.3 and drop the ;; 'bdb-configure patch phase. + (build-system gnu-build-system) + (outputs '("out" "doc")) (arguments (list #:tests? #f ; no check target available #:disallowed-references '("doc") @@ -317,6 +320,13 @@ SQL, Key/Value, XML/XQuery or Java Object storage for their data model.") (("rm (.*) configure") "") (("chmod (.*) config.guess(.*)$") "")) (invoke "sh" "s_config")))))) + (native-inputs (list autoconf automake-1.16.5 libtool)) + (synopsis "Berkeley database") + (description + "Berkeley DB is an embeddable database allowing developers the choice of +SQL, Key/Value, XML/XQuery or Java Object storage for their data model.") + (home-page + "http://www.oracle.com/us/products/database/berkeley-db/overview/index.html") ;; Starting with version 6, BDB is distributed under AGPL3. Many individual ;; files are covered by the 3-clause BSD license. (license (list license:agpl3+ license:bsd-3))))