[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/12: gnu: wireless-regdb: Improve style.
From: |
guix-commits |
Subject: |
02/12: gnu: wireless-regdb: Improve style. |
Date: |
Wed, 22 Mar 2023 09:33:01 -0400 (EDT) |
glv pushed a commit to branch master
in repository guix.
commit 45974a39d1660d1b93f0e5142183ae6b429c7f8f
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Wed Mar 22 13:09:33 2023 +0100
gnu: wireless-regdb: Improve style.
* gnu/packages/linux.scm (wireless-regdb)[arguments]: Use gexps, remove
trailing booleans.
(native-inputs): Remove labels.
---
gnu/packages/linux.scm | 88 ++++++++++++++++++++++++--------------------------
1 file changed, 42 insertions(+), 46 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 2bd5379404..74b0ede694 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -54,7 +54,7 @@
;;; Copyright © 2021 B. Wilson <elaexuotee@wilsonb.com>
;;; Copyright © 2021 Ivan Gankevich <i.gankevich@spbu.ru>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
-;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
+;;; Copyright © 2021, 2023 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2021 Josselin Poiret <josselin.poiret@protonmail.ch>
@@ -4654,57 +4654,53 @@ compliance.")
"mirror://kernel.org/software/network/wireless-regdb/"
"wireless-regdb-" version ".tar.xz"))
(sha256
- (base32
- "0wrf1c7mbsklwdn7jpwzlpjxwj0vgr61qyh88lx7bi2dd6lfi0gy"))
+ (base32 "0wrf1c7mbsklwdn7jpwzlpjxwj0vgr61qyh88lx7bi2dd6lfi0gy"))
;; We're building 'regulatory.bin' by ourselves.
(snippet '(begin
- (delete-file "regulatory.bin")
- #t))))
+ (delete-file "regulatory.bin")))))
(build-system gnu-build-system)
(arguments
- '(#: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
- ;; happens, we can end up deleting the 'regulatory.bin' file that we
- ;; 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 "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")))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'gzip-determinism
+ (lambda _
+ (substitute* "Makefile"
+ (("gzip") "gzip --no-name"))))
+ (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 ")))))
+ (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
+ ;; happens, we can end up deleting the 'regulatory.bin' file that we
+ ;; just built. Thus, build things sequentially.
+ #:parallel-build? #f
+
+ #:tests? #f ; no tests
+ #:make-flags
+ #~(list (string-append "PREFIX=" #$output)
+ (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)))
+ (list python-wrapper))
(home-page
"https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb")
(synopsis "Wireless regulatory database")
- branch master updated (cfccc9acdb -> 2b66b54bae), guix-commits, 2023/03/22
- 04/12: gnu: cl-jzon: Update to 1.1.0., guix-commits, 2023/03/22
- 03/12: gnu: cl-conspack: Update to 0.0.0-2.6e529d7., guix-commits, 2023/03/22
- 05/12: gnu: ecl-jzon: Enable tests., guix-commits, 2023/03/22
- 06/12: gnu: cl-json: Update to 0.6.0., guix-commits, 2023/03/22
- 09/12: gnu: Add cl-isaac., guix-commits, 2023/03/22
- 01/12: gnu: wireless-regdb: Update to 2023.02.13., guix-commits, 2023/03/22
- 08/12: gnu: Add cl-music-spelling., guix-commits, 2023/03/22
- 12/12: gnu: Add cl-format-colors., guix-commits, 2023/03/22
- 07/12: gnu: Add cl-kdlcl., guix-commits, 2023/03/22
- 02/12: gnu: wireless-regdb: Improve style.,
guix-commits <=
- 11/12: gnu: Add cl-trivial-rfc-1123., guix-commits, 2023/03/22
- 10/12: gnu: sbcl-trivial-open-browser: Fix path to xdg-open., guix-commits, 2023/03/22