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 D9026138350 for ; Sun, 3 May 2020 19:18:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 666B2E0990; Sun, 3 May 2020 19:18:51 +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 9E069E0990 for ; Sun, 3 May 2020 19:18:50 +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 C98A734F535 for ; Sun, 3 May 2020 19:18:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9AC3C1C8 for ; Sun, 3 May 2020 19:18:47 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1588533518.c7b201a70998ff0db1f1cd4187004e684d6aa10a.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/multipath-tools/files/, sys-fs/multipath-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/multipath-tools/files/multipath-tools-0.8.3-fix-gcc-10-compatibility.patch sys-fs/multipath-tools/multipath-tools-0.8.3-r2.ebuild X-VCS-Directories: sys-fs/multipath-tools/ sys-fs/multipath-tools/files/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: c7b201a70998ff0db1f1cd4187004e684d6aa10a X-VCS-Branch: master Date: Sun, 3 May 2020 19:18:47 +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: ec756cbb-3cfc-4a8c-b0c3-62420d775677 X-Archives-Hash: 9620ffa44ddb91524f452278cba8af4b commit: c7b201a70998ff0db1f1cd4187004e684d6aa10a Author: Thomas Deutschmann gentoo org> AuthorDate: Sun May 3 19:18:28 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sun May 3 19:18:38 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7b201a7 sys-fs/multipath-tools: fix building against GCC 10 Closes: https://bugs.gentoo.org/706670 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann gentoo.org> .../multipath-tools-0.8.3-fix-gcc-10-compatibility.patch | 11 +++++++++++ sys-fs/multipath-tools/multipath-tools-0.8.3-r2.ebuild | 1 + 2 files changed, 12 insertions(+) diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.8.3-fix-gcc-10-compatibility.patch b/sys-fs/multipath-tools/files/multipath-tools-0.8.3-fix-gcc-10-compatibility.patch new file mode 100644 index 00000000000..18ed8d65e0f --- /dev/null +++ b/sys-fs/multipath-tools/files/multipath-tools-0.8.3-fix-gcc-10-compatibility.patch @@ -0,0 +1,11 @@ +--- a/libmultipath/structs.h ++++ b/libmultipath/structs.h +@@ -106,7 +106,7 @@ enum yes_no_undef_states { + * _FIND_MULTIPATHS_F must have the same value as YNU_YES. + * Generate a compile time error if that isn't the case. + */ +-char ___error1___[-(_FIND_MULTIPATHS_F != YNU_YES)]; ++extern char ___error1___[-(_FIND_MULTIPATHS_F != YNU_YES)]; + + #define find_multipaths_on(conf) \ + (!!((conf)->find_multipaths & _FIND_MULTIPATHS_F)) diff --git a/sys-fs/multipath-tools/multipath-tools-0.8.3-r2.ebuild b/sys-fs/multipath-tools/multipath-tools-0.8.3-r2.ebuild index feb9ba35c84..718daba1fda 100644 --- a/sys-fs/multipath-tools/multipath-tools-0.8.3-r2.ebuild +++ b/sys-fs/multipath-tools/multipath-tools-0.8.3-r2.ebuild @@ -37,6 +37,7 @@ PATCHES=( "${FILESDIR}"/${PN}-0.7.5-respect-flags.patch "${FILESDIR}"/${PN}-0.8.3-no-gziped-docs.patch "${FILESDIR}"/${PN}-0.8.3-json-c-0.14.patch + "${FILESDIR}"/${PN}-0.8.3-fix-gcc-10-compatibility.patch ) get_systemd_pv() {