From: Simon Tournier <zimon.toutoune@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Christopher Baines <guix@cbaines.net>,
Josselin Poiret <dev@jpoiret.xyz>,
Tobias Geerinckx-Rice <me@tobias.gr>,
73073@debbugs.gnu.org, Mathieu Othacehe <othacehe@gnu.org>
Subject: [bug#73073] [PATCH v2 1/8] guix: packages: Allow origin inside inputs with "new style".
Date: Mon, 16 Sep 2024 22:42:51 +0200 [thread overview]
Message-ID: <87ed5j2uus.fsf@gmail.com> (raw)
In-Reply-To: <874j6fbbc6.fsf@gnu.org>
Hi Ludo,
On Mon, 16 Sep 2024 at 22:19, Ludovic Courtès <ludo@gnu.org> wrote:
> Simon Tournier <zimon.toutoune@gmail.com> skribis:
>
>> * guix/packages.scm (add-input-label): Rely on 'origin-actual-file-name' for
>> internal inputs labels.
>> (maybe-add-input-labels): Special case to avoid world rebuild.
>>
>> Change-Id: I6ba5352b1b1b8ab810da3730b09cb9db61d6429c
>
> [...]
>
>> @@ -444,6 +444,9 @@ (define (maybe-add-input-labels inputs)
>> ((and (pair? (car inputs))
>> (string? (caar inputs)))
>> inputs)
>> + ((and (origin? (car inputs)) ;XXXX: Remove next world rebuild
>> + (null? (cdr inputs))) ;special case tzdata
>> + (list (list "_" (car inputs))))
>
> I would rather have this hack in ‘tzdata’ itself, along the lines of
> what I sent in a previous message.
Yes, indeed tzdata can temporarily transformed into the old style. It
avoids the world rebuild and it’s a modification easier to change than
the one about maybe-add-input-labels. I agree that’s better.
>> @@ -676,6 +679,13 @@ (define (add-input-label input)
>> "_")
>> ,obj
>> ,@(if (string=? output "out") '() (list output)))))
>> + ((? origin? origin) ;XXXX: Remove next world rebuild
>> + (let ((texlive (package-source
>> + (module-ref (resolve-interface '(gnu packages tex))
>> + 'texlive-latex))))
>> + (if (eq? input texlive)
>> + (list "_" origin)
>> + (list (or (origin-actual-file-name origin) "_") origin))))
>
> I think this should be avoided, but what is it that causes a rebuild in
> this case?
It’s about the package texlive-hyphen-complete; it leads to a world
rebuild – as pointed in the cover letter of v2 ;-)
It reads:
(native-inputs
(list ruby-2.7
ruby-hydra-minimal/pinned
;; Build phase requires "docstrip.tex" from TEXLIVE-LATEX.
;; However, adding this package to native inputs would initiate
;; a circular dependency. To work around this, use TEXLIVE-LATEX
;; source, then add "docstrip.tex" to TEXINPUTS before build.
(package-source texlive-latex)
texlive-tex))
then:
(add-before 'build 'include-docstrip.tex
(lambda* (#:key inputs native-inputs #:allow-other-keys)
(let ((docstrip.tex
(search-input-file (or native-inputs inputs)
"tex/latex/base/docstrip.tex")))
Well, we can apply the same hack as tzdata: temporarily revert to the
old style.
Cheers,
simon
next prev parent reply other threads:[~2024-09-19 4:38 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-06 15:51 [bug#73073] [PATCH 0/6] Allow origin with label as inputs Simon Tournier
2024-09-06 15:54 ` [bug#73073] [PATCH 1/6] guix: packages: " Simon Tournier
2024-09-06 15:54 ` [bug#73073] [PATCH 2/6] gnu: dmd-bootstrap: Move phobos origin from phases to native-inputs Simon Tournier
2024-09-06 15:54 ` [bug#73073] [PATCH 3/6] gnu: smithforth: Move system.fs " Simon Tournier
2024-09-06 15:54 ` [bug#73073] [PATCH 4/6] gnu: gnome-recipes: Move libgd " Simon Tournier
2024-09-06 17:33 ` Liliana Marie Prikler
2024-09-06 18:11 ` Simon Tournier
2024-09-06 20:14 ` Liliana Marie Prikler
2024-09-07 11:37 ` Simon Tournier
2024-09-06 15:54 ` [bug#73073] [PATCH 5/6] gnu: farstream: Move common " Simon Tournier
2024-09-06 15:54 ` [bug#73073] [PATCH 6/6] gnu: gnulib: Move phobos " Simon Tournier
2024-09-06 21:45 ` [bug#73073] [PATCH 0/6] Allow origin with label as inputs Ludovic Courtès
2024-09-07 13:40 ` Simon Tournier
2024-09-07 14:49 ` Liliana Marie Prikler
2024-09-16 20:13 ` Ludovic Courtès
2024-09-10 1:27 ` [bug#73073] [PATCH v2 0/8] Allow origin inside inputs with "new style" Simon Tournier
2024-09-10 1:27 ` [bug#73073] [PATCH v2 1/8] guix: packages: " Simon Tournier
2024-09-16 20:19 ` Ludovic Courtès
2024-09-16 20:42 ` Simon Tournier [this message]
2024-09-26 13:30 ` Maxim Cournoyer
2024-09-10 1:27 ` [bug#73073] [PATCH v2 2/8] gnu: gnome-recipes: Move libgd origin from phases to native-inputs Simon Tournier
2024-09-10 4:30 ` Liliana Marie Prikler
2024-09-10 7:58 ` Simon Tournier
2024-09-10 1:27 ` [bug#73073] [PATCH v2 3/8] gnu: dmd-bootstrap: Move phobos " Simon Tournier
2024-09-10 1:27 ` [bug#73073] [PATCH v2 4/8] gnu: smithforth: Move system.fs " Simon Tournier
2024-09-10 1:27 ` [bug#73073] [PATCH v2 5/8] gnu: farstream: Move common " Simon Tournier
2024-09-10 1:27 ` [bug#73073] [PATCH v2 6/8] gnu: gnulib: Move phobos " Simon Tournier
2024-09-10 1:27 ` [bug#73073] [PATCH v2 7/8] gnu: git: Move git-manpages " Simon Tournier
2024-09-10 1:27 ` [bug#73073] [PATCH v2 8/8] gnu: cgit: Remove input labels Simon Tournier
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ed5j2uus.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=73073@debbugs.gnu.org \
--cc=dev@jpoiret.xyz \
--cc=guix@cbaines.net \
--cc=ludo@gnu.org \
--cc=me@tobias.gr \
--cc=othacehe@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).