1 |
commit: c6b886f19d1202433935a564d97d58ca379591e5 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 29 10:33:50 2018 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 29 10:34:09 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6b886f1 |
7 |
|
8 |
sys-apps/util-linux: Drop old |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
sys-apps/util-linux/util-linux-2.32.1.ebuild | 242 --------------------------- |
14 |
1 file changed, 242 deletions(-) |
15 |
|
16 |
diff --git a/sys-apps/util-linux/util-linux-2.32.1.ebuild b/sys-apps/util-linux/util-linux-2.32.1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 95679d47735..00000000000 |
19 |
--- a/sys-apps/util-linux/util-linux-2.32.1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,242 +0,0 @@ |
22 |
-# Copyright 1999-2018 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) |
28 |
- |
29 |
-inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \ |
30 |
- pam python-single-r1 multilib-minimal multiprocessing systemd |
31 |
- |
32 |
-MY_PV="${PV/_/-}" |
33 |
-MY_P="${PN}-${MY_PV}" |
34 |
- |
35 |
-if [[ ${PV} == 9999 ]] ; then |
36 |
- inherit git-r3 autotools |
37 |
- EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git" |
38 |
-else |
39 |
- [[ "${PV}" = *_rc* ]] || \ |
40 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
41 |
- SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz" |
42 |
-fi |
43 |
- |
44 |
-DESCRIPTION="Various useful Linux utilities" |
45 |
-HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ https://github.com/karelzak/util-linux" |
46 |
- |
47 |
-LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain" |
48 |
-SLOT="0" |
49 |
-IUSE="build caps +cramfs fdformat kill ncurses nls pam python +readline selinux slang static-libs +suid systemd test tty-helpers udev unicode userland_GNU" |
50 |
- |
51 |
-# Most lib deps here are related to programs rather than our libs, |
52 |
-# so we rarely need to specify ${MULTILIB_USEDEP}. |
53 |
-RDEPEND="caps? ( sys-libs/libcap-ng ) |
54 |
- cramfs? ( sys-libs/zlib:= ) |
55 |
- ncurses? ( >=sys-libs/ncurses-5.2-r2:0=[unicode?] ) |
56 |
- nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) |
57 |
- pam? ( sys-libs/pam ) |
58 |
- python? ( ${PYTHON_DEPS} ) |
59 |
- readline? ( sys-libs/readline:0= ) |
60 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) |
61 |
- slang? ( sys-libs/slang ) |
62 |
- !build? ( systemd? ( sys-apps/systemd ) ) |
63 |
- udev? ( virtual/libudev:= )" |
64 |
-DEPEND="${RDEPEND} |
65 |
- virtual/pkgconfig |
66 |
- nls? ( sys-devel/gettext ) |
67 |
- test? ( sys-devel/bc ) |
68 |
- virtual/os-headers" |
69 |
-RDEPEND+=" |
70 |
- kill? ( |
71 |
- !sys-apps/coreutils[kill] |
72 |
- !sys-process/procps[kill] |
73 |
- ) |
74 |
- !net-wireless/rfkill |
75 |
- !sys-process/schedutils |
76 |
- !sys-apps/setarch |
77 |
- !<sys-apps/sysvinit-2.88-r7 |
78 |
- !<sys-libs/e2fsprogs-libs-1.41.8 |
79 |
- !<sys-fs/e2fsprogs-1.41.8 |
80 |
- !<app-shells/bash-completion-2.7-r1" |
81 |
- |
82 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
83 |
- |
84 |
-S="${WORKDIR}/${MY_P}" |
85 |
- |
86 |
-PATCHES=( |
87 |
- "${FILESDIR}/util-linux-2.32-python3-tests.patch" |
88 |
-) |
89 |
- |
90 |
-pkg_setup() { |
91 |
- use python && python-single-r1_pkg_setup |
92 |
-} |
93 |
- |
94 |
-src_prepare() { |
95 |
- default |
96 |
- |
97 |
- eapply "${FILESDIR}"/${PN}-2.32-add-missing-lintl.patch |
98 |
- touch -r "${S}"/configure "${S}"/libsmartcols/src/Makemodule.am || die |
99 |
- touch -r "${S}"/configure "${S}"/libuuid/src/Makemodule.am || die |
100 |
- |
101 |
- # Prevent uuidd test failure due to socket path limit. #593304 |
102 |
- sed -i \ |
103 |
- -e "s|UUIDD_SOCKET=\"\$(mktemp -u \"\${TS_OUTDIR}/uuiddXXXXXXXXXXXXX\")\"|UUIDD_SOCKET=\"\$(mktemp -u \"${T}/uuiddXXXXXXXXXXXXX.sock\")\"|g" \ |
104 |
- tests/ts/uuid/uuidd || die "Failed to fix uuidd test" |
105 |
- |
106 |
- if ! use userland_GNU; then |
107 |
- # test runner is using GNU-specific xargs call |
108 |
- sed -i -e 's:xargs:gxargs:' tests/run.sh || die |
109 |
- # test requires util-linux uuidgen (which we don't build) |
110 |
- rm tests/ts/uuid/oids || die |
111 |
- fi |
112 |
- |
113 |
- if [[ ${PV} == 9999 ]] ; then |
114 |
- po/update-potfiles |
115 |
- eautoreconf |
116 |
- fi |
117 |
- |
118 |
- # Undo bad ncurses handling by upstream. #601530 |
119 |
- sed -i -E \ |
120 |
- -e '/NCURSES_/s:(ncursesw?)[56]-config:$PKG_CONFIG \1:' \ |
121 |
- -e 's:(ncursesw?)[56]-config --version:$PKG_CONFIG --exists --print-errors \1:' \ |
122 |
- configure || die |
123 |
- |
124 |
- elibtoolize |
125 |
-} |
126 |
- |
127 |
-lfs_fallocate_test() { |
128 |
- # Make sure we can use fallocate with LFS #300307 |
129 |
- cat <<-EOF > "${T}"/fallocate.${ABI}.c |
130 |
- #define _GNU_SOURCE |
131 |
- #include <fcntl.h> |
132 |
- main() { return fallocate(0, 0, 0, 0); } |
133 |
- EOF |
134 |
- append-lfs-flags |
135 |
- $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \ |
136 |
- || export ac_cv_func_fallocate=no |
137 |
- rm -f "${T}"/fallocate.${ABI}.c |
138 |
-} |
139 |
- |
140 |
-multilib_src_configure() { |
141 |
- lfs_fallocate_test |
142 |
- # The scanf test in a run-time test which fails while cross-compiling. |
143 |
- # Blindly assume a POSIX setup since we require libmount, and libmount |
144 |
- # itself fails when the scanf test fails. #531856 |
145 |
- tc-is-cross-compiler && export scanf_cv_alloc_modifier=ms |
146 |
- export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486 |
147 |
- export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042 |
148 |
- |
149 |
- local myeconfargs=( |
150 |
- --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" |
151 |
- --with-bashcompletiondir="$(get_bashcompdir)" |
152 |
- $(multilib_native_use_enable suid makeinstall-chown) |
153 |
- $(multilib_native_use_enable suid makeinstall-setuid) |
154 |
- $(multilib_native_use_with python) |
155 |
- $(multilib_native_use_with readline) |
156 |
- $(multilib_native_use_with slang) |
157 |
- $(multilib_native_use_with systemd) |
158 |
- $(multilib_native_use_with udev) |
159 |
- $(multilib_native_usex ncurses "$(use_with unicode ncursesw)" '--without-ncursesw') |
160 |
- $(multilib_native_usex ncurses "$(use_with !unicode ncurses)" '--without-ncurses') |
161 |
- $(tc-has-tls || echo --disable-tls) |
162 |
- $(use_enable nls) |
163 |
- $(use_enable unicode widechar) |
164 |
- $(use_enable static-libs static) |
165 |
- $(use_with selinux) |
166 |
- $(usex ncurses '' '--without-tinfo') |
167 |
- ) |
168 |
- # build programs only on GNU, on *BSD we want libraries only |
169 |
- if multilib_is_native_abi && use userland_GNU; then |
170 |
- myeconfargs+=( |
171 |
- --disable-chfn-chsh |
172 |
- --disable-login |
173 |
- --disable-nologin |
174 |
- --disable-su |
175 |
- --enable-agetty |
176 |
- --enable-bash-completion |
177 |
- --enable-line |
178 |
- --enable-partx |
179 |
- --enable-raw |
180 |
- --enable-rename |
181 |
- --enable-rfkill |
182 |
- --enable-schedutils |
183 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
184 |
- $(use_enable caps setpriv) |
185 |
- $(use_enable cramfs) |
186 |
- $(use_enable fdformat) |
187 |
- $(use_enable tty-helpers mesg) |
188 |
- $(use_enable tty-helpers wall) |
189 |
- $(use_enable tty-helpers write) |
190 |
- $(use_enable kill) |
191 |
- ) |
192 |
- else |
193 |
- myeconfargs+=( |
194 |
- --disable-all-programs |
195 |
- --disable-bash-completion |
196 |
- --without-systemdsystemunitdir |
197 |
- # build libraries |
198 |
- --enable-libuuid |
199 |
- --enable-libblkid |
200 |
- --enable-libsmartcols |
201 |
- --enable-libfdisk |
202 |
- ) |
203 |
- if use userland_GNU; then |
204 |
- # those libraries don't work on *BSD |
205 |
- myeconfargs+=( |
206 |
- --enable-libmount |
207 |
- ) |
208 |
- fi |
209 |
- fi |
210 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
211 |
-} |
212 |
- |
213 |
-multilib_src_test() { |
214 |
- emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot" |
215 |
-} |
216 |
- |
217 |
-multilib_src_install() { |
218 |
- emake DESTDIR="${D}" install |
219 |
- |
220 |
- if multilib_is_native_abi && use userland_GNU; then |
221 |
- # need the libs in / |
222 |
- gen_usr_ldscript -a blkid fdisk mount smartcols uuid |
223 |
- |
224 |
- use python && python_optimize |
225 |
- fi |
226 |
-} |
227 |
- |
228 |
-multilib_src_install_all() { |
229 |
- dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*} |
230 |
- |
231 |
- # e2fsprogs-libs didnt install .la files, and .pc work fine |
232 |
- find "${ED}" -name "*.la" -delete || die |
233 |
- |
234 |
- if ! use userland_GNU; then |
235 |
- # manpage collisions |
236 |
- # TODO: figure out a good way to keep them |
237 |
- rm "${ED%/}"/usr/share/man/man3/uuid* || die |
238 |
- fi |
239 |
- |
240 |
- if use pam; then |
241 |
- newpamd "${FILESDIR}/runuser.pamd" runuser |
242 |
- newpamd "${FILESDIR}/runuser-l.pamd" runuser-l |
243 |
- fi |
244 |
- |
245 |
- # Note: |
246 |
- # Bash completion for "runuser" command is provided by same file which |
247 |
- # would also provide bash completion for "su" command. However, we don't |
248 |
- # use "su" command from this package. |
249 |
- # This triggers a known QA warning which we ignore for now to magically |
250 |
- # keep bash completion for "su" command which shadow package does not |
251 |
- # provide. |
252 |
-} |
253 |
- |
254 |
-pkg_postinst() { |
255 |
- if ! use tty-helpers; then |
256 |
- elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers." |
257 |
- fi |
258 |
- |
259 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
260 |
- elog "The agetty util now clears the terminal by default. You" |
261 |
- elog "might want to add --noclear to your /etc/inittab lines." |
262 |
- fi |
263 |
-} |