From: Tobias Geerinckx-Rice via Guix-patches via <guix-patches@gnu.org>
To: Vincent Legoll <vincent.legoll@gmail.com>
Cc: 45825-done@debbugs.gnu.org, guix-patches@gnu.org
Subject: bug#45825: [PATCH] gnu: Add efi_analyzer.
Date: Tue, 12 Jan 2021 23:02:24 +0100 [thread overview]
Message-ID: <87im81olu7.fsf@nckx> (raw)
In-Reply-To: <20210112193747.19460-1-vincent.legoll@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2086 bytes --]
Vincent,
Vincent Legoll 写道:
> * gnu/packages/engineering.scm (efi_analyzer): New variable.
Neat!
> gnu/packages/engineering.scm | 27 +++++++++++++++++++++++++++
I failed to see any connection to engineering and moved this to
efi.scm.
Don't forget to add or update your copyright line.
> + (source (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url
> "https://github.com/xypron/efi_analyzer")
> + (commit commit)))
> + (sha256
> + (base32
> "1izdkzybqyvzpzqz6kx4j7y47j6aa2dsdrychzgs65466x1a4br1"))
I added a newline after ‘source’ to give this 81-character line
some breathing room.
URLs, snippets, ... can grow wide and a few columns can save a
pointless string-append or newlines.
> + (file-name (string-append name "-" version
> "-checkout"))))
This can be done with the
(file-name (git-file-name name version))
helper.
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (delete 'configure))
Not a comment on your patch, but I added a
‘support-cross-compilation’ phase here that replaces the
Makefile's hard-coded ‘gcc’ so you can inspect EFI binaries on
your cross-compiled ARM box.
> + #:make-flags (list "prefix=" (string-append "DESTDIR="
> (assoc-ref %outputs "out")))))
The other way 'round: set $prefix (or the BSD variant $PREFIX) to
the destination, and never set DESTDIR unless you're working
around a bug in a broken build system.
DESTDIR is for distributions/builds using a temporary ‘staging’
destination directory. Guix doesn't.
> + (description
> + "The EFI Analyzer can be used to check EFI binaries and to
> print out header
> +and section information.")
Slash empty ‘x can y’ (or ‘x allows the user to y’) filler with
gleeful prejudice.
Pushed with these changes as
373f808df229c12101301b766bd1810836b98481.
Thanks!
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
next prev parent reply other threads:[~2021-01-12 22:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-12 19:37 [bug#45825] [PATCH] gnu: Add efi_analyzer Vincent Legoll
2021-01-12 22:02 ` Tobias Geerinckx-Rice via Guix-patches via [this message]
2021-01-12 22:17 ` Vincent Legoll
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87im81olu7.fsf@nckx \
--to=guix-patches@gnu.org \
--cc=45825-done@debbugs.gnu.org \
--cc=me@tobias.gr \
--cc=vincent.legoll@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.