1 |
commit: a17cdcaf7e1ea7eabbdb0331ddee6e6c3a103850 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 12 13:05:58 2017 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 12 13:05:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=a17cdcaf |
7 |
|
8 |
sys-apps/coreutils: sync, pulls in 8.28 which fixes Darwin17 |
9 |
|
10 |
Package-Manager: Portage-2.3.13-prefix, Repoman-2.3.4 |
11 |
|
12 |
sys-apps/coreutils/Manifest | 12 +- |
13 |
sys-apps/coreutils/coreutils-8.20.ebuild | 190 --------------------- |
14 |
sys-apps/coreutils/coreutils-8.22-r1.ebuild | 181 -------------------- |
15 |
sys-apps/coreutils/coreutils-8.22.ebuild | 189 -------------------- |
16 |
...-8.23-r00.1.ebuild => coreutils-8.28-r1.ebuild} | 157 +++++++++++------ |
17 |
sys-apps/coreutils/files/coreutils-7.2-mint.patch | 152 ----------------- |
18 |
.../coreutils/files/coreutils-7.4-hppa-hpux.patch | 11 -- |
19 |
.../files/coreutils-7.5-interix-setgroups.patch | 15 -- |
20 |
.../coreutils/files/coreutils-8.23-non-elf.patch | 37 ---- |
21 |
.../files/coreutils-8.5-interix-double.patch | 69 -------- |
22 |
.../files/coreutils-8.5-interix-warn-mount.patch | 15 -- |
23 |
.../coreutils/files/coreutils-8.8-hppa-hpux.patch | 11 -- |
24 |
.../coreutils/files/coreutils-8.8-interix.patch | 18 -- |
25 |
13 files changed, 106 insertions(+), 951 deletions(-) |
26 |
|
27 |
diff --git a/sys-apps/coreutils/Manifest b/sys-apps/coreutils/Manifest |
28 |
index de71b647e9..5d14b1a062 100644 |
29 |
--- a/sys-apps/coreutils/Manifest |
30 |
+++ b/sys-apps/coreutils/Manifest |
31 |
@@ -1,15 +1,9 @@ |
32 |
-DIST coreutils-8.20-patches-1.1.tar.xz 19504 SHA256 0a1a3cc578e8872ebc93113edd76d1f1d88fb4d6596a047cfbb6c5fd4e82c22d SHA512 258116ff52d1d28acbedd2383c8d0f488c272b297c4f146231ea45fb76902bb56c9fad2d74d50c22371e67a4178dcff7b65950fcc034f56fc02c3c2ff290224f WHIRLPOOL ae4436a6ae655affbc02ee2d3d6a87345dc7b63b67aaecf01e034d2e40237c6e76b00a909d852f6ea96e348ef43e8e3f6f4c5bdb01aaf6d30a1b51036cbfe31b |
33 |
-DIST coreutils-8.20.tar.xz 5273788 SHA256 dbcb798764827a0f74be738662ecb516705cf520330cd3d7b2640fdffa499eb2 SHA512 adbeab5af780ae70d2a98a81e96ad2cdfbcbc20153372b0085f6ac75ae9fadff82bd09b460400820057692b4145d7f2d276630b76b0ed509303587972ed175cd WHIRLPOOL 3cf911cf785c6e6acab4f37bc75805687f91fe74d5727782903d242669ee6b7ad444b18395d6808b1f2569703cca1992983d3bfef41f65ea461f6d0aa25908e2 |
34 |
-DIST coreutils-8.22-man-r1.tar.xz 42748 SHA256 eb9882286a6355674e607506318ccc9e361b6a985d64073b797fd56a5e0d256c SHA512 b0123e3c8cd037d006a2bb64e8047636329ac3fd3d685db8e52a19e83df87da0428896af9bdcd8f1208f7aad3665ec2a871bbbfa98cbe5293c697431a23d7b4c WHIRLPOOL 7e705060f5af2d28152531ad3b5ae8e6cca2dabdec7dc1a30bcf7b74951462bb58ee610d1e080abc812e1291fae904b3e931a35d3d2566fb7b85f6a37415e04b |
35 |
-DIST coreutils-8.22-patches-1.0.tar.xz 6492 SHA256 4a2a32429607e0727d6ae114ee9e543c948d6c7710ef99920901e73784cee3f4 SHA512 daf1c2b85619aa9ff7bae02926be39478f439d5555fd4eb3038b62be6cceb7cc6357b4a77a347cb2b4ee08119aa2c3f7deb63d7179407af03f08459d8de38e0b WHIRLPOOL 845dfbf57269f50486862b6236e2a461bf7bccee383365982d4359895d6c9303e467d359aa9862134a965a96a062fa2c748ceb99390bbee09f9b843dbe5bd1ed |
36 |
-DIST coreutils-8.22-patches-1.1.tar.xz 7840 SHA256 4c45cca7950bbd278db23318916e503bda2df3be3e11c81cd15b55874007ed16 SHA512 7555544041cf4acf5615df76d6e9f9df157dac66059757d587af8f264597e02e8a395fbb920d42623fd40dab9a5ef1dfae2719e300efe491b0eaa2baa3a91f11 WHIRLPOOL ebc9fa35f40473646c2b826cc1bc57e9012fa37f264eb7e6084c0d2cf04f46827c943f9aa80f779a3d99bc07eeb40ffc4ac09109a6324af9882e2b0630d84253 |
37 |
-DIST coreutils-8.22.tar.xz 5335124 SHA256 5b3e94998152c017e6c75d56b9b994188eb71bf46d4038a642cb9141f6ff1212 SHA512 2f14c2cab7001297309b4774bf3d610ecbaaec7d98d68e3792b24d2b52d319c4e30e55f803e56c48b9b9a1b76eb1c9636be5444fe1dc1dbcdd6150cfcb34847f WHIRLPOOL 1b8e3f1cf12f7975e8d80b9ddab132937b2fffaca8c85ac1fefddb5fe277a63a7aa9c6f0f93d8f5a93d5af378b3cf3573222db8e1da918152b9fb7eff1352238 |
38 |
-DIST coreutils-8.23-man.tar.xz 43060 SHA256 d1b16e74b3dba4f313aeebae2c69da205f7d2e6e1c2aa8d39026c860d314ecca SHA512 db5085c783256e30b9878bdce5cf16063aaa51d800d5b40537d5cdea372d095a391e9986e8680c6d94841bc995ab43ac8bc2d23427e6e96263d24b0b5ccc7d12 WHIRLPOOL ef0cae7c1b752c0f81e6f23b0a792804518a5257740fedf7dd70577ec503a64716156a898ed50045987954a6234ba23c9483772830683bb7e4bd0c8a2ec2c142 |
39 |
-DIST coreutils-8.23-patches-1.1.tar.xz 6480 SHA256 daf5d61b36db61d629bf14bf8f04e878f1205c9ae2af5daf37dca3aad5a6fde4 SHA512 8da5f8e9fc47baa060030076c4a2de90013a0d1faad45fe99545e93d50bc079720281f6db5774590fe842c8c56bd8ae97e1d9bf862fae1896760b5e5b686e7a8 WHIRLPOOL 2a8082975e3627454569e57aecb3d1ac6bdef89e16f4f64a88a4ffcbf2b341fe56874b128485ae540270f7a060f9e0f4bd3eecf68e215fb6a5a1c5ac434f7403 |
40 |
-DIST coreutils-8.23.tar.xz 5375612 SHA256 ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d SHA512 a5f4b82ce208cb439d5dbe6f5cf4b19fecff581da210a51c4e3fdd5ffab114d171456d041e20a6996b59185947ac6655096e4b5ca252186e282ae0ae08b7534c WHIRLPOOL 4bd4cd28d6de96218e791c5ed15766e34dfeeb3aeade10e211e3a0e9ffa695e5a716872a915d78b356b3e3635e1e22274d92560301aadaf46a58242dc235d733 |
41 |
DIST coreutils-8.24-man.tar.xz 42920 SHA256 cf0333b5f134a331e0b46e2ddf90666f8bdc3281c1ca2c7ccbb75b437589ce37 SHA512 9dfe614402bc35c43301ebf97d2d36ac5db1433f48171bda15f2ba76bd9944742665b30a764df0cf773ebcad1845aae57c8e36a1cd3848c1e82a7c996d6cc78a WHIRLPOOL d702a372031fe52262204c00bee641084c099c45150d82abd5915535ab3bbe1efb63c4f00173bb88725ba49126a6ecf368d14b12843b570c08165b757b78710b |
42 |
DIST coreutils-8.24-patches-1.1.tar.xz 6688 SHA256 79cb0dc5b58cb97e17b11b5e821ed88fae88f728d9fd07986bbb397824e49c6f SHA512 cf340ccb918e307be8bbfd19a299bcfe5b295a26f59a8eeb8657f5dda1361100a350e996b31097948e63890987a2f83d05d2e7175c6304f4a4812b9974679c2c WHIRLPOOL 3b4d4676b119e4f22a01c8450be13d6eb40720d3c57aac5631454df24814943e6e6024fbdcd27a2b262d42c1446d9c04cbdc163371ff20a4b28d9cd9a77c5c9c |
43 |
DIST coreutils-8.24.tar.xz 5649896 SHA256 a2d75286a4b9ef3a13039c2da3868a61be4ee9f17d8ae380a35a97e506972170 SHA512 b42bb233340353647bb9a1c3d9122c1a5379cf3602ba9197c3c935fc899897e7d4685148dfaf93eccc096bee0a9b03416d79dc9bb81d5d2dea6e04ed134a3d1b WHIRLPOOL 68598e0c93375522714b9bc0dd092386a9466725b2b4b5715e2926c5087e1ce887d5e5b8e0b872347a053edcb39ba1f8c6949ee659a06ed554703a0ba07064e2 |
44 |
DIST coreutils-8.25-man.tar.xz 43420 SHA256 2ee31c3a6d2276f49c5515375d4a0c1047580da6ac10536898e0f0de81707f29 SHA512 412afc9909d30618ab9daba51c965c0fd22420c32f6c5a7e32ba32d957a92e8a65b977bccaba4b76c55d435a57065dc6103ff11c5fa31d02f117c13a2b09f75e WHIRLPOOL f2a9458d71cfbf6227ece5b688adb34653dacda0dfbcfd5332a36e33cda58b081d9b37c4ec910c92feba485e8e182f52327f4860f1ff5e0b0b7ae2f9b82045ee |
45 |
DIST coreutils-8.25-patches-1.1.tar.xz 7196 SHA256 68e116eb70a69e94458197cde81165c9902bec0c6661be31f6fffb84ba8d809c SHA512 19326ab7dd8d4515f7239133772f715aac4e722a1e28f4b0f19d8d629abe54a2309fa7c469797dc0f9e88991906883a891622c791ef940b9a5af6608d2e9110e WHIRLPOOL e7931e16e267b817a86f11b9e01d82dfac8144dbabd91d5cea036c819303895bd852809f374a76b6e4e474b559505d6fc907ddcb113ca1915b76d880e291bc76 |
46 |
DIST coreutils-8.25.tar.xz 5725008 SHA256 31e67c057a5b32a582f26408c789e11c2e8d676593324849dcf5779296cdce87 SHA512 571f95d44987d373081ed4c6ac82155ad3dcd95621d7b1a7163597e80ecbbafef2cd74b2ef594587a443a1a4355083879f898a286bb0230c48112d43d076ccd6 WHIRLPOOL e871e177ffaf96bfdd9e668eb9a09df9fd952ff095796cffd1ac2b8b3943c9c2ae79c31890fa02b5ed2609b6c6c84b64d2292454b043d62260a9560d2f7b9457 |
47 |
+DIST coreutils-8.28-man.tar.xz 43832 SHA256 d72c3fa79ae328a4fd1107102e8946755aa2e908044e1efcf1e71ef206dca042 SHA512 363cf595e0f6fc69eb6a9d1ca258a5f012404cee99887494ab6e40fe2c6de5e49e7cad953aecb394c5612043efe6b407e657811d8251b10e159c97b849dd8b3e WHIRLPOOL 7b10dbde06caf00d4b789cdb60a7d0c73aec65a90e889698daeccd04eefd8df08142261ea5fde8d3d455f35b2eddf07182bf92e2522e63e8ece412379e0cb0d1 |
48 |
+DIST coreutils-8.28-patches-1.1.tar.xz 7336 SHA256 bdd7ed0ef973bc1095df329225659a928ed061695651e2b54de79ac15690f517 SHA512 af47aaa614550e5cd82b2386fafd9f90beb0564b8bbedfe92238906e7c6f040fb7468c1929f0951d4f98038b6e1df7da2408204be78219e6a041658507385957 WHIRLPOOL 4a90ffa0a35b81d3d20c29128b0d39e08136d499201ac875781d9e851142d36c111031b333b6bfb81db692e75e7b3cc9673c4339d8d183d0d8df2371444dca4e |
49 |
+DIST coreutils-8.28.tar.xz 5252336 SHA256 1117b1a16039ddd84d51a9923948307cfa28c2cea03d1a2438742253df0a0c65 SHA512 1e592d0dd03b9227bf92af9a82bed6dc3bcbee46e984c7fb09833dea0962e86b309aa34d5e43823b73d4522c066bfa5cdc8ec694aa190910fb246ff32ceb63a1 WHIRLPOOL 58bdd9681d07794da70dc012d03de2f791bc8e40a16de85302cbb5ea247f6d81f0a92c3b90d655b9947057c5e5eb99b9347152d41150c1a613dd1f891942a73f |
50 |
|
51 |
diff --git a/sys-apps/coreutils/coreutils-8.20.ebuild b/sys-apps/coreutils/coreutils-8.20.ebuild |
52 |
deleted file mode 100644 |
53 |
index 8f87a08bc6..0000000000 |
54 |
--- a/sys-apps/coreutils/coreutils-8.20.ebuild |
55 |
+++ /dev/null |
56 |
@@ -1,190 +0,0 @@ |
57 |
-# Copyright 1999-2017 Gentoo Foundation |
58 |
-# Distributed under the terms of the GNU General Public License v2 |
59 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/coreutils-8.20.ebuild,v 1.12 2013/01/01 18:55:02 armin76 Exp $ |
60 |
- |
61 |
-EAPI="3" |
62 |
- |
63 |
-inherit eutils flag-o-matic toolchain-funcs |
64 |
- |
65 |
-PATCH_VER="1.1" |
66 |
-DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" |
67 |
-HOMEPAGE="http://www.gnu.org/software/coreutils/" |
68 |
-SRC_URI="mirror://gnu-alpha/coreutils/${P}.tar.xz |
69 |
- mirror://gnu/${PN}/${P}.tar.xz |
70 |
- mirror://gentoo/${P}.tar.xz |
71 |
- mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz |
72 |
- http://dev.gentoo.org/~ryao/dist/${P}-patches-${PATCH_VER}.tar.xz" |
73 |
- |
74 |
-LICENSE="GPL-3" |
75 |
-SLOT="0" |
76 |
-KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
77 |
-IUSE="acl caps gmp nls selinux static userland_BSD vanilla xattr" |
78 |
- |
79 |
-LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) |
80 |
- caps? ( sys-libs/libcap ) |
81 |
- gmp? ( dev-libs/gmp[static-libs] ) |
82 |
- xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )" |
83 |
-RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} ) |
84 |
- selinux? ( sys-libs/libselinux ) |
85 |
- nls? ( >=sys-devel/gettext-0.15 ) |
86 |
- !app-misc/realpath |
87 |
- !<sys-apps/util-linux-2.13 |
88 |
- !sys-apps/stat |
89 |
- !net-mail/base64 |
90 |
- !sys-apps/mktemp |
91 |
- !<app-forensics/tct-1.18-r1 |
92 |
- !<net-fs/netatalk-2.0.3-r4 |
93 |
- !<sci-chemistry/ccp4-6.1.1" |
94 |
-DEPEND="${RDEPEND} |
95 |
- static? ( ${LIB_DEPEND} ) |
96 |
- app-arch/xz-utils" |
97 |
- |
98 |
-src_prepare() { |
99 |
- if ! use vanilla ; then |
100 |
- use_if_iuse unicode || rm -f "${WORKDIR}"/patch/000_all_coreutils-i18n.patch |
101 |
- EPATCH_SUFFIX="patch" \ |
102 |
- PATCHDIR="${WORKDIR}/patch" \ |
103 |
- EPATCH_EXCLUDE="001_all_coreutils-gen-progress-bar.patch" \ |
104 |
- epatch |
105 |
- fi |
106 |
- |
107 |
- epatch "${FILESDIR}"/${PN}-7.2-mint.patch |
108 |
- |
109 |
- # Since we've patched many .c files, the make process will try to |
110 |
- # re-build the manpages by running `./bin --help`. When doing a |
111 |
- # cross-compile, we can't do that since 'bin' isn't a native bin. |
112 |
- # Also, it's not like we changed the usage on any of these things, |
113 |
- # so let's just update the timestamps and skip the help2man step. |
114 |
- set -- man/*.x |
115 |
- touch ${@/%x/1} |
116 |
- |
117 |
- # Avoid perl dep for compiled in dircolors default #348642 |
118 |
- if ! has_version dev-lang/perl ; then |
119 |
- touch src/dircolors.h |
120 |
- touch ${@/%x/1} |
121 |
- fi |
122 |
-} |
123 |
- |
124 |
-src_configure() { |
125 |
- local myconf='' |
126 |
- if tc-is-cross-compiler && [[ ${CHOST} == *linux* ]] ; then |
127 |
- export fu_cv_sys_stat_statfs2_bsize=yes #311569 |
128 |
- export gl_cv_func_realpath_works=yes #416629 |
129 |
- fi |
130 |
- |
131 |
- export gl_cv_func_mknod_works=yes #409919 |
132 |
- use static && append-ldflags -static && sed -i '/elf_sys=yes/s:yes:no:' configure #321821 |
133 |
- use selinux || export ac_cv_{header_selinux_{context,flash,selinux}_h,search_setfilecon}=no #301782 |
134 |
- use userland_BSD && myconf="${myconf} -program-prefix=g --program-transform-name=s/stat/nustat/" |
135 |
- # kill/uptime - procps |
136 |
- # groups/su - shadow |
137 |
- # hostname - net-tools |
138 |
- if [[ ${CHOST} == *-mint* ]]; then |
139 |
- myconf="${myconf} --enable-install-program=arch,hostname,kill,uptime" |
140 |
- myconf="${myconf} --enable-no-install-program=groups,su" |
141 |
- else |
142 |
- myconf="${myconf} --enable-install-program=arch" |
143 |
- myconf="${myconf} --enable-no-install-program=groups,hostname,kill,su,uptime" |
144 |
- fi |
145 |
- |
146 |
- econf \ |
147 |
- --with-packager="Gentoo" \ |
148 |
- --with-packager-version="${PVR} (p${PATCH_VER:-0})" \ |
149 |
- --with-packager-bug-reports="http://bugs.gentoo.org/" \ |
150 |
- ${myconf} \ |
151 |
- --enable-largefile \ |
152 |
- $(use caps || echo --disable-libcap) \ |
153 |
- $(use_enable nls) \ |
154 |
- $(use_enable acl) \ |
155 |
- $(use_enable xattr) \ |
156 |
- $(use_with gmp) \ |
157 |
- ${myconf} |
158 |
-} |
159 |
- |
160 |
-src_test() { |
161 |
- # Non-root tests will fail if the full path isnt |
162 |
- # accessible to non-root users |
163 |
- chmod -R go-w "${WORKDIR}" |
164 |
- chmod a+rx "${WORKDIR}" |
165 |
- |
166 |
- # coreutils tests like to do `mount` and such with temp dirs |
167 |
- # so make sure /etc/mtab is writable #265725 |
168 |
- # make sure /dev/loop* can be mounted #269758 |
169 |
- mkdir -p "${T}"/mount-wrappers |
170 |
- mkwrap() { |
171 |
- local w ww |
172 |
- for w in "$@" ; do |
173 |
- ww="${T}/mount-wrappers/${w}" |
174 |
- cat <<-EOF > "${ww}" |
175 |
- #!${EPREFIX}/bin/sh |
176 |
- exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@" |
177 |
- EOF |
178 |
- chmod a+rx "${ww}" |
179 |
- done |
180 |
- } |
181 |
- mkwrap mount umount |
182 |
- |
183 |
- addwrite /dev/full |
184 |
- #export RUN_EXPENSIVE_TESTS="yes" |
185 |
- #export FETISH_GROUPS="portage wheel" |
186 |
- env PATH="${T}/mount-wrappers:${PATH}" \ |
187 |
- emake -j1 -k check || die "make check failed" |
188 |
-} |
189 |
- |
190 |
-src_install() { |
191 |
- emake install DESTDIR="${D}" || die |
192 |
- dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO |
193 |
- |
194 |
- insinto /etc |
195 |
- newins src/dircolors.hin DIR_COLORS || die |
196 |
- |
197 |
- if [[ ${USERLAND} == "GNU" || ${EPREFIX%/} != "" ]] ; then |
198 |
- cd "${ED}"/usr/bin |
199 |
- dodir /bin |
200 |
- # move critical binaries into /bin (required by FHS) |
201 |
- local fhs="cat chgrp chmod chown cp date dd df echo false ln ls |
202 |
- mkdir mknod mv pwd rm rmdir stty sync true uname" |
203 |
- |
204 |
- [[ ${CHOST} == *-mint* ]] && fhs="${fhs} hostname" |
205 |
- |
206 |
- mv ${fhs} ../../bin/ || die "could not move fhs bins" |
207 |
- # move critical binaries into /bin (common scripts) |
208 |
- local com="basename chroot cut dir dirname du env expr head mkfifo |
209 |
- mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" |
210 |
- mv ${com} ../../bin/ || die "could not move common bins" |
211 |
- # create a symlink for uname in /usr/bin/ since autotools require it |
212 |
- local x |
213 |
- for x in ${com} uname ; do |
214 |
- dosym /bin/${x} /usr/bin/${x} || die |
215 |
- done |
216 |
- else |
217 |
- # For now, drop the man pages, collides with the ones of the system. |
218 |
- rm -rf "${ED}"/usr/share/man |
219 |
- fi |
220 |
- |
221 |
-} |
222 |
- |
223 |
-pkg_postinst() { |
224 |
- ewarn "Make sure you run 'hash -r' in your active shells." |
225 |
- ewarn "You should also re-source your shell settings for LS_COLORS" |
226 |
- ewarn " changes, such as: source /etc/profile" |
227 |
- |
228 |
- # /bin/dircolors sometimes sticks around #224823 |
229 |
- if [ -e "${EROOT}/usr/bin/dircolors" ] && [ -e "${EROOT}/bin/dircolors" ] ; then |
230 |
- if strings "${EROOT}/bin/dircolors" | grep -qs "GNU coreutils" ; then |
231 |
- einfo "Deleting orphaned GNU /bin/dircolors for you" |
232 |
- rm -f "${EROOT}/bin/dircolors" |
233 |
- fi |
234 |
- fi |
235 |
- |
236 |
- # Help out users using experimental filesystems |
237 |
- if grep -qs btrfs "${EROOT}"/etc/fstab /proc/mounts ; then |
238 |
- case $(uname -r) in |
239 |
- 2.6.[12][0-9]|2.6.3[0-7]*) |
240 |
- ewarn "You are running a system with a buggy btrfs driver." |
241 |
- ewarn "Please upgrade your kernel to avoid silent corruption." |
242 |
- ewarn "See: https://bugs.gentoo.org/353907" |
243 |
- ;; |
244 |
- esac |
245 |
- fi |
246 |
-} |
247 |
|
248 |
diff --git a/sys-apps/coreutils/coreutils-8.22-r1.ebuild b/sys-apps/coreutils/coreutils-8.22-r1.ebuild |
249 |
deleted file mode 100644 |
250 |
index 950937359f..0000000000 |
251 |
--- a/sys-apps/coreutils/coreutils-8.22-r1.ebuild |
252 |
+++ /dev/null |
253 |
@@ -1,181 +0,0 @@ |
254 |
-# Copyright 1999-2017 Gentoo Foundation |
255 |
-# Distributed under the terms of the GNU General Public License v2 |
256 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/coreutils-8.22-r1.ebuild,v 1.3 2015/02/28 20:15:19 tgall Exp $ |
257 |
- |
258 |
-EAPI="3" |
259 |
- |
260 |
-inherit eutils flag-o-matic toolchain-funcs |
261 |
- |
262 |
-PATCH_VER="1.1" |
263 |
-DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" |
264 |
-HOMEPAGE="http://www.gnu.org/software/coreutils/" |
265 |
-SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
266 |
- mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz |
267 |
- http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz |
268 |
- mirror://gentoo/${P}-man-r1.tar.xz |
269 |
- http://dev.gentoo.org/~vapier/dist/${P}-man-r1.tar.xz" |
270 |
- |
271 |
-LICENSE="GPL-3" |
272 |
-SLOT="0" |
273 |
-KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
274 |
-IUSE="acl caps gmp nls selinux static userland_BSD vanilla xattr" |
275 |
- |
276 |
-LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) |
277 |
- caps? ( sys-libs/libcap ) |
278 |
- gmp? ( dev-libs/gmp[static-libs] ) |
279 |
- xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )" |
280 |
-RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} ) |
281 |
- selinux? ( sys-libs/libselinux ) |
282 |
- nls? ( virtual/libintl ) |
283 |
- !app-misc/realpath |
284 |
- !<sys-apps/util-linux-2.13 |
285 |
- !sys-apps/stat |
286 |
- !net-mail/base64 |
287 |
- !sys-apps/mktemp |
288 |
- !<app-forensics/tct-1.18-r1 |
289 |
- !<net-fs/netatalk-2.0.3-r4 |
290 |
- !<sci-chemistry/ccp4-6.1.1" |
291 |
-DEPEND="${RDEPEND} |
292 |
- static? ( ${LIB_DEPEND} ) |
293 |
- app-arch/xz-utils" |
294 |
- |
295 |
-src_prepare() { |
296 |
- if ! use vanilla ; then |
297 |
- use_if_iuse unicode || rm -f "${WORKDIR}"/patch/000_all_coreutils-i18n.patch |
298 |
- EPATCH_SUFFIX="patch" \ |
299 |
- PATCHDIR="${WORKDIR}/patch" \ |
300 |
- EPATCH_EXCLUDE="001_all_coreutils-gen-progress-bar.patch" \ |
301 |
- epatch |
302 |
- fi |
303 |
- |
304 |
- epatch "${FILESDIR}"/${PN}-8.22-mint.patch |
305 |
- |
306 |
- # Since we've patched many .c files, the make process will try to |
307 |
- # re-build the manpages by running `./bin --help`. When doing a |
308 |
- # cross-compile, we can't do that since 'bin' isn't a native bin. |
309 |
- # Also, it's not like we changed the usage on any of these things, |
310 |
- # so let's just update the timestamps and skip the help2man step. |
311 |
- set -- man/*.x |
312 |
- touch ${@/%x/1} |
313 |
- |
314 |
- # Avoid perl dep for compiled in dircolors default #348642 |
315 |
- if ! has_version dev-lang/perl ; then |
316 |
- touch src/dircolors.h |
317 |
- touch ${@/%x/1} |
318 |
- fi |
319 |
-} |
320 |
- |
321 |
-src_configure() { |
322 |
- local myconf='' |
323 |
- if tc-is-cross-compiler && [[ ${CHOST} == *linux* ]] ; then |
324 |
- export fu_cv_sys_stat_statfs2_bsize=yes #311569 |
325 |
- export gl_cv_func_realpath_works=yes #416629 |
326 |
- fi |
327 |
- |
328 |
- export gl_cv_func_mknod_works=yes #409919 |
329 |
- use static && append-ldflags -static && sed -i '/elf_sys=yes/s:yes:no:' configure #321821 |
330 |
- use selinux || export ac_cv_{header_selinux_{context,flash,selinux}_h,search_setfilecon}=no #301782 |
331 |
- use userland_BSD && myconf="${myconf} -program-prefix=g --program-transform-name=s/stat/nustat/" |
332 |
- # kill/uptime - procps |
333 |
- # groups/su - shadow |
334 |
- # hostname - net-tools |
335 |
- if [[ ${CHOST} == *-mint* ]]; then |
336 |
- myconf="${myconf} --enable-install-program=arch,hostname,kill,uptime" |
337 |
- myconf="${myconf} --enable-no-install-program=groups,su" |
338 |
- else |
339 |
- myconf="${myconf} --enable-install-program=arch" |
340 |
- myconf="${myconf} --enable-no-install-program=groups,hostname,kill,su,uptime" |
341 |
- fi |
342 |
- |
343 |
- econf \ |
344 |
- --with-packager="Gentoo" \ |
345 |
- --with-packager-version="${PVR} (p${PATCH_VER:-0})" \ |
346 |
- --with-packager-bug-reports="http://bugs.gentoo.org/" \ |
347 |
- --enable-largefile \ |
348 |
- $(use caps || echo --disable-libcap) \ |
349 |
- $(use_enable nls) \ |
350 |
- $(use_enable acl) \ |
351 |
- $(use_enable xattr) \ |
352 |
- $(use_with gmp) \ |
353 |
- ${myconf} |
354 |
-} |
355 |
- |
356 |
-src_test() { |
357 |
- # Non-root tests will fail if the full path isnt |
358 |
- # accessible to non-root users |
359 |
- chmod -R go-w "${WORKDIR}" |
360 |
- chmod a+rx "${WORKDIR}" |
361 |
- |
362 |
- # coreutils tests like to do `mount` and such with temp dirs |
363 |
- # so make sure /etc/mtab is writable #265725 |
364 |
- # make sure /dev/loop* can be mounted #269758 |
365 |
- mkdir -p "${T}"/mount-wrappers |
366 |
- mkwrap() { |
367 |
- local w ww |
368 |
- for w in "$@" ; do |
369 |
- ww="${T}/mount-wrappers/${w}" |
370 |
- cat <<-EOF > "${ww}" |
371 |
- #!${EPREFIX}/bin/sh |
372 |
- exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@" |
373 |
- EOF |
374 |
- chmod a+rx "${ww}" |
375 |
- done |
376 |
- } |
377 |
- mkwrap mount umount |
378 |
- |
379 |
- addwrite /dev/full |
380 |
- #export RUN_EXPENSIVE_TESTS="yes" |
381 |
- #export FETISH_GROUPS="portage wheel" |
382 |
- env PATH="${T}/mount-wrappers:${PATH}" \ |
383 |
- emake -j1 -k check || die "make check failed" |
384 |
-} |
385 |
- |
386 |
-src_install() { |
387 |
- emake install DESTDIR="${D}" || die |
388 |
- dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO |
389 |
- |
390 |
- insinto /etc |
391 |
- newins src/dircolors.hin DIR_COLORS || die |
392 |
- |
393 |
- if [[ ${USERLAND} == "GNU" ]] ; then |
394 |
- cd "${ED}"/usr/bin |
395 |
- dodir /bin |
396 |
- # move critical binaries into /bin (required by FHS) |
397 |
- local fhs="cat chgrp chmod chown cp date dd df echo false ln ls |
398 |
- mkdir mknod mv pwd rm rmdir stty sync true uname" |
399 |
- |
400 |
- [[ ${CHOST} == *-mint* ]] && fhs="${fhs} hostname" |
401 |
- |
402 |
- mv ${fhs} ../../bin/ || die "could not move fhs bins" |
403 |
- # move critical binaries into /bin (common scripts) |
404 |
- local com="basename chroot cut dir dirname du env expr head mkfifo |
405 |
- mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" |
406 |
- mv ${com} ../../bin/ || die "could not move common bins" |
407 |
- # create a symlink for uname in /usr/bin/ since autotools require it |
408 |
- local x |
409 |
- for x in ${com} uname ; do |
410 |
- dosym /bin/${x} /usr/bin/${x} || die |
411 |
- done |
412 |
- else |
413 |
- # For now, drop the man pages, collides with the ones of the system. |
414 |
- rm -rf "${ED}"/usr/share/man |
415 |
- fi |
416 |
- |
417 |
-} |
418 |
- |
419 |
-pkg_postinst() { |
420 |
- ewarn "Make sure you run 'hash -r' in your active shells." |
421 |
- ewarn "You should also re-source your shell settings for LS_COLORS" |
422 |
- ewarn " changes, such as: source /etc/profile" |
423 |
- |
424 |
- # Help out users using experimental filesystems |
425 |
- if grep -qs btrfs "${EROOT}"/etc/fstab /proc/mounts ; then |
426 |
- case $(uname -r) in |
427 |
- 2.6.[12][0-9]|2.6.3[0-7]*) |
428 |
- ewarn "You are running a system with a buggy btrfs driver." |
429 |
- ewarn "Please upgrade your kernel to avoid silent corruption." |
430 |
- ewarn "See: https://bugs.gentoo.org/353907" |
431 |
- ;; |
432 |
- esac |
433 |
- fi |
434 |
-} |
435 |
|
436 |
diff --git a/sys-apps/coreutils/coreutils-8.22.ebuild b/sys-apps/coreutils/coreutils-8.22.ebuild |
437 |
deleted file mode 100644 |
438 |
index 2ba4861314..0000000000 |
439 |
--- a/sys-apps/coreutils/coreutils-8.22.ebuild |
440 |
+++ /dev/null |
441 |
@@ -1,189 +0,0 @@ |
442 |
-# Copyright 1999-2017 Gentoo Foundation |
443 |
-# Distributed under the terms of the GNU General Public License v2 |
444 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/coreutils-8.22.ebuild,v 1.4 2014/04/27 19:08:29 vapier Exp $ |
445 |
- |
446 |
-EAPI="3" |
447 |
- |
448 |
-inherit eutils flag-o-matic toolchain-funcs |
449 |
- |
450 |
-PATCH_VER="1.0" |
451 |
-DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" |
452 |
-HOMEPAGE="http://www.gnu.org/software/coreutils/" |
453 |
-SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
454 |
- mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz |
455 |
- http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz |
456 |
- mirror://gentoo/${P}-man-r1.tar.xz |
457 |
- http://dev.gentoo.org/~vapier/dist/${P}-man-r1.tar.xz" |
458 |
- |
459 |
-LICENSE="GPL-3" |
460 |
-SLOT="0" |
461 |
-KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
462 |
-IUSE="acl caps gmp nls selinux static userland_BSD vanilla xattr" |
463 |
- |
464 |
-LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) |
465 |
- caps? ( sys-libs/libcap ) |
466 |
- gmp? ( dev-libs/gmp[static-libs] ) |
467 |
- xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )" |
468 |
-RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} ) |
469 |
- selinux? ( sys-libs/libselinux ) |
470 |
- nls? ( virtual/libintl ) |
471 |
- !app-misc/realpath |
472 |
- !<sys-apps/util-linux-2.13 |
473 |
- !sys-apps/stat |
474 |
- !net-mail/base64 |
475 |
- !sys-apps/mktemp |
476 |
- !<app-forensics/tct-1.18-r1 |
477 |
- !<net-fs/netatalk-2.0.3-r4 |
478 |
- !<sci-chemistry/ccp4-6.1.1" |
479 |
-DEPEND="${RDEPEND} |
480 |
- static? ( ${LIB_DEPEND} ) |
481 |
- app-arch/xz-utils" |
482 |
- |
483 |
-src_prepare() { |
484 |
- if ! use vanilla ; then |
485 |
- use_if_iuse unicode || rm -f "${WORKDIR}"/patch/000_all_coreutils-i18n.patch |
486 |
- EPATCH_SUFFIX="patch" \ |
487 |
- PATCHDIR="${WORKDIR}/patch" \ |
488 |
- EPATCH_EXCLUDE="001_all_coreutils-gen-progress-bar.patch" \ |
489 |
- epatch |
490 |
- fi |
491 |
- |
492 |
- epatch "${FILESDIR}"/${PN}-8.22-mint.patch |
493 |
- |
494 |
- # Since we've patched many .c files, the make process will try to |
495 |
- # re-build the manpages by running `./bin --help`. When doing a |
496 |
- # cross-compile, we can't do that since 'bin' isn't a native bin. |
497 |
- # Also, it's not like we changed the usage on any of these things, |
498 |
- # so let's just update the timestamps and skip the help2man step. |
499 |
- set -- man/*.x |
500 |
- touch ${@/%x/1} |
501 |
- |
502 |
- # Avoid perl dep for compiled in dircolors default #348642 |
503 |
- if ! has_version dev-lang/perl ; then |
504 |
- touch src/dircolors.h |
505 |
- touch ${@/%x/1} |
506 |
- fi |
507 |
-} |
508 |
- |
509 |
-src_configure() { |
510 |
- local myconf='' |
511 |
- if tc-is-cross-compiler && [[ ${CHOST} == *linux* ]] ; then |
512 |
- export fu_cv_sys_stat_statfs2_bsize=yes #311569 |
513 |
- export gl_cv_func_realpath_works=yes #416629 |
514 |
- fi |
515 |
- |
516 |
- export gl_cv_func_mknod_works=yes #409919 |
517 |
- use static && append-ldflags -static && sed -i '/elf_sys=yes/s:yes:no:' configure #321821 |
518 |
- use selinux || export ac_cv_{header_selinux_{context,flash,selinux}_h,search_setfilecon}=no #301782 |
519 |
- use userland_BSD && myconf="${myconf} -program-prefix=g --program-transform-name=s/stat/nustat/" |
520 |
- # kill/uptime - procps |
521 |
- # groups/su - shadow |
522 |
- # hostname - net-tools |
523 |
- if [[ ${CHOST} == *-mint* ]]; then |
524 |
- myconf="${myconf} --enable-install-program=arch,hostname,kill,uptime" |
525 |
- myconf="${myconf} --enable-no-install-program=groups,su" |
526 |
- else |
527 |
- myconf="${myconf} --enable-install-program=arch" |
528 |
- myconf="${myconf} --enable-no-install-program=groups,hostname,kill,su,uptime" |
529 |
- fi |
530 |
- |
531 |
- econf \ |
532 |
- --with-packager="Gentoo" \ |
533 |
- --with-packager-version="${PVR} (p${PATCH_VER:-0})" \ |
534 |
- --with-packager-bug-reports="http://bugs.gentoo.org/" \ |
535 |
- --enable-largefile \ |
536 |
- $(use caps || echo --disable-libcap) \ |
537 |
- $(use_enable nls) \ |
538 |
- $(use_enable acl) \ |
539 |
- $(use_enable xattr) \ |
540 |
- $(use_with gmp) \ |
541 |
- ${myconf} |
542 |
-} |
543 |
- |
544 |
-src_test() { |
545 |
- # Non-root tests will fail if the full path isnt |
546 |
- # accessible to non-root users |
547 |
- chmod -R go-w "${WORKDIR}" |
548 |
- chmod a+rx "${WORKDIR}" |
549 |
- |
550 |
- # coreutils tests like to do `mount` and such with temp dirs |
551 |
- # so make sure /etc/mtab is writable #265725 |
552 |
- # make sure /dev/loop* can be mounted #269758 |
553 |
- mkdir -p "${T}"/mount-wrappers |
554 |
- mkwrap() { |
555 |
- local w ww |
556 |
- for w in "$@" ; do |
557 |
- ww="${T}/mount-wrappers/${w}" |
558 |
- cat <<-EOF > "${ww}" |
559 |
- #!${EPREFIX}/bin/sh |
560 |
- exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@" |
561 |
- EOF |
562 |
- chmod a+rx "${ww}" |
563 |
- done |
564 |
- } |
565 |
- mkwrap mount umount |
566 |
- |
567 |
- addwrite /dev/full |
568 |
- #export RUN_EXPENSIVE_TESTS="yes" |
569 |
- #export FETISH_GROUPS="portage wheel" |
570 |
- env PATH="${T}/mount-wrappers:${PATH}" \ |
571 |
- emake -j1 -k check || die "make check failed" |
572 |
-} |
573 |
- |
574 |
-src_install() { |
575 |
- emake install DESTDIR="${D}" || die |
576 |
- dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO |
577 |
- |
578 |
- insinto /etc |
579 |
- newins src/dircolors.hin DIR_COLORS || die |
580 |
- |
581 |
- if [[ ${USERLAND} == "GNU" ]] ; then |
582 |
- cd "${ED}"/usr/bin |
583 |
- dodir /bin |
584 |
- # move critical binaries into /bin (required by FHS) |
585 |
- local fhs="cat chgrp chmod chown cp date dd df echo false ln ls |
586 |
- mkdir mknod mv pwd rm rmdir stty sync true uname" |
587 |
- |
588 |
- [[ ${CHOST} == *-mint* ]] && fhs="${fhs} hostname" |
589 |
- |
590 |
- mv ${fhs} ../../bin/ || die "could not move fhs bins" |
591 |
- # move critical binaries into /bin (common scripts) |
592 |
- local com="basename chroot cut dir dirname du env expr head mkfifo |
593 |
- mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" |
594 |
- mv ${com} ../../bin/ || die "could not move common bins" |
595 |
- # create a symlink for uname in /usr/bin/ since autotools require it |
596 |
- local x |
597 |
- for x in ${com} uname ; do |
598 |
- dosym /bin/${x} /usr/bin/${x} || die |
599 |
- done |
600 |
- else |
601 |
- # For now, drop the man pages, collides with the ones of the system. |
602 |
- rm -rf "${ED}"/usr/share/man |
603 |
- fi |
604 |
- |
605 |
-} |
606 |
- |
607 |
-pkg_postinst() { |
608 |
- ewarn "Make sure you run 'hash -r' in your active shells." |
609 |
- ewarn "You should also re-source your shell settings for LS_COLORS" |
610 |
- ewarn " changes, such as: source /etc/profile" |
611 |
- |
612 |
- # /bin/dircolors sometimes sticks around #224823 |
613 |
- if [ -e "${EROOT}/usr/bin/dircolors" ] && [ -e "${EROOT}/bin/dircolors" ] ; then |
614 |
- if strings "${EROOT}/bin/dircolors" | grep -qs "GNU coreutils" ; then |
615 |
- einfo "Deleting orphaned GNU /bin/dircolors for you" |
616 |
- rm -f "${EROOT}/bin/dircolors" |
617 |
- fi |
618 |
- fi |
619 |
- |
620 |
- # Help out users using experimental filesystems |
621 |
- if grep -qs btrfs "${EROOT}"/etc/fstab /proc/mounts ; then |
622 |
- case $(uname -r) in |
623 |
- 2.6.[12][0-9]|2.6.3[0-7]*) |
624 |
- ewarn "You are running a system with a buggy btrfs driver." |
625 |
- ewarn "Please upgrade your kernel to avoid silent corruption." |
626 |
- ewarn "See: https://bugs.gentoo.org/353907" |
627 |
- ;; |
628 |
- esac |
629 |
- fi |
630 |
-} |
631 |
|
632 |
diff --git a/sys-apps/coreutils/coreutils-8.23-r00.1.ebuild b/sys-apps/coreutils/coreutils-8.28-r1.ebuild |
633 |
similarity index 52% |
634 |
rename from sys-apps/coreutils/coreutils-8.23-r00.1.ebuild |
635 |
rename to sys-apps/coreutils/coreutils-8.28-r1.ebuild |
636 |
index 36c9c17113..fc63a2986a 100644 |
637 |
--- a/sys-apps/coreutils/coreutils-8.23-r00.1.ebuild |
638 |
+++ b/sys-apps/coreutils/coreutils-8.28-r1.ebuild |
639 |
@@ -1,61 +1,100 @@ |
640 |
# Copyright 1999-2017 Gentoo Foundation |
641 |
# Distributed under the terms of the GNU General Public License v2 |
642 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/coreutils-8.23.ebuild,v 1.11 2015/07/30 12:28:54 ago Exp $ |
643 |
+# $Id$ |
644 |
|
645 |
# To generate the man pages, unpack the upstream tarball and run: |
646 |
-# ./configure --enable-install-program=arch,coreutils |
647 |
+# ./configure --enable-install-program=arch,coreutils,hostname,kill |
648 |
# make |
649 |
# cd .. |
650 |
# tar cf - coreutils-*/man/*.[0-9] | xz > coreutils-<ver>-man.tar.xz |
651 |
|
652 |
-EAPI="4" |
653 |
+EAPI="6" |
654 |
|
655 |
-inherit eutils flag-o-matic toolchain-funcs |
656 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
657 |
+ |
658 |
+inherit eutils flag-o-matic python-any-r1 toolchain-funcs multilib |
659 |
|
660 |
PATCH_VER="1.1" |
661 |
-DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" |
662 |
-HOMEPAGE="http://www.gnu.org/software/coreutils/" |
663 |
+DESCRIPTION="Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)" |
664 |
+HOMEPAGE="https://www.gnu.org/software/coreutils/" |
665 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
666 |
mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz |
667 |
- http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz |
668 |
+ https://dev.gentoo.org/~whissi/dist/${PN}/${P}-patches-${PATCH_VER}.tar.xz |
669 |
mirror://gentoo/${P}-man.tar.xz |
670 |
- http://dev.gentoo.org/~vapier/dist/${P}-man.tar.xz" |
671 |
+ https://dev.gentoo.org/~polynomial-c/dist/${P}-man.tar.xz" |
672 |
|
673 |
LICENSE="GPL-3" |
674 |
SLOT="0" |
675 |
-KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
676 |
-IUSE="acl caps gmp multicall nls selinux static userland_BSD vanilla xattr" |
677 |
+KEYWORDS="~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
678 |
+IUSE="acl caps elibc_glibc gmp hostname kill multicall nls selinux static +stdbuf test uptime userland_BSD vanilla xattr" |
679 |
|
680 |
LIB_DEPEND="acl? ( sys-apps/acl[static-libs] ) |
681 |
caps? ( sys-libs/libcap ) |
682 |
- gmp? ( dev-libs/gmp[static-libs] ) |
683 |
- xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )" |
684 |
+ gmp? ( dev-libs/gmp:=[static-libs] ) |
685 |
+ xattr? ( !elibc_glibc? ( sys-apps/attr[static-libs] ) )" |
686 |
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} ) |
687 |
selinux? ( sys-libs/libselinux ) |
688 |
- nls? ( virtual/libintl ) |
689 |
+ nls? ( virtual/libintl )" |
690 |
+DEPEND="${RDEPEND} |
691 |
+ static? ( ${LIB_DEPEND} ) |
692 |
+ app-arch/xz-utils |
693 |
+ test? ( |
694 |
+ dev-lang/perl |
695 |
+ dev-perl/Expect |
696 |
+ !userland_BSD? ( |
697 |
+ dev-util/strace |
698 |
+ ) |
699 |
+ ${PYTHON_DEPS} |
700 |
+ $(python_gen_any_dep 'dev-python/pyinotify[${PYTHON_USEDEP}]') |
701 |
+ )" |
702 |
+RDEPEND+=" |
703 |
+ hostname? ( !sys-apps/net-tools[hostname] ) |
704 |
+ kill? ( |
705 |
+ !sys-apps/util-linux[kill] |
706 |
+ !sys-process/procps[kill] |
707 |
+ ) |
708 |
!app-misc/realpath |
709 |
!<sys-apps/util-linux-2.13 |
710 |
+ !<sys-apps/sandbox-2.10-r4 |
711 |
!sys-apps/stat |
712 |
!net-mail/base64 |
713 |
!sys-apps/mktemp |
714 |
!<app-forensics/tct-1.18-r1 |
715 |
- !<net-fs/netatalk-2.0.3-r4 |
716 |
- !<sci-chemistry/ccp4-6.1.1" |
717 |
-DEPEND="${RDEPEND} |
718 |
- static? ( ${LIB_DEPEND} ) |
719 |
- app-arch/xz-utils" |
720 |
+ !<net-fs/netatalk-2.0.3-r4" |
721 |
+ |
722 |
+pkg_setup() { |
723 |
+ if use test ; then |
724 |
+ python-any-r1_pkg_setup |
725 |
+ fi |
726 |
+} |
727 |
|
728 |
src_prepare() { |
729 |
if ! use vanilla ; then |
730 |
use_if_iuse unicode || rm -f "${WORKDIR}"/patch/000_all_coreutils-i18n.patch |
731 |
- EPATCH_SUFFIX="patch" \ |
732 |
- PATCHDIR="${WORKDIR}/patch" \ |
733 |
- EPATCH_EXCLUDE="001_all_coreutils-gen-progress-bar.patch" \ |
734 |
- epatch |
735 |
+ #rm "${WORKDIR}"/patch/001_all_coreutils-gen-progress-bar.patch || die |
736 |
+ eapply "${WORKDIR}"/patch/*.patch |
737 |
fi |
738 |
|
739 |
+ eapply_user |
740 |
+ |
741 |
epatch "${FILESDIR}"/${PN}-8.22-mint.patch |
742 |
- epatch "${FILESDIR}"/${PN}-8.23-non-elf.patch |
743 |
+ |
744 |
+ # fixup libstdbuf non-libtool stuff |
745 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
746 |
+ sed -i \ |
747 |
+ -e "/src_libstdbuf_so_LDFLAGS = -shared/s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/libexec/coreutils/libstdbuf.dylib:" \ |
748 |
+ Makefile.in \ |
749 |
+ || die |
750 |
+ elif use elibc_Cygwin ; then |
751 |
+ epatch "${FILESDIR}"/${P}-cygwin-3.patch |
752 |
+ sed -i -e 's|\(libstdbuf\.so\)$(EXEEXT)|\1|g' Makefile.in || die |
753 |
+ fi |
754 |
+ sed -i \ |
755 |
+ -e "s/libstdbuf\\.so/libstdbuf$(get_libname)/" \ |
756 |
+ src/stdbuf.c \ |
757 |
+ Makefile.in \ |
758 |
+ configure \ |
759 |
+ || die |
760 |
|
761 |
# Since we've patched many .c files, the make process will try to |
762 |
# re-build the manpages by running `./bin --help`. When doing a |
763 |
@@ -69,13 +108,26 @@ src_prepare() { |
764 |
|
765 |
# Avoid perl dep for compiled in dircolors default #348642 |
766 |
if ! has_version dev-lang/perl ; then |
767 |
- touch src/dircolors.h |
768 |
+ touch src/{dircolors,fs-is-local,fs}.h # more? |
769 |
touch ${@/%x/1} |
770 |
fi |
771 |
} |
772 |
|
773 |
src_configure() { |
774 |
- local myconf='' |
775 |
+ local myconf=( |
776 |
+ --with-packager="Gentoo" |
777 |
+ --with-packager-version="${PVR} (p${PATCH_VER:-0})" |
778 |
+ --with-packager-bug-reports="https://bugs.gentoo.org/" |
779 |
+ --enable-install-program="arch,$(usev hostname),$(usev kill),$(usev stdbuf),$(usev uptime)" |
780 |
+ --enable-no-install-program="groups,$(usev !hostname),$(usev !kill),$(usev !stdbuf),su,$(usev !uptime)" |
781 |
+ --enable-largefile |
782 |
+ $(use caps || echo --disable-libcap) |
783 |
+ $(use_enable nls) |
784 |
+ $(use_enable acl) |
785 |
+ $(use_enable multicall single-binary) |
786 |
+ $(use_enable xattr) |
787 |
+ $(use_with gmp) |
788 |
+ ) |
789 |
if tc-is-cross-compiler && [[ ${CHOST} == *linux* ]] ; then |
790 |
export fu_cv_sys_stat_statfs2_bsize=yes #311569 |
791 |
export gl_cv_func_realpath_works=yes #416629 |
792 |
@@ -84,33 +136,23 @@ src_configure() { |
793 |
export gl_cv_func_mknod_works=yes #409919 |
794 |
use static && append-ldflags -static && sed -i '/elf_sys=yes/s:yes:no:' configure #321821 |
795 |
use selinux || export ac_cv_{header_selinux_{context,flash,selinux}_h,search_setfilecon}=no #301782 |
796 |
- use userland_BSD && myconf="${myconf} -program-prefix=g --program-transform-name=s/stat/nustat/" |
797 |
+ use userland_BSD && myconf+=( -program-prefix=g --program-transform-name=s/stat/nustat/ ) |
798 |
# kill/uptime - procps |
799 |
# groups/su - shadow |
800 |
# hostname - net-tools |
801 |
- if [[ ${CHOST} == *-mint* ]]; then |
802 |
- myconf="${myconf} --enable-install-program=arch,hostname,kill,uptime" |
803 |
- myconf="${myconf} --enable-no-install-program=groups,su,stdbuf" |
804 |
- else |
805 |
- myconf="${myconf} --enable-install-program=arch" |
806 |
- myconf="${myconf} --enable-no-install-program=groups,hostname,kill,su,uptime" |
807 |
- fi |
808 |
- |
809 |
- econf \ |
810 |
- --with-packager="Gentoo" \ |
811 |
- --with-packager-version="${PVR} (p${PATCH_VER:-0})" \ |
812 |
- --with-packager-bug-reports="http://bugs.gentoo.org/" \ |
813 |
- --enable-largefile \ |
814 |
- $(use caps || echo --disable-libcap) \ |
815 |
- $(use_enable nls) \ |
816 |
- $(use_enable acl) \ |
817 |
- $(use_enable multicall single-binary) \ |
818 |
- $(use_enable xattr) \ |
819 |
- $(use_with gmp) \ |
820 |
- ${myconf} |
821 |
+ econf ${myconf[@]} |
822 |
} |
823 |
|
824 |
src_test() { |
825 |
+ # Known to fail with FEATURES=usersandbox (bug #439574): |
826 |
+ # - tests/du/long-from-unreadable.sh} (bug #413621) |
827 |
+ # - tests/rm/deep-2.sh (bug #413621) |
828 |
+ # - tests/dd/no-allocate.sh (bug #629660) |
829 |
+ if has usersandbox $FEATURES ; then |
830 |
+ ewarn "You are emerging ${P} with 'usersandbox' enabled." \ |
831 |
+ "Expect some test failures or emerge with 'FEATURES=-usersandbox'!" |
832 |
+ fi |
833 |
+ |
834 |
# Non-root tests will fail if the full path isn't |
835 |
# accessible to non-root users |
836 |
chmod -R go-w "${WORKDIR}" |
837 |
@@ -147,29 +189,36 @@ src_install() { |
838 |
newins src/dircolors.hin DIR_COLORS |
839 |
|
840 |
if [[ ${USERLAND} == "GNU" ]] ; then |
841 |
- cd "${ED}"/usr/bin |
842 |
+ cd "${ED%/}"/usr/bin || die |
843 |
dodir /bin |
844 |
# move critical binaries into /bin (required by FHS) |
845 |
local fhs="cat chgrp chmod chown cp date dd df echo false ln ls |
846 |
- mkdir mknod mv pwd rm rmdir stty sync true uname" |
847 |
- |
848 |
- [[ ${CHOST} == *-mint* ]] && fhs="${fhs} hostname" |
849 |
- |
850 |
+ mkdir mknod mv pwd rm rmdir stty sync true uname |
851 |
+ $(usev hostname)" |
852 |
mv ${fhs} ../../bin/ || die "could not move fhs bins" |
853 |
+ if use kill; then |
854 |
+ mv kill ../../bin/ || die |
855 |
+ fi |
856 |
# move critical binaries into /bin (common scripts) |
857 |
local com="basename chroot cut dir dirname du env expr head mkfifo |
858 |
mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" |
859 |
mv ${com} ../../bin/ || die "could not move common bins" |
860 |
# create a symlink for uname in /usr/bin/ since autotools require it |
861 |
+ # as long as /bin resolves to a different directory than /usr/bin |
862 |
local x |
863 |
+ [[ ${EROOT}bin/. -ef ${EROOT}usr/bin/. ]] || |
864 |
for x in ${com} uname ; do |
865 |
- dosym /bin/${x} /usr/bin/${x} |
866 |
+ dosym ../../bin/${x} /usr/bin/${x} |
867 |
done |
868 |
else |
869 |
# For now, drop the man pages, collides with the ones of the system. |
870 |
- rm -rf "${ED}"/usr/share/man |
871 |
+ rm -rf "${ED%/}"/usr/share/man |
872 |
fi |
873 |
|
874 |
+ if use elibc_Cygwin ; then |
875 |
+ ! use kill || mv "${ED}"/bin/{,g}kill || die |
876 |
+ mv "${ED}"/usr/libexec/${PN}/libstdbuf$(get_libname){.exe,} || die |
877 |
+ fi |
878 |
} |
879 |
|
880 |
pkg_postinst() { |
881 |
@@ -178,7 +227,7 @@ pkg_postinst() { |
882 |
ewarn " changes, such as: source /etc/profile" |
883 |
|
884 |
# Help out users using experimental filesystems |
885 |
- if grep -qs btrfs "${EROOT}"/etc/fstab /proc/mounts ; then |
886 |
+ if grep -qs btrfs "${EROOT%/}"/etc/fstab /proc/mounts ; then |
887 |
case $(uname -r) in |
888 |
2.6.[12][0-9]|2.6.3[0-7]*) |
889 |
ewarn "You are running a system with a buggy btrfs driver." |
890 |
|
891 |
diff --git a/sys-apps/coreutils/files/coreutils-7.2-mint.patch b/sys-apps/coreutils/files/coreutils-7.2-mint.patch |
892 |
deleted file mode 100644 |
893 |
index d0defcefcd..0000000000 |
894 |
--- a/sys-apps/coreutils/files/coreutils-7.2-mint.patch |
895 |
+++ /dev/null |
896 |
@@ -1,152 +0,0 @@ |
897 |
-http://bugs.gentoo.org/show_bug.cgi?id=260551 |
898 |
-http://bugs.gentoo.org/show_bug.cgi?id=264763 |
899 |
-https://savannah.gnu.org/patch/index.php?6758 |
900 |
- |
901 |
-diff -u lib/mountlist.c lib/mountlist.c |
902 |
---- lib/mountlist.c 2009-02-07 09:58:37.000000000 +0000 |
903 |
-+++ lib/mountlist.c 2009-04-08 04:04:19.000000000 +0000 |
904 |
-@@ -336,6 +336,7 @@ |
905 |
- If NEED_FS_TYPE is true, ensure that the file system type fields in |
906 |
- the returned list are valid. Otherwise, they might not be. */ |
907 |
- |
908 |
-+#ifndef __MINT__ |
909 |
- struct mount_entry * |
910 |
- read_file_system_list (bool need_fs_type) |
911 |
- { |
912 |
-@@ -881,3 +882,82 @@ |
913 |
- return NULL; |
914 |
- } |
915 |
- } |
916 |
-+ |
917 |
-+#else /* __MINT__ */ |
918 |
-+ |
919 |
-+#include <mintbind.h> |
920 |
-+#include <osbind.h> |
921 |
-+#include <sys/statfs.h> |
922 |
-+#include <mint/dcntl.h> |
923 |
-+ |
924 |
-+/* get the list of available drives */ |
925 |
-+static long |
926 |
-+get_drives(void) |
927 |
-+{ |
928 |
-+ long drive_bits; |
929 |
-+ |
930 |
-+ drive_bits = Dsetdrv(Dgetdrv()); |
931 |
-+ drive_bits &= ~(1|2); /* exclude all floppies */ |
932 |
-+ |
933 |
-+ return drive_bits; |
934 |
-+} |
935 |
-+ |
936 |
-+struct mount_entry * |
937 |
-+read_file_system_list (bool need_fs_type) |
938 |
-+{ |
939 |
-+ struct mount_entry *mount_list; |
940 |
-+ struct mount_entry *me; |
941 |
-+ struct mount_entry *mtail; |
942 |
-+ struct statfs fsp; |
943 |
-+ struct fs_info info; |
944 |
-+ long drive_bits; |
945 |
-+ int i, j; |
946 |
-+ char lw[] = "a:/", str[25]; |
947 |
-+ |
948 |
-+ /* Start the list off with a dummy entry. */ |
949 |
-+ me = xmalloc (sizeof (*me)); |
950 |
-+ me->me_next = NULL; |
951 |
-+ mount_list = mtail = me; |
952 |
-+ |
953 |
-+ drive_bits = get_drives(); |
954 |
-+ for (i = 0; i < 32; i++) |
955 |
-+ { |
956 |
-+ if (drive_bits & (1L << i)) |
957 |
-+ { |
958 |
-+ if (i < 26) |
959 |
-+ lw[0] = 'a' + i; |
960 |
-+ else |
961 |
-+ lw[0] = '1' + i - 26; |
962 |
-+ |
963 |
-+ if(statfs(lw, &fsp) == 0) |
964 |
-+ { |
965 |
-+ char name[32]; |
966 |
-+ |
967 |
-+ me = xmalloc (sizeof (*me)); |
968 |
-+ |
969 |
-+ me->me_devname = xstrdup(lw); |
970 |
-+ me->me_mountdir = xstrdup("u:/"); |
971 |
-+ |
972 |
-+ if (lw[0] < 'a') /* 1: .. 6: */ |
973 |
-+ me->me_dev = lw[0] - '1' + 27; |
974 |
-+ else |
975 |
-+ me->me_dev = lw[0] - 'a'; |
976 |
-+ |
977 |
-+ get_fsname(lw, NULL, name); |
978 |
-+ me->me_type = xstrdup(name); |
979 |
-+ /* Add to the linked list. */ |
980 |
-+ me->me_next = NULL; |
981 |
-+ mtail->me_next = me; |
982 |
-+ mtail = me; |
983 |
-+ } |
984 |
-+ } |
985 |
-+ } |
986 |
-+ |
987 |
-+ /* Free the dummy head. */ |
988 |
-+ me = mount_list; |
989 |
-+ mount_list = mount_list->me_next; |
990 |
-+ free(me); |
991 |
-+ return mount_list; |
992 |
-+} |
993 |
-+ |
994 |
-+#endif /* __MINT__ */ |
995 |
-diff -u src/df.c src/df.c |
996 |
---- src/df.c 2009-02-14 10:18:27.000000000 +0000 |
997 |
-+++ src/df.c 2009-04-08 04:04:19.000000000 +0000 |
998 |
-@@ -337,7 +337,12 @@ |
999 |
- It would be better to report on the unmounted file system, |
1000 |
- but statfs doesn't do that on most systems. */ |
1001 |
- if (!stat_file) |
1002 |
-+#ifndef __MINT__ |
1003 |
- stat_file = mount_point ? mount_point : disk; |
1004 |
-+#else |
1005 |
-+ /* MiNT: mount_point is always u:/, so use disk */ |
1006 |
-+ stat_file = disk; |
1007 |
-+#endif |
1008 |
- |
1009 |
- if (force_fsu) |
1010 |
- fsu = *force_fsu; |
1011 |
-diff -u src/uptime.c src/uptime.c |
1012 |
---- src/uptime.c 2009-01-21 13:33:41.000000000 +0000 |
1013 |
-+++ src/uptime.c 2009-04-08 04:04:19.000000000 +0000 |
1014 |
-@@ -17,6 +17,9 @@ |
1015 |
- /* Created by hacking who.c by Kaveh Ghazi ghazi@××××××××××××.edu. */ |
1016 |
- |
1017 |
- #include <config.h> |
1018 |
-+#ifdef __MINT__ |
1019 |
-+#define HAVE_PROC_UPTIME 1 |
1020 |
-+#endif |
1021 |
- #include <getopt.h> |
1022 |
- #include <stdio.h> |
1023 |
- |
1024 |
-@@ -62,7 +65,11 @@ |
1025 |
- #ifdef HAVE_PROC_UPTIME |
1026 |
- FILE *fp; |
1027 |
- |
1028 |
-+#ifdef __MINT__ |
1029 |
-+ fp = fopen ("/kern/uptime", "r"); |
1030 |
-+#else |
1031 |
- fp = fopen ("/proc/uptime", "r"); |
1032 |
-+#endif |
1033 |
- if (fp != NULL) |
1034 |
- { |
1035 |
- char buf[BUFSIZ]; |
1036 |
---- src/timeout.c 2009-04-10 01:37:34.000000000 +0000 |
1037 |
-+++ src/timeout.c 2009-04-10 01:38:20.000000000 +0000 |
1038 |
-@@ -202,6 +202,10 @@ |
1039 |
- return true; |
1040 |
- } |
1041 |
- |
1042 |
-+#ifdef __MINT__ |
1043 |
-+#define SA_RESTART 0 |
1044 |
-+#endif |
1045 |
-+ |
1046 |
- static void |
1047 |
- install_signal_handlers (void) |
1048 |
- { |
1049 |
|
1050 |
diff --git a/sys-apps/coreutils/files/coreutils-7.4-hppa-hpux.patch b/sys-apps/coreutils/files/coreutils-7.4-hppa-hpux.patch |
1051 |
deleted file mode 100644 |
1052 |
index e7ac52058d..0000000000 |
1053 |
--- a/sys-apps/coreutils/files/coreutils-7.4-hppa-hpux.patch |
1054 |
+++ /dev/null |
1055 |
@@ -1,11 +0,0 @@ |
1056 |
---- lib/striconv.c.orig 2009-06-17 16:09:08.000000000 +0200 |
1057 |
-+++ lib/striconv.c 2009-06-17 16:09:48.000000000 +0200 |
1058 |
-@@ -53,7 +53,7 @@ |
1059 |
- |
1060 |
- /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug. */ |
1061 |
- # if defined _LIBICONV_VERSION \ |
1062 |
-- || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) |
1063 |
-+ || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun || (defined __hppa && defined __hpux)) |
1064 |
- /* Set to the initial state. */ |
1065 |
- iconv (cd, NULL, NULL, NULL, NULL); |
1066 |
- # endif |
1067 |
|
1068 |
diff --git a/sys-apps/coreutils/files/coreutils-7.5-interix-setgroups.patch b/sys-apps/coreutils/files/coreutils-7.5-interix-setgroups.patch |
1069 |
deleted file mode 100644 |
1070 |
index 1e224682b5..0000000000 |
1071 |
--- a/sys-apps/coreutils/files/coreutils-7.5-interix-setgroups.patch |
1072 |
+++ /dev/null |
1073 |
@@ -1,15 +0,0 @@ |
1074 |
-diff -ru -x '*.Po' -x '*.Plo' coreutils-7.5.orig/src/chroot.c coreutils-7.5/src/chroot.c |
1075 |
---- coreutils-7.5.orig/src/chroot.c 2009-08-24 16:15:21 +0200 |
1076 |
-+++ coreutils-7.5/src/chroot.c 2009-08-24 16:17:18 +0200 |
1077 |
-@@ -103,7 +103,11 @@ |
1078 |
- |
1079 |
- if (ret == 0) |
1080 |
- { |
1081 |
-+ #ifndef __INTERIX |
1082 |
- ret = setgroups (n_gids, gids); |
1083 |
-+ #else |
1084 |
-+ ret = -1; |
1085 |
-+ #endif |
1086 |
- if (ret) |
1087 |
- error (0, errno, _("failed to set additional groups")); |
1088 |
- } |
1089 |
|
1090 |
diff --git a/sys-apps/coreutils/files/coreutils-8.23-non-elf.patch b/sys-apps/coreutils/files/coreutils-8.23-non-elf.patch |
1091 |
deleted file mode 100644 |
1092 |
index fb5ee3e222..0000000000 |
1093 |
--- a/sys-apps/coreutils/files/coreutils-8.23-non-elf.patch |
1094 |
+++ /dev/null |
1095 |
@@ -1,37 +0,0 @@ |
1096 |
-From 9ab1ca7f8b56d79306a6c2c2b1c3fe45253b2b31 Mon Sep 17 00:00:00 2001 |
1097 |
-From: Michael Haubenwallner <michael.haubenwallner@××××××××××××.com> |
1098 |
-Date: Wed, 11 Feb 2015 10:38:58 +0100 |
1099 |
-Subject: [PATCH] stdbuf: build for ELF systems only (sr#108676) |
1100 |
- |
1101 |
-* configure.ac: Avoid false positive when checking for ELF system. |
1102 |
---- |
1103 |
- configure.ac | 2 ++ |
1104 |
- 1 file changed, 2 insertions(+) |
1105 |
- |
1106 |
-#diff --git a/configure.ac b/configure.ac |
1107 |
-#index 3918f43..b88e6c0 100644 |
1108 |
-#--- a/configure.ac |
1109 |
-#+++ b/configure.ac |
1110 |
-@@ -472,6 +472,8 @@ AC_COMPILE_IFELSE( |
1111 |
- { |
1112 |
- #if __ELF__ |
1113 |
- stdbuf = 1; |
1114 |
-+ #else |
1115 |
-+ # error not an ELF system |
1116 |
- #endif |
1117 |
- }]],[[ |
1118 |
- return !(stdbuf == 1);]]) |
1119 |
--- |
1120 |
-2.0.5 |
1121 |
- |
1122 |
---- a/configure |
1123 |
-+++ b/configure |
1124 |
-@@ -62600,6 +62600,8 @@ |
1125 |
- { |
1126 |
- #if __ELF__ |
1127 |
- stdbuf = 1; |
1128 |
-+ #else |
1129 |
-+ # error not ELF |
1130 |
- #endif |
1131 |
- } |
1132 |
- int |
1133 |
|
1134 |
diff --git a/sys-apps/coreutils/files/coreutils-8.5-interix-double.patch b/sys-apps/coreutils/files/coreutils-8.5-interix-double.patch |
1135 |
deleted file mode 100644 |
1136 |
index 4507ddfedc..0000000000 |
1137 |
--- a/sys-apps/coreutils/files/coreutils-8.5-interix-double.patch |
1138 |
+++ /dev/null |
1139 |
@@ -1,69 +0,0 @@ |
1140 |
-Binary files coreutils-8.5.orig/src/seq and coreutils-8.5/src/seq differ |
1141 |
-diff -ru coreutils-8.5.orig/src/seq.c coreutils-8.5/src/seq.c |
1142 |
---- coreutils-8.5.orig/src/seq.c Mon Oct 18 11:26:56 2010 |
1143 |
-+++ coreutils-8.5/src/seq.c Mon Oct 18 13:03:01 2010 |
1144 |
-@@ -245,12 +245,12 @@ |
1145 |
- |
1146 |
- if (! out_of_range) |
1147 |
- { |
1148 |
-- long double x = first; |
1149 |
-- long double i; |
1150 |
-+ double x = first; |
1151 |
-+ double i; |
1152 |
- |
1153 |
- for (i = 1; ; i++) |
1154 |
- { |
1155 |
-- long double x0 = x; |
1156 |
-+ double x0 = x; |
1157 |
- printf (fmt, x); |
1158 |
- if (out_of_range) |
1159 |
- break; |
1160 |
-@@ -267,7 +267,7 @@ |
1161 |
- of stopping at 0.000002. */ |
1162 |
- |
1163 |
- bool print_extra_number = false; |
1164 |
-- long double x_val; |
1165 |
-+ double x_val; |
1166 |
- char *x_str; |
1167 |
- int x_strlen; |
1168 |
- setlocale (LC_NUMERIC, "C"); |
1169 |
-@@ -277,7 +277,7 @@ |
1170 |
- xalloc_die (); |
1171 |
- x_str[x_strlen - layout.suffix_len] = '\0'; |
1172 |
- |
1173 |
-- if (xstrtold (x_str + layout.prefix_len, NULL, &x_val, c_strtold) |
1174 |
-+ if (xstrtod (x_str + layout.prefix_len, NULL, &x_val, c_strtod) |
1175 |
- && x_val == last) |
1176 |
- { |
1177 |
- char *x0_str = NULL; |
1178 |
-@@ -303,7 +303,7 @@ |
1179 |
- static char const * |
1180 |
- get_default_format (operand first, operand step, operand last) |
1181 |
- { |
1182 |
-- static char format_buf[sizeof "%0.Lf" + 2 * INT_STRLEN_BOUND (int)]; |
1183 |
-+ static char format_buf[sizeof "%0.f" + 2 * INT_STRLEN_BOUND (int)]; |
1184 |
- |
1185 |
- int prec = MAX (first.precision, step.precision); |
1186 |
- |
1187 |
-@@ -323,18 +323,18 @@ |
1188 |
- if (width <= INT_MAX) |
1189 |
- { |
1190 |
- int w = width; |
1191 |
-- sprintf (format_buf, "%%0%d.%dLf", w, prec); |
1192 |
-+ sprintf (format_buf, "%%0%d.%df", w, prec); |
1193 |
- return format_buf; |
1194 |
- } |
1195 |
- } |
1196 |
- else |
1197 |
- { |
1198 |
-- sprintf (format_buf, "%%.%dLf", prec); |
1199 |
-+ sprintf (format_buf, "%%.%df", prec); |
1200 |
- return format_buf; |
1201 |
- } |
1202 |
- } |
1203 |
- |
1204 |
-- return "%Lg"; |
1205 |
-+ return "%g"; |
1206 |
- } |
1207 |
- |
1208 |
- int |
1209 |
|
1210 |
diff --git a/sys-apps/coreutils/files/coreutils-8.5-interix-warn-mount.patch b/sys-apps/coreutils/files/coreutils-8.5-interix-warn-mount.patch |
1211 |
deleted file mode 100644 |
1212 |
index dc15fe9557..0000000000 |
1213 |
--- a/sys-apps/coreutils/files/coreutils-8.5-interix-warn-mount.patch |
1214 |
+++ /dev/null |
1215 |
@@ -1,15 +0,0 @@ |
1216 |
-Make error about not reading list of mounted filesystems into a warning for interix. |
1217 |
- |
1218 |
-diff -pur coreutils-8.5.orig/configure coreutils-8.5/configure |
1219 |
---- coreutils-8.5.orig/configure |
1220 |
-+++ coreutils-8.5/configure |
1221 |
-@@ -33852,7 +33852,8 @@ |
1222 |
- fi |
1223 |
- |
1224 |
- if test -z "$ac_list_mounted_fs"; then |
1225 |
-- as_fn_error $? "could not determine how to read list of mounted file systems" "$LINENO" 5 |
1226 |
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine how to read list of mounted file systems" >&5 |
1227 |
-+$as_echo "$as_me: WARNING: could not determine how to read list of mounted file systems" >&2;} |
1228 |
- # FIXME -- no need to abort building the whole package |
1229 |
- # Can't build mountlist.c or anything that needs its functions |
1230 |
- fi |
1231 |
|
1232 |
diff --git a/sys-apps/coreutils/files/coreutils-8.8-hppa-hpux.patch b/sys-apps/coreutils/files/coreutils-8.8-hppa-hpux.patch |
1233 |
deleted file mode 100644 |
1234 |
index a5e2486ca7..0000000000 |
1235 |
--- a/sys-apps/coreutils/files/coreutils-8.8-hppa-hpux.patch |
1236 |
+++ /dev/null |
1237 |
@@ -1,11 +0,0 @@ |
1238 |
---- coreutils-8.8.orig/lib/striconv.c |
1239 |
-+++ coreutils-8.8/lib/striconv.c |
1240 |
-@@ -53,7 +53,7 @@ mem_cd_iconv (const char *src, size_t sr |
1241 |
- /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug. */ |
1242 |
- # if defined _LIBICONV_VERSION \ |
1243 |
- || !(((__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1) && !defined __UCLIBC__) \ |
1244 |
-- || defined __sun) |
1245 |
-+ || defined __sun || (defined __hppa && defined __hpux)) |
1246 |
- /* Set to the initial state. */ |
1247 |
- iconv (cd, NULL, NULL, NULL, NULL); |
1248 |
- # endif |
1249 |
|
1250 |
diff --git a/sys-apps/coreutils/files/coreutils-8.8-interix.patch b/sys-apps/coreutils/files/coreutils-8.8-interix.patch |
1251 |
deleted file mode 100644 |
1252 |
index 25107afc82..0000000000 |
1253 |
--- a/sys-apps/coreutils/files/coreutils-8.8-interix.patch |
1254 |
+++ /dev/null |
1255 |
@@ -1,18 +0,0 @@ |
1256 |
-already fixed in gnulib (mountlist support added), should hit coreutils soon. |
1257 |
-see also: http://www.mail-archive.com/bug-gnulib@×××.org/msg21257.html |
1258 |
- |
1259 |
-diff -ru -x '*.Po' -x '*.Plo' coreutils-8.8.orig/src/stat.c coreutils-8.8/src/stat.c |
1260 |
---- coreutils-8.8.orig/src/stat.c 2011-01-26 11:51:08 +0100 |
1261 |
-+++ coreutils-8.8/src/stat.c 2011-01-26 11:59:21 +0100 |
1262 |
-@@ -762,7 +762,11 @@ |
1263 |
- static bool tried_mount_list = false; |
1264 |
- if (!tried_mount_list) /* attempt/warn once per process. */ |
1265 |
- { |
1266 |
-+ #ifndef __INTERIX |
1267 |
- if (!(mount_list = read_file_system_list (false))) |
1268 |
-+ #else |
1269 |
-+ mount_list = NULL; |
1270 |
-+ #endif |
1271 |
- error (0, errno, "%s", _("cannot read table of mounted file systems")); |
1272 |
- tried_mount_list = true; |
1273 |
- } |