GNU bug report logs -
#78385
[PATCH electronics-team] gnu: yosys: Improve package style.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 78385 in the body.
You can then email your comments to 78385 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
csantosb <at> inventati.org, ekaitz <at> elenq.tech, gabriel <at> erlikon.ch, maxim.cournoyer <at> gmail.com, guix-patches <at> gnu.org
:
bug#78385
; Package
guix-patches
.
(Sun, 11 May 2025 20:23:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Cayetano Santos <csantosb <at> inventati.org>
:
New bug report received and forwarded. Copy sent to
csantosb <at> inventati.org, ekaitz <at> elenq.tech, gabriel <at> erlikon.ch, maxim.cournoyer <at> gmail.com, guix-patches <at> gnu.org
.
(Sun, 11 May 2025 20:23:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/fpga.scm (yosys): Improve package style.
Change-Id: Ifa88e523d1637ba05166000056830faa53b45706
---
[arguments] <#:phases> {fix-paths}: Replace search-input-file by this-package-input.
{use-external-abc}: Move to fix-paths phase.
gnu/packages/fpga.scm | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm
index 2298dde595..b1f53560a8 100644
--- a/gnu/packages/fpga.scm
+++ b/gnu/packages/fpga.scm
@@ -205,34 +205,33 @@ (define-public yosys
#:phases
#~(modify-phases %standard-phases
(add-before 'configure 'fix-paths
- (lambda* (#:key inputs #:allow-other-keys)
+ (lambda _
(substitute* "backends/smt2/smtio.py"
(("\\['z3")
- (string-append "['"
- (search-input-file inputs "bin/z3"))))
+ (string-append "['" #$(this-package-input "z3") "/bin/z3")))
(substitute* "kernel/fstdata.cc"
(("vcd2fst")
- (search-input-file inputs "bin/vcd2fst")))
+ (string-append #$(this-package-input "gtkwave")
+ "/bin/vcd2fst")))
(substitute* "kernel/driver.cc"
(("^#include \"libs/cxxopts/include/cxxopts.hpp\"")
"#include <cxxopts.hpp>"))
(substitute* '("passes/cmds/show.cc" "passes/cmds/viz.cc")
(("exec xdot")
- (string-append "exec "
- (search-input-file inputs "bin/xdot")))
+ (string-append "exec " #$(this-package-input "xdot")
+ "/bin/xdot"))
(("dot -")
- (string-append (search-input-file inputs "bin/dot") " -"))
+ (string-append #$(this-package-input "graphviz") "/bin/dot -"))
(("fuser")
- (search-input-file inputs "bin/fuser")))))
- (replace 'configure
- (lambda* (#:key make-flags #:allow-other-keys)
- (apply invoke "make" "config-gcc" make-flags)))
- (add-after 'configure 'use-external-abc
- (lambda* (#:key inputs #:allow-other-keys)
+ (string-append #$(this-package-input "psmisc") "/bin/fuser")))
(substitute* '("Makefile")
(("ABCEXTERNAL \\?=")
(string-append "ABCEXTERNAL = "
- (search-input-file inputs "/bin/abc"))))))
+ #$(this-package-input "abc-yosyshq")
+ "/bin/abc")))))
+ (replace 'configure
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (apply invoke "make" "config-gcc" make-flags)))
(add-after 'install 'add-symbolic-link
(lambda* (#:key inputs #:allow-other-keys)
;; Previously this package provided a copy of the "abc"
base-commit: 300d29e69988caf23684f08effa51f621c7ec083
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#78385
; Package
guix-patches
.
(Mon, 12 May 2025 11:23:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 78385 <at> debbugs.gnu.org (full text, mbox):
LGTM
Thanks for your time and effort!
Information forwarded
to
guix-patches <at> gnu.org
:
bug#78385
; Package
guix-patches
.
(Mon, 12 May 2025 11:45:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 78385 <at> debbugs.gnu.org (full text, mbox):
Hi Cayetano,
Cayetano Santos <csantosb <at> inventati.org> writes:
> * gnu/packages/fpga.scm (yosys): Improve package style.
>
> Change-Id: Ifa88e523d1637ba05166000056830faa53b45706
> ---
>
> [arguments] <#:phases> {fix-paths}: Replace search-input-file by this-package-input.
Hm, search-input-file is as good style as this-package-input, if not
better style, as it errors out early when a searched file is missing.
It also plays better with inheritance, as the gexps have a tendency to
bake references that can't be altered (easily) in inherited variants.
> {use-external-abc}: Move to fix-paths phase.
Is there a rationale to this? I like descriptive phase names, so the
former appears better to me.
I think I'd keep the current status quo here.
--
Thanks,
Maxim
Information forwarded
to
guix-patches <at> gnu.org
:
bug#78385
; Package
guix-patches
.
(Mon, 12 May 2025 12:01:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 78385 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
>lun. 12 mai 2025 at 20:44, Maxim Cournoyer <maxim.cournoyer <at> gmail.com> wrote:
> Hm, search-input-file is as good style as this-package-input, if not
> better style, as it errors out early when a searched file is missing.
> It also plays better with inheritance, as the gexps have a tendency to
> bake references that can't be altered (easily) in inherited variants.
My bad, for some reason, I was convinced the this-package-input form was
best suited for cross-compiling / transformations.
Closing, then.
C.
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Cayetano Santos <csantosb <at> inventati.org>
:
You have taken responsibility.
(Mon, 12 May 2025 12:01:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Cayetano Santos <csantosb <at> inventati.org>
:
bug acknowledged by developer.
(Mon, 12 May 2025 12:01:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 10 Jun 2025 11:24:16 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.