Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/coreutils: coreutils-8.22-r1.ebuild ChangeLog
Date: Sun, 27 Apr 2014 19:09:52
Message-Id: 20140427190946.E2FB22004B@flycatcher.gentoo.org
1 vapier 14/04/27 19:09:46
2
3 Modified: ChangeLog
4 Added: coreutils-8.22-r1.ebuild
5 Log:
6 Include new arch(1) man page #507528. Add fix from upstream for cp behavior #508638. Skip test ls/stat-free-color #415487.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.389 sys-apps/coreutils/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/coreutils/ChangeLog?rev=1.389&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/coreutils/ChangeLog?rev=1.389&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/coreutils/ChangeLog?r1=1.388&r2=1.389
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v
20 retrieving revision 1.388
21 retrieving revision 1.389
22 diff -u -r1.388 -r1.389
23 --- ChangeLog 27 Apr 2014 19:08:29 -0000 1.388
24 +++ ChangeLog 27 Apr 2014 19:09:46 -0000 1.389
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-apps/coreutils
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v 1.388 2014/04/27 19:08:29 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v 1.389 2014/04/27 19:09:46 vapier Exp $
30 +
31 +*coreutils-8.22-r1 (27 Apr 2014)
32 +
33 + 27 Apr 2014; Mike Frysinger <vapier@g.o> +coreutils-8.22-r1.ebuild:
34 + Include new arch(1) man page #507528. Add fix from upstream for cp behavior
35 + #508638. Skip test ls/stat-free-color #415487.
36
37 27 Apr 2014; Mike Frysinger <vapier@g.o> coreutils-8.22.ebuild:
38 Rebuild man page tarball to include arch(1) #507528 by dwfreed.
39
40
41
42 1.1 sys-apps/coreutils/coreutils-8.22-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/coreutils/coreutils-8.22-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/coreutils/coreutils-8.22-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: coreutils-8.22-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/coreutils-8.22-r1.ebuild,v 1.1 2014/04/27 19:09:46 vapier Exp $
52
53 EAPI="3"
54
55 inherit eutils flag-o-matic toolchain-funcs
56
57 PATCH_VER="1.1"
58 DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)"
59 HOMEPAGE="http://www.gnu.org/software/coreutils/"
60 SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
61 mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz
62 http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz
63 mirror://gentoo/${P}-man-r1.tar.xz
64 http://dev.gentoo.org/~vapier/dist/${P}-man-r1.tar.xz"
65
66 LICENSE="GPL-3"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~arm-linux ~x86-linux"
69 IUSE="acl caps gmp nls selinux static userland_BSD vanilla xattr"
70
71 LIB_DEPEND="acl? ( sys-apps/acl[static-libs] )
72 caps? ( sys-libs/libcap )
73 gmp? ( dev-libs/gmp[static-libs] )
74 xattr? ( !userland_BSD? ( sys-apps/attr[static-libs] ) )"
75 RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs]} )
76 selinux? ( sys-libs/libselinux )
77 nls? ( virtual/libintl )
78 !app-misc/realpath
79 !<sys-apps/util-linux-2.13
80 !sys-apps/stat
81 !net-mail/base64
82 !sys-apps/mktemp
83 !<app-forensics/tct-1.18-r1
84 !<net-fs/netatalk-2.0.3-r4
85 !<sci-chemistry/ccp4-6.1.1"
86 DEPEND="${RDEPEND}
87 static? ( ${LIB_DEPEND} )
88 app-arch/xz-utils"
89
90 src_prepare() {
91 if ! use vanilla ; then
92 use_if_iuse unicode || rm -f "${WORKDIR}"/patch/000_all_coreutils-i18n.patch
93 EPATCH_SUFFIX="patch" \
94 PATCHDIR="${WORKDIR}/patch" \
95 EPATCH_EXCLUDE="001_all_coreutils-gen-progress-bar.patch" \
96 epatch
97 fi
98
99 # Since we've patched many .c files, the make process will try to
100 # re-build the manpages by running `./bin --help`. When doing a
101 # cross-compile, we can't do that since 'bin' isn't a native bin.
102 # Also, it's not like we changed the usage on any of these things,
103 # so let's just update the timestamps and skip the help2man step.
104 set -- man/*.x
105 touch ${@/%x/1}
106
107 # Avoid perl dep for compiled in dircolors default #348642
108 if ! has_version dev-lang/perl ; then
109 touch src/dircolors.h
110 touch ${@/%x/1}
111 fi
112 }
113
114 src_configure() {
115 local myconf=''
116 if tc-is-cross-compiler && [[ ${CHOST} == *linux* ]] ; then
117 export fu_cv_sys_stat_statfs2_bsize=yes #311569
118 export gl_cv_func_realpath_works=yes #416629
119 fi
120
121 export gl_cv_func_mknod_works=yes #409919
122 use static && append-ldflags -static && sed -i '/elf_sys=yes/s:yes:no:' configure #321821
123 use selinux || export ac_cv_{header_selinux_{context,flash,selinux}_h,search_setfilecon}=no #301782
124 use userland_BSD && myconf="${myconf} -program-prefix=g --program-transform-name=s/stat/nustat/"
125 # kill/uptime - procps
126 # groups/su - shadow
127 # hostname - net-tools
128 econf \
129 --with-packager="Gentoo" \
130 --with-packager-version="${PVR} (p${PATCH_VER:-0})" \
131 --with-packager-bug-reports="http://bugs.gentoo.org/" \
132 --enable-install-program="arch" \
133 --enable-no-install-program="groups,hostname,kill,su,uptime" \
134 --enable-largefile \
135 $(use caps || echo --disable-libcap) \
136 $(use_enable nls) \
137 $(use_enable acl) \
138 $(use_enable xattr) \
139 $(use_with gmp) \
140 ${myconf}
141 }
142
143 src_test() {
144 # Non-root tests will fail if the full path isnt
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 || die "make check failed"
171 }
172
173 src_install() {
174 emake install DESTDIR="${D}" || die
175 dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO
176
177 insinto /etc
178 newins src/dircolors.hin DIR_COLORS || die
179
180 if [[ ${USERLAND} == "GNU" ]] ; then
181 cd "${ED}"/usr/bin
182 dodir /bin
183 # move critical binaries into /bin (required by FHS)
184 local fhs="cat chgrp chmod chown cp date dd df echo false ln ls
185 mkdir mknod mv pwd rm rmdir stty sync true uname"
186 mv ${fhs} ../../bin/ || die "could not move fhs bins"
187 # move critical binaries into /bin (common scripts)
188 local com="basename chroot cut dir dirname du env expr head mkfifo
189 mktemp readlink seq sleep sort tail touch tr tty vdir wc yes"
190 mv ${com} ../../bin/ || die "could not move common bins"
191 # create a symlink for uname in /usr/bin/ since autotools require it
192 local x
193 for x in ${com} uname ; do
194 dosym /bin/${x} /usr/bin/${x} || die
195 done
196 else
197 # For now, drop the man pages, collides with the ones of the system.
198 rm -rf "${ED}"/usr/share/man
199 fi
200
201 }
202
203 pkg_postinst() {
204 ewarn "Make sure you run 'hash -r' in your active shells."
205 ewarn "You should also re-source your shell settings for LS_COLORS"
206 ewarn " changes, such as: source /etc/profile"
207
208 # /bin/dircolors sometimes sticks around #224823
209 if [ -e "${EROOT}/usr/bin/dircolors" ] && [ -e "${EROOT}/bin/dircolors" ] ; then
210 if strings "${EROOT}/bin/dircolors" | grep -qs "GNU coreutils" ; then
211 einfo "Deleting orphaned GNU /bin/dircolors for you"
212 rm -f "${EROOT}/bin/dircolors"
213 fi
214 fi
215
216 # Help out users using experimental filesystems
217 if grep -qs btrfs "${EROOT}"/etc/fstab /proc/mounts ; then
218 case $(uname -r) in
219 2.6.[12][0-9]|2.6.3[0-7]*)
220 ewarn "You are running a system with a buggy btrfs driver."
221 ewarn "Please upgrade your kernel to avoid silent corruption."
222 ewarn "See: https://bugs.gentoo.org/353907"
223 ;;
224 esac
225 fi
226 }