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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6F0C01580FD for ; Mon, 23 Dec 2024 05:07:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4BB2DE084F; Mon, 23 Dec 2024 05:07:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33885E084F for ; Mon, 23 Dec 2024 05:07:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ABB3A33BEE8 for ; Mon, 23 Dec 2024 05:07:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D74361048 for ; Mon, 23 Dec 2024 05:07:33 +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: <1734930248.40ea68177623b1b912f6c6d9c97fb7e8232b6e6c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/mbedtls/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/mbedtls/mbedtls-2.28.8-r1.ebuild net-libs/mbedtls/mbedtls-2.28.8.ebuild net-libs/mbedtls/mbedtls-2.28.9-r1.ebuild net-libs/mbedtls/mbedtls-2.28.9.ebuild net-libs/mbedtls/mbedtls-3.6.2-r1.ebuild net-libs/mbedtls/mbedtls-3.6.2.ebuild X-VCS-Directories: net-libs/mbedtls/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 40ea68177623b1b912f6c6d9c97fb7e8232b6e6c X-VCS-Branch: master Date: Mon, 23 Dec 2024 05:07:33 +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: e0f239c6-8f2f-4f89-a051-d968edb61563 X-Archives-Hash: e65ddd26b8a2473ce2307958a3923d8f commit: 40ea68177623b1b912f6c6d9c97fb7e8232b6e6c Author: Sam James gentoo org> AuthorDate: Mon Dec 23 05:03:11 2024 +0000 Commit: Sam James gentoo org> CommitDate: Mon Dec 23 05:04:08 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40ea6817 net-libs/mbedtls: fix tests with GCC 15 GCC 15 makes a change to union initialisation and exposes a bug in mbedtls. Build with the new -fzero-init-padding-bits=unions flag if supported to fix the testsuite until the upstream bug is fixed. Bug: https://github.com/Mbed-TLS/mbedtls/issues/9814 Closes: https://bugs.gentoo.org/946544 Signed-off-by: Sam James gentoo.org> .../mbedtls/{mbedtls-2.28.8.ebuild => mbedtls-2.28.8-r1.ebuild} | 9 ++++++++- .../mbedtls/{mbedtls-2.28.9.ebuild => mbedtls-2.28.9-r1.ebuild} | 9 ++++++++- .../mbedtls/{mbedtls-3.6.2.ebuild => mbedtls-3.6.2-r1.ebuild} | 9 ++++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/net-libs/mbedtls/mbedtls-2.28.8.ebuild b/net-libs/mbedtls/mbedtls-2.28.8-r1.ebuild similarity index 91% rename from net-libs/mbedtls/mbedtls-2.28.8.ebuild rename to net-libs/mbedtls/mbedtls-2.28.8-r1.ebuild index 277de889ee8d..748942d2e93f 100644 --- a/net-libs/mbedtls/mbedtls-2.28.8.ebuild +++ b/net-libs/mbedtls/mbedtls-2.28.8-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit cmake multilib-minimal python-any-r1 +inherit cmake flag-o-matic multilib-minimal python-any-r1 DESCRIPTION="Cryptographic library for embedded systems" HOMEPAGE="https://www.trustedfirmware.org/projects/mbed-tls/" @@ -49,6 +49,13 @@ src_prepare() { cmake_src_prepare } +src_configure() { + # Workaround for https://github.com/Mbed-TLS/mbedtls/issues/9814 (bug #946544) + append-flags $(test-flags-CC -fzero-init-padding-bits=unions) + + multilib-minimal_src_configure +} + multilib_src_configure() { local mycmakeargs=( -DENABLE_PROGRAMS=$(multilib_native_usex programs) diff --git a/net-libs/mbedtls/mbedtls-2.28.9.ebuild b/net-libs/mbedtls/mbedtls-2.28.9-r1.ebuild similarity index 91% rename from net-libs/mbedtls/mbedtls-2.28.9.ebuild rename to net-libs/mbedtls/mbedtls-2.28.9-r1.ebuild index 3bcc990f2b70..622ce0e78ec5 100644 --- a/net-libs/mbedtls/mbedtls-2.28.9.ebuild +++ b/net-libs/mbedtls/mbedtls-2.28.9-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) -inherit cmake multilib-minimal python-any-r1 +inherit cmake flag-o-matic multilib-minimal python-any-r1 DESCRIPTION="Cryptographic library for embedded systems" HOMEPAGE="https://www.trustedfirmware.org/projects/mbed-tls/" @@ -48,6 +48,13 @@ src_prepare() { cmake_src_prepare } +src_configure() { + # Workaround for https://github.com/Mbed-TLS/mbedtls/issues/9814 (bug #946544) + append-flags $(test-flags-CC -fzero-init-padding-bits=unions) + + multilib-minimal_src_configure +} + multilib_src_configure() { local mycmakeargs=( -DENABLE_PROGRAMS=$(multilib_native_usex programs) diff --git a/net-libs/mbedtls/mbedtls-3.6.2.ebuild b/net-libs/mbedtls/mbedtls-3.6.2-r1.ebuild similarity index 90% rename from net-libs/mbedtls/mbedtls-3.6.2.ebuild rename to net-libs/mbedtls/mbedtls-3.6.2-r1.ebuild index 0d3fb3694a4e..89dea0151ff0 100644 --- a/net-libs/mbedtls/mbedtls-3.6.2.ebuild +++ b/net-libs/mbedtls/mbedtls-3.6.2-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) -inherit cmake multilib-minimal python-any-r1 +inherit cmake flag-o-matic multilib-minimal python-any-r1 DESCRIPTION="Cryptographic library for embedded systems" HOMEPAGE="https://www.trustedfirmware.org/projects/mbed-tls/" @@ -42,6 +42,13 @@ src_prepare() { cmake_src_prepare } +src_configure() { + # Workaround for https://github.com/Mbed-TLS/mbedtls/issues/9814 (bug #946544) + append-flags $(test-flags-CC -fzero-init-padding-bits=unions) + + multilib-minimal_src_configure +} + multilib_src_configure() { local mycmakeargs=( -DENABLE_PROGRAMS=$(multilib_native_usex programs)