Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] gentoo-functions is in the tree
Date: Tue, 11 Mar 2014 14:10:51
Message-Id: 531F1962.1040604@gentoo.org
In Reply to: [gentoo-dev] gentoo-functions is in the tree by William Hubbs
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 10/03/14 07:30 PM, William Hubbs wrote:
5 > All,
6 >
7 > for bug 373219 [1], we are working on providing a functions.sh that
8 > does not rely on OpenRc so that people who are not using OpenRc
9 > can completely remove it from their systems.
10 >
11 > I can now report that gentoo-functions has been added to the tree.
12 > Also, I have opened a tracker [2] that explains how to change
13 > packages that source /etc/init.d/functions.sh. They should first
14 > check for the existence of /lib/gentoo/functions.sh and source
15 > that. If it doesn't exist, they should source
16 > /etc/init.d/functions.sh. Also, do not add hard dependencies to
17 > your packages on gentoo-functions. The goal is to add
18 > gentoo-functions to @system once it is stable.
19 >
20 > The quickest way to find things that will need this fix is to rm
21 > /etc/init.d/functions.sh and file bugs against things that break
22 > and make them block the tracker.
23 >
24
25 - From what I remember about conversations on this in the past, and
26 hopefully vapier can confirm, the de-facto location for this script is
27 supposed to be /etc/init.d/functions.sh. Was there a general
28 consensus on the approval of that location change? I still think, at
29 worst, we should ensure the gentoo-functions script installs a symlink
30 here (possibly taking over the one installed by openrc, if openrc
31 still installs one)
32
33 That said, I'm certainly fine with having all package-installed
34 scripts use the /lib/ location and depending directly on this new package.
35
36 Also, just to confirm, this new path is compatible with the einfo
37 package used as part of Prefix, yes? Or other arrangements have been
38 made (ie, the einfo package will be dropped from baselayout-prefix)?
39
40
41
42
43 -----BEGIN PGP SIGNATURE-----
44 Version: GnuPG v2.0.22 (GNU/Linux)
45
46 iF4EAREIAAYFAlMfGWIACgkQ2ugaI38ACPCZhAD/aaM1e12lf86YWqCzS0RPvrRo
47 XGc5zLlykr/lY4cix5sA/RWn42uEK1kjQKfsWm+gtxzw7PUGVSUQemXG10FJMJ0R
48 =eUAw
49 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] gentoo-functions is in the tree William Hubbs <williamh@g.o>