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/util-linux/
Date: Mon, 14 Aug 2017 13:36:30
Message-Id: 1502717768.d3c7d310f7c7fe05ca421e6ecb33963332f65a20.polynomial-c@gentoo
1 commit: d3c7d310f7c7fe05ca421e6ecb33963332f65a20
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 14 13:17:07 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 14 13:36:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3c7d310
7
8 sys-apps/util-linux: Removed old.
9
10 Package-Manager: Portage-2.3.7, Repoman-2.3.3
11
12 sys-apps/util-linux/Manifest | 2 -
13 sys-apps/util-linux/util-linux-2.26.2.ebuild | 181 ----------------------
14 sys-apps/util-linux/util-linux-2.29.1-r1.ebuild | 193 ------------------------
15 sys-apps/util-linux/util-linux-2.29.2.ebuild | 193 ------------------------
16 4 files changed, 569 deletions(-)
17
18 diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
19 index 071f9b72562..23af16656c6 100644
20 --- a/sys-apps/util-linux/Manifest
21 +++ b/sys-apps/util-linux/Manifest
22 @@ -1,6 +1,4 @@
23 -DIST util-linux-2.26.2.tar.xz 3863868 SHA256 0e29bda142528a48a0a953c39ff63093651a4809042e1790fbd6aa8663fd9666 SHA512 1cb8e2f32882b3f496d31c250a45cfb61bedb79f7a2802b358c23134d4257fa9bc9cde8888cfa1aaba12109f82b93345c6dc0bec2d11629ffa084f2a4476a91b WHIRLPOOL 699ff057f9930fe53f44090817c64ffe089345e7aba4c836e18cd3d2088881add805640b0e41b8d60bc08e3632be919025417feb9c2ddda454c87821a59122ed
24 DIST util-linux-2.28.2.tar.xz 4149700 SHA256 b89d37146f20bede93a42c847bce881a17e6dbd8066ff2db2bee733fa409f0cd SHA512 ac1c2d4c92bbc4eabed464cb0334c1d9b21e58df0f07f0b26e7adcfa188879de8632d195b65a4358c5e11e14ac6e09a1c6206265bbf1fab4ce122414bee7e940 WHIRLPOOL 1735e33620dba30cc1f42e60b707adb72234006b7fea242ac98c389295617bd0225563bcffa76b9d0753dfa100775dd9a2b73614843645ce667db5536842e308
25 -DIST util-linux-2.29.1.tar.xz 4278756 SHA256 0ce40600b934ec2fecfa6bfc4efe6982d051ba96c2832b05201347aec582f54f SHA512 221fc7651eb0534c55206eaf9184b2eb55d9f838cd0e1623cadac5d4ac57a118d96cdd770b6492b39381dd1316b81553866bc0f8c25dbb52dac9641f2fa0f7fa WHIRLPOOL d509168960b0ad54ade4d03dc39dca1dcf0bb0a5b51a594f04bc02ff3a6c89fc5966cff4653dfc826f75f8864497da600c7a86039099845b98e6f9d7981cff98
26 DIST util-linux-2.29.2.tar.xz 4277668 SHA256 accea4d678209f97f634f40a93b7e9fcad5915d1f4749f6c47bee6bf110fe8e3 SHA512 0a87e6758531f74276f3de7607ef545f324b9b36b444aa5d163140c5fb0f4f7602655d7ec9939f92550dcb320d922cd69521a2183199d463795e67d3c27fce79 WHIRLPOOL 1f45711e593c76c6e208a28892ed2bf2622adb5fa1334867e13c6bf775a8903c2f1ebf18c3238d96fe139c5b60d61abf496251cf594a339209ce044f2bb8c17a
27 DIST util-linux-2.30.1.tar.xz 4459284 SHA256 1be4363a91ac428c9e43fc04dc6d2c66a19ec1e36f1105bd4b481540be13b841 SHA512 bcf1807198660c133c380e13d6ba5dcdb7470c47bcaeea03ccc5a78a0d834e3df3d13ae5ffc35fd7f8fff7ba062629d4b1f5cde78452b846c9315c51c9e108f5 WHIRLPOOL 19e78768cf2fd2d73bb7b45cb826101b4653bf49c9838bda10f05e508f06b117bb846ce517726465384bfe94ba24981f261d7b5091458242fb0c14d593d4b29e
28 DIST util-linux-2.30.tar.xz 4478016 SHA256 c208a4ff6906cb7f57940aa5bc3a6eed146e50a7cc0a092f52ef2ab65057a08d SHA512 30e311768718508066829567200e975fd08a22360915b27c8839f368fe6d84c8eca6c2f69a60f113d934eea9934e49f05cd98c3db7fd6bc5ad8f7f770badbc97 WHIRLPOOL 11749d9842e6de9ba0b164b533ac6eeae26557eed8da601eedc1505c5da88d0a6ef25586efb17c68ba0644a5ba8110188587c197f360b75191f1d4f90691d23b
29
30 diff --git a/sys-apps/util-linux/util-linux-2.26.2.ebuild b/sys-apps/util-linux/util-linux-2.26.2.ebuild
31 deleted file mode 100644
32 index d1cbbaa0d76..00000000000
33 --- a/sys-apps/util-linux/util-linux-2.26.2.ebuild
34 +++ /dev/null
35 @@ -1,181 +0,0 @@
36 -# Copyright 1999-2015 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI="5"
40 -
41 -PYTHON_COMPAT=( python2_7 python3_4 )
42 -
43 -inherit eutils toolchain-funcs libtool flag-o-matic bash-completion-r1 \
44 - python-single-r1 multilib-minimal systemd
45 -
46 -MY_PV=${PV/_/-}
47 -MY_P=${PN}-${MY_PV}
48 -
49 -if [[ ${PV} == 9999 ]] ; then
50 - inherit git-2 autotools
51 - EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
52 -else
53 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux"
54 - SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz"
55 -fi
56 -
57 -DESCRIPTION="Various useful Linux utilities"
58 -HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/"
59 -
60 -LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain"
61 -SLOT="0"
62 -IUSE="build caps +cramfs fdformat ncurses nls pam python selinux slang static-libs +suid systemd test tty-helpers udev unicode"
63 -
64 -RDEPEND="!sys-process/schedutils
65 - !sys-apps/setarch
66 - !<sys-apps/sysvinit-2.88-r7
67 - !sys-block/eject
68 - !<sys-libs/e2fsprogs-libs-1.41.8
69 - !<sys-fs/e2fsprogs-1.41.8
70 - !<app-shells/bash-completion-1.3-r2
71 - caps? ( sys-libs/libcap-ng )
72 - cramfs? ( sys-libs/zlib )
73 - ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] )
74 - pam? ( sys-libs/pam )
75 - python? ( ${PYTHON_DEPS} )
76 - selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
77 - slang? ( sys-libs/slang )
78 - !build? ( systemd? ( sys-apps/systemd ) )
79 - udev? ( virtual/libudev:= )
80 - abi_x86_32? (
81 - !<=app-emulation/emul-linux-x86-baselibs-20150406-r2
82 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32]
83 - )"
84 -DEPEND="${RDEPEND}
85 - virtual/pkgconfig
86 - nls? ( sys-devel/gettext )
87 - test? ( sys-devel/bc )
88 - virtual/os-headers"
89 -
90 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
91 -
92 -S=${WORKDIR}/${MY_P}
93 -
94 -pkg_setup() {
95 - use python && python-single-r1_pkg_setup
96 -}
97 -
98 -src_prepare() {
99 - if [[ ${PV} == 9999 ]] ; then
100 - po/update-potfiles
101 - eautoreconf
102 - fi
103 - elibtoolize
104 -}
105 -
106 -lfs_fallocate_test() {
107 - # Make sure we can use fallocate with LFS #300307
108 - cat <<-EOF > "${T}"/fallocate.${ABI}.c
109 - #define _GNU_SOURCE
110 - #include <fcntl.h>
111 - main() { return fallocate(0, 0, 0, 0); }
112 - EOF
113 - append-lfs-flags
114 - $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \
115 - || export ac_cv_func_fallocate=no
116 - rm -f "${T}"/fallocate.${ABI}.c
117 -}
118 -
119 -multilib_src_configure() {
120 - lfs_fallocate_test
121 - # The scanf test in a run-time test which fails while cross-compiling.
122 - # Blindly assume a POSIX setup since we require libmount, and libmount
123 - # itself fails when the scanf test fails. #531856
124 - tc-is-cross-compiler && export scanf_cv_alloc_modifier=ms
125 - export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486
126 - export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042
127 - # We manually set --libdir to the default since on prefix, econf will set it to
128 - # a value which the configure script does not recognize. This makes it set the
129 - # usrlib_execdir to a bad value. bug #518898#c2, fixed upstream for >2.25
130 - ECONF_SOURCE=${S} \
131 - econf \
132 - --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" \
133 - --libdir='${prefix}/'"$(get_libdir)" \
134 - --docdir='${datarootdir}'/doc/${PF} \
135 - $(multilib_native_use_enable nls) \
136 - --enable-agetty \
137 - --with-bashcompletiondir="$(get_bashcompdir)" \
138 - --enable-bash-completion \
139 - $(multilib_native_use_enable caps setpriv) \
140 - --disable-chfn-chsh \
141 - $(multilib_native_use_enable cramfs) \
142 - $(multilib_native_use_enable fdformat) \
143 - --with-ncurses=$(multilib_native_usex ncurses $(usex unicode auto yes) no) \
144 - --disable-kill \
145 - --disable-login \
146 - $(multilib_native_use_enable tty-helpers mesg) \
147 - --disable-nologin \
148 - --enable-partx \
149 - $(multilib_native_use_with python) \
150 - --enable-raw \
151 - --enable-rename \
152 - --disable-reset \
153 - --enable-schedutils \
154 - --disable-su \
155 - $(multilib_native_use_enable tty-helpers wall) \
156 - $(multilib_native_use_enable tty-helpers write) \
157 - $(multilib_native_use_enable suid makeinstall-chown) \
158 - $(multilib_native_use_enable suid makeinstall-setuid) \
159 - $(use_with selinux) \
160 - $(multilib_native_use_with slang) \
161 - $(use_enable static-libs static) \
162 - $(multilib_native_use_with systemd) \
163 - --with-systemdsystemunitdir=$(multilib_native_usex systemd "$(systemd_get_unitdir)" "no") \
164 - $(multilib_native_use_with udev) \
165 - $(tc-has-tls || echo --disable-tls)
166 -}
167 -
168 -multilib_src_compile() {
169 - if multilib_is_native_abi; then
170 - default
171 - else
172 - # build libraries only
173 - emake -f Makefile -f - mylibs \
174 - <<< 'mylibs: $(usrlib_exec_LTLIBRARIES) $(pkgconfig_DATA)'
175 - fi
176 -}
177 -
178 -multilib_src_test() {
179 - multilib_is_native_abi && emake check
180 -}
181 -
182 -multilib_src_install() {
183 - if multilib_is_native_abi; then
184 - default
185 - else
186 - emake DESTDIR="${D}" install-usrlib_execLTLIBRARIES \
187 - install-pkgconfigDATA install-uuidincHEADERS \
188 - install-nodist_blkidincHEADERS install-nodist_mountincHEADERS \
189 - install-nodist_smartcolsincHEADERS install-nodist_fdiskincHEADERS
190 - fi
191 -
192 - if multilib_is_native_abi; then
193 - # need the libs in /
194 - gen_usr_ldscript -a blkid mount smartcols uuid
195 -
196 - use python && python_optimize
197 - fi
198 -}
199 -
200 -multilib_src_install_all() {
201 - dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*}
202 -
203 - # e2fsprogs-libs didnt install .la files, and .pc work fine
204 - prune_libtool_files
205 -}
206 -
207 -pkg_postinst() {
208 - if ! use tty-helpers; then
209 - elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers."
210 - fi
211 -
212 - if [[ -z ${REPLACING_VERSIONS} ]]; then
213 - elog "The agetty util now clears the terminal by default. You"
214 - elog "might want to add --noclear to your /etc/inittab lines."
215 - fi
216 -}
217
218 diff --git a/sys-apps/util-linux/util-linux-2.29.1-r1.ebuild b/sys-apps/util-linux/util-linux-2.29.1-r1.ebuild
219 deleted file mode 100644
220 index 8b970108872..00000000000
221 --- a/sys-apps/util-linux/util-linux-2.29.1-r1.ebuild
222 +++ /dev/null
223 @@ -1,193 +0,0 @@
224 -# Copyright 1999-2017 Gentoo Foundation
225 -# Distributed under the terms of the GNU General Public License v2
226 -
227 -EAPI="5"
228 -
229 -PYTHON_COMPAT=( python2_7 python3_{4,5} )
230 -
231 -inherit eutils toolchain-funcs libtool flag-o-matic bash-completion-r1 \
232 - python-single-r1 multilib-minimal systemd
233 -
234 -MY_PV=${PV/_/-}
235 -MY_P=${PN}-${MY_PV}
236 -
237 -if [[ ${PV} == 9999 ]] ; then
238 - inherit git-2 autotools
239 - EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
240 -else
241 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
242 - SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz"
243 -fi
244 -
245 -DESCRIPTION="Various useful Linux utilities"
246 -HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/"
247 -
248 -LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain"
249 -SLOT="0"
250 -IUSE="build caps +cramfs fdformat kill ncurses nls pam python +readline selinux slang static-libs +suid systemd test tty-helpers udev unicode"
251 -
252 -# Most lib deps here are related to programs rather than our libs,
253 -# so we rarely need to specify ${MULTILIB_USEDEP}.
254 -RDEPEND="caps? ( sys-libs/libcap-ng )
255 - cramfs? ( sys-libs/zlib )
256 - ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] )
257 - pam? ( sys-libs/pam )
258 - python? ( ${PYTHON_DEPS} )
259 - readline? ( sys-libs/readline:0= )
260 - selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
261 - slang? ( sys-libs/slang )
262 - !build? ( systemd? ( sys-apps/systemd ) )
263 - udev? ( virtual/libudev:= )"
264 -DEPEND="${RDEPEND}
265 - virtual/pkgconfig
266 - nls? ( sys-devel/gettext )
267 - test? ( sys-devel/bc )
268 - virtual/os-headers"
269 -RDEPEND+="
270 - kill? (
271 - !sys-apps/coreutils[kill]
272 - !sys-process/procps[kill]
273 - )
274 - !sys-process/schedutils
275 - !sys-apps/setarch
276 - !<sys-apps/sysvinit-2.88-r7
277 - !sys-block/eject
278 - !<sys-libs/e2fsprogs-libs-1.41.8
279 - !<sys-fs/e2fsprogs-1.41.8
280 - !<app-shells/bash-completion-2.3-r2"
281 -
282 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
283 -
284 -S=${WORKDIR}/${MY_P}
285 -
286 -pkg_setup() {
287 - use python && python-single-r1_pkg_setup
288 -}
289 -
290 -src_prepare() {
291 - if [[ ${PV} == 9999 ]] ; then
292 - po/update-potfiles
293 - eautoreconf
294 - fi
295 - # Undo bad ncurses handling by upstream. #601530
296 - sed -i -E \
297 - -e '/NCURSES_/s:(ncursesw?)[56]-config:$PKG_CONFIG \1:' \
298 - -e 's:(ncursesw?)[56]-config --version:$PKG_CONFIG --exists --print-errors \1:' \
299 - configure || die
300 - elibtoolize
301 -}
302 -
303 -lfs_fallocate_test() {
304 - # Make sure we can use fallocate with LFS #300307
305 - cat <<-EOF > "${T}"/fallocate.${ABI}.c
306 - #define _GNU_SOURCE
307 - #include <fcntl.h>
308 - main() { return fallocate(0, 0, 0, 0); }
309 - EOF
310 - append-lfs-flags
311 - $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \
312 - || export ac_cv_func_fallocate=no
313 - rm -f "${T}"/fallocate.${ABI}.c
314 -}
315 -
316 -multilib_src_configure() {
317 - lfs_fallocate_test
318 - # The scanf test in a run-time test which fails while cross-compiling.
319 - # Blindly assume a POSIX setup since we require libmount, and libmount
320 - # itself fails when the scanf test fails. #531856
321 - tc-is-cross-compiler && export scanf_cv_alloc_modifier=ms
322 - export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486
323 - export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042
324 -
325 - local myeconfargs=(
326 - --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin"
327 - --docdir='${datarootdir}'/doc/${PF}
328 - $(multilib_native_use_enable nls)
329 - --enable-agetty
330 - --with-bashcompletiondir="$(get_bashcompdir)"
331 - --enable-bash-completion
332 - $(multilib_native_use_enable caps setpriv)
333 - --disable-chfn-chsh
334 - $(multilib_native_use_enable cramfs)
335 - $(multilib_native_use_enable fdformat)
336 - $(multilib_native_usex ncurses "$(use_with unicode ncursesw)" '--without-ncursesw')
337 - $(multilib_native_usex ncurses "$(use_with !unicode ncurses)" '--without-ncurses')
338 - $(usex ncurses '' '--without-tinfo')
339 - $(use_enable unicode widechar)
340 - $(use_enable kill)
341 - --disable-login
342 - $(multilib_native_use_enable tty-helpers mesg)
343 - --disable-nologin
344 - --enable-partx
345 - $(multilib_native_use_with python)
346 - --enable-raw
347 - $(multilib_native_use_with readline)
348 - --enable-rename
349 - --disable-reset
350 - --enable-schedutils
351 - --disable-su
352 - $(multilib_native_use_enable tty-helpers wall)
353 - $(multilib_native_use_enable tty-helpers write)
354 - $(multilib_native_use_enable suid makeinstall-chown)
355 - $(multilib_native_use_enable suid makeinstall-setuid)
356 - $(use_with selinux)
357 - $(multilib_native_use_with slang)
358 - $(use_enable static-libs static)
359 - $(multilib_native_use_with systemd)
360 - --with-systemdsystemunitdir=$(multilib_native_usex systemd "$(systemd_get_unitdir)" "no")
361 - $(multilib_native_use_with udev)
362 - $(tc-has-tls || echo --disable-tls)
363 - )
364 - ECONF_SOURCE=${S} \
365 - econf "${myeconfargs[@]}"
366 -}
367 -
368 -multilib_src_compile() {
369 - if multilib_is_native_abi; then
370 - default
371 - else
372 - # build libraries only
373 - emake -f Makefile -f - mylibs \
374 - <<< 'mylibs: $(usrlib_exec_LTLIBRARIES) $(pkgconfig_DATA)'
375 - fi
376 -}
377 -
378 -multilib_src_test() {
379 - multilib_is_native_abi && emake check
380 -}
381 -
382 -multilib_src_install() {
383 - if multilib_is_native_abi; then
384 - default
385 - else
386 - emake DESTDIR="${D}" install-usrlib_execLTLIBRARIES \
387 - install-pkgconfigDATA install-uuidincHEADERS \
388 - install-nodist_blkidincHEADERS install-nodist_mountincHEADERS \
389 - install-nodist_smartcolsincHEADERS install-nodist_fdiskincHEADERS
390 - fi
391 -
392 - if multilib_is_native_abi; then
393 - # need the libs in /
394 - gen_usr_ldscript -a blkid mount smartcols uuid
395 -
396 - use python && python_optimize
397 - fi
398 -}
399 -
400 -multilib_src_install_all() {
401 - dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*}
402 -
403 - # e2fsprogs-libs didnt install .la files, and .pc work fine
404 - prune_libtool_files
405 -}
406 -
407 -pkg_postinst() {
408 - if ! use tty-helpers; then
409 - elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers."
410 - fi
411 -
412 - if [[ -z ${REPLACING_VERSIONS} ]]; then
413 - elog "The agetty util now clears the terminal by default. You"
414 - elog "might want to add --noclear to your /etc/inittab lines."
415 - fi
416 -}
417
418 diff --git a/sys-apps/util-linux/util-linux-2.29.2.ebuild b/sys-apps/util-linux/util-linux-2.29.2.ebuild
419 deleted file mode 100644
420 index 8b970108872..00000000000
421 --- a/sys-apps/util-linux/util-linux-2.29.2.ebuild
422 +++ /dev/null
423 @@ -1,193 +0,0 @@
424 -# Copyright 1999-2017 Gentoo Foundation
425 -# Distributed under the terms of the GNU General Public License v2
426 -
427 -EAPI="5"
428 -
429 -PYTHON_COMPAT=( python2_7 python3_{4,5} )
430 -
431 -inherit eutils toolchain-funcs libtool flag-o-matic bash-completion-r1 \
432 - python-single-r1 multilib-minimal systemd
433 -
434 -MY_PV=${PV/_/-}
435 -MY_P=${PN}-${MY_PV}
436 -
437 -if [[ ${PV} == 9999 ]] ; then
438 - inherit git-2 autotools
439 - EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
440 -else
441 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
442 - SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz"
443 -fi
444 -
445 -DESCRIPTION="Various useful Linux utilities"
446 -HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/"
447 -
448 -LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain"
449 -SLOT="0"
450 -IUSE="build caps +cramfs fdformat kill ncurses nls pam python +readline selinux slang static-libs +suid systemd test tty-helpers udev unicode"
451 -
452 -# Most lib deps here are related to programs rather than our libs,
453 -# so we rarely need to specify ${MULTILIB_USEDEP}.
454 -RDEPEND="caps? ( sys-libs/libcap-ng )
455 - cramfs? ( sys-libs/zlib )
456 - ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] )
457 - pam? ( sys-libs/pam )
458 - python? ( ${PYTHON_DEPS} )
459 - readline? ( sys-libs/readline:0= )
460 - selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
461 - slang? ( sys-libs/slang )
462 - !build? ( systemd? ( sys-apps/systemd ) )
463 - udev? ( virtual/libudev:= )"
464 -DEPEND="${RDEPEND}
465 - virtual/pkgconfig
466 - nls? ( sys-devel/gettext )
467 - test? ( sys-devel/bc )
468 - virtual/os-headers"
469 -RDEPEND+="
470 - kill? (
471 - !sys-apps/coreutils[kill]
472 - !sys-process/procps[kill]
473 - )
474 - !sys-process/schedutils
475 - !sys-apps/setarch
476 - !<sys-apps/sysvinit-2.88-r7
477 - !sys-block/eject
478 - !<sys-libs/e2fsprogs-libs-1.41.8
479 - !<sys-fs/e2fsprogs-1.41.8
480 - !<app-shells/bash-completion-2.3-r2"
481 -
482 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
483 -
484 -S=${WORKDIR}/${MY_P}
485 -
486 -pkg_setup() {
487 - use python && python-single-r1_pkg_setup
488 -}
489 -
490 -src_prepare() {
491 - if [[ ${PV} == 9999 ]] ; then
492 - po/update-potfiles
493 - eautoreconf
494 - fi
495 - # Undo bad ncurses handling by upstream. #601530
496 - sed -i -E \
497 - -e '/NCURSES_/s:(ncursesw?)[56]-config:$PKG_CONFIG \1:' \
498 - -e 's:(ncursesw?)[56]-config --version:$PKG_CONFIG --exists --print-errors \1:' \
499 - configure || die
500 - elibtoolize
501 -}
502 -
503 -lfs_fallocate_test() {
504 - # Make sure we can use fallocate with LFS #300307
505 - cat <<-EOF > "${T}"/fallocate.${ABI}.c
506 - #define _GNU_SOURCE
507 - #include <fcntl.h>
508 - main() { return fallocate(0, 0, 0, 0); }
509 - EOF
510 - append-lfs-flags
511 - $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \
512 - || export ac_cv_func_fallocate=no
513 - rm -f "${T}"/fallocate.${ABI}.c
514 -}
515 -
516 -multilib_src_configure() {
517 - lfs_fallocate_test
518 - # The scanf test in a run-time test which fails while cross-compiling.
519 - # Blindly assume a POSIX setup since we require libmount, and libmount
520 - # itself fails when the scanf test fails. #531856
521 - tc-is-cross-compiler && export scanf_cv_alloc_modifier=ms
522 - export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486
523 - export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042
524 -
525 - local myeconfargs=(
526 - --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin"
527 - --docdir='${datarootdir}'/doc/${PF}
528 - $(multilib_native_use_enable nls)
529 - --enable-agetty
530 - --with-bashcompletiondir="$(get_bashcompdir)"
531 - --enable-bash-completion
532 - $(multilib_native_use_enable caps setpriv)
533 - --disable-chfn-chsh
534 - $(multilib_native_use_enable cramfs)
535 - $(multilib_native_use_enable fdformat)
536 - $(multilib_native_usex ncurses "$(use_with unicode ncursesw)" '--without-ncursesw')
537 - $(multilib_native_usex ncurses "$(use_with !unicode ncurses)" '--without-ncurses')
538 - $(usex ncurses '' '--without-tinfo')
539 - $(use_enable unicode widechar)
540 - $(use_enable kill)
541 - --disable-login
542 - $(multilib_native_use_enable tty-helpers mesg)
543 - --disable-nologin
544 - --enable-partx
545 - $(multilib_native_use_with python)
546 - --enable-raw
547 - $(multilib_native_use_with readline)
548 - --enable-rename
549 - --disable-reset
550 - --enable-schedutils
551 - --disable-su
552 - $(multilib_native_use_enable tty-helpers wall)
553 - $(multilib_native_use_enable tty-helpers write)
554 - $(multilib_native_use_enable suid makeinstall-chown)
555 - $(multilib_native_use_enable suid makeinstall-setuid)
556 - $(use_with selinux)
557 - $(multilib_native_use_with slang)
558 - $(use_enable static-libs static)
559 - $(multilib_native_use_with systemd)
560 - --with-systemdsystemunitdir=$(multilib_native_usex systemd "$(systemd_get_unitdir)" "no")
561 - $(multilib_native_use_with udev)
562 - $(tc-has-tls || echo --disable-tls)
563 - )
564 - ECONF_SOURCE=${S} \
565 - econf "${myeconfargs[@]}"
566 -}
567 -
568 -multilib_src_compile() {
569 - if multilib_is_native_abi; then
570 - default
571 - else
572 - # build libraries only
573 - emake -f Makefile -f - mylibs \
574 - <<< 'mylibs: $(usrlib_exec_LTLIBRARIES) $(pkgconfig_DATA)'
575 - fi
576 -}
577 -
578 -multilib_src_test() {
579 - multilib_is_native_abi && emake check
580 -}
581 -
582 -multilib_src_install() {
583 - if multilib_is_native_abi; then
584 - default
585 - else
586 - emake DESTDIR="${D}" install-usrlib_execLTLIBRARIES \
587 - install-pkgconfigDATA install-uuidincHEADERS \
588 - install-nodist_blkidincHEADERS install-nodist_mountincHEADERS \
589 - install-nodist_smartcolsincHEADERS install-nodist_fdiskincHEADERS
590 - fi
591 -
592 - if multilib_is_native_abi; then
593 - # need the libs in /
594 - gen_usr_ldscript -a blkid mount smartcols uuid
595 -
596 - use python && python_optimize
597 - fi
598 -}
599 -
600 -multilib_src_install_all() {
601 - dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*}
602 -
603 - # e2fsprogs-libs didnt install .la files, and .pc work fine
604 - prune_libtool_files
605 -}
606 -
607 -pkg_postinst() {
608 - if ! use tty-helpers; then
609 - elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers."
610 - fi
611 -
612 - if [[ -z ${REPLACING_VERSIONS} ]]; then
613 - elog "The agetty util now clears the terminal by default. You"
614 - elog "might want to add --noclear to your /etc/inittab lines."
615 - fi
616 -}