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