diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-11-13 23:33:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-11-13 23:33:52 +0000 |
commit | 46c60f1be653299772a4fca07a3aefb93a31f778 (patch) | |
tree | aae9f03bfe2ff75db556fc25dd9fde70d80be3ba /sys-apps/coreutils | |
parent | version bump (diff) | |
download | historical-46c60f1be653299772a4fca07a3aefb93a31f778.tar.gz historical-46c60f1be653299772a4fca07a3aefb93a31f778.tar.bz2 historical-46c60f1be653299772a4fca07a3aefb93a31f778.zip |
Version bump.
Package-Manager: portage-2.2.0_alpha4/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/coreutils')
-rw-r--r-- | sys-apps/coreutils/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/coreutils/Manifest | 11 | ||||
-rw-r--r-- | sys-apps/coreutils/coreutils-8.7.ebuild | 151 |
3 files changed, 164 insertions, 5 deletions
diff --git a/sys-apps/coreutils/ChangeLog b/sys-apps/coreutils/ChangeLog index fa05e2053055..5e095c216369 100644 --- a/sys-apps/coreutils/ChangeLog +++ b/sys-apps/coreutils/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/coreutils # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v 1.305 2010/10/26 01:58:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/ChangeLog,v 1.306 2010/11/13 23:33:52 vapier Exp $ + +*coreutils-8.7 (13 Nov 2010) + + 13 Nov 2010; Mike Frysinger <vapier@gentoo.org> +coreutils-8.7.ebuild: + Version bump. *coreutils-8.6 (26 Oct 2010) diff --git a/sys-apps/coreutils/Manifest b/sys-apps/coreutils/Manifest index 0615a0488a9c..66a8ba6b8056 100644 --- a/sys-apps/coreutils/Manifest +++ b/sys-apps/coreutils/Manifest @@ -6,15 +6,18 @@ DIST coreutils-8.5-patches-2.tar.lzma 25979 RMD160 fe00a23185cc62a4c9f9ce7b0eea8 DIST coreutils-8.5.tar.gz 10740866 RMD160 2fdba2f8b64c818b459533ba40f94ba7325720b3 SHA1 939144f16d05691753a87134436dd2bb8ea89851 SHA256 dd243e2ac7d0ed203b170ecfb8299643779e7501fec2b45ae1cea8a450fa8ca0 DIST coreutils-8.6-patches-1.tar.xz 4496 RMD160 c7808fde7a9cd81139b7e2f516903af2e1ea818a SHA1 9610d9d7e0581a39e8187153e107906132e963c4 SHA256 32546755e22f17bac71697a36635c648d06c5f9f9033b70047e96d27ba6800e5 DIST coreutils-8.6.tar.xz 4662112 RMD160 bf941a6e96ed4e25296c4a8dcaa9a47f295ee1a8 SHA1 838c623a8763370cc3aa309b171e44e08f4f1bb9 SHA256 78355c37dfeb9d2df1413caee5832d3ac561d1c54debee3fbfc9afbd87f5ed41 +DIST coreutils-8.7-patches-1.tar.xz 4496 RMD160 bbd983bbe52d933d582e59372b2cad97ac6a895b SHA1 68527e017542e76da612d25f79db894aba867786 SHA256 4d428712bf911ec01d12a64c65335b30a4a60cabeb24ece503c2ff8208129277 +DIST coreutils-8.7.tar.xz 4709556 RMD160 9263aa82a6663ff55d38cbaf245bbaf82cbef91c SHA1 73d55feaa36849c99a17139817e515b59a25203a SHA256 6701979aeccbca0b197718c00754aaf4a801f9ee7419edf14b829d20b9f8076b EBUILD coreutils-8.5-r1.ebuild 5092 RMD160 581fd98b19c19507fc4362e1b315b3f81c6ffba4 SHA1 2f5c99678a8653939e6b91a9d2d0ed42783916a7 SHA256 2c537534ff389f926635dcd39cb4d7a48eff5e5d3825aa7af02a8a03a4ce5cc1 EBUILD coreutils-8.5.ebuild 5078 RMD160 a500ac6b5d8a93dcb8f5863104a8a8e31b1d84ee SHA1 8300896fb3be6280b882bcb9ca62ffc768ec5c97 SHA256 a22d449686212e48dc39bd7b0b1de22bd0ce73d78c758229b3fcc8cb025eb932 EBUILD coreutils-8.6.ebuild 5032 RMD160 db86a47935e5094cd691aabd53a23d431db99dfd SHA1 58f0387ca92c4faf19ef424596b0ab043f40e732 SHA256 516138add6e17d7dea2d00f9949b5ad3c851f9644ea528051010c03d09b678a3 -MISC ChangeLog 44345 RMD160 785742d361fc18f28b3de105e3e2e6d0c350d4ac SHA1 a89b41e078a2cb35b66dbaf209559bebb79458d8 SHA256 ef771202108ed87183a8125b14a9d9e409c542390ed46bb55f5c9a8f55831b76 +EBUILD coreutils-8.7.ebuild 5032 RMD160 fec9ba6dcd0e748619551e1f7f9caaf949846dbd SHA1 bfa575b1bbe24be5579c437dcc02d3f93df118f5 SHA256 1efa315c27c15d216ad2aa017dc64638a283a155990135acad8be5123d95f662 +MISC ChangeLog 44465 RMD160 8e427c7c2c207d85ce119d3b00ad9e40612ef6be SHA1 9b9b5570b2fca653347c9238535f236bd4181dd1 SHA256 1cb66be278af7a35b069affeb5f46df90efadc90643c89f6b826e4d48f0e2741 MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) -iF4EAREIAAYFAkzGNZEACgkQTwhj9JtAlp6c2QD+OnXbwO8Rk0BM8+Jp00dTJ2lH -nqZHNASeeHSQ8AmfytMBAIq4s9pXtl5MjnEGT9vf8/+5asfvZSC1mirKmAFLDoTv -=dO/+ +iF4EAREIAAYFAkzfIDkACgkQTwhj9JtAlp72PgD/ZSN1tqErjhDXv7dR2Yq092r4 +vJ4iYqD7J9xxNhr+Ba0BAJobX2vw/d1oeJ8gN3xRTjLX9y/bVkW8UTYsYOOf7lAZ +=nh8z -----END PGP SIGNATURE----- diff --git a/sys-apps/coreutils/coreutils-8.7.ebuild b/sys-apps/coreutils/coreutils-8.7.ebuild new file mode 100644 index 000000000000..09b51bb2c244 --- /dev/null +++ b/sys-apps/coreutils/coreutils-8.7.ebuild @@ -0,0 +1,151 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/coreutils-8.7.ebuild,v 1.1 2010/11/13 23:33:52 vapier Exp $ + +EAPI="3" + +inherit eutils flag-o-matic toolchain-funcs + +PATCH_VER="1" +DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls...), text utilities (sort, tr, head, wc..), and shell utilities (whoami, who,...)" +HOMEPAGE="http://www.gnu.org/software/coreutils/" +SRC_URI="ftp://alpha.gnu.org/gnu/coreutils/${P}.tar.xz + mirror://gnu/${PN}/${P}.tar.xz + mirror://gentoo/${P}.tar.xz + mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz + http://dev.gentoo.org/~vapier/dist/${P}-patches-${PATCH_VER}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="acl caps gmp nls selinux static unicode vanilla xattr" + +RDEPEND="caps? ( sys-libs/libcap ) + gmp? ( dev-libs/gmp ) + selinux? ( sys-libs/libselinux ) + acl? ( sys-apps/acl ) + xattr? ( sys-apps/attr ) + nls? ( >=sys-devel/gettext-0.15 ) + !<sys-apps/util-linux-2.13 + !sys-apps/stat + !net-mail/base64 + !sys-apps/mktemp + !<app-forensics/tct-1.18-r1 + !<net-fs/netatalk-2.0.3-r4 + !<sci-chemistry/ccp4-6.1.1 + >=sys-libs/ncurses-5.3-r5" +DEPEND="${RDEPEND} + app-arch/xz-utils" + +src_prepare() { + if ! use vanilla ; then + use unicode || rm -f "${WORKDIR}"/patch/000_all_coreutils-i18n.patch + EPATCH_SUFFIX="patch" \ + PATCHDIR="${WORKDIR}/patch" \ + EPATCH_EXCLUDE="001_all_coreutils-gen-progress-bar.patch" \ + epatch + fi + + # Since we've patched many .c files, the make process will try to + # re-build the manpages by running `./bin --help`. When doing a + # cross-compile, we can't do that since 'bin' isn't a native bin. + # Also, it's not like we changed the usage on any of these things, + # so let's just update the timestamps and skip the help2man step. + set -- man/*.x + tc-is-cross-compiler && touch ${@/%x/1} +} + +src_configure() { + tc-is-cross-compiler && [[ ${CHOST} == *linux* ]] && export fu_cv_sys_stat_statfs2_bsize=yes #311569 + + use static && append-ldflags -static && sed -i '/elf_sys=yes/s:yes:no:' configure #321821 + use selinux || export ac_cv_{header_selinux_{context,flash,selinux}_h,search_setfilecon}=no #301782 + # kill/uptime - procps + # groups/su - shadow + # hostname - net-tools + econf \ + --with-packager="Gentoo" \ + --with-packager-version="${PVR} (p${PATCH_VER:-0})" \ + --with-packager-bug-reports="http://bugs.gentoo.org/" \ + --enable-install-program="arch" \ + --enable-no-install-program="groups,hostname,kill,su,uptime" \ + --enable-largefile \ + $(use caps || echo --disable-libcap) \ + $(use_enable nls) \ + $(use_enable acl) \ + $(use_enable xattr) \ + $(use_with gmp) +} + +src_test() { + # Non-root tests will fail if the full path isnt + # accessible to non-root users + chmod -R go-w "${WORKDIR}" + chmod a+rx "${WORKDIR}" + + # coreutils tests like to do `mount` and such with temp dirs + # so make sure /etc/mtab is writable #265725 + # make sure /dev/loop* can be mounted #269758 + mkdir -p "${T}"/mount-wrappers + mkwrap() { + local w ww + for w in "$@" ; do + ww="${T}/mount-wrappers/${w}" + cat <<-EOF > "${ww}" + #!/bin/sh + exec env SANDBOX_WRITE="\${SANDBOX_WRITE}:/etc/mtab:/dev/loop" $(type -P $w) "\$@" + EOF + chmod a+rx "${ww}" + done + } + mkwrap mount umount + + addwrite /dev/full + #export RUN_EXPENSIVE_TESTS="yes" + #export FETISH_GROUPS="portage wheel" + env PATH="${T}/mount-wrappers:${PATH}" \ + emake -j1 -k check || die "make check failed" +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc AUTHORS ChangeLog* NEWS README* THANKS TODO + + insinto /etc + newins src/dircolors.hin DIR_COLORS || die + + if [[ ${USERLAND} == "GNU" ]] ; then + cd "${D}"/usr/bin + dodir /bin + # move critical binaries into /bin (required by FHS) + local fhs="cat chgrp chmod chown cp date dd df echo false ln ls + mkdir mknod mv pwd rm rmdir stty sync true uname" + mv ${fhs} ../../bin/ || die "could not move fhs bins" + # move critical binaries into /bin (common scripts) + local com="basename chroot cut dir dirname du env expr head mkfifo + mktemp readlink seq sleep sort tail touch tr tty vdir wc yes" + mv ${com} ../../bin/ || die "could not move common bins" + # create a symlink for uname in /usr/bin/ since autotools require it + local x + for x in ${com} uname ; do + dosym /bin/${x} /usr/bin/${x} || die + done + else + # For now, drop the man pages, collides with the ones of the system. + rm -rf "${D}"/usr/share/man + fi +} + +pkg_postinst() { + ewarn "Make sure you run 'hash -r' in your active shells." + ewarn "You should also re-source your shell settings for LS_COLORS" + ewarn " changes, such as: source /etc/profile" + + # /bin/dircolors sometimes sticks around #224823 + if [ -e "${ROOT}/usr/bin/dircolors" ] && [ -e "${ROOT}/bin/dircolors" ] ; then + if strings "${ROOT}/bin/dircolors" | grep -qs "GNU coreutils" ; then + einfo "Deleting orphaned GNU /bin/dircolors for you" + rm -f "${ROOT}/bin/dircolors" + fi + fi +} |