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