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.10.ebuild ChangeLog
Date: Sat, 05 Feb 2011 18:53:42
Message-Id: 20110205185333.235E220054@flycatcher.gentoo.org
1 vapier 11/02/05 18:53:33
2
3 Modified: ChangeLog
4 Added: coreutils-8.10.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha20/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.319 sys-apps/coreutils/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/coreutils/ChangeLog?rev=1.319&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/coreutils/ChangeLog?rev=1.319&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/coreutils/ChangeLog?r1=1.318&r2=1.319
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v
20 retrieving revision 1.318
21 retrieving revision 1.319
22 diff -u -r1.318 -r1.319
23 --- ChangeLog 4 Jan 2011 19:19:38 -0000 1.318
24 +++ ChangeLog 5 Feb 2011 18:53:33 -0000 1.319
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/coreutils
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v 1.318 2011/01/04 19:19:38 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v 1.319 2011/02/05 18:53:33 vapier Exp $
30 +
31 +*coreutils-8.10 (05 Feb 2011)
32 +
33 + 05 Feb 2011; Mike Frysinger <vapier@g.o> +coreutils-8.10.ebuild:
34 + Version bump.
35
36 *coreutils-8.9 (04 Jan 2011)
37
38
39
40
41 1.1 sys-apps/coreutils/coreutils-8.10.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/coreutils/coreutils-8.10.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/coreutils/coreutils-8.10.ebuild?rev=1.1&content-type=text/plain
45
46 Index: coreutils-8.10.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/coreutils-8.10.ebuild,v 1.1 2011/02/05 18:53:33 vapier Exp $
51
52 EAPI="3"
53
54 inherit eutils flag-o-matic toolchain-funcs
55
56 PATCH_VER="1"
57 DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)"
58 HOMEPAGE="http://www.gnu.org/software/coreutils/"
59 SRC_URI="ftp://alpha.gnu.org/gnu/coreutils/${P}.tar.xz
60 mirror://gnu/${PN}/${P}.tar.xz
61 mirror://gentoo/${P}.tar.xz
62 mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz
63 http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz"
64
65 LICENSE="GPL-3"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
68 IUSE="acl caps gmp nls selinux static unicode vanilla xattr"
69
70 RDEPEND="caps? ( sys-libs/libcap )
71 gmp? ( dev-libs/gmp )
72 selinux? ( sys-libs/libselinux )
73 acl? ( sys-apps/acl )
74 xattr? ( sys-apps/attr )
75 nls? ( >=sys-devel/gettext-0.15 )
76 !<sys-apps/util-linux-2.13
77 !sys-apps/stat
78 !net-mail/base64
79 !sys-apps/mktemp
80 !<app-forensics/tct-1.18-r1
81 !<net-fs/netatalk-2.0.3-r4
82 !<sci-chemistry/ccp4-6.1.1"
83 DEPEND="${RDEPEND}
84 app-arch/xz-utils"
85
86 src_prepare() {
87 if ! use vanilla ; then
88 use unicode || rm -f "${WORKDIR}"/patch/000_all_coreutils-i18n.patch
89 EPATCH_SUFFIX="patch" \
90 PATCHDIR="${WORKDIR}/patch" \
91 EPATCH_EXCLUDE="001_all_coreutils-gen-progress-bar.patch" \
92 epatch
93 fi
94
95 # Avoid perl dep for compiled in dircolors default #348642
96 has_version dev-lang/perl || touch src/dircolors.h
97
98 # Since we've patched many .c files, the make process will try to
99 # re-build the manpages by running `./bin --help`. When doing a
100 # cross-compile, we can't do that since 'bin' isn't a native bin.
101 # Also, it's not like we changed the usage on any of these things,
102 # so let's just update the timestamps and skip the help2man step.
103 set -- man/*.x
104 tc-is-cross-compiler && touch ${@/%x/1}
105 }
106
107 src_configure() {
108 tc-is-cross-compiler && [[ ${CHOST} == *linux* ]] && export fu_cv_sys_stat_statfs2_bsize=yes #311569
109
110 use static && append-ldflags -static && sed -i '/elf_sys=yes/s:yes:no:' configure #321821
111 use selinux || export ac_cv_{header_selinux_{context,flash,selinux}_h,search_setfilecon}=no #301782
112 # kill/uptime - procps
113 # groups/su - shadow
114 # hostname - net-tools
115 econf \
116 --with-packager="Gentoo" \
117 --with-packager-version="${PVR} (p${PATCH_VER:-0})" \
118 --with-packager-bug-reports="http://bugs.gentoo.org/" \
119 --enable-install-program="arch" \
120 --enable-no-install-program="groups,hostname,kill,su,uptime" \
121 --enable-largefile \
122 $(use caps || echo --disable-libcap) \
123 $(use_enable nls) \
124 $(use_enable acl) \
125 $(use_enable xattr) \
126 $(use_with gmp)
127 }
128
129 src_test() {
130 # Non-root tests will fail if the full path isnt
131 # accessible to non-root users
132 chmod -R go-w "${WORKDIR}"
133 chmod a+rx "${WORKDIR}"
134
135 # coreutils tests like to do `mount` and such with temp dirs
136 # so make sure /etc/mtab is writable #265725
137 # make sure /dev/loop* can be mounted #269758
138 mkdir -p "${T}"/mount-wrappers
139 mkwrap() {
140 local w ww
141 for w in "$@" ; do
142 ww="${T}/mount-wrappers/${w}"
143 cat <<-EOF > "${ww}"
144 #!/bin/sh
145 exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@"
146 EOF
147 chmod a+rx "${ww}"
148 done
149 }
150 mkwrap mount umount
151
152 addwrite /dev/full
153 #export RUN_EXPENSIVE_TESTS="yes"
154 #export FETISH_GROUPS="portage wheel"
155 env PATH="${T}/mount-wrappers:${PATH}" \
156 emake -j1 -k check || die "make check failed"
157 }
158
159 src_install() {
160 emake install DESTDIR="${D}" || die
161 dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO
162
163 insinto /etc
164 newins src/dircolors.hin DIR_COLORS || die
165
166 if [[ ${USERLAND} == "GNU" ]] ; then
167 cd "${D}"/usr/bin
168 dodir /bin
169 # move critical binaries into /bin (required by FHS)
170 local fhs="cat chgrp chmod chown cp date dd df echo false ln ls
171 mkdir mknod mv pwd rm rmdir stty sync true uname"
172 mv ${fhs} ../../bin/ || die "could not move fhs bins"
173 # move critical binaries into /bin (common scripts)
174 local com="basename chroot cut dir dirname du env expr head mkfifo
175 mktemp readlink seq sleep sort tail touch tr tty vdir wc yes"
176 mv ${com} ../../bin/ || die "could not move common bins"
177 # create a symlink for uname in /usr/bin/ since autotools require it
178 local x
179 for x in ${com} uname ; do
180 dosym /bin/${x} /usr/bin/${x} || die
181 done
182 else
183 # For now, drop the man pages, collides with the ones of the system.
184 rm -rf "${D}"/usr/share/man
185 fi
186 }
187
188 pkg_postinst() {
189 ewarn "Make sure you run 'hash -r' in your active shells."
190 ewarn "You should also re-source your shell settings for LS_COLORS"
191 ewarn " changes, such as: source /etc/profile"
192
193 # /bin/dircolors sometimes sticks around #224823
194 if [ -e "${ROOT}/usr/bin/dircolors" ] && [ -e "${ROOT}/bin/dircolors" ] ; then
195 if strings "${ROOT}/bin/dircolors" | grep -qs "GNU coreutils" ; then
196 einfo "Deleting orphaned GNU /bin/dircolors for you"
197 rm -f "${ROOT}/bin/dircolors"
198 fi
199 fi
200 }