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 5A67213835A for ; Mon, 14 Jun 2021 16:11:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99A32E0C8A; Mon, 14 Jun 2021 16:11:37 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 7B3DEE0C89 for ; Mon, 14 Jun 2021 16:11:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 3E590335D07 for ; Mon, 14 Jun 2021 16:11:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B478475B for ; Mon, 14 Jun 2021 16:11:34 +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: <1623687081.238d4c26092568ac7c3bb25753405909d61d8c8c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/din/, media-sound/din/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/din/din-50.2.ebuild media-sound/din/files/din-50.2-gcc11-rename-identifier.patch X-VCS-Directories: media-sound/din/files/ media-sound/din/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 238d4c26092568ac7c3bb25753405909d61d8c8c X-VCS-Branch: master Date: Mon, 14 Jun 2021 16:11:34 +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: 5042d649-e4ee-45b2-aea5-eddab8719223 X-Archives-Hash: 9e9ff2cc5cbe69cb9ddb9deb4fabe555 commit: 238d4c26092568ac7c3bb25753405909d61d8c8c Author: Sam James gentoo org> AuthorDate: Mon Jun 14 15:15:55 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon Jun 14 16:11:21 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=238d4c26 media-sound/din: fix build with GCC 11 Closes: https://bugs.gentoo.org/787185 Signed-off-by: Sam James gentoo.org> media-sound/din/din-50.2.ebuild | 1 + .../files/din-50.2-gcc11-rename-identifier.patch | 41 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/media-sound/din/din-50.2.ebuild b/media-sound/din/din-50.2.ebuild index 4d68ab765af..38869408d19 100644 --- a/media-sound/din/din-50.2.ebuild +++ b/media-sound/din/din-50.2.ebuild @@ -35,6 +35,7 @@ REQUIRED_USE="|| ( alsa jack )" PATCHES=( "${FILESDIR}/${PN}-49.1-makefile.patch" "${FILESDIR}/${PN}-48-fix-random-constants.patch" + "${FILESDIR}/${PN}-50.2-gcc11-rename-identifier.patch" ) src_prepare() { diff --git a/media-sound/din/files/din-50.2-gcc11-rename-identifier.patch b/media-sound/din/files/din-50.2-gcc11-rename-identifier.patch new file mode 100644 index 00000000000..4d65f65b038 --- /dev/null +++ b/media-sound/din/files/din-50.2-gcc11-rename-identifier.patch @@ -0,0 +1,41 @@ +https://bugs.gentoo.org/787185 + +From 9ea918cfdfcd99fbcac64a820ddbaefb562c11a0 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Mon, 14 Jun 2021 15:06:58 +0000 +Subject: [PATCH] src/help.h: Rename __help identifier +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +__help is reserved, so we need to rename it to fix a build failure with GCC 11: + + "In addition to the names documented in this manual, reserved names include all + external identifiers (global functions and variables) that begin with an + underscore (‘_’) and all identifiers regardless of use that begin with either + two underscores or an underscore followed by a capital letter are reserved names." + -- glibc manual, 1.3.3 Reserved Names + +Signed-off-by: Sam James +--- + src/help.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/help.h b/src/help.h +index ae0954b..af7f178 100644 +--- a/src/help.h ++++ b/src/help.h +@@ -5,8 +5,8 @@ + * For more information, please visit https://dinisnoise.org/ + */ + +-#ifndef __help +-#define __help ++#ifndef DIN_help ++#define DIN_help + #include + #include + struct help { +-- +2.32.0 +