Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/coreutils/
Date: Wed, 29 Apr 2020 15:21:39
Message-Id: 1588173677.7738c7dc136f710f8c5676eecc0e04996d77176b.whissi@gentoo
1 commit: 7738c7dc136f710f8c5676eecc0e04996d77176b
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 29 12:30:05 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 29 15:21:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7738c7dc
7
8 sys-apps/coreutils: drop old
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-apps/coreutils/coreutils-8.31.ebuild | 210 -------------------------------
14 1 file changed, 210 deletions(-)
15
16 diff --git a/sys-apps/coreutils/coreutils-8.31.ebuild b/sys-apps/coreutils/coreutils-8.31.ebuild
17 deleted file mode 100644
18 index bfb7b35dce7..00000000000
19 --- a/sys-apps/coreutils/coreutils-8.31.ebuild
20 +++ /dev/null
21 @@ -1,210 +0,0 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI="6"
26 -
27 -PYTHON_COMPAT=( python3_{6,7} )
28 -
29 -inherit eutils flag-o-matic python-any-r1 toolchain-funcs
30 -
31 -PATCH="${PN}-8.30-patches-01"
32 -DESCRIPTION="Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)"
33 -HOMEPAGE="https://www.gnu.org/software/coreutils/"
34 -SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
35 - mirror://gentoo/${PATCH}.tar.xz
36 - https://dev.gentoo.org/~polynomial-c/dist/${PATCH}.tar.xz"
37 -
38 -LICENSE="GPL-3"
39 -SLOT="0"
40 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-linux"
41 -IUSE="acl caps gmp hostname kill multicall nls selinux +split-usr static test userland_BSD vanilla xattr"
42 -RESTRICT="!test? ( test )"
43 -
44 -LIB_DEPEND="acl? ( sys-apps/acl[static-libs] )
45 - caps? ( sys-libs/libcap )
46 - gmp? ( dev-libs/gmp:=[static-libs] )
47 - xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )"
48 -RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} )
49 - selinux? ( sys-libs/libselinux )
50 - nls? ( virtual/libintl )"
51 -DEPEND="${RDEPEND}
52 - static? ( ${LIB_DEPEND} )
53 - app-arch/xz-utils
54 - test? (
55 - dev-lang/perl
56 - dev-perl/Expect
57 - !userland_BSD? (
58 - dev-util/strace
59 - )
60 - ${PYTHON_DEPS}
61 - $(python_gen_any_dep 'dev-python/pyinotify[${PYTHON_USEDEP}]')
62 - )"
63 -RDEPEND+="
64 - hostname? ( !sys-apps/net-tools[hostname] )
65 - kill? (
66 - !sys-apps/util-linux[kill]
67 - !sys-process/procps[kill]
68 - )
69 - !app-misc/realpath
70 - !<sys-apps/util-linux-2.13
71 - !<sys-apps/sandbox-2.10-r4
72 - !sys-apps/stat
73 - !net-mail/base64
74 - !sys-apps/mktemp
75 - !<app-forensics/tct-1.18-r1
76 - !<net-fs/netatalk-2.0.3-r4"
77 -
78 -python_check_deps() {
79 - has_version --host-root "dev-python/pyinotify[${PYTHON_USEDEP}]"
80 -}
81 -
82 -pkg_setup() {
83 - if use test ; then
84 - python-any-r1_pkg_setup
85 - fi
86 -}
87 -
88 -src_prepare() {
89 - if ! use vanilla ; then
90 - eapply "${WORKDIR}"/patch/*.patch
91 - fi
92 -
93 - eapply_user
94 -
95 - # Since we've patched many .c files, the make process will try to
96 - # re-build the manpages by running `./bin --help`. When doing a
97 - # cross-compile, we can't do that since 'bin' isn't a native bin.
98 - # Also, it's not like we changed the usage on any of these things,
99 - # so let's just update the timestamps and skip the help2man step.
100 - set -- man/*.x
101 - touch ${@/%x/1}
102 -
103 - # Avoid perl dep for compiled in dircolors default #348642
104 - if ! has_version dev-lang/perl ; then
105 - touch src/dircolors.h
106 - touch ${@/%x/1}
107 - fi
108 -}
109 -
110 -src_configure() {
111 - local myconf=(
112 - --with-packager="Gentoo"
113 - --with-packager-version="${PVR} (p${PATCH_VER:-0})"
114 - --with-packager-bug-reports="https://bugs.gentoo.org/"
115 - --enable-install-program="arch,$(usev hostname),$(usev kill)"
116 - --enable-no-install-program="groups,$(usev !hostname),$(usev !kill),su,uptime"
117 - --enable-largefile
118 - $(usex caps '' --disable-libcap)
119 - $(use_enable nls)
120 - $(use_enable acl)
121 - $(use_enable multicall single-binary)
122 - $(use_enable xattr)
123 - $(use_with gmp)
124 - )
125 - if tc-is-cross-compiler && [[ ${CHOST} == *linux* ]] ; then
126 - export fu_cv_sys_stat_statfs2_bsize=yes #311569
127 - export gl_cv_func_realpath_works=yes #416629
128 - fi
129 -
130 - export gl_cv_func_mknod_works=yes #409919
131 - use static && append-ldflags -static && sed -i '/elf_sys=yes/s:yes:no:' configure #321821
132 - use selinux || export ac_cv_{header_selinux_{context,flash,selinux}_h,search_setfilecon}=no #301782
133 - use userland_BSD && myconf+=( -program-prefix=g --program-transform-name=s/stat/nustat/ )
134 - # kill/uptime - procps
135 - # groups/su - shadow
136 - # hostname - net-tools
137 - econf "${myconf[@]}"
138 -}
139 -
140 -src_test() {
141 - # Known to fail with FEATURES=usersandbox (bug #439574):
142 - # - tests/du/long-from-unreadable.sh} (bug #413621)
143 - # - tests/rm/deep-2.sh (bug #413621)
144 - # - tests/dd/no-allocate.sh (bug #629660)
145 - if has usersandbox ${FEATURES} ; then
146 - ewarn "You are emerging ${P} with 'usersandbox' enabled." \
147 - "Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
148 - fi
149 -
150 - # Non-root tests will fail if the full path isn't
151 - # accessible to non-root users
152 - chmod -R go-w "${WORKDIR}"
153 - chmod a+rx "${WORKDIR}"
154 -
155 - # coreutils tests like to do `mount` and such with temp dirs
156 - # so make sure /etc/mtab is writable #265725
157 - # make sure /dev/loop* can be mounted #269758
158 - mkdir -p "${T}"/mount-wrappers || die
159 - mkwrap() {
160 - local w ww
161 - for w in "${@}" ; do
162 - ww="${T}/mount-wrappers/${w}"
163 - cat <<-EOF > "${ww}"
164 - #!${EPREFIX}/bin/sh
165 - exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P ${w}) "\$@"
166 - EOF
167 - chmod a+rx "${ww}"
168 - done
169 - }
170 - mkwrap mount umount
171 -
172 - addwrite /dev/full
173 - #export RUN_EXPENSIVE_TESTS="yes"
174 - #export FETISH_GROUPS="portage wheel"
175 - env PATH="${T}/mount-wrappers:${PATH}" \
176 - emake -j1 -k check
177 -}
178 -
179 -src_install() {
180 - default
181 -
182 - insinto /etc
183 - newins src/dircolors.hin DIR_COLORS
184 -
185 - if [[ ${USERLAND} == "GNU" ]] ; then
186 - cd "${ED%/}"/usr/bin || die
187 - dodir /bin
188 - # move critical binaries into /bin (required by FHS)
189 - local fhs="cat chgrp chmod chown cp date dd df echo false ln ls
190 - mkdir mknod mv pwd rm rmdir stty sync true uname"
191 - mv ${fhs} ../../bin/ || die "could not move fhs bins"
192 - if use hostname; then
193 - mv hostname ../../bin/ || die
194 - fi
195 - if use kill; then
196 - mv kill ../../bin/ || die
197 - fi
198 - if use split-usr ; then
199 - # move critical binaries into /bin (common scripts)
200 - local com="basename chroot cut dir dirname du env expr head mkfifo
201 - mktemp readlink seq sleep sort tail touch tr tty vdir wc yes"
202 - mv ${com} ../../bin/ || die "could not move common bins"
203 - # create a symlink for uname in /usr/bin/ since autotools require it
204 - local x
205 - for x in ${com} uname ; do
206 - dosym ../../bin/${x} /usr/bin/${x}
207 - done
208 - fi
209 - else
210 - # For now, drop the man pages, collides with the ones of the system.
211 - rm -rf "${ED%/}"/usr/share/man
212 - fi
213 -
214 -}
215 -
216 -pkg_postinst() {
217 - ewarn "Make sure you run 'hash -r' in your active shells."
218 - ewarn "You should also re-source your shell settings for LS_COLORS"
219 - ewarn " changes, such as: source /etc/profile"
220 -
221 - # Help out users using experimental filesystems
222 - if grep -qs btrfs "${EROOT%/}"/etc/fstab /proc/mounts ; then
223 - case $(uname -r) in
224 - 2.6.[12][0-9]|2.6.3[0-7]*)
225 - ewarn "You are running a system with a buggy btrfs driver."
226 - ewarn "Please upgrade your kernel to avoid silent corruption."
227 - ewarn "See: https://bugs.gentoo.org/353907"
228 - ;;
229 - esac
230 - fi
231 -}