Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sysvinit/, sys-apps/sysvinit/files/
Date: Sat, 20 Apr 2019 22:52:04
Message-Id: 1555800714.b5e3f074c5d9c0e83f03e6320d6685fa7dbc4154.polynomial-c@gentoo
1 commit: b5e3f074c5d9c0e83f03e6320d6685fa7dbc4154
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 20 22:51:54 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 20 22:51:54 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5e3f074
7
8 sys-apps/sysvinit: Removed old.
9
10 Package-Manager: Portage-2.3.64, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/sysvinit/Manifest | 1 -
14 .../sysvinit/files/sysvinit-2.88-shutdown-h.patch | 65 ------------
15 sys-apps/sysvinit/sysvinit-2.91-r1.ebuild | 117 ---------------------
16 3 files changed, 183 deletions(-)
17
18 diff --git a/sys-apps/sysvinit/Manifest b/sys-apps/sysvinit/Manifest
19 index a7aa2c886a0..85991333fc4 100644
20 --- a/sys-apps/sysvinit/Manifest
21 +++ b/sys-apps/sysvinit/Manifest
22 @@ -1,3 +1,2 @@
23 -DIST sysvinit-2.91.tar.xz 114412 BLAKE2B 5e044f589f5001c2b5a30eda76bf5c24bb2a7e0d308b7027d54031848407e6b7667b59096044eb186a7f6a862521d4a670c05a17dcc929d07da6515058949606 SHA512 8dcf6de79b03567c300ef5f2b7dd211895745e231510d730092085a15f61f06f28cee7c504b0b022bdcb4b4e903f44946537d4fbb2b5069fb5d29bb099fd45f5
24 DIST sysvinit-2.93.tar.xz 117580 BLAKE2B 2e771b00dbdc73e76df9e78659aaa5e5fcbfda36290a1b5aa20a5a6fe3540c4616f2a235a668de30d33c620e2d2516da303537eda47b83b29b0844ad7aa77df4 SHA512 c80d07a674253d15ec6382cfaf792f47486e2e84ab9c913d3c9e03b590cf211177a3a14e168f4d1c9c2e97737221f7ac70a75633d90502837a6d29bdc4c48d72
25 DIST sysvinit-2.94.tar.xz 120900 BLAKE2B e45a95246325e93ef49f11573924216937e238761cb9f5979ae2b272838fb3280b1d12c9553992271f7926dc7c7bc18e352a8019a70f54c592971fe043453804 SHA512 8d3b7b777f7c37cf5eaf73d4cdfad8ac54c6115577052bd7ddf3588da8fb7d16b812ffaade0ce300c2c6b7d2acd6e7778130544befc171eab174ee8766b3ec50
26
27 diff --git a/sys-apps/sysvinit/files/sysvinit-2.88-shutdown-h.patch b/sys-apps/sysvinit/files/sysvinit-2.88-shutdown-h.patch
28 deleted file mode 100644
29 index 716999c39c3..00000000000
30 --- a/sys-apps/sysvinit/files/sysvinit-2.88-shutdown-h.patch
31 +++ /dev/null
32 @@ -1,65 +0,0 @@
33 -other inits have moved to not requiring the -h flag when used with -H/-P.
34 -modify sysvinit to be the same since it really doesn't matter.
35 -
36 -https://bugs.gentoo.org/449354
37 -
38 -patch by Doug Goldstein
39 -
40 ---- sysvinit-2.88dsf/man/shutdown.8
41 -+++ sysvinit-2.88dsf/man/shutdown.8
42 -@@ -66,16 +66,15 @@
43 - .\"}}}
44 - .\"{{{ -h
45 - .IP \fB\-h\fP
46 --Halt or power off after shutdown.
47 -+Equivalent to -P, unless -H is specified.
48 - .\"}}}
49 - .\"{{{ -P
50 - .IP \fB\-P\fP
51 --Halt action is to turn off the power.
52 -+Action is to power-off the machine.
53 - .\"}}}
54 - .\"{{{ -H
55 - .IP \fB\-H\fP
56 --Modifier to the -h flag. Halt action is to halt or drop into boot
57 --monitor on systems that support it. Must be used with the -h flag.
58 -+Action is to halt the machine.
59 - .\"}}}
60 - .\"{{{ -f
61 - .IP \fB\-f\fP
62 ---- sysvinit-2.88dsf/src/shutdown.c
63 -+++ sysvinit-2.88dsf/src/shutdown.c
64 -@@ -514,9 +514,11 @@
65 - switch(c) {
66 - case 'H':
67 - halttype = "HALT";
68 -+ down_level[0] = '0';
69 - break;
70 - case 'P':
71 - halttype = "POWERDOWN";
72 -+ down_level[0] = '0';
73 - break;
74 - case 'a': /* Access control. */
75 - useacl = 1;
76 -@@ -532,6 +534,8 @@
77 - break;
78 - case 'h': /* Halt after shutdown */
79 - down_level[0] = '0';
80 -+ if (!halttype)
81 -+ halttype = "POWERDOWN";
82 - break;
83 - case 'f': /* Don't perform fsck after next boot */
84 - fastboot = 1;
85 -@@ -565,12 +569,6 @@
86 - }
87 - }
88 -
89 -- if (NULL != halttype && down_level[0] != '0') {
90 -- fprintf(stderr, "shutdown: -H and -P flags can only be used along with -h flag.\n");
91 -- usage();
92 -- exit(1);
93 -- }
94 --
95 - /* Do we need to use the shutdown.allow file ? */
96 - if (useacl && (fp = fopen(SDALLOW, "r")) != NULL) {
97 -
98
99 diff --git a/sys-apps/sysvinit/sysvinit-2.91-r1.ebuild b/sys-apps/sysvinit/sysvinit-2.91-r1.ebuild
100 deleted file mode 100644
101 index 18216a73072..00000000000
102 --- a/sys-apps/sysvinit/sysvinit-2.91-r1.ebuild
103 +++ /dev/null
104 @@ -1,117 +0,0 @@
105 -# Copyright 1999-2019 Gentoo Authors
106 -# Distributed under the terms of the GNU General Public License v2
107 -
108 -EAPI=6
109 -
110 -inherit toolchain-funcs flag-o-matic
111 -
112 -DESCRIPTION="/sbin/init - parent of all processes"
113 -HOMEPAGE="https://savannah.nongnu.org/projects/sysvinit"
114 -SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz"
115 -
116 -LICENSE="GPL-2"
117 -SLOT="0"
118 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
119 -IUSE="selinux ibm static kernel_FreeBSD"
120 -
121 -CDEPEND="
122 - selinux? (
123 - >=sys-libs/libselinux-1.28
124 - )"
125 -DEPEND="${CDEPEND}
126 - virtual/os-headers"
127 -RDEPEND="${CDEPEND}
128 - selinux? ( sec-policy/selinux-shutdown )
129 - !<sys-apps/openrc-0.13
130 -"
131 -
132 -PATCHES=(
133 - "${FILESDIR}/${PN}-2.86-kexec.patch" #80220
134 - "${FILESDIR}/${PN}-2.86-shutdown-single.patch" #158615
135 - "${FILESDIR}/${PN}-2.88-shutdown-h.patch" #449354
136 -)
137 -
138 -src_prepare() {
139 - default
140 - sed -i '/^CPPFLAGS =$/d' src/Makefile || die
141 -
142 - # last/lastb/mesg/mountpoint/sulogin/utmpdump/wall have moved to util-linux
143 - sed -i -r \
144 - -e '/^(USR)?S?BIN/s:\<(last|lastb|mesg|mountpoint|sulogin|utmpdump|wall)\>::g' \
145 - -e '/^MAN[18]/s:\<(last|lastb|mesg|mountpoint|sulogin|utmpdump|wall)[.][18]\>::g' \
146 - src/Makefile || die
147 -
148 - # pidof has moved to >=procps-3.3.9
149 - sed -i -r \
150 - -e '/\/bin\/pidof/d' \
151 - -e '/^MAN8/s:\<pidof.8\>::g' \
152 - src/Makefile || die
153 -
154 - # Mung inittab for specific architectures
155 - cd "${WORKDIR}" || die
156 - cp "${FILESDIR}"/inittab-2.91 inittab || die "cp inittab"
157 - local insert=()
158 - use ppc && insert=( '#psc0:12345:respawn:/sbin/agetty 115200 ttyPSC0 linux' )
159 - use arm && insert=( '#f0:12345:respawn:/sbin/agetty 9600 ttyFB0 vt100' )
160 - use arm64 && insert=( 'f0:12345:respawn:/sbin/agetty 9600 ttyAMA0 vt100' )
161 - use hppa && insert=( 'b0:12345:respawn:/sbin/agetty 9600 ttyB0 vt100' )
162 - use s390 && insert=( 's0:12345:respawn:/sbin/agetty 38400 console dumb' )
163 - if use ibm ; then
164 - insert+=(
165 - '#hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0'
166 - '#hvsi:2345:respawn:/sbin/agetty -L 19200 hvsi0'
167 - )
168 - fi
169 - (use arm || use mips || use sh || use sparc) && sed -i '/ttyS0/s:#::' inittab
170 - if use kernel_FreeBSD ; then
171 - sed -i \
172 - -e 's/linux/cons25/g' \
173 - -e 's/ttyS0/cuaa0/g' \
174 - -e 's/ttyS1/cuaa1/g' \
175 - inittab #121786
176 - fi
177 - if use x86 || use amd64 ; then
178 - sed -i \
179 - -e '/ttyS[01]/s:9600:115200:' \
180 - inittab
181 - fi
182 - if [[ ${#insert[@]} -gt 0 ]] ; then
183 - printf '%s\n' '' '# Architecture specific features' "${insert[@]}" >> inittab
184 - fi
185 -}
186 -
187 -src_compile() {
188 - tc-export CC
189 - append-lfs-flags
190 - export DISTRO= #381311
191 - export VERSION="${PV}"
192 - use static && append-ldflags -static
193 - emake -C src $(usex selinux 'WITH_SELINUX=yes' '')
194 -}
195 -
196 -src_install() {
197 - emake -C src install ROOT="${D}"
198 - dodoc README doc/*
199 -
200 - insinto /etc
201 - doins "${WORKDIR}"/inittab
202 -
203 - # dead symlink
204 - rm "${ED%/}"/usr/bin/lastb || die
205 -}
206 -
207 -pkg_postinst() {
208 - # Reload init to fix unmounting problems of / on next reboot.
209 - # This is really needed, as without the new version of init cause init
210 - # not to quit properly on reboot, and causes a fsck of / on next reboot.
211 - if [[ ${ROOT} == / ]] ; then
212 - if [[ -e /dev/initctl && ! -e /run/initctl ]]; then
213 - ln -s /dev/initctl /run/initctl
214 - fi
215 - # Do not return an error if this fails
216 - /sbin/telinit U &>/dev/null
217 - fi
218 -
219 - elog "The last/lastb/mesg/mountpoint/sulogin/utmpdump/wall tools have been moved to"
220 - elog "sys-apps/util-linux. The pidof tool has been moved to sys-process/procps."
221 -}