GNU bug report logs -
#63793
[PATCH] gnu: sbsigntools: Update to 0.9.5.
Previous Next
Reported by: kiasoc5 <kiasoc5 <at> disroot.org>
Date: Mon, 29 May 2023 21:55:02 UTC
Severity: normal
Tags: patch
Merged with 63635
Done: Josselin Poiret <dev <at> jpoiret.xyz>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63793 in the body.
You can then email your comments to 63793 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#63793
; Package
guix-patches
.
(Mon, 29 May 2023 21:55:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
kiasoc5 <kiasoc5 <at> disroot.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Mon, 29 May 2023 21:55:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This fixes a build failure with openssl-3.
* gnu/packages/efi.scm (sbsigntools): Update to 0.9.5.
[arguments]: Remove trailing #t's. Use Gexps. Use "this-package-input". Simplify lambdas.
[inputs]: Remove labels.
---
gnu/packages/efi.scm | 58 +++++++++++++++++++++-----------------------
1 file changed, 28 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/efi.scm b/gnu/packages/efi.scm
index 75eb24bf86..50d52c4d65 100644
--- a/gnu/packages/efi.scm
+++ b/gnu/packages/efi.scm
@@ -30,6 +30,7 @@ (define-module (gnu packages efi)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system gnu)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix utils)
@@ -99,7 +100,7 @@ (define-public efi-analyzer
(define-public sbsigntools
(package
(name "sbsigntools")
- (version "0.9.4")
+ (version "0.9.5")
(source
(origin
(method git-fetch)
@@ -110,34 +111,31 @@ (define-public sbsigntools
(recursive? #t)))
(file-name (git-file-name name version))
(sha256
- (base32 "1y76wy65y6k10mjl2dm5hb5ms475alr4s080xzj8y833x01xvf3m"))))
+ (base32 "060n6w0dx1mrilhdv482ncckanqz6pdv53piimiki0bm15d2fcp4"))))
(build-system gnu-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-more-shebangs
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "lib/ccan.git/tools/create-ccan-tree"
- (("#!/bin/bash")
- (string-append "#!"
- (assoc-ref inputs "bash")
- "/bin/bash")))
- #t))
- (add-after 'unpack 'patch
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (substitute* '("configure.ac"
- "tests/Makefile.am")
- (("/usr/include/efi")
- (string-append (assoc-ref inputs "gnu-efi")
- "/include/efi"))
- (("/usr/lib/gnuefi")
- (string-append (assoc-ref inputs "gnu-efi")
- "/lib")))
- #t))
- (add-after 'unpack 'setenv
- (lambda _
- (setenv "CC" "gcc")
- #t)))))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-more-shebangs
+ (lambda _
+ (substitute* "lib/ccan.git/tools/create-ccan-tree"
+ (("#!/bin/bash")
+ (string-append "#!"
+ #$(this-package-native-input "bash")
+ "/bin/bash")))))
+ (add-after 'unpack 'patch
+ (lambda _
+ (substitute* '("configure.ac"
+ "tests/Makefile.am")
+ (("/usr/include/efi")
+ (string-append #$(this-package-input "gnu-efi")
+ "/include/efi"))
+ (("/usr/lib/gnuefi")
+ (string-append #$(this-package-input "gnu-efi")
+ "/lib")))))
+ (add-after 'unpack 'setenv
+ (lambda _
+ (setenv "CC" "gcc"))))))
(native-inputs
(list autoconf
automake
@@ -146,9 +144,9 @@ (define-public sbsigntools
pkg-config
util-linux)) ; getopt
(inputs
- `(("gnu-efi" ,gnu-efi)
- ("libuuid" ,util-linux "lib")
- ("openssl" ,openssl)))
+ (list gnu-efi
+ `(,util-linux "lib") ; libuuid
+ openssl))
(synopsis "EFI signing tools")
(description "This package provides tools for signing EFI binaries.")
(home-page "https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/")
base-commit: b96b82bcd4bc24529941ff74a91432481f1a71b5
--
2.40.1
Forcibly Merged 63635 63793.
Request was from
Felix Lechner <felix.lechner <at> lease-up.com>
to
control <at> debbugs.gnu.org
.
(Tue, 30 May 2023 04:07:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#63793
; Package
guix-patches
.
(Wed, 31 May 2023 14:51:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 63793 <at> debbugs.gnu.org (full text, mbox):
Hi,
There is a merged duplicate to this bug that may be hidden in Mumi.
The two bugs are Bug#63793 and Bug#63635. The linkage may be easier to
see in Debbugs.
Kind regards
Felix
Reply sent
to
Josselin Poiret <dev <at> jpoiret.xyz>
:
You have taken responsibility.
(Sun, 04 Jun 2023 09:42:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
kiasoc5 <kiasoc5 <at> disroot.org>
:
bug acknowledged by developer.
(Sun, 04 Jun 2023 09:42:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 63793-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
kiasoc5 via Guix-patches via <guix-patches <at> gnu.org> writes:
> This fixes a build failure with openssl-3.
>
> * gnu/packages/efi.scm (sbsigntools): Update to 0.9.5.
> [arguments]: Remove trailing #t's. Use Gexps. Use "this-package-input". Simplify lambdas.
> [inputs]: Remove labels.
Thanks for your patch! Pushed as
f72f3a909a41dce5dc4512c30d4cd0673bc6560f with the following best
practices modifications (importantly, note cc-for-target and
search-input-file for bash).
By the way, please enable forceinbodyfrom in git so that a pristine From
field is inserted into your patches, as your mail From list is being
rewritten to comply with your domain's DKIM.
diff --git a/gnu/packages/efi.scm b/gnu/packages/efi.scm
index 50d52c4d65..499745eba1 100644
--- a/gnu/packages/efi.scm
+++ b/gnu/packages/efi.scm
@@ -114,28 +114,29 @@ (define-public sbsigntools
(base32 "060n6w0dx1mrilhdv482ncckanqz6pdv53piimiki0bm15d2fcp4"))))
(build-system gnu-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'patch-more-shebangs
- (lambda _
- (substitute* "lib/ccan.git/tools/create-ccan-tree"
- (("#!/bin/bash")
- (string-append "#!"
- #$(this-package-native-input "bash")
- "/bin/bash")))))
- (add-after 'unpack 'patch
- (lambda _
- (substitute* '("configure.ac"
- "tests/Makefile.am")
- (("/usr/include/efi")
- (string-append #$(this-package-input "gnu-efi")
- "/include/efi"))
- (("/usr/lib/gnuefi")
- (string-append #$(this-package-input "gnu-efi")
- "/lib")))))
- (add-after 'unpack 'setenv
- (lambda _
- (setenv "CC" "gcc"))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-more-shebangs
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (substitute* "lib/ccan.git/tools/create-ccan-tree"
+ (("#!/bin/bash")
+ (string-append "#!"
+ (search-input-file (or native-inputs inputs)
+ "/bin/bash"))))))
+ (add-after 'unpack 'patch
+ (lambda _
+ (substitute* '("configure.ac"
+ "tests/Makefile.am")
+ (("/usr/include/efi")
+ (string-append #$(this-package-input "gnu-efi")
+ "/include/efi"))
+ (("/usr/lib/gnuefi")
+ (string-append #$(this-package-input "gnu-efi")
+ "/lib")))))
+ (add-after 'unpack 'setenv
+ (lambda _
+ (setenv "CC" #$(cc-for-target)))))))
(native-inputs
(list autoconf
automake
--
Josselin Poiret
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Josselin Poiret <dev <at> jpoiret.xyz>
:
You have taken responsibility.
(Sun, 04 Jun 2023 09:42:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Felix Lechner <felix.lechner <at> lease-up.com>
:
bug acknowledged by developer.
(Sun, 04 Jun 2023 09:42:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#63793
; Package
guix-patches
.
(Sun, 04 Jun 2023 13:56:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 63793-done <at> debbugs.gnu.org (full text, mbox):
Hi Josselin,
On 6/4/23 05:41, Josselin Poiret wrote:
> Thanks for your patch! Pushed as
> f72f3a909a41dce5dc4512c30d4cd0673bc6560f with the following best
> practices modifications (importantly, note cc-for-target and
> search-input-file for bash).
Thanks for merging!
What is the difference between this
> - (lambda _
> - (substitute* "lib/ccan.git/tools/create-ccan-tree"
> - (("#!/bin/bash")
> - (string-append "#!"
> - #$(this-package-native-input "bash")
> - "/bin/bash")))))
and this?
> + (lambda* (#:key inputs native-inputs #:allow-other-keys)
> + (substitute* "lib/ccan.git/tools/create-ccan-tree"
> + (("#!/bin/bash")
> + (string-append "#!"
> + (search-input-file (or native-inputs inputs)
> + "/bin/bash"))))))
I meant to search for bash as a native input but I guess they are different.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#63793
; Package
guix-patches
.
(Sun, 04 Jun 2023 15:07:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 63793-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi kiasoc5,
kiasoc5 <kiasoc5 <at> disroot.org> writes:
> What is the difference between this
>
>> - (lambda _
>> - (substitute* "lib/ccan.git/tools/create-ccan-tree"
>> - (("#!/bin/bash")
>> - (string-append "#!"
>> - #$(this-package-native-input "bash")
>> - "/bin/bash")))))
>
> and this?
>
>> + (lambda* (#:key inputs native-inputs #:allow-other-keys)
>> + (substitute* "lib/ccan.git/tools/create-ccan-tree"
>> + (("#!/bin/bash")
>> + (string-append "#!"
>> + (search-input-file (or native-inputs inputs)
>> + "/bin/bash"))))))
>
> I meant to search for bash as a native input but I guess they are different.
In general, the first method doesn't compose well with package
transformations that replace inputs, since it will still refer to the
original bash input. The bottom one will always search for a /bin/bash
binary among all the inputs, so will pick up a new one if the input is
replaced. Also, in general, inside phases, if you're building natively,
native-inputs is always #f and inputs also contains the native inputs,
hence the need for that (or ...) form.
HTH,
--
Josselin Poiret
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 03 Jul 2023 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 313 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.