[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/12: gnu: wireless-regdb: Update to 2019.06.03.
From: |
guix-commits |
Subject: |
02/12: gnu: wireless-regdb: Update to 2019.06.03. |
Date: |
Wed, 5 Jun 2019 23:59:13 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 321292e174adf6c51d127cd7199414a08a04e399
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Thu Jun 6 01:31:09 2019 +0200
gnu: wireless-regdb: Update to 2019.06.03.
* gnu/packages/linux.scm (wireless-regdb): Update to 2019.06.03.
[arguments]: Add ‘omit-signature’ phase.
Add FIRMWARE_PATH & REGDB_PUBCERT #:make-flags, removing unused LSB_ID,
DISTRO_PUBKEY & DISTRO_PRIVKEY. Exdent.
---
gnu/packages/linux.scm | 59 +++++++++++++++++++++++++++++++-------------------
1 file changed, 37 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index ffc5e97..b2f43bb 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2559,7 +2559,7 @@ compliance.")
(define-public wireless-regdb
(package
(name "wireless-regdb")
- (version "2017.03.07")
+ (version "2019.06.03")
(source (origin
(method url-fetch)
(uri (string-append
@@ -2567,7 +2567,7 @@ compliance.")
"wireless-regdb-" version ".tar.xz"))
(sha256
(base32
- "1f9mcp78sdd4sci6v32vxfcl1rfjpv205jisz1p93kkfnaisy7ip"))
+ "1gslvh0aqdkv48jyr2ddq153mw28i7qz2ybrjj9qvkk3dgc7x4fd"))
;; We're building 'regulatory.bin' by ourselves.
(snippet '(begin
@@ -2575,13 +2575,25 @@ compliance.")
#t))))
(build-system gnu-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'gzip-determinism
- (lambda _
- (substitute* "Makefile"
- (("gzip") "gzip --no-name"))
- #t))
- (delete 'configure))
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'gzip-determinism
+ (lambda _
+ (substitute* "Makefile"
+ (("gzip") "gzip --no-name"))
+ #t))
+ (add-after 'unpack 'omit-signature
+ (lambda _
+ (substitute* "Makefile"
+ ;; Signing requires a REGDB_PUBCERT and REGDB_PRIVKEY which we
+ ;; don't provide (see below). Disable it.
+ ((" regulatory\\.db\\.p7s") "")
+ ;; regulatory.db is built as a dependency of regulatory.db.p7s,
+ ;; but ‘make install’ depends only on the latter while
installing
+ ;; both (and failing). Depend on it explicitly.
+ (("^install: " all) (string-append all "regulatory.db ")))
+ #t))
+ (delete 'configure)) ; no configure script
;; The 'all' target of the makefile depends on $(REGDB_CHANGED), which
;; is computed and can be equal to 'maintainer-clean'; when that
@@ -2589,19 +2601,22 @@ compliance.")
;; just built. Thus, build things sequentially.
#:parallel-build? #f
- #:tests? #f ;no tests
- #:make-flags (let ((out (assoc-ref %outputs "out")))
- (list (string-append "PREFIX=" out)
- (string-append "LSB_ID=Guix")
- (string-append "DISTRO_PUBKEY=/dev/null")
- (string-append "DISTRO_PRIVKEY=/dev/null")
- (string-append "REGDB_PUBKEY=/dev/null")
-
- ;; Leave that empty so that db2bin.py doesn't try
- ;; to sign 'regulatory.bin'. This allows us to
- ;; avoid managing a key pair for the whole distro.
- (string-append "REGDB_PRIVKEY=")))))
- (native-inputs `(("python" ,python-2)))
+ #:tests? #f ; no tests
+ #:make-flags
+ (let ((out (assoc-ref %outputs "out")))
+ (list (string-append "PREFIX=" out)
+ (string-append "FIRMWARE_PATH=$(PREFIX)/lib/firmware")
+
+ ;; Leave this empty so that db2bin.py doesn't try to sign
+ ;; ‘regulatory.bin’. This allows us to avoid managing a key
+ ;; pair for the whole distribution.
+ (string-append "REGDB_PRIVKEY=")
+ ;; Don't generate a public key for the same reason. These are
+ ;; used as Makefile targets and can't be the empty string.
+ (string-append "REGDB_PUBCERT=/dev/null")
+ (string-append "REGDB_PUBKEY=/dev/null")))))
+ (native-inputs
+ `(("python" ,python-wrapper)))
(home-page
"https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb")
(synopsis "Wireless regulatory database")
- branch master updated (8703646 -> 9062cf8), guix-commits, 2019/06/05
- 03/12: gnu: aide: Update to 0.16.2., guix-commits, 2019/06/05
- 01/12: gnu: liburcu: Update to 0.11.1., guix-commits, 2019/06/05
- 02/12: gnu: wireless-regdb: Update to 2019.06.03.,
guix-commits <=
- 04/12: gnu: dstat: Update to 0.7.4., guix-commits, 2019/06/05
- 06/12: gnu: thefuck: Update to 3.29., guix-commits, 2019/06/05
- 05/12: gnu: inxi, inxi-minimal: Update to 3.0.34-1., guix-commits, 2019/06/05
- 07/12: gnu: ansible: Update to 2.8.0., guix-commits, 2019/06/05
- 12/12: gnu: qjackctl: Update to 0.5.8., guix-commits, 2019/06/05
- 10/12: gnu: toybox: Update to 0.8.1., guix-commits, 2019/06/05
- 11/12: gnu: pencil2d: Update to 0.6.4., guix-commits, 2019/06/05
- 09/12: gnu: tiled: Update to 1.2.4., guix-commits, 2019/06/05
- 08/12: gnu: fio: Update to 3.14., guix-commits, 2019/06/05