* [bug#54910] [PATCH] guix: import: Convert inputs to the new format.
@ 2022-04-13 12:30 Attila Lendvai
2022-04-14 10:33 ` Ricardo Wurmus
0 siblings, 1 reply; 3+ messages in thread
From: Attila Lendvai @ 2022-04-13 12:30 UTC (permalink / raw)
To: 54910; +Cc: Attila Lendvai
* guix/import/utils.scm (package-names->package-inputs): Return the simplified format.
(maybe-inputs): Use the simplified format.
---
guix/import/utils.scm | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/guix/import/utils.scm b/guix/import/utils.scm
index 9cadbb3d5f..40dae55acd 100644
--- a/guix/import/utils.scm
+++ b/guix/import/utils.scm
@@ -268,12 +268,13 @@ (define* (package-names->package-inputs names #:optional (output #f))
optional OUTPUT, tries to generate a quoted list of inputs, as suitable to
use in an 'inputs' field of a package definition."
(define (make-input input version)
- (cons* input (list 'unquote (string->symbol
- (if version
- (string-append input "-" version)
- input)))
- (or (and output (list output))
- '())))
+ (let ((pkg (string->symbol
+ (if version
+ (string-append input "-" version)
+ input))))
+ (if output
+ (list pkg output)
+ pkg)))
(map (match-lambda
((input version) (make-input input version))
@@ -294,7 +295,7 @@ (define* (maybe-inputs package-names #:optional (output #f)
(()
'())
((package-inputs ...)
- `((,field-name (,'quasiquote ,package-inputs)))))))
+ `((,field-name (list ,@package-inputs)))))))
(define* (maybe-native-inputs package-names #:optional (output #f))
"Same as MAYBE-INPUTS, but for native inputs."
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#54910] [PATCH] guix: import: Convert inputs to the new format.
2022-04-13 12:30 [bug#54910] [PATCH] guix: import: Convert inputs to the new format Attila Lendvai
@ 2022-04-14 10:33 ` Ricardo Wurmus
2022-05-23 13:37 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2022-04-14 10:33 UTC (permalink / raw)
To: 54910; +Cc: kuba, Efraim Flashner
Thanks for the patch!
This looked good to me, so I applied it locally. I then ran the test
suite and noticed that tests/go.scm and tests/crate.scm have failing
tests.
The failure in tests/go.scm is harmless and can easily be fixed. But
the failure in tests/crate.scm indicates a real problem, I think. The
build system expects that inputs are placed in the #:cargo-inputs field
in (arguments …), and this seems to expect old-style labelled inputs.
I don’t know if the build system would work with the new-style plain
lists in the arguments field, so I’m Cc-ing contributors to the build
system.
@Jakub and @Efraim: could you please comment on this?
Thanks in advance!
--
Ricardo
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#54910] [PATCH] guix: import: Convert inputs to the new format.
2022-04-14 10:33 ` Ricardo Wurmus
@ 2022-05-23 13:37 ` Ludovic Courtès
0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2022-05-23 13:37 UTC (permalink / raw)
To: kuba, Efraim Flashner; +Cc: Ricardo Wurmus, 54910
Hey Efraim & Jakub,
Ricardo Wurmus <rekado@elephly.net> skribis:
> Thanks for the patch!
>
> This looked good to me, so I applied it locally. I then ran the test
> suite and noticed that tests/go.scm and tests/crate.scm have failing
> tests.
>
> The failure in tests/go.scm is harmless and can easily be fixed. But
> the failure in tests/crate.scm indicates a real problem, I think. The
> build system expects that inputs are placed in the #:cargo-inputs field
> in (arguments …), and this seems to expect old-style labelled inputs.
>
> I don’t know if the build system would work with the new-style plain
> lists in the arguments field, so I’m Cc-ing contributors to the build
> system.
>
> @Jakub and @Efraim: could you please comment on this?
A friendly ping. :-)
I think it’s important to make sure the current Rust packaging strategy
does not “hold us back”.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-23 13:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13 12:30 [bug#54910] [PATCH] guix: import: Convert inputs to the new format Attila Lendvai
2022-04-14 10:33 ` Ricardo Wurmus
2022-05-23 13:37 ` Ludovic Courtès
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.