dev-util/apitrace: use pkg-config for waffle

Just a quick drive-by workaround as better-than-broken,
haven't really looked at this package nor upstream.

Still needs a bump, but I won't be looking at that.

Closes: https://bugs.gentoo.org/901365
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2023-06-01 10:16:17 -04:00
parent 4282bc3264
commit e66b9fb716
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@ PATCHES=(
"${FILESDIR}"/${P}-disable-multiarch.patch
"${FILESDIR}"/${P}-brotli-unbundle.patch
"${FILESDIR}"/${P}-libc-dlopen-glibc-2.34.patch
"${FILESDIR}"/${P}-pkgconfig-waffle.patch
)
src_prepare() {
@@ -0,0 +1,14 @@
waffle's upstream intentionally does not ship cmake files anymore
(just a quick fix that works for us, there may be more to consider)
https://bugs.gentoo.org/901365
https://gitlab.freedesktop.org/mesa/waffle/-/issues/74
https://gitlab.freedesktop.org/mesa/waffle/-/commit/a16983fea590491727c8119256c7b938fe1f9d10
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -195,3 +195,4 @@
# Use Waffle for eglretrace
- find_package (Waffle REQUIRED)
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules(Waffle REQUIRED waffle-1)
endif ()