From: Mike Gilbert <floppym@gentoo.org>
To: Gentoo Dev <gentoo-dev@lists.gentoo.org>
Subject: Re: [gentoo-dev] [EAPI 8 RFC] Install-time dependencies
Date: Fri, 20 Dec 2019 11:19:22 -0500 [thread overview]
Message-ID: <CAJ0EP40rrGg4N840QLn=8ggtY02pnVpcUZ3JbbnokV1y-Kv4UQ@mail.gmail.com> (raw)
In-Reply-To: <d5e49d584256c6b1ba41a3cad1a8bcd1b6b4f7e3.camel@gentoo.org>
On Thu, Dec 19, 2019 at 2:40 PM Michał Górny <mgorny@gentoo.org> wrote:
>
> Hello,
>
> Here's another potential EAPI 8 feature I'd like to discuss. Please
> note that this is about *new dependency type*, so please don't hijack it
> into the big 'let's steal Exherbo syntax' debate.
>
> Bug: https://bugs.gentoo.org/660306
>
>
> The problem
> ===========
>
> Right now we don't really have a clean way of specifying dependencies
> that are used during pkg_*inst (and pkg_*rm?) phases. So far RDEPEND
> was used as a 'close enough' alternative (except for a few developers
> who rejected it as 'invalid' and used DEPEND which is even more wrong).
> However, this is no longer sufficient with EAPI 7 cross support.
>
> By design, pkg_*inst phases are run in build host's environment when
> cross is used (because obviously you can't run target host executables).
> Therefore, the relevant dependencies need to be installed into CBUILD
> root, while RDEPEND is installed into CHOST root.
>
>
> The proposed solution
> =====================
>
> The proposal is to add a new dependency type (codename: IDEPEND) which
> indicates dependencies used for pkg_*inst (and pkg_*rm?) phases. Those
> dependencies would be installed into CBUILD root (like BDEPEND), and
> therefore would be runnable from build host. Similarly to RDEPEND, they
> would be installed for binary package installs but not for pure binpkg
> builds (without install).
>
> Example:
>
> inherit xdg-utils
>
> IDEPEND="dev-util/desktop-file-utils"
>
> pkg_postinst() {
> xdg_desktop_database_update
> }
>
>
> WDYT?
Sounds good to me.
next prev parent reply other threads:[~2019-12-20 16:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-19 19:40 [gentoo-dev] [EAPI 8 RFC] Install-time dependencies Michał Górny
2019-12-20 16:19 ` Mike Gilbert [this message]
2019-12-20 17:36 ` Alexis Ballier
2019-12-20 17:55 ` Ulrich Mueller
2019-12-20 18:02 ` Alexis Ballier
2019-12-20 18:41 ` Kent Fredric
2019-12-20 18:54 ` Mike Gilbert
2019-12-20 19:21 ` Kent Fredric
2019-12-20 19:33 ` Michał Górny
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='CAJ0EP40rrGg4N840QLn=8ggtY02pnVpcUZ3JbbnokV1y-Kv4UQ@mail.gmail.com' \
--to=floppym@gentoo.org \
--cc=gentoo-dev@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox