On Sun, 4 Dec 2016 21:13:23 -0600 "A. Wilcox" <awil...@adelielinux.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > On 04/12/16 20:58, Mike Gilbert wrote: > > On Sun, Dec 4, 2016 at 6:31 PM, A. Wilcox <awil...@adelielinux.org> > > wrote: > >> Roadmap - ------- > >> > >> Since the shell environment is flexible, this change can be > >> implemented almost immediately; the defaults specified in the > >> Gentoo base profile ensure that at worst nothing will immediately > >> change. As forks, derivatives, and other organisations change > >> the environment variables in their profiles or ``make.conf`` > >> files, all updated ebuilds will immediately reflect the changes. > >> > >> During this, the variables can be added to the EAPI=7 > >> specification, and may eventually be added to PMS §11.1. > > > > It's not clear to me why this should be defined in PMS, especially > > if this is going to be a profile variable in make.defaults. > > > > > I think we would only need to add it to PMS if you need to package > > manager to compute the value based on the running system. Is that > > what you had in mind here? If so, you will need to include that > > algorithm in your patch. > > > > Thinking on it a little more, that wouldn't be a good way to go. We > can't really rely on lsb_release being present, especially if Portage > is being run on FreeBSD or a more exotic prefix; sys-apps/lsb-release > isn't even installed on my relatively 'normal' amd64 Gentoo Linux > machine. Additionally, it wouldn't have the bug URL even if it were > present. Strictly speaking, it could use $EPREFIX/etc/os-release which has all the info you need, is installed by baselayout and doesn't require special wrappers to print it. Benefits of os-release approach: - distros don't have to override profiles (which can get problematic if a distro uses pretty-much standard Gentoo profiles), - works for people with custom profiles. Drawbacks of os-release approach: - can't do it via profiles, - doesn't work before baselayout is installed. The other alternative is to provide an eclass that reads data from $EPREFIX/os-release and supplies it to the packages that need it. -- Best regards, Michał Górny <http://dev.gentoo.org/~mgorny/>
pgpwZXyLYTvXm.pgp
Description: OpenPGP digital signature