[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70923] [PATCH v4 01/11] build-system: cargo: Accept unlabeled #:car
From: |
Efraim Flashner |
Subject: |
[bug#70923] [PATCH v4 01/11] build-system: cargo: Accept unlabeled #:cargo-inputs. |
Date: |
Tue, 10 Dec 2024 17:41:27 +0200 |
I've applied this one for now to the rust-team branch since it'll cause
a rebuild if applied to master.
I tried out the patches for the importer too, but I think with the
changes it needs the input from some other teams too?
On Mon, Dec 09, 2024 at 08:58:05PM +0100, Herman Rimm wrote:
> * guix/build-system/cargo.scm (crate-closure): Match unlabeled inputs.
>
> Change-Id: Iae421281fa08d09ddd1e5d2da2864f0093d97cd1
> ---
> guix/build-system/cargo.scm | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/guix/build-system/cargo.scm b/guix/build-system/cargo.scm
> index 658a2e525e..2e3061c0e8 100644
> --- a/guix/build-system/cargo.scm
> +++ b/guix/build-system/cargo.scm
> @@ -6,6 +6,7 @@
> ;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
> ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
> ;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
> +;;; Copyright © 2024 Herman Rimm <herman@rimm.ee>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -234,11 +235,14 @@ (define (crate-closure inputs)
> (if (null? propagated)
> (reverse result)
> (loop (reverse (concatenate propagated)) result '() #f seen)))
> - (((and input (label (? package? package))) rest ...)
> + ;; Match inputs with labels for backward compatibility.
> + (((or (_ (? package? package))
> + (? package? package))
> + rest ...)
> (if (and (not first?) (seen? seen package))
> (loop rest result propagated first? seen)
> (loop rest
> - (cons input result)
> + (cons package result)
> (cons (package-cargo-inputs package)
> propagated)
> first?
> @@ -296,8 +300,8 @@ (define (expand-crate-sources cargo-inputs
> cargo-development-inputs)
> something that can always be extended or reworked in the future)."
> (filter-map
> (match-lambda
> - ((label (? package? p))
> - (list label (package-source p)))
> + ((? package? p)
> + (list (package-name p) (package-source p)))
> ((label input)
> (list label input)))
> (crate-closure (append cargo-inputs cargo-development-inputs))))
>
> base-commit: a5a540d71331fd43fd53e23eb49102c55462c28f
> --
> 2.45.2
>
>
>
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
signature.asc
Description: PGP signature
- [bug#70923] [PATCH v4 04/11] import: utils: Add 'maybe-upstream-inputs' procedure., (continued)
- [bug#70923] [PATCH v4 04/11] import: utils: Add 'maybe-upstream-inputs' procedure., Herman Rimm, 2024/12/09
- [bug#70923] [PATCH v4 07/11] import: hackage: Use 'maybe-list-field' procedure., Herman Rimm, 2024/12/09
- [bug#70923] [PATCH v4 06/11] import: elpa: Use maybe-propagated-inputs procedure., Herman Rimm, 2024/12/09
- [bug#70923] [PATCH v4 08/11] import: cran: Use 'maybe-list-field' procedure., Herman Rimm, 2024/12/09
- [bug#70923] [PATCH v4 10/11] import: egg: Use maybe-*inputs procedures., Herman Rimm, 2024/12/09
- [bug#70923] [PATCH v4 11/11] import: hexpm: Use (guix import utils) 'maybe-inputs' procedure., Herman Rimm, 2024/12/09
- [bug#70923] [PATCH v4 09/11] import: cpan: Use 'maybe-upstream-inputs' procedure., Herman Rimm, 2024/12/09
- [bug#70923] [PATCH v4 05/11] import: pypi: Use 'maybe-list-field' procedure., Herman Rimm, 2024/12/09
- [bug#70923] [PATCH v4 01/11] build-system: cargo: Accept unlabeled #:cargo-inputs.,
Efraim Flashner <=