From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 9BDAC138334 for ; Tue, 2 Oct 2018 02:19:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2D11E0AC4; Tue, 2 Oct 2018 02:19:14 +0000 (UTC) Received: from mx-out1.startmail.com (mx-out1.startmail.com [145.131.90.139]) (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 4661FE0ABA for ; Tue, 2 Oct 2018 02:19:14 +0000 (UTC) Date: Mon, 1 Oct 2018 21:14:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=startmail.com; s=2017-11; t=1538446752; bh=J2gMnQ6GIL8ZGAxEDQuQCItGK8WQn1lCty3Uz4QZuU8=; h=Date:From:To:Subject:References:In-Reply-To:From; b=jy8Loeae4xE16LrkYeGrTrUM7YOrH6zWtOrLYscXv0IVvi8W5A4TPTN7WLEJtD8pz Nz7zNeQbq5YzIjFJ71Xh76/xhnOv6vpgMvlS1wff1DRqYl57Oj6BEFi5JavqHtgab4 52u3aJFM92fhw8ipXHIOilMMw81XiYyRSgjIFUAyfxbUjou4wPSS9llDVrpUJwerdK 2AdlqMC6RyOhqT0VWEC/Ufjwh5lECzxxbh966WGQMHZGVoNo0hcW4o6XvGw7IH74yt o2W1bQekkXE0OCmUhmFXKSPxjfz+W7TRQ90kC/rTA37jdPkOOQ+Y3ECW05YwAWa/m2 4Uw+2EWIaJ0/w== From: "Marty E. Plummer" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: [PATCH 3/5] xdg.eclass: move deps to RDEPEND Message-ID: <20181002021437.rf5ldh4wlciktd7n@proprietary-killer> References: <20180930225035.25434-1-floppym@gentoo.org> <20180930225035.25434-3-floppym@gentoo.org> <2e0b1447-d520-c4cc-61f6-7a1ad1761684@gentoo.org> <1538396835.9799.2.camel@gentoo.org> <20181001141724.58e98ebe@red.yakaraplc.local> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Archives-Salt: 378428f3-be51-44b2-8262-f75b297a2eb8 X-Archives-Hash: 2c59226336ee013eac1482c1d5d002a1 On Mon, Oct 01, 2018 at 10:08:03AM -0400, Mike Gilbert wrote: > On Mon, Oct 1, 2018 at 9:17 AM James Le Cuirot wrote: > > > > On Mon, 1 Oct 2018 09:00:38 -0400 > > Mike Gilbert wrote: > > > > > > The reason why it is in DEPEND though is that none of these tools > > > > are required at runtime. They are needed at postinst and postrm > > > > stages which afaik makes them DEPEND on EAPI previous to EAPI 7 and > > > > BDEPEND in EAPI 7 if I'm not mistaken. > > > > > > This is incorrect; programs executed in pkg_postinst/pkg_postrm should > > > be present in RDEPEND. Consider a binpkg installation, which would > > > ignore DEPEND, but would still execute pkg_postinst. > > > > > > Another option: since xdg-utils.eclass functions will politely skip > > > the updates if the tools are missing, we could just drop the > > > dependency from xdg.eclass entirely and wait for the tools to get > > > installed through some indirect means. > > > > Unfortunately there is no correct answer here as we didn't consider > > this scenario when planning EAPI 7. We should have looked at Exherbo, > > which does make this important distinction. There is a bug report open. > > > > https://bugs.gentoo.org/660306 > > > > What I will say is that we should not attempt to executing anything > > from within ROOT or SYSROOT unless it known to be interpreted > > (e.g. a shell script) and there is no feasible alternative. I add that > > exclusion clause because I have been forced to do this with > > python-config. > > That's a good point; both update-desktop-database and > update-mime-database are compiled binaries, and should probably be > executed from BROOT (/) instead. I'll revise my patchset. > Not to steal the show/etc, but I do have a patchset which does most of this already across {gnome2,xdg}{,-utils}.eclass, though I'm as conflicted as you guys are with regards to the DEPEND/PDEPEND/BDEPEND/RDPEND for it as well. https://archives.gentoo.org/gentoo-dev/message/e0167edbb7b48b03dc90bfbb250ae16d