Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/util-linux/
Date: Mon, 02 Nov 2015 16:47:32
Message-Id: 1446482734.dca92796e744bc21d641dc46b490338b5058f9bf.vapier@gentoo
1 commit: dca92796e744bc21d641dc46b490338b5058f9bf
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 2 16:42:17 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 2 16:45:34 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dca92796
7
8 sys-apps/util-linux: version bump to 2.27.1
9
10 sys-apps/util-linux/Manifest | 1 +
11 sys-apps/util-linux/util-linux-2.27.1.ebuild | 178 +++++++++++++++++++++++++++
12 2 files changed, 179 insertions(+)
13
14 diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest
15 index 435eed7..888f6a4 100644
16 --- a/sys-apps/util-linux/Manifest
17 +++ b/sys-apps/util-linux/Manifest
18 @@ -2,4 +2,5 @@ DIST util-linux-2.24.1.tar.xz 3543692 SHA256 835eb6232cfab0118ef2e4fd649de0ba9f5
19 DIST util-linux-2.24.2.tar.xz 3586580 SHA256 1243d6c07f1c5b38aa4c3814c81a71c24cba7dafe08942916bf216a90a460ff0 SHA512 a0c03876ef19fa09e434e3e5362fb3f3e0a254b3b39a623ac7a9a207d06afce00366792244ed0fac86931f8340c046620660f33c3444a07a12037182fc191240 WHIRLPOOL 4b8185e1832145c050a8aa0761ae017d846ed58cd7e07710e4c32bf92a8f6e530bddb56dab70c8025eddb4cafafed79e658b0aced3a190b61b508078a438a9ed
20 DIST util-linux-2.25.2.tar.xz 3703644 SHA256 e0457f715b73f4a349e1acb08cb410bf0edc9a74a3f75c357070f31f70e33cd6 SHA512 cf8c5bde78f844425150c2a81bdecb87aa57bcd5cebd177a78160835627f58037fa2cfe4db26fd8f35eedb3beb499a91492a297a27d065465e2ea0c6218dc387 WHIRLPOOL dd1685f2e694bf3de95acc3ba3170d231426c18c3395a867c815bbd3ab5ee0f07567b49d0ae083ce669c89db711e39fd2b990bc7321985ec2279d78816ec5258
21 DIST util-linux-2.26.2.tar.xz 3863868 SHA256 0e29bda142528a48a0a953c39ff63093651a4809042e1790fbd6aa8663fd9666 SHA512 1cb8e2f32882b3f496d31c250a45cfb61bedb79f7a2802b358c23134d4257fa9bc9cde8888cfa1aaba12109f82b93345c6dc0bec2d11629ffa084f2a4476a91b WHIRLPOOL 699ff057f9930fe53f44090817c64ffe089345e7aba4c836e18cd3d2088881add805640b0e41b8d60bc08e3632be919025417feb9c2ddda454c87821a59122ed
22 +DIST util-linux-2.27.1.tar.xz 3964512 SHA256 0a818fcdede99aec43ffe6ca5b5388bff80d162f2f7bd4541dca94fecb87a290 SHA512 a450a0c2d26a6deaf5e53b8f6bddf59409aefb1f0aaf07393f68a418408fbc62c5da353c8ba53c7cac8ea6e3dddfad59161753d888c31f5ccea445e81accbad8 WHIRLPOOL b0641f013762a667efcb2fabe6e3e09dd09252835d841e25cde506aca3a74876ad34f8130f3227683c7e8f19359205c4014dfcd9055d860ae6e3e54621478639
23 DIST util-linux-2.27.tar.xz 3968872 SHA256 fcbf04e3ef8377fc8369af7f9afee341c5eef9b02dd5a7ce71532d0957e86dc7 SHA512 06ee17f4801fd3e35fb4cf3717722ea3f709e3dd9f9153510c399742a5cfca341e3a3a400d35a091b74f0de3636e62c7a14b7dd91d63482b7b98b1991aa6fa3c WHIRLPOOL da19c56dfe424c59bc982096f08c02d864718f030bbad79661968f1da972ea10e0eacaa2477cda45ec9a3c688d220740ca2c8823918dae5139a943f6c9d8e2a4
24
25 diff --git a/sys-apps/util-linux/util-linux-2.27.1.ebuild b/sys-apps/util-linux/util-linux-2.27.1.ebuild
26 new file mode 100644
27 index 0000000..95c5785
28 --- /dev/null
29 +++ b/sys-apps/util-linux/util-linux-2.27.1.ebuild
30 @@ -0,0 +1,178 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI="5"
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{3,4} )
38 +
39 +inherit eutils toolchain-funcs libtool flag-o-matic bash-completion-r1 \
40 + python-single-r1 multilib-minimal systemd
41 +
42 +MY_PV=${PV/_/-}
43 +MY_P=${PN}-${MY_PV}
44 +
45 +if [[ ${PV} == 9999 ]] ; then
46 + inherit git-2 autotools
47 + EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
48 +else
49 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
50 + SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz"
51 +fi
52 +
53 +DESCRIPTION="Various useful Linux utilities"
54 +HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/"
55 +
56 +LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain"
57 +SLOT="0"
58 +IUSE="caps +cramfs fdformat ncurses nls pam python selinux slang static-libs +suid systemd test tty-helpers udev unicode"
59 +
60 +RDEPEND="!sys-process/schedutils
61 + !sys-apps/setarch
62 + !<sys-apps/sysvinit-2.88-r7
63 + !sys-block/eject
64 + !<sys-libs/e2fsprogs-libs-1.41.8
65 + !<sys-fs/e2fsprogs-1.41.8
66 + !<app-shells/bash-completion-1.3-r2
67 + caps? ( sys-libs/libcap-ng )
68 + cramfs? ( sys-libs/zlib )
69 + ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] )
70 + pam? ( sys-libs/pam )
71 + python? ( ${PYTHON_DEPS} )
72 + selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
73 + slang? ( sys-libs/slang )
74 + systemd? ( sys-apps/systemd )
75 + udev? ( virtual/libudev:= )
76 + abi_x86_32? (
77 + !<=app-emulation/emul-linux-x86-baselibs-20150406-r2
78 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32]
79 + )"
80 +DEPEND="${RDEPEND}
81 + virtual/pkgconfig
82 + nls? ( sys-devel/gettext )
83 + test? ( sys-devel/bc )
84 + virtual/os-headers"
85 +
86 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
87 +
88 +S=${WORKDIR}/${MY_P}
89 +
90 +pkg_setup() {
91 + use python && python-single-r1_pkg_setup
92 +}
93 +
94 +src_prepare() {
95 + if [[ ${PV} == 9999 ]] ; then
96 + po/update-potfiles
97 + eautoreconf
98 + fi
99 + elibtoolize
100 +}
101 +
102 +lfs_fallocate_test() {
103 + # Make sure we can use fallocate with LFS #300307
104 + cat <<-EOF > "${T}"/fallocate.${ABI}.c
105 + #define _GNU_SOURCE
106 + #include <fcntl.h>
107 + main() { return fallocate(0, 0, 0, 0); }
108 + EOF
109 + append-lfs-flags
110 + $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \
111 + || export ac_cv_func_fallocate=no
112 + rm -f "${T}"/fallocate.${ABI}.c
113 +}
114 +
115 +multilib_src_configure() {
116 + lfs_fallocate_test
117 + # The scanf test in a run-time test which fails while cross-compiling.
118 + # Blindly assume a POSIX setup since we require libmount, and libmount
119 + # itself fails when the scanf test fails. #531856
120 + tc-is-cross-compiler && export scanf_cv_alloc_modifier=ms
121 + export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486
122 + export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042
123 + ECONF_SOURCE=${S} \
124 + econf \
125 + --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" \
126 + --docdir='${datarootdir}'/doc/${PF} \
127 + $(multilib_native_use_enable nls) \
128 + --enable-agetty \
129 + --with-bashcompletiondir="$(get_bashcompdir)" \
130 + --enable-bash-completion \
131 + $(multilib_native_use_enable caps setpriv) \
132 + --disable-chfn-chsh \
133 + $(multilib_native_use_enable cramfs) \
134 + $(multilib_native_use_enable fdformat) \
135 + --with-ncurses=$(multilib_native_usex ncurses $(usex unicode auto yes) no) \
136 + --disable-kill \
137 + --disable-login \
138 + $(multilib_native_use_enable tty-helpers mesg) \
139 + --disable-nologin \
140 + --enable-partx \
141 + $(multilib_native_use_with python) \
142 + --enable-raw \
143 + --enable-rename \
144 + --disable-reset \
145 + --enable-schedutils \
146 + --disable-su \
147 + $(multilib_native_use_enable tty-helpers wall) \
148 + $(multilib_native_use_enable tty-helpers write) \
149 + $(multilib_native_use_enable suid makeinstall-chown) \
150 + $(multilib_native_use_enable suid makeinstall-setuid) \
151 + $(use_with selinux) \
152 + $(multilib_native_use_with slang) \
153 + $(use_enable static-libs static) \
154 + $(multilib_native_use_with systemd) \
155 + --with-systemdsystemunitdir=$(multilib_native_usex systemd "$(systemd_get_unitdir)" "no") \
156 + $(multilib_native_use_with udev) \
157 + $(tc-has-tls || echo --disable-tls)
158 +}
159 +
160 +multilib_src_compile() {
161 + if multilib_is_native_abi; then
162 + default
163 + else
164 + # build libraries only
165 + emake -f Makefile -f - mylibs \
166 + <<< 'mylibs: $(usrlib_exec_LTLIBRARIES) $(pkgconfig_DATA)'
167 + fi
168 +}
169 +
170 +multilib_src_test() {
171 + multilib_is_native_abi && emake check
172 +}
173 +
174 +multilib_src_install() {
175 + if multilib_is_native_abi; then
176 + default
177 + else
178 + emake DESTDIR="${D}" install-usrlib_execLTLIBRARIES \
179 + install-pkgconfigDATA install-uuidincHEADERS \
180 + install-nodist_blkidincHEADERS install-nodist_mountincHEADERS \
181 + install-nodist_smartcolsincHEADERS install-nodist_fdiskincHEADERS
182 + fi
183 +
184 + if multilib_is_native_abi; then
185 + # need the libs in /
186 + gen_usr_ldscript -a blkid mount smartcols uuid
187 +
188 + use python && python_optimize
189 + fi
190 +}
191 +
192 +multilib_src_install_all() {
193 + dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*}
194 +
195 + # e2fsprogs-libs didnt install .la files, and .pc work fine
196 + prune_libtool_files
197 +}
198 +
199 +pkg_postinst() {
200 + if ! use tty-helpers; then
201 + elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers."
202 + fi
203 +
204 + if [[ -z ${REPLACING_VERSIONS} ]]; then
205 + elog "The agetty util now clears the terminal by default. You"
206 + elog "might want to add --noclear to your /etc/inittab lines."
207 + fi
208 +}