From 582f732cded4a84a558dec81019744ace82268ff Mon Sep 17 00:00:00 2001 From: Torsten Veller Date: Fri, 8 Jun 2012 18:05:45 +0000 Subject: Fix perl-5.16 build bug (#420177) (Portage version: 2.2.0_alpha110/cvs/Linux x86_64) --- dev-perl/Date-Pcalc/ChangeLog | 9 +++++++-- dev-perl/Date-Pcalc/Date-Pcalc-6.100.0.ebuild | 5 +++-- .../6.100.0_identifier_before_numeric_constant.patch | 16 ++++++++++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 dev-perl/Date-Pcalc/files/6.100.0_identifier_before_numeric_constant.patch (limited to 'dev-perl/Date-Pcalc') diff --git a/dev-perl/Date-Pcalc/ChangeLog b/dev-perl/Date-Pcalc/ChangeLog index e9153747c0c0..c68cd636ef8b 100644 --- a/dev-perl/Date-Pcalc/ChangeLog +++ b/dev-perl/Date-Pcalc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-perl/Date-Pcalc -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/Date-Pcalc/ChangeLog,v 1.19 2011/09/04 11:20:48 tove Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Date-Pcalc/ChangeLog,v 1.20 2012/06/08 18:05:45 tove Exp $ + + 08 Jun 2012; Torsten Veller + +files/6.100.0_identifier_before_numeric_constant.patch, + Date-Pcalc-6.100.0.ebuild: + Fix perl-5.16 build bug (#420177) 04 Sep 2011; Torsten Veller -Date-Pcalc-6.1.ebuild: Cleanup diff --git a/dev-perl/Date-Pcalc/Date-Pcalc-6.100.0.ebuild b/dev-perl/Date-Pcalc/Date-Pcalc-6.100.0.ebuild index eefb6c2612f9..0a3465996b85 100644 --- a/dev-perl/Date-Pcalc/Date-Pcalc-6.100.0.ebuild +++ b/dev-perl/Date-Pcalc/Date-Pcalc-6.100.0.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/dev-perl/Date-Pcalc/Date-Pcalc-6.100.0.ebuild,v 1.2 2011/09/03 21:04:29 tove Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Date-Pcalc/Date-Pcalc-6.100.0.ebuild,v 1.3 2012/06/08 18:05:45 tove Exp $ EAPI=4 @@ -20,3 +20,4 @@ RDEPEND="${DEPEND}" SRC_TEST="do" mydoc="ToDo" +PATCHES=( "${FILESDIR}"/6.100.0_identifier_before_numeric_constant.patch ) diff --git a/dev-perl/Date-Pcalc/files/6.100.0_identifier_before_numeric_constant.patch b/dev-perl/Date-Pcalc/files/6.100.0_identifier_before_numeric_constant.patch new file mode 100644 index 000000000000..e475ea25c2cc --- /dev/null +++ b/dev-perl/Date-Pcalc/files/6.100.0_identifier_before_numeric_constant.patch @@ -0,0 +1,16 @@ +Bug: https://rt.cpan.org/Public/Bug/Display.html?id=76442 +Gentoo-Bug: https://bugs.gentoo.org/420177 +--- a/src/C_XS/ToolBox.h ++++ b/src/C_XS/ToolBox.h +@@ -93,7 +93,10 @@ + #elif PERL_DARWIN + #define boolean bool + #else +- typedef enum { false = FALSE, true = TRUE } boolean; ++ typedef int boolean; ++ #ifndef I_STDBOOL ++ enum { false, true }; ++ #endif + #endif + #endif + -- cgit v1.2.3-65-gdbad