unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: "Léo Le Bouter" <lle-bout@zaclys.net>, guix-devel@gnu.org
Subject: Re: Specify runtime dependencies with propagated-inputs or wrapper scripts
Date: Fri, 26 Mar 2021 21:55:19 +0100	[thread overview]
Message-ID: <845eab37b40905a34b67265a03979c9a2d88f5fb.camel@student.tugraz.at> (raw)
In-Reply-To: <1e07eddcd0576658a2a02a952bdf569ba471f81a.camel@zaclys.net>

Hello,

Am Freitag, den 26.03.2021, 20:36 +0100 schrieb Léo Le Bouter:
> Hello!
> 
> I often meet problems where some packages don't work out of the box
> because they have some runtime dependencies like themes or third
> party
> programs.
> 
> I solved these problems on occasion by making commits such as this: 
> https://git.savannah.gnu.org/cgit/guix.git/commit/?id=00c1793ce8e2210e48b18422ea3e76da10541874
> - which adds a wrapper script to "bin/chromium" and includes xdg-
> utils
> in PATH variable.
Including xdg-utils in PATH works, but the preferred solution in Guix
is to use absolute paths where possible.

> It works but it's tedious to do for each and every binary in every
> single package.
You could argue the same about bootstrapping :P

> I see we also have a propagated-inputs field, which looks nice but
> for
> some reason people advice against using it. For what reasons? It is
> not
> as tedious as wrappers and I would really like to be able to specify
> runtime dependencies of packages using it without problems.
Using propagated-inputs is a double-edged sword.  On the surface, it
seems to solve all your problems, but underneath it introduced back all
the dependency shenanigans, that Guix seeks to avoid.  In particular,
you can't upgrade just one of N libraries, that all (indirectly)
propagate the same input.

> I think we must find a solution to this runtime dependencies problem
> that is better than wrapper scripts because they are very tedious to
> create for every single binary in every single package.
Le me presenting an even more tedious solution :)

> Another recent example being that the caja package depends on dconf
> to
> change it's settings, which is not installed by default when users
> use
> window managers like sway.
Shouldn't there already be a library for this?  *sigh*

> Let's find a convenient solution here that would allow us to put an
> end
> to these problems that affect many new users and remains obscure for
> them that they would need to add additional packages in their
> configuration (and which).
We could probably do our best to search for variants of exec in all
kinds of programming languages automatically and then do our
substitute*s with (which "program"), but I personally believe
explicitly doing this is less surprising overall.

Regards,
Leo



  reply	other threads:[~2021-03-26 20:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26 19:36 Specify runtime dependencies with propagated-inputs or wrapper scripts Léo Le Bouter
2021-03-26 20:55 ` Leo Prikler [this message]
2021-03-26 21:56 ` Maxime Devos

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=845eab37b40905a34b67265a03979c9a2d88f5fb.camel@student.tugraz.at \
    --to=leo.prikler@student.tugraz.at \
    --cc=guix-devel@gnu.org \
    --cc=lle-bout@zaclys.net \
    /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).