From: Maxime Devos <maximedevos@telenet.be>
To: Liliana Marie Prikler <liliana.prikler@gmail.com>, guix-devel@gnu.org
Subject: Re: Rethinking propagated inputs?
Date: Sun, 05 Sep 2021 18:17:08 +0200 [thread overview]
Message-ID: <faf917dc1bc570ce7621f2535478d8430f7a77eb.camel@telenet.be> (raw)
In-Reply-To: <045891c151c74e0d66d91973c9e55e0194272df5.camel@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3588 bytes --]
Liliana Marie Prikler schreef op za 04-09-2021 om 20:24 [+0200]:
> Hi Guix,
>
> some while ago we made the decision to propagate inputs, that are
> mentioned in pkg-config files, the rationale being that those
> propagated inputs will be needed in packages in order to compile. This
> has saved us some typing, but at a cost. For instance, it is now no
> longer possible to upgrade "zile"
Zile doesn't propagate glib: it's in inputs, not propagated-inputs:
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/zile.scm#n84.
> " and "icecat" independently, because
> both propagate glib. "libreoffice" and "telegram-desktop", two
> packages that have failed us loudly before, are also in that list.
libreoffice doesn't propagate anything. Neither does icecat.
> To
> see what else is in here, you might want to use the following snippet
> in a guix repl:
>
> --8<---------------cut here---------------start------------->8---
> (use-modules (guix packages)
> (gnu packages)
> (guix discovery)
> (srfi srfi-1)
> (srfi srfi-26))
>
> (display
> (fold-packages
> (lambda (p s)
> (if (any (compose (lambda (input)
> (and (package? input)
> (string=? "glib" (package-name input))))
> cadr)
> (package-transitive-inputs p))
> (cons (package-name p) s)
> s))
> '()
> (all-modules %default-package-module-path)))
> --8<---------------cut here---------------end--------------->8---
>
> It returns more than 1400 packages – a bit less than 10% of Guix.
> Needless to say, that's a bad thing and I think we should do something
> about it, particularly when it comes to leaf packages, that users are
> likely to install.
>
> Does anyone have an idea how we should handle propagations for the sake
> of pkg-config? Perhaps we could add "linked-inputs", which are added
> when building packages and environments when not using --ad-hoc, but
> not when union-building profiles. WDYT?
For packages using pkg-config, I had the following scheme in mind:
A package that has .pc files puts them into a separate "build" output.
The code handling 'propagated-inputs' is modified such that an entry in
'propagated-inputs' can have an additional 'propagated-for-output' component.
(Feel free to suggest a more concise name.)
I.e., something like:
(define glib
(package
(name "glib")
(outputs '("out" ; everything
"bin" ; glib-mkenums ... depends on Python
"build")) ; glib-2.0.pc
(propagated-inputs
`(("pcre" ,pcre #:propagate-for-output "build") ; in the Requires.private field of glib-2.0.pc
("libffi" ,libffi #:propagate-for-output "build") ; ditto, for gobject-2.0.pc
;; etc.
))
(native-inputs '()) ; not relevant to this e-ail
...))
Now, imagine the "build" output of "zile" had glib:build in propagated-inputs,
using the scheme described above. Then, if the "out" output of zile is installed
in a profile, that doesn't cause glib to appear in the profile as well, because glib
is only propagated for the "build" output of zile, and not for "out" output of zile.
However, if "build" is installed in the profile (e.g. because someone runs
"guix environment --ad-hoc zile:build various compilation tools" to create
an application using the zile library), then the .pc becomes available in the profile.
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
next prev parent reply other threads:[~2021-09-05 16:19 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-04 18:24 Rethinking propagated inputs? Liliana Marie Prikler
2021-09-05 0:50 ` Sarah Morgensen
2021-09-05 7:36 ` Liliana Marie Prikler
2021-09-05 9:50 ` Bengt Richter
2021-09-05 10:50 ` Guix Jargon File (WAS: Rethinking propagated inputs?) Liliana Marie Prikler
2021-09-05 14:54 ` Bengt Richter
2021-09-05 15:28 ` Liliana Marie Prikler
2021-09-05 15:53 ` Jonathan McHugh
2021-09-06 4:07 ` Bengt Richter
2021-09-05 10:06 ` Rethinking propagated inputs? Attila Lendvai
2021-09-05 10:56 ` Julien Lepiller
2021-09-05 16:17 ` Maxime Devos [this message]
2021-09-05 16:50 ` Liliana Marie Prikler
2021-09-05 19:18 ` Maxime Devos
2021-09-05 19:37 ` Liliana Marie Prikler
2021-09-05 20:27 ` Maxime Devos
2021-09-05 21:10 ` Liliana Marie Prikler
2021-09-07 11:49 ` Maxime Devos
2021-09-07 12:22 ` 宋文武
2021-09-06 18:07 ` Maxim Cournoyer
2021-09-06 18:45 ` Liliana Marie Prikler
2021-09-07 19:01 ` Sarah Morgensen
2021-09-08 7:18 ` Liliana Marie Prikler
2021-09-08 8:24 ` iskarian
2021-09-08 22:12 ` Ludovic Courtès
2021-09-08 22:34 ` zimoun
2021-09-08 22:55 ` Liliana Marie Prikler
2021-09-09 9:48 ` Ludovic Courtès
2021-09-16 18:01 ` Hartmut Goebel
2021-09-06 7:32 ` zimoun
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=faf917dc1bc570ce7621f2535478d8430f7a77eb.camel@telenet.be \
--to=maximedevos@telenet.be \
--cc=guix-devel@gnu.org \
--cc=liliana.prikler@gmail.com \
/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 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.