Gentoo Archives: gentoo-amd64

From: Marc Joliet <marcec@×××.de>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Re: Systemd migration: opinion and questions
Date: Sat, 23 May 2015 18:08:08
Message-Id: 20150523200754.3e187663@marcec
In Reply to: Re: [gentoo-amd64] Re: Systemd migration: opinion and questions by Marc Joliet
1 Am Sat, 23 May 2015 13:11:56 +0200
2 schrieb Marc Joliet <marcec@×××.de>:
3
4 > Am Sat, 23 May 2015 10:41:03 +0000 (UTC)
5 > schrieb Duncan <1i5t5.duncan@×××.net>:
6 >
7 > > Marc Joliet posted on Sat, 23 May 2015 10:49:07 +0200 as excerpted:
8 > >
9 > > > Am Thu, 21 May 2015 09:36:28 +0000 (UTC)
10 > > > schrieb Duncan <1i5t5.duncan@×××.net>:
11 > > >
12 > > > [...]
13 > > >> I decided to keep systemd, and ultimately, to unmerge openrc
14 > > > [...]
15 > > >
16 > > > I forgot to ask about this: how did you go about doing that? I'm still
17 > > > waiting for the following two bugs to be resolved:
18 > > >
19 > > > https://bugs.gentoo.org/show_bug.cgi?id=504116
20 > > > https://bugs.gentoo.org/show_bug.cgi?id=511500
21 > > >
22 > > > Do you have none of the affected packages installed, or...?
23 > >
24 > > Good question!
25 > >
26 > > Answer: "or..." Very definitely "or...", as you will see below. =:^)
27 > >
28 > > functions.sh is easy enough to fix, if you're willing to create a single
29 > > symlink, manually.
30 > >
31 > > $ equery belongs functions.sh
32 > > sys-apps/gentoo-functions-0.10 (/lib/gentoo/functions.sh)
33 > >
34 > > The package gentoo-functions is /supposed/ to replace a couple gentoo-
35 > > specific files formerly found in openrc, thereby making openrc optional
36 > > for those using other init systems (like systemd). One of those files is
37 > > functions.sh[1].
38 > >
39 > > But the old /etc/init.d/functions.sh location was hardcoded into a lot of
40 > > gentoo utilities over the years, some of which don't get updated very
41 > > often especially for stable, and the new /lib/gentoo/functions.sh
42 > > location, while more appropriate, still can't be found by some of these
43 > > apps. That's what the first bug is about.
44 > >
45 > > Simple enough fix -- ensure the gentoo-functions package is installed (it
46 > > should be as it's a dependency of enough stuff, including current glibc
47 > > packages!), and do a manual symlink from the old location to the new
48 > > one. Viola! No openrc needed for THAT any more, and because the new
49 > > location's file is still packaged, any updates to it should occur
50 > > normally and will be simply picked up by anything still using the old
51 > > location, since it's a symlink! =:^)
52 > [...]
53 >
54 > That is certainly an interesting approach, since it avoids any upgrades. Then
55 > I would only have to deal with openrc.
56 >
57 > [snip empty @system approach]
58 >
59 > Wow, that's certainly an interesting approach! It's definitely not for me,
60 > though. While I appreciate the control Gentoo gives me, I don't need *that*
61 > kind of control.
62
63 Well, I did end up doing this:
64
65 % cat /etc/portage/profile/packages
66 -*sys-apps/openrc
67
68 and creating the symlink as suggested.
69
70 I also added java-config-wrapper to package.provided as I originally suggested,
71 following the declaration of obsolescence in bug #549508.
72
73 So far everything seems to be working fine (i.e., gcc-config and
74 java-config-2 both work).
75
76 Thanks
77 --
78 Marc Joliet
79 --
80 "People who think they know everything really annoy those of us who know we
81 don't" - Bjarne Stroustrup