Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] gentoo-functions is in the tree
Date: Wed, 12 Mar 2014 01:11:10
Message-Id: 20140312011051.GB4559@laptop.home
In Reply to: Re: [gentoo-dev] gentoo-functions is in the tree by Ian Stakenvicius
1 On Tue, Mar 11, 2014 at 10:10:42AM -0400, Ian Stakenvicius wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA256
4 >
5 > On 10/03/14 07:30 PM, William Hubbs wrote:
6 > > All,
7 > >
8 > > for bug 373219 [1], we are working on providing a functions.sh that
9 > > does not rely on OpenRc so that people who are not using OpenRc
10 > > can completely remove it from their systems.
11 > >
12 > > I can now report that gentoo-functions has been added to the tree.
13 > > Also, I have opened a tracker [2] that explains how to change
14 > > packages that source /etc/init.d/functions.sh. They should first
15 > > check for the existence of /lib/gentoo/functions.sh and source
16 > > that. If it doesn't exist, they should source
17 > > /etc/init.d/functions.sh. Also, do not add hard dependencies to
18 > > your packages on gentoo-functions. The goal is to add
19 > > gentoo-functions to @system once it is stable.
20 > >
21 > > The quickest way to find things that will need this fix is to rm
22 > > /etc/init.d/functions.sh and file bugs against things that break
23 > > and make them block the tracker.
24 > >
25 >
26 > - From what I remember about conversations on this in the past, and
27 > hopefully vapier can confirm, the de-facto location for this script is
28 > supposed to be /etc/init.d/functions.sh. Was there a general
29 > consensus on the approval of that location change? I still think, at
30 > worst, we should ensure the gentoo-functions script installs a symlink
31 > here (possibly taking over the one installed by openrc, if openrc
32 > still installs one)
33
34 This was discussed at length on the bug. After multiple people presented
35 arguments supporting changing this location, vapier was given ample time
36 to weigh in with reasons that we shouldn't change it. He did not, so it
37 has been changed [1].
38
39 No, I don't think gentoo-functions should take over the symbolic link in
40 /etc/init.d/functions.sh; that needs to stay with OpenRc. My plan there
41 is to work that into a script that prints a warning message. It will
42 stay that way until openrc-1.0. OpenRc upstream uses semantic
43 versioning [2]. This means that as long as we are at 0.x we have to
44 keep things backward compatible.
45
46 > Also, just to confirm, this new path is compatible with the einfo
47 > package used as part of Prefix, yes? Or other arrangements have been
48 > made (ie, the einfo package will be dropped from baselayout-prefix)?
49
50 No one has said anything to me about prefix so I don't know what they
51 want to do. To be honest I would prefer that they drop einfo. unless
52 there is a good reason for them not to.
53
54 William
55
56 [1] https://bugs.gentoo.org/show_bug.cgi?id=373219
57 [2] http://www.semver.org

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] gentoo-functions is in the tree Ian Stakenvicius <axs@g.o>