* [gentoo-commits] repo/gentoo:master commit in: dev-libs/intel-metrics-discovery/, dev-libs/intel-metrics-discovery/files/
@ 2024-01-23 20:07 Conrad Kostecki
0 siblings, 0 replies; 2+ messages in thread
From: Conrad Kostecki @ 2024-01-23 20:07 UTC (permalink / raw
To: gentoo-commits
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" )
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/intel-metrics-discovery/, dev-libs/intel-metrics-discovery/files/
@ 2024-11-23 23:36 Conrad Kostecki
0 siblings, 0 replies; 2+ messages in thread
From: Conrad Kostecki @ 2024-11-23 23:36 UTC (permalink / raw
To: gentoo-commits
commit: 5cc68fa5d085fe50ce95246f181934cff13d5df4
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 23 00:10:06 2024 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 23:33:00 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cc68fa5
dev-libs/intel-metrics-discovery: add 1.13.178
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
dev-libs/intel-metrics-discovery/Manifest | 1 +
...ics-discovery-1.12.178-revert-definitions.patch | 28 +++++++++++++++++++++
.../intel-metrics-discovery-1.13.178.ebuild | 29 ++++++++++++++++++++++
3 files changed, 58 insertions(+)
diff --git a/dev-libs/intel-metrics-discovery/Manifest b/dev-libs/intel-metrics-discovery/Manifest
index c9c0766ed2e6..c99815447b19 100644
--- a/dev-libs/intel-metrics-discovery/Manifest
+++ b/dev-libs/intel-metrics-discovery/Manifest
@@ -1 +1,2 @@
DIST metrics-discovery-1.13.176.tar.gz 5398346 BLAKE2B a50920e78404069bc92adbb06b5fa932680a03f8e72845c927aa8f8943eddd03805fad3e25ee5da5407e31a3209f7662b8cebc19fb9bbfd4d2df10b57225f138 SHA512 2c1aaa701a01700672ef1f45d86a8f78582be8f9ec9b160b94a1f1ba82f0567cb6bfafe2ff0cc9e0d3e5406215b7a402635ac128dae8382301077b3cb5ae2836
+DIST metrics-discovery-1.13.178.tar.gz 5398480 BLAKE2B f36a239318d7050f6abcb3cf9a9b12e9aea9b87a91a73dcd32f1d3d02addaf70f168fc8b17b19edcd2abfda2288170076237c9e8f9ce4c37cbb103b8faf68fd5 SHA512 d4fd142f23d06fff281106490d790eb81fe7cbf5fb4d2b57d796807aedaddb975a85d4c11880a867d6e60545eae106841cabbae6f80d9663f787b1aa3dd8af7d
diff --git a/dev-libs/intel-metrics-discovery/files/intel-metrics-discovery-1.12.178-revert-definitions.patch b/dev-libs/intel-metrics-discovery/files/intel-metrics-discovery-1.12.178-revert-definitions.patch
new file mode 100644
index 000000000000..4f707e3f4949
--- /dev/null
+++ b/dev-libs/intel-metrics-discovery/files/intel-metrics-discovery-1.12.178-revert-definitions.patch
@@ -0,0 +1,28 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -453,7 +453,6 @@
+ if ("${BUILD_TYPE}" STREQUAL "release")
+ add_definitions(-DNDEBUG)
+ # optimization flags
+- add_definitions(-O2)
+ elseif ("${BUILD_TYPE}" STREQUAL "release-internal" OR
+ "${BUILD_TYPE}" STREQUAL "releaseinternal")
+ add_definitions(-D_RELEASE_INTERNAL)
+@@ -472,17 +471,10 @@
+ add_definitions(-Wno-strict-aliasing)
+ add_definitions(-Wno-unknown-pragmas)
+ add_definitions(-Wno-comment)
+- add_definitions(-msse)
+ if ("${BUILD_TYPE}" STREQUAL "release" OR
+ "${BUILD_TYPE}" STREQUAL "release-internal" OR
+ "${BUILD_TYPE}" STREQUAL "releaseinternal")
+- add_definitions(-Werror=format-security) # treat format string security warnings as errors
+- add_definitions(-Werror) # treat warning as errors
+ add_definitions(-fvisibility=hidden) # to disable exporting internal symbols (by default gcc exports all symbols)
+- add_definitions(-flto) # enables Link-Time Optimization (LTO)
+- add_definitions(-fPIC) # generates position-independent code during the compilation phase
+- add_definitions(-fPIE) # generates position-independent executables during the compilation phase
+- add_definitions(-pie) # produces position-independent executables during the linking phase
+ elseif ("${BUILD_TYPE}" STREQUAL "debug")
+ add_definitions(-g)
+ endif ()
diff --git a/dev-libs/intel-metrics-discovery/intel-metrics-discovery-1.13.178.ebuild b/dev-libs/intel-metrics-discovery/intel-metrics-discovery-1.13.178.ebuild
new file mode 100644
index 000000000000..fa161df3c12e
--- /dev/null
+++ b/dev-libs/intel-metrics-discovery/intel-metrics-discovery-1.13.178.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_BUILD_TYPE="Release"
+MY_PN="${PN/intel-/}"
+MY_P="${MY_PN}-${PV}"
+
+inherit cmake
+
+DESCRIPTION="A user mode library that provides access to GPU performance data"
+HOMEPAGE="https://github.com/intel/metrics-discovery"
+SRC_URI="https://github.com/intel/${MY_PN}/archive/refs/tags/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_PN}-${MY_P}"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+
+DEPEND="x11-libs/libdrm"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-1.12.178-revert-definitions.patch" )
+
+src_configure() {
+ local mycmakeargs=( -DLINUX_DISTRO="Gentoo" )
+ cmake_src_configure
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-23 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-23 23:36 [gentoo-commits] repo/gentoo:master commit in: dev-libs/intel-metrics-discovery/, dev-libs/intel-metrics-discovery/files/ Conrad Kostecki
-- strict thread matches above, loose matches on Subject: below --
2024-01-23 20:07 Conrad Kostecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox