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 B7C26158042 for ; Mon, 11 Nov 2024 09:48:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C14D6E07E1; Mon, 11 Nov 2024 09:48:04 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id A5CEAE07E1 for ; Mon, 11 Nov 2024 09:48:04 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8BDF4340836 for ; Mon, 11 Nov 2024 09:48:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0668EAED for ; Mon, 11 Nov 2024 09:48:02 +0000 (UTC) From: "Golubev Alexander" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Golubev Alexander" Message-ID: <1731318473.cd71815a8a56726e63a857b17cf594100757a812.fatzer2@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/blend2d/, media-libs/blend2d/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-libs/blend2d/blend2d-0.11.4-r1.ebuild media-libs/blend2d/blend2d-0.11.4-r2.ebuild media-libs/blend2d/blend2d-9999.ebuild media-libs/blend2d/files/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch X-VCS-Directories: media-libs/blend2d/ media-libs/blend2d/files/ X-VCS-Committer: fatzer2 X-VCS-Committer-Name: Golubev Alexander X-VCS-Revision: cd71815a8a56726e63a857b17cf594100757a812 X-VCS-Branch: dev Date: Mon, 11 Nov 2024 09:48:02 +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: 6a580215-4015-4693-a349-eb79432665b4 X-Archives-Hash: ef2353b2f1b1ce61161f10416d05c6f4 commit: cd71815a8a56726e63a857b17cf594100757a812 Author: Alexander Golubev gmail com> AuthorDate: Mon Nov 11 09:43:47 2024 +0000 Commit: Golubev Alexander gmail com> CommitDate: Mon Nov 11 09:47:53 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cd71815a media-libs/blend2d: avoid adding -O2 to CFLAGS Closes: https://bugs.gentoo.org/943226 Signed-off-by: Alexander Golubev gmail.com> ...2d-0.11.4-r1.ebuild => blend2d-0.11.4-r2.ebuild} | 3 +++ media-libs/blend2d/blend2d-9999.ebuild | 3 +++ ...void-adding-O2-to-cflags-gentoo-bug-943226.patch | 21 +++++++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/media-libs/blend2d/blend2d-0.11.4-r1.ebuild b/media-libs/blend2d/blend2d-0.11.4-r2.ebuild similarity index 90% rename from media-libs/blend2d/blend2d-0.11.4-r1.ebuild rename to media-libs/blend2d/blend2d-0.11.4-r2.ebuild index b6d2b3b3c..925e6b0c1 100644 --- a/media-libs/blend2d/blend2d-0.11.4-r1.ebuild +++ b/media-libs/blend2d/blend2d-0.11.4-r2.ebuild @@ -24,6 +24,9 @@ RDEPEND="jit? ( >=dev-libs/asmjit-2024.10.25 )" DEPEND="${RDEPEND}" DOCS=( README.md CONTRIBUTING.md ) +PATCHES=( + "${FILESDIR}/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch" +) # see https://github.com/blend2d/blend2d/issues/217 CMAKE_SKIP_TESTS="bl_test_image_io" diff --git a/media-libs/blend2d/blend2d-9999.ebuild b/media-libs/blend2d/blend2d-9999.ebuild index 5f127275a..d94de4e79 100644 --- a/media-libs/blend2d/blend2d-9999.ebuild +++ b/media-libs/blend2d/blend2d-9999.ebuild @@ -24,6 +24,9 @@ RDEPEND="jit? ( >=dev-libs/asmjit-2024.10.25 )" DEPEND="${RDEPEND}" DOCS=( README.md CONTRIBUTING.md ) +PATCHES=( + "${FILESDIR}/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch" +) src_configure() { local mycmakeargs=( diff --git a/media-libs/blend2d/files/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch b/media-libs/blend2d/files/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch new file mode 100644 index 000000000..969e076f8 --- /dev/null +++ b/media-libs/blend2d/files/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch @@ -0,0 +1,21 @@ +Avoid adding -O2 to CFLAGS; gentoo bug #943226 +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7372bab..665ed23 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -555,7 +555,6 @@ if ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" OR "x${CMAKE_CXX_COMPILER_FRONT + + list(APPEND BLEND2D_PRIVATE_CFLAGS_REL + -GS- # [-] Buffer security-check. +- -O2 # [+] Favor speed over size. + -Oi) # [+] Generate Intrinsic Functions. + + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") +@@ -564,7 +563,6 @@ if ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" OR "x${CMAKE_CXX_COMPILER_FRONT + elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU|Clang") + list(APPEND BLEND2D_PRIVATE_CFLAGS -Wall -Wextra) + list(APPEND BLEND2D_PRIVATE_CFLAGS -fno-exceptions -fno-rtti -fno-math-errno) +- list(APPEND BLEND2D_PRIVATE_CFLAGS_REL -O2) + + if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "iOS") + # Disable these flags in case somebody uses -ffast-math globally.