commit: 74fca1ffffffaef18f7f2405b8632f1c22131c1e Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Tue Jan 23 20:05:58 2024 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Tue Jan 23 20:05:58 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74fca1ff
dev-libs/intel-metrics-discovery: fix redefine _FORTIFY_SOURCE Closes: https://bugs.gentoo.org/906388 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> .../files/intel-metrics-discovery-1.12.165.1-cflags.patch | 11 +++++++++++ .../intel-metrics-discovery-1.12.165.1.ebuild | 7 ++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/dev-libs/intel-metrics-discovery/files/intel-metrics-discovery-1.12.165.1-cflags.patch b/dev-libs/intel-metrics-discovery/files/intel-metrics-discovery-1.12.165.1-cflags.patch new file mode 100644 index 000000000000..9a897543ea41 --- /dev/null +++ b/dev-libs/intel-metrics-discovery/files/intel-metrics-discovery-1.12.165.1-cflags.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -435,7 +435,7 @@ + if ("${BUILD_TYPE}" STREQUAL "release") + add_definitions(-DNDEBUG) + # security compiler flags +- add_definitions(-O2 -D_FORTIFY_SOURCE=2 -Wformat) ++ add_definitions(-Wformat) + elseif ("${BUILD_TYPE}" STREQUAL "release-internal" OR + "${BUILD_TYPE}" STREQUAL "releaseinternal") + add_definitions(-D_RELEASE_INTERNAL) diff --git a/dev-libs/intel-metrics-discovery/intel-metrics-discovery-1.12.165.1.ebuild b/dev-libs/intel-metrics-discovery/intel-metrics-discovery-1.12.165.1.ebuild index e9827e7a4117..741e180fbd28 100644 --- a/dev-libs/intel-metrics-discovery/intel-metrics-discovery-1.12.165.1.ebuild +++ b/dev-libs/intel-metrics-discovery/intel-metrics-discovery-1.12.165.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,10 +21,7 @@ KEYWORDS="amd64" DEPEND="x11-libs/libdrm" RDEPEND="${DEPEND}" -src_prepare() { - default - cmake_src_prepare -} +PATCHES=( "${FILESDIR}/${PN}-1.12.165.1-cflags.patch" ) src_configure() { local mycmakeargs=( -DLINUX_DISTRO="Gentoo" )
