diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-02-16 22:26:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-02-16 22:26:56 +0000 |
commit | 399d01947bc1e70a85b67aa95431a57fe901f8ef (patch) | |
tree | bddb4552a6475d2b46aed4da8e7e764f65754d7b /sys-apps | |
parent | Gentoo-specific ant distfiles will be served from my devspace instead of mirr... (diff) | |
download | gentoo-2-399d01947bc1e70a85b67aa95431a57fe901f8ef.tar.gz gentoo-2-399d01947bc1e70a85b67aa95431a57fe901f8ef.tar.bz2 gentoo-2-399d01947bc1e70a85b67aa95431a57fe901f8ef.zip |
Add minor patch for building for x32 targets.
(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/findutils/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/findutils/files/findutils-4.4.2-gnulib-date-x32.patch | 26 | ||||
-rw-r--r-- | sys-apps/findutils/findutils-4.4.2-r1.ebuild | 6 |
3 files changed, 36 insertions, 4 deletions
diff --git a/sys-apps/findutils/ChangeLog b/sys-apps/findutils/ChangeLog index ad855e251451..54ea42843fbf 100644 --- a/sys-apps/findutils/ChangeLog +++ b/sys-apps/findutils/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/findutils -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/findutils/ChangeLog,v 1.198 2011/07/05 21:12:54 aballier Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/findutils/ChangeLog,v 1.199 2012/02/16 22:26:56 vapier Exp $ + + 16 Feb 2012; Mike Frysinger <vapier@gentoo.org> findutils-4.4.2-r1.ebuild, + +files/findutils-4.4.2-gnulib-date-x32.patch: + Add minor patch for building for x32 targets. 05 Jul 2011; Alexis Ballier <aballier@gentoo.org> findutils-4.5.10-r1.ebuild: keyword ~sparc-fbsd; untested but should work as it works on sparc and diff --git a/sys-apps/findutils/files/findutils-4.4.2-gnulib-date-x32.patch b/sys-apps/findutils/files/findutils-4.4.2-gnulib-date-x32.patch new file mode 100644 index 000000000000..9ff86f6b84a6 --- /dev/null +++ b/sys-apps/findutils/files/findutils-4.4.2-gnulib-date-x32.patch @@ -0,0 +1,26 @@ +newer gnulib has rewritten these checks in a way that works for the x32, +and for the targets we care about, these checks won't return false. so +just drop them to make our life simpler. + +https://sites.google.com/site/x32abi/x32-patches + +--- findutils-4.4.2/gnulib/lib/getdate.c.x32 2009-05-10 14:23:57.000000000 -0700 ++++ findutils-4.4.2/gnulib/lib/getdate.c 2011-12-05 11:41:18.130675712 -0800 +@@ -114,7 +114,6 @@ + wraps around, but there's no portable way to check for that at + compile-time. */ + verify (TYPE_IS_INTEGER (time_t)); +-verify (LONG_MIN <= TYPE_MINIMUM (time_t) && TYPE_MAXIMUM (time_t) <= LONG_MAX); + + /* An integer value, and the number of digits in its textual + representation. */ +--- findutils-4.4.2/gnulib/lib/mktime.c.x32 2009-05-10 14:25:13.000000000 -0700 ++++ findutils-4.4.2/gnulib/lib/mktime.c 2011-12-05 11:49:38.368589386 -0800 +@@ -166,7 +166,5 @@ ydhms_diff (long int year1, long int yda + { + verify (C99_integer_division, -1 / 2 == 0); +- verify (long_int_year_and_yday_are_wide_enough, +- INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX); + + /* Compute intervening leap days correctly even if year is negative. + Take care to avoid integer overflow here. */ diff --git a/sys-apps/findutils/findutils-4.4.2-r1.ebuild b/sys-apps/findutils/findutils-4.4.2-r1.ebuild index d84b9ebc0bdd..3817b7adf443 100644 --- a/sys-apps/findutils/findutils-4.4.2-r1.ebuild +++ b/sys-apps/findutils/findutils-4.4.2-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/findutils/findutils-4.4.2-r1.ebuild,v 1.1 2011/07/05 21:08:17 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/findutils/findutils-4.4.2-r1.ebuild,v 1.2 2012/02/16 22:26:56 vapier Exp $ inherit eutils flag-o-matic toolchain-funcs multilib @@ -25,6 +25,8 @@ src_unpack() { unpack ${A} cd "${S}" + epatch "${FILESDIR}"/${P}-gnulib-date-x32.patch + # Don't build or install locate because it conflicts with slocate, # which is a secure version of locate. See bug 18729 sed -i '/^SUBDIRS/s/locate//' Makefile.in |