1 |
commit: e08af84b945ba273e07321fe3ae5735f2bd0cc89 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 16 12:36:47 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 16 12:37:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e08af84b |
7 |
|
8 |
sys-apps/util-linux: Removed old |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
sys-apps/util-linux/Manifest | 3 - |
13 |
sys-apps/util-linux/util-linux-2.33.2.ebuild | 290 ---------------------- |
14 |
sys-apps/util-linux/util-linux-2.34-r3.ebuild | 301 ---------------------- |
15 |
sys-apps/util-linux/util-linux-2.36.1-r1.ebuild | 316 ------------------------ |
16 |
4 files changed, 910 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest |
19 |
index 1132a971d53..20ac01eac7d 100644 |
20 |
--- a/sys-apps/util-linux/Manifest |
21 |
+++ b/sys-apps/util-linux/Manifest |
22 |
@@ -1,7 +1,4 @@ |
23 |
-DIST util-linux-2.33.2.tar.xz 4707024 BLAKE2B fdeed0a236edd26d268bccca8cde2cf1b7ecbff521ede9fa26ea22c8e5cdfc380a416a168789504b303f1b569d163e41f6630ee28829be7f2b2129fa14c4fffa SHA512 ac88790a0272366b384b54df19cb28318014d98819d5d96aa05528ff17ab57a8c66d012a2f1b59caca4c5d4ea669e8c041e1123517c1f1c2d9960ef701aaf749 |
24 |
-DIST util-linux-2.34.tar.xz 4974812 BLAKE2B d26b2f74d490eaee0a40d4c75a1a351ba165b4a52f9bbf6cf9d1afd7ae1382a3a3dfe41180584e97e9aaad6950f604cad928f30747590e3e1e669c8797689758 SHA512 2d0b76f63d32e7afb7acf61a83fabbfd58baa34ab78b3a331ce87f9c676a5fd71c56a493ded95039540d2c46b6048caaa38d7fb4491eb3d52d7b09dc54655cd7 |
25 |
DIST util-linux-2.35.2.tar.xz 5150488 BLAKE2B 93eb90ab33db7795b46425ec4ec87f8a2d3d6e0dad671345375ea02efd654bf72041932d30b41bea494e4b62952e2fd14ea9f9e6c738d4eb4b050bd170b9bb0e SHA512 59e038ba71aa74c9af6f927b357483a965f675ab3ffcd25cf0c1b043656312d2d2d07c55659fd3da69ede165bec313e0ae7e1cd73758e49681ae610604b399a2 |
26 |
-DIST util-linux-2.36.1.tar.xz 5231880 BLAKE2B 52d867aa0b722a84828c37958d80b0bdcc1ceaae4e46fa6550ad0f2f152c52e4aaf2c8bc5fdf4f27b522037a870ff2554382abac0eaa50a6791d8b8016e3d74c SHA512 9dfd01ae4c16fa35015dafd222d555988b72e4d1d2fbadd140791b9ef78f84fa8254d4d08dc67cabf41e873338867f19e786b989d708ccfe5161c4f7679bba7a |
27 |
DIST util-linux-2.36.2.tar.xz 5348032 BLAKE2B 17e49515f8d0430f3ed26b80bf1d6e811d847141020d0dae1340dc92887549b7b711f3db6e3913120871fc912435def73586a7aef09d8d9cc6ff7ca331b2770f SHA512 6ab141f44ca4cb6b600081f10eae17e15d23abd122a37eb3ac6c845513a6a4396dc9dcff30b3032de80116ddde50e27dfbc86f92708c1051f84f0c919194664b |
28 |
DIST util-linux-2.37-rc1-manpages.tar.xz 160524 BLAKE2B 3d301478b772f944c7d4cd713130fe9800cc32fb14ac46967c6a64fdca6e561d91f642f839c77cded6f4af8b4487cf3f36ac3f6a72aea50a75c020a1c9862ee0 SHA512 44f45356c2a97f482dc4b0a762e4c2e04fbce0d2268cd765fcff87c40554d0ef3016ff5e1c1165ba93c05ff8390d76ea14fd30f419ce4c86fc5678858cede54b |
29 |
DIST util-linux-2.37-rc1.tar.xz 5269776 BLAKE2B cc964e8f1bb50f704d7f207bd166b41d6b70d138b52e140687fe58f77626097d6151ae3f3efdb655b8495a67ad33cdf7fcdb0cf71839ba34963b0f14aace98a5 SHA512 5c3125a0ac42e17c8837f398cc3d59a538f18e823fab4feb9d7756a4c7523dd70fe7a5c94baab2a329d1ce99d85bdb19a14dd5d32d72d479a398f7dbc3003c1a |
30 |
|
31 |
diff --git a/sys-apps/util-linux/util-linux-2.33.2.ebuild b/sys-apps/util-linux/util-linux-2.33.2.ebuild |
32 |
deleted file mode 100644 |
33 |
index 9c28caeacb6..00000000000 |
34 |
--- a/sys-apps/util-linux/util-linux-2.33.2.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,290 +0,0 @@ |
37 |
-# Copyright 1999-2021 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=6 |
41 |
- |
42 |
-PYTHON_COMPAT=( python3_7 ) |
43 |
- |
44 |
-inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \ |
45 |
- pam python-r1 multilib-minimal multiprocessing systemd |
46 |
- |
47 |
-MY_PV="${PV/_/-}" |
48 |
-MY_P="${PN}-${MY_PV}" |
49 |
- |
50 |
-if [[ ${PV} == 9999 ]] ; then |
51 |
- inherit git-r3 autotools |
52 |
- EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git" |
53 |
-else |
54 |
- [[ "${PV}" = *_rc* ]] || \ |
55 |
- KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" |
56 |
- SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz" |
57 |
-fi |
58 |
- |
59 |
-DESCRIPTION="Various useful Linux utilities" |
60 |
-HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ https://github.com/karelzak/util-linux" |
61 |
- |
62 |
-LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain" |
63 |
-SLOT="0" |
64 |
-IUSE="build caps +cramfs fdformat kill ncurses nls pam python +readline selinux slang static-libs +suid systemd test tty-helpers udev unicode userland_GNU" |
65 |
- |
66 |
-# Most lib deps here are related to programs rather than our libs, |
67 |
-# so we rarely need to specify ${MULTILIB_USEDEP}. |
68 |
-RDEPEND="caps? ( sys-libs/libcap-ng ) |
69 |
- cramfs? ( sys-libs/zlib:= ) |
70 |
- ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] ) |
71 |
- nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) |
72 |
- pam? ( sys-libs/pam ) |
73 |
- python? ( ${PYTHON_DEPS} ) |
74 |
- readline? ( sys-libs/readline:0= ) |
75 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) |
76 |
- slang? ( sys-libs/slang ) |
77 |
- !build? ( systemd? ( sys-apps/systemd ) ) |
78 |
- udev? ( virtual/libudev:= )" |
79 |
-DEPEND="${RDEPEND} |
80 |
- virtual/pkgconfig |
81 |
- nls? ( sys-devel/gettext ) |
82 |
- test? ( sys-devel/bc ) |
83 |
- virtual/os-headers" |
84 |
-RDEPEND+=" |
85 |
- kill? ( |
86 |
- !sys-apps/coreutils[kill] |
87 |
- !sys-process/procps[kill] |
88 |
- ) |
89 |
- !net-wireless/rfkill |
90 |
- !<app-shells/bash-completion-2.7-r1" |
91 |
- |
92 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
93 |
-RESTRICT="!test? ( test )" |
94 |
- |
95 |
-S="${WORKDIR}/${MY_P}" |
96 |
- |
97 |
-PATCHES=( |
98 |
- # In glibc-2.29+, a lot of changes were made to arch-specific |
99 |
- # handling of `struct termios', which breaks atleast MIPS. |
100 |
- # The below patch from upstream fixes this, and should be |
101 |
- # in the next release. |
102 |
- # See: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=963413a1adf6767ab17712097e288e1a346f63a7 |
103 |
- "${FILESDIR}/${PN}-2.33.1-fix-struct_termios-check.patch" |
104 |
-) |
105 |
- |
106 |
-src_prepare() { |
107 |
- default |
108 |
- |
109 |
- # Prevent uuidd test failure due to socket path limit. #593304 |
110 |
- sed -i \ |
111 |
- -e "s|UUIDD_SOCKET=\"\$(mktemp -u \"\${TS_OUTDIR}/uuiddXXXXXXXXXXXXX\")\"|UUIDD_SOCKET=\"\$(mktemp -u \"${T}/uuiddXXXXXXXXXXXXX.sock\")\"|g" \ |
112 |
- tests/ts/uuid/uuidd || die "Failed to fix uuidd test" |
113 |
- |
114 |
- if ! use userland_GNU; then |
115 |
- # test runner is using GNU-specific xargs call |
116 |
- sed -i -e 's:xargs:gxargs:' tests/run.sh || die |
117 |
- # test requires util-linux uuidgen (which we don't build) |
118 |
- rm tests/ts/uuid/oids || die |
119 |
- fi |
120 |
- |
121 |
- if [[ ${PV} == 9999 ]] ; then |
122 |
- po/update-potfiles |
123 |
- eautoreconf |
124 |
- fi |
125 |
- |
126 |
- elibtoolize |
127 |
-} |
128 |
- |
129 |
-lfs_fallocate_test() { |
130 |
- # Make sure we can use fallocate with LFS #300307 |
131 |
- cat <<-EOF > "${T}"/fallocate.${ABI}.c |
132 |
- #define _GNU_SOURCE |
133 |
- #include <fcntl.h> |
134 |
- main() { return fallocate(0, 0, 0, 0); } |
135 |
- EOF |
136 |
- append-lfs-flags |
137 |
- $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \ |
138 |
- || export ac_cv_func_fallocate=no |
139 |
- rm -f "${T}"/fallocate.${ABI}.c |
140 |
-} |
141 |
- |
142 |
-python_configure() { |
143 |
- local myeconfargs=( |
144 |
- --disable-all-programs |
145 |
- --disable-bash-completion |
146 |
- --without-systemdsystemunitdir |
147 |
- --with-python |
148 |
- ) |
149 |
- if use userland_GNU; then |
150 |
- myeconfargs+=( |
151 |
- --enable-libblkid |
152 |
- --enable-libmount |
153 |
- --enable-pylibmount |
154 |
- ) |
155 |
- fi |
156 |
- mkdir "${BUILD_DIR}" || die |
157 |
- pushd "${BUILD_DIR}" >/dev/null || die |
158 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
159 |
- popd >/dev/null || die |
160 |
-} |
161 |
- |
162 |
-multilib_src_configure() { |
163 |
- lfs_fallocate_test |
164 |
- # The scanf test in a run-time test which fails while cross-compiling. |
165 |
- # Blindly assume a POSIX setup since we require libmount, and libmount |
166 |
- # itself fails when the scanf test fails. #531856 |
167 |
- tc-is-cross-compiler && export scanf_cv_alloc_modifier=ms |
168 |
- export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486 |
169 |
- export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042 |
170 |
- |
171 |
- # Undo bad ncurses handling by upstream. Fall back to pkg-config. #601530 |
172 |
- export NCURSES6_CONFIG=false NCURSES5_CONFIG=false |
173 |
- export NCURSESW6_CONFIG=false NCURSESW5_CONFIG=false |
174 |
- |
175 |
- local myeconfargs=( |
176 |
- --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" |
177 |
- --with-bashcompletiondir="$(get_bashcompdir)" |
178 |
- --without-python |
179 |
- $(multilib_native_use_enable suid makeinstall-chown) |
180 |
- $(multilib_native_use_enable suid makeinstall-setuid) |
181 |
- $(multilib_native_use_with readline) |
182 |
- $(multilib_native_use_with slang) |
183 |
- $(multilib_native_use_with systemd) |
184 |
- $(multilib_native_use_with udev) |
185 |
- $(multilib_native_usex ncurses "$(use_with unicode ncursesw)" '--without-ncursesw') |
186 |
- $(multilib_native_usex ncurses "$(use_with !unicode ncurses)" '--without-ncurses') |
187 |
- $(tc-has-tls || echo --disable-tls) |
188 |
- $(use_enable nls) |
189 |
- $(use_enable unicode widechar) |
190 |
- $(use_enable static-libs static) |
191 |
- $(use_with selinux) |
192 |
- $(use_with ncurses tinfo) |
193 |
- ) |
194 |
- # build programs only on GNU, on *BSD we want libraries only |
195 |
- if multilib_is_native_abi && use userland_GNU; then |
196 |
- myeconfargs+=( |
197 |
- --disable-chfn-chsh |
198 |
- --disable-login |
199 |
- --disable-nologin |
200 |
- --disable-pylibmount |
201 |
- --disable-su |
202 |
- --enable-agetty |
203 |
- --enable-bash-completion |
204 |
- --enable-line |
205 |
- --enable-partx |
206 |
- --enable-raw |
207 |
- --enable-rename |
208 |
- --enable-rfkill |
209 |
- --enable-schedutils |
210 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
211 |
- $(use_enable caps setpriv) |
212 |
- $(use_enable cramfs) |
213 |
- $(use_enable fdformat) |
214 |
- $(use_enable tty-helpers mesg) |
215 |
- $(use_enable tty-helpers wall) |
216 |
- $(use_enable tty-helpers write) |
217 |
- $(use_enable kill) |
218 |
- ) |
219 |
- else |
220 |
- myeconfargs+=( |
221 |
- --disable-all-programs |
222 |
- --disable-bash-completion |
223 |
- --without-systemdsystemunitdir |
224 |
- # build libraries |
225 |
- --enable-libuuid |
226 |
- --enable-libblkid |
227 |
- --enable-libsmartcols |
228 |
- --enable-libfdisk |
229 |
- ) |
230 |
- if use userland_GNU; then |
231 |
- # those libraries don't work on *BSD |
232 |
- myeconfargs+=( |
233 |
- --enable-libmount |
234 |
- ) |
235 |
- fi |
236 |
- fi |
237 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
238 |
- |
239 |
- if multilib_is_native_abi && use python; then |
240 |
- python_foreach_impl python_configure |
241 |
- fi |
242 |
-} |
243 |
- |
244 |
-python_compile() { |
245 |
- pushd "${BUILD_DIR}" >/dev/null || die |
246 |
- emake all |
247 |
- popd >/dev/null || die |
248 |
-} |
249 |
- |
250 |
-multilib_src_compile() { |
251 |
- emake all |
252 |
- |
253 |
- if multilib_is_native_abi && use python; then |
254 |
- python_foreach_impl python_compile |
255 |
- fi |
256 |
-} |
257 |
- |
258 |
-python_test() { |
259 |
- pushd "${BUILD_DIR}" >/dev/null || die |
260 |
- emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot" |
261 |
- popd >/dev/null || die |
262 |
-} |
263 |
- |
264 |
-multilib_src_test() { |
265 |
- emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot" |
266 |
- if multilib_is_native_abi && use python; then |
267 |
- python_foreach_impl python_test |
268 |
- fi |
269 |
-} |
270 |
- |
271 |
-python_install() { |
272 |
- pushd "${BUILD_DIR}" >/dev/null || die |
273 |
- emake DESTDIR="${D}" install |
274 |
- python_optimize |
275 |
- popd >/dev/null || die |
276 |
-} |
277 |
- |
278 |
-multilib_src_install() { |
279 |
- if multilib_is_native_abi && use python; then |
280 |
- python_foreach_impl python_install |
281 |
- fi |
282 |
- |
283 |
- emake DESTDIR="${D}" install |
284 |
- |
285 |
- if multilib_is_native_abi && use userland_GNU; then |
286 |
- # need the libs in / |
287 |
- gen_usr_ldscript -a blkid fdisk mount smartcols uuid |
288 |
- fi |
289 |
-} |
290 |
- |
291 |
-multilib_src_install_all() { |
292 |
- dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*} |
293 |
- |
294 |
- # e2fsprogs-libs didnt install .la files, and .pc work fine |
295 |
- find "${ED}" -name "*.la" -delete || die |
296 |
- |
297 |
- if ! use userland_GNU; then |
298 |
- # manpage collisions |
299 |
- # TODO: figure out a good way to keep them |
300 |
- rm "${ED%/}"/usr/share/man/man3/uuid* || die |
301 |
- fi |
302 |
- |
303 |
- if use pam; then |
304 |
- newpamd "${FILESDIR}/runuser.pamd" runuser |
305 |
- newpamd "${FILESDIR}/runuser-l.pamd" runuser-l |
306 |
- fi |
307 |
- |
308 |
- # Note: |
309 |
- # Bash completion for "runuser" command is provided by same file which |
310 |
- # would also provide bash completion for "su" command. However, we don't |
311 |
- # use "su" command from this package. |
312 |
- # This triggers a known QA warning which we ignore for now to magically |
313 |
- # keep bash completion for "su" command which shadow package does not |
314 |
- # provide. |
315 |
-} |
316 |
- |
317 |
-pkg_postinst() { |
318 |
- if ! use tty-helpers; then |
319 |
- elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers." |
320 |
- fi |
321 |
- |
322 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
323 |
- elog "The agetty util now clears the terminal by default. You" |
324 |
- elog "might want to add --noclear to your /etc/inittab lines." |
325 |
- fi |
326 |
-} |
327 |
|
328 |
diff --git a/sys-apps/util-linux/util-linux-2.34-r3.ebuild b/sys-apps/util-linux/util-linux-2.34-r3.ebuild |
329 |
deleted file mode 100644 |
330 |
index 16c378134ed..00000000000 |
331 |
--- a/sys-apps/util-linux/util-linux-2.34-r3.ebuild |
332 |
+++ /dev/null |
333 |
@@ -1,301 +0,0 @@ |
334 |
-# Copyright 1999-2020 Gentoo Authors |
335 |
-# Distributed under the terms of the GNU General Public License v2 |
336 |
- |
337 |
-EAPI=7 |
338 |
- |
339 |
-PYTHON_COMPAT=( python3_7 ) |
340 |
- |
341 |
-inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \ |
342 |
- pam python-r1 multilib-minimal multiprocessing systemd |
343 |
- |
344 |
-MY_PV="${PV/_/-}" |
345 |
-MY_P="${PN}-${MY_PV}" |
346 |
- |
347 |
-if [[ ${PV} == 9999 ]] ; then |
348 |
- inherit git-r3 autotools |
349 |
- EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git" |
350 |
-else |
351 |
- [[ "${PV}" = *_rc* ]] || \ |
352 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
353 |
- SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz" |
354 |
-fi |
355 |
- |
356 |
-DESCRIPTION="Various useful Linux utilities" |
357 |
-HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ https://github.com/karelzak/util-linux" |
358 |
- |
359 |
-LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain" |
360 |
-SLOT="0" |
361 |
-IUSE="build caps +cramfs fdformat hardlink kill +logger ncurses nls pam python +readline selinux slang static-libs su +suid systemd test tty-helpers udev unicode userland_GNU" |
362 |
- |
363 |
-# Most lib deps here are related to programs rather than our libs, |
364 |
-# so we rarely need to specify ${MULTILIB_USEDEP}. |
365 |
-RDEPEND=" |
366 |
- caps? ( sys-libs/libcap-ng ) |
367 |
- cramfs? ( sys-libs/zlib:= ) |
368 |
- ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] ) |
369 |
- nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) |
370 |
- pam? ( sys-libs/pam ) |
371 |
- python? ( ${PYTHON_DEPS} ) |
372 |
- readline? ( sys-libs/readline:0= ) |
373 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) |
374 |
- slang? ( sys-libs/slang ) |
375 |
- !build? ( systemd? ( sys-apps/systemd ) ) |
376 |
- udev? ( virtual/libudev:= )" |
377 |
-BDEPEND=" |
378 |
- virtual/pkgconfig |
379 |
- nls? ( sys-devel/gettext ) |
380 |
- test? ( sys-devel/bc ) |
381 |
-" |
382 |
-DEPEND=" |
383 |
- ${RDEPEND} |
384 |
- virtual/os-headers |
385 |
-" |
386 |
-RDEPEND+=" |
387 |
- hardlink? ( !app-arch/hardlink ) |
388 |
- logger? ( !>=app-admin/sysklogd-2.0[logger] ) |
389 |
- kill? ( |
390 |
- !sys-apps/coreutils[kill] |
391 |
- !sys-process/procps[kill] |
392 |
- ) |
393 |
- su? ( |
394 |
- !<sys-apps/shadow-4.7-r2 |
395 |
- !>=sys-apps/shadow-4.7-r2[su] |
396 |
- ) |
397 |
- !net-wireless/rfkill |
398 |
- !<app-shells/bash-completion-2.7-r1" |
399 |
- |
400 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
401 |
-RESTRICT="!test? ( test )" |
402 |
- |
403 |
-S="${WORKDIR}/${MY_P}" |
404 |
- |
405 |
-src_prepare() { |
406 |
- default |
407 |
- |
408 |
- # Prevent uuidd test failure due to socket path limit. #593304 |
409 |
- sed -i \ |
410 |
- -e "s|UUIDD_SOCKET=\"\$(mktemp -u \"\${TS_OUTDIR}/uuiddXXXXXXXXXXXXX\")\"|UUIDD_SOCKET=\"\$(mktemp -u \"${T}/uuiddXXXXXXXXXXXXX.sock\")\"|g" \ |
411 |
- tests/ts/uuid/uuidd || die "Failed to fix uuidd test" |
412 |
- |
413 |
- if ! use userland_GNU; then |
414 |
- # test runner is using GNU-specific xargs call |
415 |
- sed -i -e 's:xargs:gxargs:' tests/run.sh || die |
416 |
- # test requires util-linux uuidgen (which we don't build) |
417 |
- rm tests/ts/uuid/oids || die |
418 |
- fi |
419 |
- |
420 |
- if [[ ${PV} == 9999 ]] ; then |
421 |
- po/update-potfiles |
422 |
- eautoreconf |
423 |
- fi |
424 |
- |
425 |
- elibtoolize |
426 |
-} |
427 |
- |
428 |
-lfs_fallocate_test() { |
429 |
- # Make sure we can use fallocate with LFS #300307 |
430 |
- cat <<-EOF > "${T}"/fallocate.${ABI}.c |
431 |
- #define _GNU_SOURCE |
432 |
- #include <fcntl.h> |
433 |
- main() { return fallocate(0, 0, 0, 0); } |
434 |
- EOF |
435 |
- append-lfs-flags |
436 |
- $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \ |
437 |
- || export ac_cv_func_fallocate=no |
438 |
- rm -f "${T}"/fallocate.${ABI}.c |
439 |
-} |
440 |
- |
441 |
-python_configure() { |
442 |
- local myeconfargs=( |
443 |
- "${commonargs[@]}" |
444 |
- --disable-all-programs |
445 |
- --disable-bash-completion |
446 |
- --without-systemdsystemunitdir |
447 |
- --with-python |
448 |
- ) |
449 |
- if use userland_GNU; then |
450 |
- myeconfargs+=( |
451 |
- --enable-libblkid |
452 |
- --enable-libmount |
453 |
- --enable-pylibmount |
454 |
- ) |
455 |
- fi |
456 |
- mkdir "${BUILD_DIR}" || die |
457 |
- pushd "${BUILD_DIR}" >/dev/null || die |
458 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
459 |
- popd >/dev/null || die |
460 |
-} |
461 |
- |
462 |
-multilib_src_configure() { |
463 |
- lfs_fallocate_test |
464 |
- # The scanf test in a run-time test which fails while cross-compiling. |
465 |
- # Blindly assume a POSIX setup since we require libmount, and libmount |
466 |
- # itself fails when the scanf test fails. #531856 |
467 |
- tc-is-cross-compiler && export scanf_cv_alloc_modifier=ms |
468 |
- export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486 |
469 |
- export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042 |
470 |
- |
471 |
- # Undo bad ncurses handling by upstream. Fall back to pkg-config. #601530 |
472 |
- export NCURSES6_CONFIG=false NCURSES5_CONFIG=false |
473 |
- export NCURSESW6_CONFIG=false NCURSESW5_CONFIG=false |
474 |
- |
475 |
- # configure args shared by python and non-python builds |
476 |
- local commonargs=( |
477 |
- --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" |
478 |
- ) |
479 |
- |
480 |
- local myeconfargs=( |
481 |
- "${commonargs[@]}" |
482 |
- --with-bashcompletiondir="$(get_bashcompdir)" |
483 |
- --without-python |
484 |
- $(multilib_native_use_enable suid makeinstall-chown) |
485 |
- $(multilib_native_use_enable suid makeinstall-setuid) |
486 |
- $(multilib_native_use_with readline) |
487 |
- $(multilib_native_use_with slang) |
488 |
- $(multilib_native_use_with systemd) |
489 |
- $(multilib_native_use_with udev) |
490 |
- $(multilib_native_usex ncurses "$(use_with unicode ncursesw)" '--without-ncursesw') |
491 |
- $(multilib_native_usex ncurses "$(use_with !unicode ncurses)" '--without-ncurses') |
492 |
- $(tc-has-tls || echo --disable-tls) |
493 |
- $(use_enable nls) |
494 |
- $(use_enable unicode widechar) |
495 |
- $(use_enable static-libs static) |
496 |
- $(use_with ncurses tinfo) |
497 |
- $(use_with selinux) |
498 |
- ) |
499 |
- # build programs only on GNU, on *BSD we want libraries only |
500 |
- if multilib_is_native_abi && use userland_GNU; then |
501 |
- myeconfargs+=( |
502 |
- --disable-chfn-chsh |
503 |
- --disable-login |
504 |
- --disable-nologin |
505 |
- --disable-pylibmount |
506 |
- --enable-agetty |
507 |
- --enable-bash-completion |
508 |
- --enable-line |
509 |
- --enable-partx |
510 |
- --enable-raw |
511 |
- --enable-rename |
512 |
- --enable-rfkill |
513 |
- --enable-schedutils |
514 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
515 |
- $(use_enable caps setpriv) |
516 |
- $(use_enable cramfs) |
517 |
- $(use_enable fdformat) |
518 |
- $(use_enable hardlink) |
519 |
- $(use_enable kill) |
520 |
- $(use_enable logger) |
521 |
- $(use_enable su) |
522 |
- $(use_enable tty-helpers mesg) |
523 |
- $(use_enable tty-helpers wall) |
524 |
- $(use_enable tty-helpers write) |
525 |
- ) |
526 |
- else |
527 |
- myeconfargs+=( |
528 |
- --disable-all-programs |
529 |
- --disable-bash-completion |
530 |
- --without-systemdsystemunitdir |
531 |
- # build libraries |
532 |
- --enable-libuuid |
533 |
- --enable-libblkid |
534 |
- --enable-libsmartcols |
535 |
- --enable-libfdisk |
536 |
- ) |
537 |
- if use userland_GNU; then |
538 |
- # those libraries don't work on *BSD |
539 |
- myeconfargs+=( |
540 |
- --enable-libmount |
541 |
- ) |
542 |
- fi |
543 |
- fi |
544 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
545 |
- |
546 |
- if multilib_is_native_abi && use python; then |
547 |
- python_foreach_impl python_configure |
548 |
- fi |
549 |
-} |
550 |
- |
551 |
-python_compile() { |
552 |
- pushd "${BUILD_DIR}" >/dev/null || die |
553 |
- emake all |
554 |
- popd >/dev/null || die |
555 |
-} |
556 |
- |
557 |
-multilib_src_compile() { |
558 |
- emake all |
559 |
- |
560 |
- if multilib_is_native_abi && use python; then |
561 |
- python_foreach_impl python_compile |
562 |
- fi |
563 |
-} |
564 |
- |
565 |
-python_test() { |
566 |
- pushd "${BUILD_DIR}" >/dev/null || die |
567 |
- emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot" |
568 |
- popd >/dev/null || die |
569 |
-} |
570 |
- |
571 |
-multilib_src_test() { |
572 |
- emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot" |
573 |
- if multilib_is_native_abi && use python; then |
574 |
- python_foreach_impl python_test |
575 |
- fi |
576 |
-} |
577 |
- |
578 |
-python_install() { |
579 |
- pushd "${BUILD_DIR}" >/dev/null || die |
580 |
- emake DESTDIR="${D}" install |
581 |
- python_optimize |
582 |
- popd >/dev/null || die |
583 |
-} |
584 |
- |
585 |
-multilib_src_install() { |
586 |
- if multilib_is_native_abi && use python; then |
587 |
- python_foreach_impl python_install |
588 |
- fi |
589 |
- |
590 |
- # This needs to be called AFTER python_install call (#689190) |
591 |
- emake DESTDIR="${D}" install |
592 |
- |
593 |
- if multilib_is_native_abi && use userland_GNU; then |
594 |
- # need the libs in / |
595 |
- gen_usr_ldscript -a blkid fdisk mount smartcols uuid |
596 |
- fi |
597 |
-} |
598 |
- |
599 |
-multilib_src_install_all() { |
600 |
- dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*} |
601 |
- |
602 |
- # e2fsprogs-libs didnt install .la files, and .pc work fine |
603 |
- find "${ED}" -name "*.la" -delete || die |
604 |
- |
605 |
- if ! use userland_GNU; then |
606 |
- # manpage collisions |
607 |
- # TODO: figure out a good way to keep them |
608 |
- rm "${ED}"/usr/share/man/man3/uuid* || die |
609 |
- fi |
610 |
- |
611 |
- if use pam; then |
612 |
- newpamd "${FILESDIR}/runuser.pamd" runuser |
613 |
- newpamd "${FILESDIR}/runuser-l.pamd" runuser-l |
614 |
- fi |
615 |
- |
616 |
- # Note: |
617 |
- # Bash completion for "runuser" command is provided by same file which |
618 |
- # would also provide bash completion for "su" command. However, we don't |
619 |
- # use "su" command from this package. |
620 |
- # This triggers a known QA warning which we ignore for now to magically |
621 |
- # keep bash completion for "su" command which shadow package does not |
622 |
- # provide. |
623 |
-} |
624 |
- |
625 |
-pkg_postinst() { |
626 |
- if ! use tty-helpers; then |
627 |
- elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers." |
628 |
- fi |
629 |
- |
630 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
631 |
- elog "The agetty util now clears the terminal by default. You" |
632 |
- elog "might want to add --noclear to your /etc/inittab lines." |
633 |
- fi |
634 |
-} |
635 |
|
636 |
diff --git a/sys-apps/util-linux/util-linux-2.36.1-r1.ebuild b/sys-apps/util-linux/util-linux-2.36.1-r1.ebuild |
637 |
deleted file mode 100644 |
638 |
index 0e3e92d94d7..00000000000 |
639 |
--- a/sys-apps/util-linux/util-linux-2.36.1-r1.ebuild |
640 |
+++ /dev/null |
641 |
@@ -1,316 +0,0 @@ |
642 |
-# Copyright 1999-2020 Gentoo Authors |
643 |
-# Distributed under the terms of the GNU General Public License v2 |
644 |
- |
645 |
-EAPI=7 |
646 |
- |
647 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
648 |
- |
649 |
-inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 usr-ldscript \ |
650 |
- pam python-r1 multilib-minimal multiprocessing systemd |
651 |
- |
652 |
-MY_PV="${PV/_/-}" |
653 |
-MY_P="${PN}-${MY_PV}" |
654 |
- |
655 |
-if [[ ${PV} == 9999 ]] ; then |
656 |
- inherit git-r3 autotools |
657 |
- EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git" |
658 |
-else |
659 |
- [[ "${PV}" = *_rc* ]] || \ |
660 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
661 |
- SRC_URI="https://www.kernel.org/pub/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz" |
662 |
-fi |
663 |
- |
664 |
-DESCRIPTION="Various useful Linux utilities" |
665 |
-HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ https://github.com/karelzak/util-linux" |
666 |
- |
667 |
-LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain" |
668 |
-SLOT="0" |
669 |
-IUSE="audit build caps +cramfs cryptsetup fdformat hardlink kill +logger ncurses nls pam python +readline selinux slang static-libs su +suid systemd test tty-helpers udev unicode userland_GNU" |
670 |
- |
671 |
-# Most lib deps here are related to programs rather than our libs, |
672 |
-# so we rarely need to specify ${MULTILIB_USEDEP}. |
673 |
-RDEPEND=" |
674 |
- virtual/libcrypt:= |
675 |
- audit? ( >=sys-process/audit-2.6:= ) |
676 |
- caps? ( sys-libs/libcap-ng ) |
677 |
- cramfs? ( sys-libs/zlib:= ) |
678 |
- cryptsetup? ( sys-fs/cryptsetup ) |
679 |
- hardlink? ( dev-libs/libpcre2:= ) |
680 |
- ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] ) |
681 |
- nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) |
682 |
- pam? ( sys-libs/pam ) |
683 |
- ppc? ( sys-libs/librtas ) |
684 |
- ppc64? ( sys-libs/librtas ) |
685 |
- python? ( ${PYTHON_DEPS} ) |
686 |
- readline? ( sys-libs/readline:0= ) |
687 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) |
688 |
- slang? ( sys-libs/slang ) |
689 |
- !build? ( systemd? ( sys-apps/systemd ) ) |
690 |
- udev? ( virtual/libudev:= )" |
691 |
-BDEPEND=" |
692 |
- virtual/pkgconfig |
693 |
- nls? ( sys-devel/gettext ) |
694 |
- test? ( sys-devel/bc ) |
695 |
-" |
696 |
-DEPEND=" |
697 |
- ${RDEPEND} |
698 |
- virtual/os-headers |
699 |
-" |
700 |
-RDEPEND+=" |
701 |
- hardlink? ( !app-arch/hardlink ) |
702 |
- logger? ( !>=app-admin/sysklogd-2.0[logger] ) |
703 |
- kill? ( |
704 |
- !sys-apps/coreutils[kill] |
705 |
- !sys-process/procps[kill] |
706 |
- ) |
707 |
- su? ( |
708 |
- !<sys-apps/shadow-4.7-r2 |
709 |
- !>=sys-apps/shadow-4.7-r2[su] |
710 |
- ) |
711 |
- !net-wireless/rfkill |
712 |
- !<app-shells/bash-completion-2.7-r1" |
713 |
- |
714 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
715 |
-RESTRICT="!test? ( test )" |
716 |
- |
717 |
-S="${WORKDIR}/${MY_P}" |
718 |
- |
719 |
-PATCHES=( |
720 |
- "${FILESDIR}/${P}-libmount_dont_use_symfollow.patch" #755878 |
721 |
- "${FILESDIR}/${P}-riscv32.patch" |
722 |
-) |
723 |
- |
724 |
-src_prepare() { |
725 |
- default |
726 |
- |
727 |
- # Prevent uuidd test failure due to socket path limit. #593304 |
728 |
- sed -i \ |
729 |
- -e "s|UUIDD_SOCKET=\"\$(mktemp -u \"\${TS_OUTDIR}/uuiddXXXXXXXXXXXXX\")\"|UUIDD_SOCKET=\"\$(mktemp -u \"${T}/uuiddXXXXXXXXXXXXX.sock\")\"|g" \ |
730 |
- tests/ts/uuid/uuidd || die "Failed to fix uuidd test" |
731 |
- |
732 |
- if ! use userland_GNU; then |
733 |
- # test runner is using GNU-specific xargs call |
734 |
- sed -i -e 's:xargs:gxargs:' tests/run.sh || die |
735 |
- # test requires util-linux uuidgen (which we don't build) |
736 |
- rm tests/ts/uuid/oids || die |
737 |
- fi |
738 |
- |
739 |
- if [[ ${PV} == 9999 ]] ; then |
740 |
- po/update-potfiles |
741 |
- eautoreconf |
742 |
- fi |
743 |
- |
744 |
- elibtoolize |
745 |
-} |
746 |
- |
747 |
-lfs_fallocate_test() { |
748 |
- # Make sure we can use fallocate with LFS #300307 |
749 |
- cat <<-EOF > "${T}"/fallocate.${ABI}.c |
750 |
- #define _GNU_SOURCE |
751 |
- #include <fcntl.h> |
752 |
- main() { return fallocate(0, 0, 0, 0); } |
753 |
- EOF |
754 |
- append-lfs-flags |
755 |
- $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \ |
756 |
- || export ac_cv_func_fallocate=no |
757 |
- rm -f "${T}"/fallocate.${ABI}.c |
758 |
-} |
759 |
- |
760 |
-python_configure() { |
761 |
- local myeconfargs=( |
762 |
- "${commonargs[@]}" |
763 |
- --disable-all-programs |
764 |
- --disable-bash-completion |
765 |
- --without-systemdsystemunitdir |
766 |
- --with-python |
767 |
- ) |
768 |
- if use userland_GNU; then |
769 |
- myeconfargs+=( |
770 |
- --enable-libblkid |
771 |
- --enable-libmount |
772 |
- --enable-pylibmount |
773 |
- ) |
774 |
- fi |
775 |
- mkdir "${BUILD_DIR}" || die |
776 |
- pushd "${BUILD_DIR}" >/dev/null || die |
777 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
778 |
- popd >/dev/null || die |
779 |
-} |
780 |
- |
781 |
-multilib_src_configure() { |
782 |
- lfs_fallocate_test |
783 |
- # The scanf test in a run-time test which fails while cross-compiling. |
784 |
- # Blindly assume a POSIX setup since we require libmount, and libmount |
785 |
- # itself fails when the scanf test fails. #531856 |
786 |
- tc-is-cross-compiler && export scanf_cv_alloc_modifier=ms |
787 |
- export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486 |
788 |
- export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042 |
789 |
- |
790 |
- # Undo bad ncurses handling by upstream. Fall back to pkg-config. #601530 |
791 |
- export NCURSES6_CONFIG=false NCURSES5_CONFIG=false |
792 |
- export NCURSESW6_CONFIG=false NCURSESW5_CONFIG=false |
793 |
- |
794 |
- # configure args shared by python and non-python builds |
795 |
- local commonargs=( |
796 |
- --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" |
797 |
- ) |
798 |
- |
799 |
- local myeconfargs=( |
800 |
- "${commonargs[@]}" |
801 |
- --with-bashcompletiondir="$(get_bashcompdir)" |
802 |
- --without-python |
803 |
- $(multilib_native_use_enable suid makeinstall-chown) |
804 |
- $(multilib_native_use_enable suid makeinstall-setuid) |
805 |
- $(multilib_native_use_with readline) |
806 |
- $(multilib_native_use_with slang) |
807 |
- $(multilib_native_use_with systemd) |
808 |
- $(multilib_native_use_with udev) |
809 |
- $(multilib_native_usex ncurses "$(use_with unicode ncursesw)" '--without-ncursesw') |
810 |
- $(multilib_native_usex ncurses "$(use_with !unicode ncurses)" '--without-ncurses') |
811 |
- $(multilib_native_use_with audit) |
812 |
- $(tc-has-tls || echo --disable-tls) |
813 |
- $(use_enable nls) |
814 |
- $(use_enable unicode widechar) |
815 |
- $(use_enable static-libs static) |
816 |
- $(use_with ncurses tinfo) |
817 |
- $(use_with selinux) |
818 |
- ) |
819 |
- # build programs only on GNU, on *BSD we want libraries only |
820 |
- if multilib_is_native_abi && use userland_GNU; then |
821 |
- myeconfargs+=( |
822 |
- --disable-chfn-chsh |
823 |
- --disable-login |
824 |
- --disable-nologin |
825 |
- --disable-pylibmount |
826 |
- --enable-agetty |
827 |
- --enable-bash-completion |
828 |
- --enable-line |
829 |
- --enable-partx |
830 |
- --enable-raw |
831 |
- --enable-rename |
832 |
- --enable-rfkill |
833 |
- --enable-schedutils |
834 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
835 |
- $(use_enable caps setpriv) |
836 |
- $(use_enable cramfs) |
837 |
- $(use_enable fdformat) |
838 |
- $(use_enable hardlink) |
839 |
- $(use_enable kill) |
840 |
- $(use_enable logger) |
841 |
- $(use_enable ncurses pg) |
842 |
- $(use_enable su) |
843 |
- $(use_enable tty-helpers mesg) |
844 |
- $(use_enable tty-helpers wall) |
845 |
- $(use_enable tty-helpers write) |
846 |
- $(use_with cryptsetup) |
847 |
- ) |
848 |
- else |
849 |
- myeconfargs+=( |
850 |
- --disable-all-programs |
851 |
- --disable-bash-completion |
852 |
- --without-systemdsystemunitdir |
853 |
- # build libraries |
854 |
- --enable-libuuid |
855 |
- --enable-libblkid |
856 |
- --enable-libsmartcols |
857 |
- --enable-libfdisk |
858 |
- ) |
859 |
- if use userland_GNU; then |
860 |
- # those libraries don't work on *BSD |
861 |
- myeconfargs+=( |
862 |
- --enable-libmount |
863 |
- ) |
864 |
- fi |
865 |
- fi |
866 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
867 |
- |
868 |
- if multilib_is_native_abi && use python; then |
869 |
- python_foreach_impl python_configure |
870 |
- fi |
871 |
-} |
872 |
- |
873 |
-python_compile() { |
874 |
- pushd "${BUILD_DIR}" >/dev/null || die |
875 |
- emake all |
876 |
- popd >/dev/null || die |
877 |
-} |
878 |
- |
879 |
-multilib_src_compile() { |
880 |
- emake all |
881 |
- |
882 |
- if multilib_is_native_abi && use python; then |
883 |
- python_foreach_impl python_compile |
884 |
- fi |
885 |
-} |
886 |
- |
887 |
-python_test() { |
888 |
- pushd "${BUILD_DIR}" >/dev/null || die |
889 |
- emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot" |
890 |
- popd >/dev/null || die |
891 |
-} |
892 |
- |
893 |
-multilib_src_test() { |
894 |
- emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot" |
895 |
- if multilib_is_native_abi && use python; then |
896 |
- python_foreach_impl python_test |
897 |
- fi |
898 |
-} |
899 |
- |
900 |
-python_install() { |
901 |
- pushd "${BUILD_DIR}" >/dev/null || die |
902 |
- emake DESTDIR="${D}" install |
903 |
- python_optimize |
904 |
- popd >/dev/null || die |
905 |
-} |
906 |
- |
907 |
-multilib_src_install() { |
908 |
- if multilib_is_native_abi && use python; then |
909 |
- python_foreach_impl python_install |
910 |
- fi |
911 |
- |
912 |
- # This needs to be called AFTER python_install call (#689190) |
913 |
- emake DESTDIR="${D}" install |
914 |
- |
915 |
- if multilib_is_native_abi && use userland_GNU; then |
916 |
- # need the libs in / |
917 |
- gen_usr_ldscript -a blkid fdisk mount smartcols uuid |
918 |
- fi |
919 |
-} |
920 |
- |
921 |
-multilib_src_install_all() { |
922 |
- dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*} |
923 |
- chmod -x "${ED}"/usr/share/doc/util-linux-${PVR}/getopt/getopt-parse* || die |
924 |
- |
925 |
- # e2fsprogs-libs didnt install .la files, and .pc work fine |
926 |
- find "${ED}" -name "*.la" -delete || die |
927 |
- |
928 |
- if ! use userland_GNU; then |
929 |
- # manpage collisions |
930 |
- # TODO: figure out a good way to keep them |
931 |
- rm "${ED}"/usr/share/man/man3/uuid* || die |
932 |
- fi |
933 |
- |
934 |
- if use pam; then |
935 |
- newpamd "${FILESDIR}/runuser.pamd" runuser |
936 |
- newpamd "${FILESDIR}/runuser-l.pamd" runuser-l |
937 |
- fi |
938 |
- |
939 |
- # Note: |
940 |
- # Bash completion for "runuser" command is provided by same file which |
941 |
- # would also provide bash completion for "su" command. However, we don't |
942 |
- # use "su" command from this package. |
943 |
- # This triggers a known QA warning which we ignore for now to magically |
944 |
- # keep bash completion for "su" command which shadow package does not |
945 |
- # provide. |
946 |
-} |
947 |
- |
948 |
-pkg_postinst() { |
949 |
- if ! use tty-helpers; then |
950 |
- elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers." |
951 |
- fi |
952 |
- |
953 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
954 |
- elog "The agetty util now clears the terminal by default. You" |
955 |
- elog "might want to add --noclear to your /etc/inittab lines." |
956 |
- fi |
957 |
-} |