[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#73073] [PATCH v2 1/8] guix: packages: Allow origin inside inputs wi
From: |
Maxim Cournoyer |
Subject: |
[bug#73073] [PATCH v2 1/8] guix: packages: Allow origin inside inputs with "new style". |
Date: |
Thu, 26 Sep 2024 22:30:57 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Simon,
That's an interesting series!
Simon Tournier <zimon.toutoune@gmail.com> writes:
[...]
>> 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.
Would you please send a v3 with the above implemented? Then we could
move forward, I think.
--
Thanks,
Maxim
- [bug#73073] [PATCH 6/6] gnu: gnulib: Move phobos origin from phases to native-inputs., (continued)
- [bug#73073] [PATCH v2 3/8] gnu: dmd-bootstrap: Move phobos origin from phases to native-inputs., Simon Tournier, 2024/09/09
- [bug#73073] [PATCH v2 4/8] gnu: smithforth: Move system.fs origin from phases to native-inputs., Simon Tournier, 2024/09/09
- [bug#73073] [PATCH v2 7/8] gnu: git: Move git-manpages origin from phases to native-inputs., Simon Tournier, 2024/09/09
- [bug#73073] [PATCH v2 5/8] gnu: farstream: Move common origin from phases to native-inputs., Simon Tournier, 2024/09/09
- [bug#73073] [PATCH v2 2/8] gnu: gnome-recipes: Move libgd origin from phases to native-inputs., Simon Tournier, 2024/09/09
[bug#73073] [PATCH v2 6/8] gnu: gnulib: Move phobos origin from phases to native-inputs., Simon Tournier, 2024/09/09
[bug#73073] [PATCH v2 8/8] gnu: cgit: Remove input labels., Simon Tournier, 2024/09/09