diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-06-09 07:10:57 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-06-09 07:10:57 +0000 |
commit | 4a790f56293c2c85e50a3b420e132cb5f3b96793 (patch) | |
tree | fc22803e8b228d14559c12ddfe25c22fc608da2e /dev-vcs | |
parent | Version bump. (diff) | |
download | gentoo-2-4a790f56293c2c85e50a3b420e132cb5f3b96793.tar.gz gentoo-2-4a790f56293c2c85e50a3b420e132cb5f3b96793.tar.bz2 gentoo-2-4a790f56293c2c85e50a3b420e132cb5f3b96793.zip |
Backport fix from upstream gnulib to fix building on x32 systems #395641 by Sergei Trofimovich.
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'dev-vcs')
-rw-r--r-- | dev-vcs/cvs/ChangeLog | 8 | ||||
-rw-r--r-- | dev-vcs/cvs/cvs-1.12.12-r6.ebuild | 7 | ||||
-rw-r--r-- | dev-vcs/cvs/cvs-1.12.12-r9.ebuild | 5 | ||||
-rw-r--r-- | dev-vcs/cvs/files/cvs-1.12.12-mktime-x32.patch | 29 |
4 files changed, 43 insertions, 6 deletions
diff --git a/dev-vcs/cvs/ChangeLog b/dev-vcs/cvs/ChangeLog index 6dfb88704f92..5f34e8d602bc 100644 --- a/dev-vcs/cvs/ChangeLog +++ b/dev-vcs/cvs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-vcs/cvs # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cvs/ChangeLog,v 1.6 2012/04/28 02:48:35 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cvs/ChangeLog,v 1.7 2012/06/09 07:10:57 vapier Exp $ + + 09 Jun 2012; Mike Frysinger <vapier@gentoo.org> + +files/cvs-1.12.12-mktime-x32.patch, cvs-1.12.12-r6.ebuild, + cvs-1.12.12-r9.ebuild: + Backport fix from upstream gnulib to fix building on x32 systems #395641 by + Sergei Trofimovich. 28 Apr 2012; Alexis Ballier <aballier@gentoo.org> cvs-1.12.12-r9.ebuild: keyword ~amd64-fbsd diff --git a/dev-vcs/cvs/cvs-1.12.12-r6.ebuild b/dev-vcs/cvs/cvs-1.12.12-r6.ebuild index a3b0e8f2f3c6..2f3c9dbd4b79 100644 --- a/dev-vcs/cvs/cvs-1.12.12-r6.ebuild +++ b/dev-vcs/cvs/cvs-1.12.12-r6.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cvs/cvs-1.12.12-r6.ebuild,v 1.1 2010/06/19 00:27:23 abcd Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cvs/cvs-1.12.12-r6.ebuild,v 1.2 2012/06/09 07:10:57 vapier Exp $ inherit eutils pam @@ -31,7 +31,8 @@ src_unpack() { cd "${S}" epatch "${FILESDIR}"/${P}-cvs-gnulib-vasnprintf.patch epatch "${FILESDIR}"/${P}-install-sh.patch - elog "If you want any CVS server functionality, you MUST emerge with USE=server!" + epatch "${FILESDIR}"/${P}-mktime-x32.patch # 395641 + use server || elog "If you want any CVS server functionality, you MUST emerge with USE=server!" } src_compile() { diff --git a/dev-vcs/cvs/cvs-1.12.12-r9.ebuild b/dev-vcs/cvs/cvs-1.12.12-r9.ebuild index 9dfaa00ea4f7..da9ed0bf9def 100644 --- a/dev-vcs/cvs/cvs-1.12.12-r9.ebuild +++ b/dev-vcs/cvs/cvs-1.12.12-r9.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cvs/cvs-1.12.12-r9.ebuild,v 1.2 2012/04/28 02:48:35 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cvs/cvs-1.12.12-r9.ebuild,v 1.3 2012/06/09 07:10:57 vapier Exp $ EAPI=3 @@ -38,7 +38,8 @@ src_prepare() { epatch "${FILESDIR}"/${P}-hash-nameclash.patch # for AIX epatch "${FILESDIR}"/${P}-getdelim.patch # 314791 epatch "${FILESDIR}"/${PN}-1.12.12-rcs2log-coreutils.patch # 144114 - elog "If you want any CVS server functionality, you MUST emerge with USE=server!" + epatch "${FILESDIR}"/${P}-mktime-x32.patch # 395641 + use server || elog "If you want any CVS server functionality, you MUST emerge with USE=server!" } src_configure() { diff --git a/dev-vcs/cvs/files/cvs-1.12.12-mktime-x32.patch b/dev-vcs/cvs/files/cvs-1.12.12-mktime-x32.patch new file mode 100644 index 000000000000..948fa4d7144e --- /dev/null +++ b/dev-vcs/cvs/files/cvs-1.12.12-mktime-x32.patch @@ -0,0 +1,29 @@ +back port changes from upstream gnulib to make this work on x32 + +https://bugs.gentoo.org/395641 + +--- cvs-1.12.12/lib/mktime.c ++++ cvs-1.12.12/lib/mktime.c +@@ -115,6 +115,13 @@ + #define TM_YEAR_BASE 1900 + verify (base_year_is_a_multiple_of_100, TM_YEAR_BASE % 100 == 0); + ++#if INT_MAX <= LONG_MAX / 2 ++typedef long int long_int; ++#else ++typedef long long int long_int; ++#endif ++verify (long_int_is_wide_enough, INT_MAX == INT_MAX * (long_int) 2 / 2); ++ + /* Return 1 if YEAR + TM_YEAR_BASE is a leap year. */ + static inline int + leapyear (long int year) +@@ -167,8 +174,6 @@ + int year0, int yday0, int hour0, int min0, int sec0) + { + 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. */ |