1 |
commit: 2d77a40104886fabf39650dcf5cfee3e872cbaa0 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 8 11:58:50 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 8 11:59:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d77a401 |
7 |
|
8 |
sys-apps/util-linux: Bump to version 2.31.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
sys-apps/util-linux/Manifest | 1 + |
13 |
sys-apps/util-linux/util-linux-2.31.1.ebuild | 202 +++++++++++++++++++++++++++ |
14 |
2 files changed, 203 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest |
17 |
index 7f55387f2eb..07f6dc7e5e2 100644 |
18 |
--- a/sys-apps/util-linux/Manifest |
19 |
+++ b/sys-apps/util-linux/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST util-linux-2.30.2.tar.xz 4442624 BLAKE2B 7b76e255c9ee4d8b8f65f037a735808233edcdb8dce951038ae8983a3f4a6e493458622f6c7f6ce68d38672ac6dc5258b45b787c196dabede41cb19afc76e545 SHA512 b92ec16d5e8a405ad9ebbac8673bb49c5bf0a7f630118477f12c7a3c6b3b3ee5d56868632dd71fffd5c0434821207c2769f6859b9d398c2df770ec6487d7c32d |
22 |
+DIST util-linux-2.31.1.tar.xz 4510096 BLAKE2B f2e4a398fe4ecc0bbfb7c2240698e3a37deed57eb48a028ddfb578ecc057c1c928b2082d13014f0dfdaf5a8274ee3a13993fdbc19b7e05e5a992505ac90de79a SHA512 d45c1e62e39f5d5c7a642071e7ccce44fe4ecaafec54d8c9a4e9d526280a6e25723bfa0eb068401e291579c0d067661775bbe085190d13ff16493f47360b7760 |
23 |
DIST util-linux-2.31.tar.xz 4503892 BLAKE2B 8a9e2fc674cacbfabfc76cc0ab671f3fdb35d49de9f4ae8660b49df9e196878c2459d8fc57f6c9b6d2ad73cc56d970656ffcbc22deed97bb7a0cc28490a1fbb0 SHA512 48b668526e96a132736b882090d0e33c20b4b3a0e1760502d83118ed98ccc9423d310848a2bb73f82f85e9c19f6191075ae2c5269b007e76be1fbd7b6b88fbf5 |
24 |
|
25 |
diff --git a/sys-apps/util-linux/util-linux-2.31.1.ebuild b/sys-apps/util-linux/util-linux-2.31.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..9b6633597d3 |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/util-linux/util-linux-2.31.1.ebuild |
30 |
@@ -0,0 +1,202 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
37 |
+ |
38 |
+inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \ |
39 |
+ pam python-single-r1 multilib-minimal systemd |
40 |
+ |
41 |
+MY_PV="${PV/_/-}" |
42 |
+MY_P="${PN}-${MY_PV}" |
43 |
+ |
44 |
+if [[ ${PV} == 9999 ]] ; then |
45 |
+ inherit git-r3 autotools |
46 |
+ EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git" |
47 |
+else |
48 |
+ [[ "${PV}" = *_rc* ]] || \ |
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="build caps +cramfs fdformat kill ncurses nls pam python +readline selinux slang static-libs +suid systemd test tty-helpers udev unicode" |
59 |
+ |
60 |
+# Most lib deps here are related to programs rather than our libs, |
61 |
+# so we rarely need to specify ${MULTILIB_USEDEP}. |
62 |
+RDEPEND="caps? ( sys-libs/libcap-ng ) |
63 |
+ cramfs? ( sys-libs/zlib ) |
64 |
+ ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] ) |
65 |
+ pam? ( sys-libs/pam ) |
66 |
+ python? ( ${PYTHON_DEPS} ) |
67 |
+ readline? ( sys-libs/readline:0= ) |
68 |
+ selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) |
69 |
+ slang? ( sys-libs/slang ) |
70 |
+ !build? ( systemd? ( sys-apps/systemd ) ) |
71 |
+ udev? ( virtual/libudev:= )" |
72 |
+DEPEND="${RDEPEND} |
73 |
+ virtual/pkgconfig |
74 |
+ nls? ( sys-devel/gettext ) |
75 |
+ test? ( sys-devel/bc ) |
76 |
+ virtual/os-headers" |
77 |
+RDEPEND+=" |
78 |
+ kill? ( |
79 |
+ !sys-apps/coreutils[kill] |
80 |
+ !sys-process/procps[kill] |
81 |
+ ) |
82 |
+ !net-wireless/rfkill |
83 |
+ !sys-process/schedutils |
84 |
+ !sys-apps/setarch |
85 |
+ !<sys-apps/sysvinit-2.88-r7 |
86 |
+ !sys-block/eject |
87 |
+ !<sys-libs/e2fsprogs-libs-1.41.8 |
88 |
+ !<sys-fs/e2fsprogs-1.41.8 |
89 |
+ !<app-shells/bash-completion-2.7-r1" |
90 |
+ |
91 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
92 |
+ |
93 |
+S="${WORKDIR}/${MY_P}" |
94 |
+ |
95 |
+pkg_setup() { |
96 |
+ use python && python-single-r1_pkg_setup |
97 |
+} |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ default |
101 |
+ |
102 |
+ if [[ ${PV} == 9999 ]] ; then |
103 |
+ po/update-potfiles |
104 |
+ eautoreconf |
105 |
+ fi |
106 |
+ # Undo bad ncurses handling by upstream. #601530 |
107 |
+ sed -i -E \ |
108 |
+ -e '/NCURSES_/s:(ncursesw?)[56]-config:$PKG_CONFIG \1:' \ |
109 |
+ -e 's:(ncursesw?)[56]-config --version:$PKG_CONFIG --exists --print-errors \1:' \ |
110 |
+ configure || die |
111 |
+ elibtoolize |
112 |
+} |
113 |
+ |
114 |
+lfs_fallocate_test() { |
115 |
+ # Make sure we can use fallocate with LFS #300307 |
116 |
+ cat <<-EOF > "${T}"/fallocate.${ABI}.c |
117 |
+ #define _GNU_SOURCE |
118 |
+ #include <fcntl.h> |
119 |
+ main() { return fallocate(0, 0, 0, 0); } |
120 |
+ EOF |
121 |
+ append-lfs-flags |
122 |
+ $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \ |
123 |
+ || export ac_cv_func_fallocate=no |
124 |
+ rm -f "${T}"/fallocate.${ABI}.c |
125 |
+} |
126 |
+ |
127 |
+multilib_src_configure() { |
128 |
+ lfs_fallocate_test |
129 |
+ # The scanf test in a run-time test which fails while cross-compiling. |
130 |
+ # Blindly assume a POSIX setup since we require libmount, and libmount |
131 |
+ # itself fails when the scanf test fails. #531856 |
132 |
+ tc-is-cross-compiler && export scanf_cv_alloc_modifier=ms |
133 |
+ export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486 |
134 |
+ export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042 |
135 |
+ |
136 |
+ local myeconfargs=( |
137 |
+ --disable-chfn-chsh |
138 |
+ --disable-login |
139 |
+ --disable-nologin |
140 |
+ --disable-su |
141 |
+ --docdir='${datarootdir}'/doc/${PF} |
142 |
+ --enable-agetty |
143 |
+ --enable-bash-completion |
144 |
+ --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" |
145 |
+ --enable-line |
146 |
+ --enable-partx |
147 |
+ --enable-raw |
148 |
+ --enable-rename |
149 |
+ --enable-rfkill |
150 |
+ --enable-schedutils |
151 |
+ --with-bashcompletiondir="$(get_bashcompdir)" |
152 |
+ --with-systemdsystemunitdir=$(multilib_native_usex systemd "$(systemd_get_systemunitdir)" "no") |
153 |
+ $(multilib_native_use_enable caps setpriv) |
154 |
+ $(multilib_native_use_enable cramfs) |
155 |
+ $(multilib_native_use_enable fdformat) |
156 |
+ $(multilib_native_use_enable nls) |
157 |
+ $(multilib_native_use_enable suid makeinstall-chown) |
158 |
+ $(multilib_native_use_enable suid makeinstall-setuid) |
159 |
+ $(multilib_native_use_enable tty-helpers mesg) |
160 |
+ $(multilib_native_use_enable tty-helpers wall) |
161 |
+ $(multilib_native_use_enable tty-helpers write) |
162 |
+ $(multilib_native_use_with python) |
163 |
+ $(multilib_native_use_with readline) |
164 |
+ $(multilib_native_use_with slang) |
165 |
+ $(multilib_native_use_with systemd) |
166 |
+ $(multilib_native_use_with udev) |
167 |
+ $(multilib_native_usex ncurses "$(use_with unicode ncursesw)" '--without-ncursesw') |
168 |
+ $(multilib_native_usex ncurses "$(use_with !unicode ncurses)" '--without-ncurses') |
169 |
+ $(tc-has-tls || echo --disable-tls) |
170 |
+ $(use_enable unicode widechar) |
171 |
+ $(use_enable kill) |
172 |
+ $(use_enable static-libs static) |
173 |
+ $(use_with selinux) |
174 |
+ $(usex ncurses '' '--without-tinfo') |
175 |
+ ) |
176 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
177 |
+} |
178 |
+ |
179 |
+multilib_src_compile() { |
180 |
+ if multilib_is_native_abi; then |
181 |
+ default |
182 |
+ else |
183 |
+ # build libraries only |
184 |
+ emake -f Makefile -f - mylibs \ |
185 |
+ <<< 'mylibs: $(usrlib_exec_LTLIBRARIES) $(pkgconfig_DATA)' |
186 |
+ fi |
187 |
+} |
188 |
+ |
189 |
+multilib_src_test() { |
190 |
+ multilib_is_native_abi && emake check |
191 |
+} |
192 |
+ |
193 |
+multilib_src_install() { |
194 |
+ if multilib_is_native_abi; then |
195 |
+ default |
196 |
+ else |
197 |
+ emake DESTDIR="${D}" install-usrlib_execLTLIBRARIES \ |
198 |
+ install-pkgconfigDATA install-uuidincHEADERS \ |
199 |
+ install-nodist_blkidincHEADERS install-nodist_mountincHEADERS \ |
200 |
+ install-nodist_smartcolsincHEADERS install-nodist_fdiskincHEADERS |
201 |
+ fi |
202 |
+ |
203 |
+ if multilib_is_native_abi; then |
204 |
+ # need the libs in / |
205 |
+ gen_usr_ldscript -a blkid mount smartcols uuid |
206 |
+ |
207 |
+ use python && python_optimize |
208 |
+ fi |
209 |
+} |
210 |
+ |
211 |
+multilib_src_install_all() { |
212 |
+ dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*} |
213 |
+ |
214 |
+ # e2fsprogs-libs didnt install .la files, and .pc work fine |
215 |
+ find "${ED}" -name "*.la" -delete || die |
216 |
+ |
217 |
+ if use pam; then |
218 |
+ newpamd "${FILESDIR}/runuser.pamd" runuser |
219 |
+ newpamd "${FILESDIR}/runuser-l.pamd" runuser-l |
220 |
+ fi |
221 |
+} |
222 |
+ |
223 |
+pkg_postinst() { |
224 |
+ if ! use tty-helpers; then |
225 |
+ elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers." |
226 |
+ fi |
227 |
+ |
228 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
229 |
+ elog "The agetty util now clears the terminal by default. You" |
230 |
+ elog "might want to add --noclear to your /etc/inittab lines." |
231 |
+ fi |
232 |
+} |