gnu: Fix erroneous uses of 'package/inherit'.

These packages use a different source/version from the inherited package, and
thus should not inherit replacements.

* gnu/packages/check.scm (googletest-1.8, python-pytest-runner-2): Use record
inheritance instead of PACKAGE/INHERIT.
* gnu/packages/crates-io.scm (rust-bindgen-0.49, rust-bytes-0.4,
rust-colored-1.9.1, rust-difference-1, rust-docopt-0.8, rust-html5ever-0.23,
rust-http-0.1, rust-http-body-0.1, rust-loom-0.2, rust-loom-0.1,
rust-pulldown-cmark-0.0.8, rust-ring-0.13, rust-rustls-0.12, rust-sct-0.3,
rust-term-0.2, rust-untrusted-0.6, rust-webpki-0.18, rust-webpki-roots-0.17,
rust-webpki-roots-0.14): Likewise.
* gnu/packages/emacs.scm (emacs-next, emacs-next-pgtk, guile-emacs): Likewise.
* gnu/packages/guile.scm (guile-2.2.4): Likewise.
* gnu/packages/maths.scm (hdf5-1.10, hdf5-1.12): Likewise.
* gnu/packages/protobuf.scm (protobuf-3.6, protobuf-3.5, python-protobuf-3.6):
Likewise.
* gnu/packages/python-web.scm (python2-html2text): Likewise.
* gnu/packages/python-xyz.scm (python-pygments/fixed, python2-numpy,
python2-urwid, python2-markdown, python2-fonttools): Likewise.
* gnu/packages/racket.scm (racket): Likewise.
* gnu/packages/sequoia.scm (sequoia4pEp): Likewise.
This commit is contained in:
Marius Bakke 2021-05-23 14:07:34 +02:00
parent 9351b2a481
commit dbcf2b61b1
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA
10 changed files with 76 additions and 46 deletions

View file

@ -697,8 +697,8 @@ (define-public googletest
(license license:bsd-3))) (license license:bsd-3)))
(define-public googletest-1.8 (define-public googletest-1.8
(package/inherit (package
googletest (inherit googletest)
(version "1.8.1") (version "1.8.1")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
@ -1188,8 +1188,8 @@ (define-public python2-pytest-runner
;; python-bleach 3.1.0 requires this ancient version of pytest-runner. ;; python-bleach 3.1.0 requires this ancient version of pytest-runner.
;; Remove once no longer needed. ;; Remove once no longer needed.
(define-public python-pytest-runner-2 (define-public python-pytest-runner-2
(package/inherit (package
python-pytest-runner (inherit python-pytest-runner)
(version "2.12.2") (version "2.12.2")
(source (origin (source (origin
(method url-fetch) (method url-fetch)

View file

@ -4416,7 +4416,8 @@ (define-public rust-bindgen-0.37
("rust-shlex" ,rust-shlex-0.1)))))) ("rust-shlex" ,rust-shlex-0.1))))))
(define-public rust-bindgen-0.49 (define-public rust-bindgen-0.49
(package/inherit rust-bindgen-0.50 (package
(inherit rust-bindgen-0.50)
(name "rust-bindgen") (name "rust-bindgen")
(version "0.49.4") (version "0.49.4")
(source (source
@ -5949,7 +5950,8 @@ (define-public rust-bytes-0.5
(("rust-serde" ,rust-serde-1)))))) (("rust-serde" ,rust-serde-1))))))
(define-public rust-bytes-0.4 (define-public rust-bytes-0.4
(package/inherit rust-bytes-0.5 (package
(inherit rust-bytes-0.5)
(name "rust-bytes") (name "rust-bytes")
(version "0.4.12") (version "0.4.12")
(source (source
@ -7660,7 +7662,8 @@ (define-public rust-colored-1
(license license:mpl2.0))) (license license:mpl2.0)))
(define-public rust-colored-1.9.1 (define-public rust-colored-1.9.1
(package/inherit rust-colored-1 (package
(inherit rust-colored-1)
(name "rust-colored") (name "rust-colored")
(version "1.9.1") (version "1.9.1")
(source (source
@ -11575,7 +11578,8 @@ (define-public rust-difference-2
(license license:expat))) (license license:expat)))
(define-public rust-difference-1 (define-public rust-difference-1
(package/inherit rust-difference-2 (package
(inherit rust-difference-2)
(name "rust-difference") (name "rust-difference")
(version "1.0.0") (version "1.0.0")
(source (source
@ -12123,7 +12127,8 @@ (define-public rust-docopt-1
(license (list license:expat license:unlicense)))) (license (list license:expat license:unlicense))))
(define-public rust-docopt-0.8 (define-public rust-docopt-0.8
(package/inherit rust-docopt-1 (package
(inherit rust-docopt-1)
(name "rust-docopt") (name "rust-docopt")
(version "0.8.3") (version "0.8.3")
(source (source
@ -18312,7 +18317,8 @@ (define-public rust-html5ever-0.24
("rust-typed-arena" ,rust-typed-arena-1)))))) ("rust-typed-arena" ,rust-typed-arena-1))))))
(define-public rust-html5ever-0.23 (define-public rust-html5ever-0.23
(package/inherit rust-html5ever-0.24 (package
(inherit rust-html5ever-0.24)
(name "rust-html5ever") (name "rust-html5ever")
(version "0.23.0") (version "0.23.0")
(source (source
@ -18387,7 +18393,8 @@ (define-public rust-http-0.2
(license (list license:asl2.0 license:expat)))) (license (list license:asl2.0 license:expat))))
(define-public rust-http-0.1 (define-public rust-http-0.1
(package/inherit rust-http-0.2 (package
(inherit rust-http-0.2)
(name "rust-http") (name "rust-http")
(version "0.1.17") (version "0.1.17")
(source (source
@ -18454,7 +18461,8 @@ (define-public rust-http-body-0.3
("rust-http" ,rust-http-0.2)))))) ("rust-http" ,rust-http-0.2))))))
(define-public rust-http-body-0.1 (define-public rust-http-body-0.1
(package/inherit rust-http-body-0.3 (package
(inherit rust-http-body-0.3)
(name "rust-http-body") (name "rust-http-body")
(version "0.1.0") (version "0.1.0")
(source (source
@ -22410,7 +22418,8 @@ (define-public rust-loom-0.3
("rust-serde-json" ,rust-serde-json-1)))))) ("rust-serde-json" ,rust-serde-json-1))))))
(define-public rust-loom-0.2 (define-public rust-loom-0.2
(package/inherit rust-loom-0.3 (package
(inherit rust-loom-0.3)
(name "rust-loom") (name "rust-loom")
(version "0.2.13") (version "0.2.13")
(source (source
@ -22432,7 +22441,8 @@ (define-public rust-loom-0.2
("rust-serde-json" ,rust-serde-json-1)))))) ("rust-serde-json" ,rust-serde-json-1))))))
(define-public rust-loom-0.1 (define-public rust-loom-0.1
(package/inherit rust-loom-0.3 (package
(inherit rust-loom-0.3)
(name "rust-loom") (name "rust-loom")
(version "0.1.1") (version "0.1.1")
(source (source
@ -30534,7 +30544,8 @@ (define-public rust-pulldown-cmark-0.1
("rust-getopts" ,rust-getopts-0.2)))))) ("rust-getopts" ,rust-getopts-0.2))))))
(define-public rust-pulldown-cmark-0.0.8 (define-public rust-pulldown-cmark-0.0.8
(package/inherit rust-pulldown-cmark-0.4 (package
(inherit rust-pulldown-cmark-0.4)
(name "rust-pulldown-cmark") (name "rust-pulldown-cmark")
(version "0.0.8") (version "0.0.8")
(source (source
@ -33150,7 +33161,8 @@ (define-public rust-ring-0.14
("rust-cc" ,rust-cc-1)))))) ("rust-cc" ,rust-cc-1))))))
(define-public rust-ring-0.13 (define-public rust-ring-0.13
(package/inherit rust-ring-0.16 (package
(inherit rust-ring-0.16)
(name "rust-ring") (name "rust-ring")
(version "0.13.5") (version "0.13.5")
(source (source
@ -35111,7 +35123,8 @@ (define-public rust-rustls-0.14
("rust-webpki" ,rust-webpki-0.18)))))) ("rust-webpki" ,rust-webpki-0.18))))))
(define-public rust-rustls-0.12 (define-public rust-rustls-0.12
(package/inherit rust-rustls-0.16 (package
(inherit rust-rustls-0.16)
(name "rust-rustls") (name "rust-rustls")
(version "0.12.0") (version "0.12.0")
(source (source
@ -36158,7 +36171,8 @@ (define-public rust-sct-0.4
("rust-untrusted" ,rust-untrusted-0.6)))))) ("rust-untrusted" ,rust-untrusted-0.6))))))
(define-public rust-sct-0.3 (define-public rust-sct-0.3
(package/inherit rust-sct-0.6 (package
(inherit rust-sct-0.6)
(name "rust-sct") (name "rust-sct")
(version "0.3.0") (version "0.3.0")
(source (source
@ -41958,7 +41972,8 @@ (define-public rust-term-0.4
("rust-winapi" ,rust-winapi-0.2)))))) ("rust-winapi" ,rust-winapi-0.2))))))
(define-public rust-term-0.2 (define-public rust-term-0.2
(package/inherit rust-term-0.4 (package
(inherit rust-term-0.4)
(name "rust-term") (name "rust-term")
(version "0.2.14") (version "0.2.14")
(source (source
@ -47060,7 +47075,8 @@ (define-public rust-untrusted-0.7
(license license:isc))) (license license:isc)))
(define-public rust-untrusted-0.6 (define-public rust-untrusted-0.6
(package/inherit rust-untrusted-0.7 (package
(inherit rust-untrusted-0.7)
(name "rust-untrusted") (name "rust-untrusted")
(version "0.6.2") (version "0.6.2")
(source (source
@ -48681,7 +48697,8 @@ (define-public rust-webpki-0.19
(("rust-base64" ,rust-base64-0.9)))))) (("rust-base64" ,rust-base64-0.9))))))
(define-public rust-webpki-0.18 (define-public rust-webpki-0.18
(package/inherit rust-webpki-0.21 (package
(inherit rust-webpki-0.21)
(name "rust-webpki") (name "rust-webpki")
(version "0.18.1") (version "0.18.1")
(source (source
@ -48767,7 +48784,8 @@ (define-public rust-webpki-roots-0.18
(base32 "1d4ss607rgi9pj01zzqa13c1p3m35z314yh6lmjaj4kzvwv5gkci")))))) (base32 "1d4ss607rgi9pj01zzqa13c1p3m35z314yh6lmjaj4kzvwv5gkci"))))))
(define-public rust-webpki-roots-0.17 (define-public rust-webpki-roots-0.17
(package/inherit rust-webpki-roots-0.18 (package
(inherit rust-webpki-roots-0.18)
(name "rust-webpki-roots") (name "rust-webpki-roots")
(version "0.17.0") (version "0.17.0")
(source (source
@ -48818,7 +48836,8 @@ (define-public rust-webpki-roots-0.15
("rust-webpki" ,rust-webpki-0.18)))))) ("rust-webpki" ,rust-webpki-0.18))))))
(define-public rust-webpki-roots-0.14 (define-public rust-webpki-roots-0.14
(package/inherit rust-webpki-roots-0.18 (package
(inherit rust-webpki-roots-0.18)
(name "rust-webpki-roots") (name "rust-webpki-roots")
(version "0.14.0") (version "0.14.0")
(source (source

View file

@ -305,7 +305,8 @@ (define* (emacs-byte-compile-directory dir)
(define-public emacs-next (define-public emacs-next
(let ((commit "2ea34662c20f71d35dd52a5ed996542c7386b9cb") (let ((commit "2ea34662c20f71d35dd52a5ed996542c7386b9cb")
(revision "0")) (revision "0"))
(package/inherit emacs (package
(inherit emacs)
(name "emacs-next") (name "emacs-next")
(version (git-version "28.0.50" revision commit)) (version (git-version "28.0.50" revision commit))
(source (source
@ -326,7 +327,8 @@ (define-public emacs-next
(define-public emacs-next-pgtk (define-public emacs-next-pgtk
(let ((commit "ae18c8ec4f0ef37c8c9cda473770ff47e41291e2") (let ((commit "ae18c8ec4f0ef37c8c9cda473770ff47e41291e2")
(revision "1")) (revision "1"))
(package/inherit emacs-next (package
(inherit emacs-next)
(name "emacs-next-pgtk") (name "emacs-next-pgtk")
(version (git-version "28.0.50" revision commit)) (version (git-version "28.0.50" revision commit))
(source (source
@ -450,7 +452,8 @@ (define-public emacs-wide-int
(define-public guile-emacs (define-public guile-emacs
(let ((commit "41120e0f595b16387eebfbf731fff70481de1b4b") (let ((commit "41120e0f595b16387eebfbf731fff70481de1b4b")
(revision "0")) (revision "0"))
(package/inherit emacs (package
(inherit emacs)
(name "guile-emacs") (name "guile-emacs")
(version (git-version "0.0.0" revision commit)) (version (git-version "0.0.0" revision commit))
(source (origin (source (origin

View file

@ -269,8 +269,8 @@ (define-public guile-2.2
(define-deprecated guile-2.2/bug-fix guile-2.2) (define-deprecated guile-2.2/bug-fix guile-2.2)
(define-public guile-2.2.4 (define-public guile-2.2.4
(package/inherit (package
guile-2.2 (inherit guile-2.2)
(version "2.2.4") (version "2.2.4")
(source (origin (source (origin
(inherit (package-source guile-2.2)) (inherit (package-source guile-2.2))

View file

@ -1230,7 +1230,8 @@ (define-public hdf5-1.8
"https://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/COPYING")))) "https://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/COPYING"))))
(define-public hdf5-1.10 (define-public hdf5-1.10
(package/inherit hdf5-1.8 (package
(inherit hdf5-1.8)
(version "1.10.7") (version "1.10.7")
(source (source
(origin (origin
@ -1249,7 +1250,8 @@ (define-public hdf5-1.10
(patches (search-patches "hdf5-config-date.patch")))))) (patches (search-patches "hdf5-config-date.patch"))))))
(define-public hdf5-1.12 (define-public hdf5-1.12
(package/inherit hdf5-1.8 (package
(inherit hdf5-1.8)
(version "1.12.0") (version "1.12.0")
(source (source
(origin (origin

View file

@ -123,7 +123,8 @@ (define-public protobuf
;; Tensorflow requires version 3.6 specifically. ;; Tensorflow requires version 3.6 specifically.
(define-public protobuf-3.6 (define-public protobuf-3.6
(package/inherit protobuf (package
(inherit protobuf)
(version "3.6.1") (version "3.6.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
@ -136,8 +137,8 @@ (define-public protobuf-3.6
;; The 3.5 series are the last versions that do not require C++ 11. ;; The 3.5 series are the last versions that do not require C++ 11.
(define-public protobuf-3.5 (define-public protobuf-3.5
(package/inherit (package
protobuf (inherit protobuf)
(version "3.5.1") (version "3.5.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
@ -289,7 +290,8 @@ (define-public python2-protobuf
;; For tensorflow. ;; For tensorflow.
(define-public python-protobuf-3.6 (define-public python-protobuf-3.6
(package/inherit python-protobuf (package
(inherit python-protobuf)
(name "python-protobuf") (name "python-protobuf")
(version (package-version protobuf-3.6) ) (version (package-version protobuf-3.6) )
(source (source

View file

@ -707,7 +707,8 @@ (define-public python-html2text
(define-public python2-html2text (define-public python2-html2text
(let ((base (package-with-python2 python-html2text))) (let ((base (package-with-python2 python-html2text)))
(package/inherit base (package
(inherit base)
;; This is the last version with support for Python 2. ;; This is the last version with support for Python 2.
(version "2019.8.11") (version "2019.8.11")
(source (origin (source (origin

View file

@ -3980,7 +3980,8 @@ (define-public python-pygments
(properties `((python2-variant . ,(delay python2-pygments)))))) (properties `((python2-variant . ,(delay python2-pygments))))))
(define python-pygments/fixed (define python-pygments/fixed
(package/inherit python-pygments (package
(inherit python-pygments)
(version "2.7.4") (version "2.7.4")
(source (source
(origin (origin
@ -4969,8 +4970,8 @@ (define-public python-numpy
(define-public python2-numpy (define-public python2-numpy
(let ((numpy (package-with-python2 (let ((numpy (package-with-python2
(strip-python2-variant python-numpy)))) (strip-python2-variant python-numpy))))
(package/inherit (package
numpy (inherit numpy)
(version "1.16.5") (version "1.16.5")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
@ -8087,7 +8088,8 @@ (define-public python-urwid
(define-public python2-urwid (define-public python2-urwid
(let ((base (package-with-python2 (let ((base (package-with-python2
(strip-python2-variant python-urwid)))) (strip-python2-variant python-urwid))))
(package/inherit base (package
(inherit base)
(version "2.1.0") (version "2.1.0")
(source (source
(origin (origin
@ -9528,8 +9530,8 @@ (define-public python-markdown
;; Markdown 3.2 dropped support for Python 2. ;; Markdown 3.2 dropped support for Python 2.
(define-public python2-markdown (define-public python2-markdown
(let ((base (package-with-python2 (strip-python2-variant python-markdown)))) (let ((base (package-with-python2 (strip-python2-variant python-markdown))))
(package/inherit (package
base (inherit base)
(version "3.1.1") (version "3.1.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
@ -9697,8 +9699,8 @@ (define-public python-fonttools
;; Fonttools 4.x dropped support for Python 2, so stick with 3.x here. ;; Fonttools 4.x dropped support for Python 2, so stick with 3.x here.
(define-public python2-fonttools (define-public python2-fonttools
(let ((base (package-with-python2 (strip-python2-variant python-fonttools)))) (let ((base (package-with-python2 (strip-python2-variant python-fonttools))))
(package/inherit (package
base (inherit base)
(version "3.44.0") (version "3.44.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)

View file

@ -173,8 +173,8 @@ (define out (assoc-ref outputs "out"))
(define-public racket (define-public racket
(package/inherit (package
racket-minimal (inherit racket-minimal)
(name "racket") (name "racket")
(version (package-version racket-minimal)) ; needed for origin uri to work (version (package-version racket-minimal)) ; needed for origin uri to work
(source (source

View file

@ -221,7 +221,8 @@ (define-public sequoia
(define-public sequoia4pEp (define-public sequoia4pEp
;; Currently pEp Engine requires sequoia in not-so-current version ;; Currently pEp Engine requires sequoia in not-so-current version
(package/inherit sequoia (package
(inherit sequoia)
(name "sequoia") (name "sequoia")
(version "0.15.0-pEp") (version "0.15.0-pEp")
(source (source