~ruther/guix-local

d32c8fadd05aeb2738c047b6fcfea99e9788fa61 — Andreas Enge 4 months ago 2445bc9
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
1 files changed, 14 insertions(+), 4 deletions(-)

M gnu/packages/dbm.scm
M gnu/packages/dbm.scm => gnu/packages/dbm.scm +14 -4
@@ 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))))