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 319081382C5 for ; Tue, 15 Jun 2021 03:15:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 408A6E08CD; Tue, 15 Jun 2021 03:15:23 +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 79978E08CD for ; Tue, 15 Jun 2021 03:15:22 +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 01BE3335C29 for ; Tue, 15 Jun 2021 03:15:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1422C7A0 for ; Tue, 15 Jun 2021 03:15:19 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1623726911.19c04306aa8283cc7adf787a1067aa75537ef14e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/maude/files/, dev-lang/maude/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/maude/files/maude-2.7-fix-build-with-gcc11.patch dev-lang/maude/maude-2.7.ebuild X-VCS-Directories: dev-lang/maude/ dev-lang/maude/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 19c04306aa8283cc7adf787a1067aa75537ef14e X-VCS-Branch: master Date: Tue, 15 Jun 2021 03:15:19 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2f783a09-8821-4cd2-9d5b-5eaba8133d9f X-Archives-Hash: b55a63ad2164e645fc02f67906d5bc32 commit: 19c04306aa8283cc7adf787a1067aa75537ef14e Author: Sam James gentoo org> AuthorDate: Tue Jun 15 03:14:50 2021 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jun 15 03:15:11 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19c04306 dev-lang/maude: fix build with GCC 11 Closes: https://bugs.gentoo.org/787851 Signed-off-by: Sam James gentoo.org> .../files/maude-2.7-fix-build-with-gcc11.patch | 60 ++++++++++++++++++++++ dev-lang/maude/maude-2.7.ebuild | 3 +- 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/dev-lang/maude/files/maude-2.7-fix-build-with-gcc11.patch b/dev-lang/maude/files/maude-2.7-fix-build-with-gcc11.patch new file mode 100644 index 00000000000..b903d50e22b --- /dev/null +++ b/dev-lang/maude/files/maude-2.7-fix-build-with-gcc11.patch @@ -0,0 +1,60 @@ +https://bugs.gentoo.org/787851 + +From 6d448928a88f586195dadd9fae9cb1b19e589d94 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Tue, 15 Jun 2021 03:05:34 +0000 +Subject: [PATCH] Fix build with GCC 11 +diff --git a/src/ObjectSystem/configSymbol.hh b/src/ObjectSystem/configSymbol.hh +index 90b00d9..d037dab 100644 +--- a/src/ObjectSystem/configSymbol.hh ++++ b/src/ObjectSystem/configSymbol.hh +@@ -50,7 +50,7 @@ public: + private: + struct symbolLt + { +- bool operator()(const Symbol* d1, const Symbol* d2) ++ bool operator()(const Symbol* d1, const Symbol* d2) const + { + return d1->compare(d2) < 0; + } +diff --git a/src/ObjectSystem/objectMap.cc b/src/ObjectSystem/objectMap.cc +index 0dbcaf0..722aa29 100644 +--- a/src/ObjectSystem/objectMap.cc ++++ b/src/ObjectSystem/objectMap.cc +@@ -50,7 +50,7 @@ ConfigSymbol::MessageQueue::markReachableNodes() const + + struct ConfigSymbol::dagNodeLt + { +- bool operator()(const DagNode* d1, const DagNode* d2) ++ bool operator()(const DagNode* d1, const DagNode* d2) const + { + return d1->compare(d2) < 0; + } +diff --git a/src/ObjectSystem/objectSystemRewritingContext.hh b/src/ObjectSystem/objectSystemRewritingContext.hh +index 33785ec..32f4d94 100644 +--- a/src/ObjectSystem/objectSystemRewritingContext.hh ++++ b/src/ObjectSystem/objectSystemRewritingContext.hh +@@ -62,7 +62,7 @@ protected: + private: + struct dagNodeLt + { +- bool operator()(const DagNode* d1, const DagNode* d2) ++ bool operator()(const DagNode* d1, const DagNode* d2) const + { + return d1->compare(d2) < 0; + } +diff --git a/src/Mixfix/entity.hh b/src/Mixfix/entity.hh +index eb8ad58..a221de4 100644 +--- a/src/Mixfix/entity.hh ++++ b/src/Mixfix/entity.hh +@@ -53,7 +53,7 @@ public: + private: + struct UserLt + { +- bool operator()(const User* user1, const User* user2) ++ bool operator()(const User* user1, const User* user2) const + { + // + // Direct < comparison of unrelated pointers is undefined. But since the casting +-- +2.32.0 diff --git a/dev-lang/maude/maude-2.7.ebuild b/dev-lang/maude/maude-2.7.ebuild index 01957fb2a5e..72d88da7e51 100644 --- a/dev-lang/maude/maude-2.7.ebuild +++ b/dev-lang/maude/maude-2.7.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -32,6 +32,7 @@ PATCHES=( "${FILESDIR}/${PN}-2.6-search-datadir.patch" "${FILESDIR}/${PN}-2.7-bison-parse-param.patch" "${FILESDIR}/${PN}-2.7-AR.patch" + "${FILESDIR}/${PN}-2.7-fix-build-with-gcc11.patch" ) src_prepare() {