From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 554211396DA for ; Sat, 18 Nov 2017 18:10:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C2FDE0844; Sat, 18 Nov 2017 18:10:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 57C20E0821 for ; Sat, 18 Nov 2017 18:10:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F159033C770 for ; Sat, 18 Nov 2017 18:10:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 641E29F3A for ; Sat, 18 Nov 2017 18:10:31 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1511028549.659cb1b6308cd164dc73ef9b9da3087385690837.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ragel/, dev-util/ragel/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/ragel/files/ragel-6.9-gcc6.patch dev-util/ragel/ragel-6.9.ebuild X-VCS-Directories: dev-util/ragel/ dev-util/ragel/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 659cb1b6308cd164dc73ef9b9da3087385690837 X-VCS-Branch: master Date: Sat, 18 Nov 2017 18:10:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c5aace47-7c05-4a56-9e32-7a000b9169fa X-Archives-Hash: bc3f77e1994f46d107ed315d1f140fcb commit: 659cb1b6308cd164dc73ef9b9da3087385690837 Author: Peter Levine gmail com> AuthorDate: Wed Oct 25 05:10:47 2017 +0000 Commit: David Seifert gentoo org> CommitDate: Sat Nov 18 18:09:09 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=659cb1b6 dev-util/ragel: Fix building with GCC-6 Closes: https://bugs.gentoo.org/582606 Package-Manager: Portage-2.3.11, Repoman-2.3.3 Closes: https://github.com/gentoo/gentoo/pull/6043 dev-util/ragel/files/ragel-6.9-gcc6.patch | 42 +++++++++++++++++++++++++++++++ dev-util/ragel/ragel-6.9.ebuild | 1 + 2 files changed, 43 insertions(+) diff --git a/dev-util/ragel/files/ragel-6.9-gcc6.patch b/dev-util/ragel/files/ragel-6.9-gcc6.patch new file mode 100644 index 00000000000..fb10d9fd2b7 --- /dev/null +++ b/dev-util/ragel/files/ragel-6.9-gcc6.patch @@ -0,0 +1,42 @@ +Bug: https://bugs.gentoo.org/582606 + +--- a/ragel/common.cpp ++++ b/ragel/common.cpp +@@ -34,7 +34,7 @@ + { "int", 0, "int", true, true, false, INT_MIN, INT_MAX, sizeof(int) }, + { "unsigned", "int", "uint", false, true, false, 0, UINT_MAX, sizeof(unsigned int) }, + { "long", 0, "long", true, true, false, LONG_MIN, LONG_MAX, sizeof(long) }, +- { "unsigned", "long", "ulong", false, true, false, 0, ULONG_MAX, sizeof(unsigned long) } ++ { "unsigned", "long", "ulong", false, true, false, 0, (long long) ULONG_MAX, sizeof(unsigned long) } + }; + + #define S8BIT_MIN -128 +@@ -87,7 +87,7 @@ + { "int32", 0, "int32", true, true, false, S32BIT_MIN, S32BIT_MAX, 4 }, + { "uint32", 0, "uint32", false, true, false, U32BIT_MIN, U32BIT_MAX, 4 }, + { "int64", 0, "int64", true, true, false, S64BIT_MIN, S64BIT_MAX, 8 }, +- { "uint64", 0, "uint64", false, true, false, U64BIT_MIN, U64BIT_MAX, 8 }, ++ { "uint64", 0, "uint64", false, true, false, U64BIT_MIN, (long long) U64BIT_MAX, 8 }, + { "rune", 0, "int32", true, true, true, S32BIT_MIN, S32BIT_MAX, 4 } + }; + +@@ -116,7 +116,7 @@ + { "int", 0, "int", true, true, false, INT_MIN, INT_MAX, 4 }, + { "uint", 0, "uint", false, true, false, 0, UINT_MAX, 4 }, + { "long", 0, "long", true, true, false, LONG_MIN, LONG_MAX, 8 }, +- { "ulong", 0, "ulong", false, true, false, 0, ULONG_MAX, 8 } ++ { "ulong", 0, "ulong", false, true, false, 0, (long long) ULONG_MAX, 8 } + }; + + HostType hostTypesOCaml[] = +--- a/ragel/rbxgoto.cpp ++++ b/ragel/rbxgoto.cpp +@@ -658,7 +658,7 @@ + out << + " begin\n" + " " << P() << " += 1\n" +- " " << rbxGoto(ret, "_out") << "\n" ++ " " << static_cast(rbxGoto(ret, "_out")) << "\n" + " end\n"; + } + diff --git a/dev-util/ragel/ragel-6.9.ebuild b/dev-util/ragel/ragel-6.9.ebuild index bfa5a8aa194..9de48f66793 100644 --- a/dev-util/ragel/ragel-6.9.ebuild +++ b/dev-util/ragel/ragel-6.9.ebuild @@ -20,6 +20,7 @@ RDEPEND="" # We need to get the txl language in Portage to have the tests :( RESTRICT=test +PATCHES=( "${FILESDIR}"/${P}-gcc6.patch ) DOCS=( ChangeLog CREDITS README TODO ) src_test() {