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