From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-dev+bounces-89790-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1A715138334 for <garchives@archives.gentoo.org>; Fri, 20 Dec 2019 16:19:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0BFE0E08E0; Fri, 20 Dec 2019 16:19:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AD761E08B0 for <gentoo-dev@lists.gentoo.org>; Fri, 20 Dec 2019 16:19:36 +0000 (UTC) Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 9735534D266 for <gentoo-dev@lists.gentoo.org>; Fri, 20 Dec 2019 16:19:35 +0000 (UTC) Received: by mail-io1-f41.google.com with SMTP id z193so9929868iof.1 for <gentoo-dev@lists.gentoo.org>; Fri, 20 Dec 2019 08:19:35 -0800 (PST) X-Gm-Message-State: APjAAAXSoBt+4AV/sxWlLEubJJhGBcMSmdcvv0whlB6XP+iHOG0VEww7 Pn7YmNm2a/c1ncIrxh8GtCzcgnGgGATQqavZueY= X-Google-Smtp-Source: APXvYqz9UENv82L6+yjWMAduqw8hT9X4QLiXvP/MM4fDlNr895bTbczBN20F46mJ9bc3cknJbPxtUD4T29f8/p7HPgA= X-Received: by 2002:a6b:6a02:: with SMTP id x2mr9179119iog.154.1576858773687; Fri, 20 Dec 2019 08:19:33 -0800 (PST) Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <d5e49d584256c6b1ba41a3cad1a8bcd1b6b4f7e3.camel@gentoo.org> In-Reply-To: <d5e49d584256c6b1ba41a3cad1a8bcd1b6b4f7e3.camel@gentoo.org> From: Mike Gilbert <floppym@gentoo.org> Date: Fri, 20 Dec 2019 11:19:22 -0500 X-Gmail-Original-Message-ID: <CAJ0EP40rrGg4N840QLn=8ggtY02pnVpcUZ3JbbnokV1y-Kv4UQ@mail.gmail.com> Message-ID: <CAJ0EP40rrGg4N840QLn=8ggtY02pnVpcUZ3JbbnokV1y-Kv4UQ@mail.gmail.com> Subject: Re: [gentoo-dev] [EAPI 8 RFC] Install-time dependencies To: Gentoo Dev <gentoo-dev@lists.gentoo.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6f1423d5-1fe9-4d21-8cc5-57c4b197b7c4 X-Archives-Hash: 1c62975c79c31bf8b454c83cc1c2dec6 On Thu, Dec 19, 2019 at 2:40 PM Micha=C5=82 G=C3=B3rny <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 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > 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 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > 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=3D"dev-util/desktop-file-utils" > > pkg_postinst() { > xdg_desktop_database_update > } > > > WDYT? Sounds good to me.