Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 901365

Summary: dev-util/apitrace-9.0-r3 - Could not find a package configuration file provided by Waffle with any
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, ionen, laguest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=896914
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
CMakeOutput.log
dev-util:apitrace-9.0-r3:20230314-202941.log
emerge-history.txt
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2
Patch for media-libs/waffle restoring the generation of CMake files

Description Toralf Förster gentoo-dev 2023-03-15 17:34:57 UTC
-- Found procps: /usr/lib64/libprocps.so  
CMake Error at CMakeLists.txt:196 (find_package):
  By not providing "FindWaffle.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Waffle", but
  CMake did not find one.

  Could not find a package configuration file provided by "Waffle" with any
  of the following names:


  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j5-20230313-020913

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.7
Python 3.10.10
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.67.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit f2a7564e136191d67dbb4df369ea58e60f4bf916
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Mar 14 19:47:02 2023 +0000

    2023-03-14 19:47:02 UTC

emerge -qpvO dev-util/apitrace
[ebuild  N    ] dev-util/apitrace-9.0-r3  USE="-X -qt5" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_10 -python3_9"
Comment 1 Toralf Förster gentoo-dev 2023-03-15 17:34:58 UTC
Created attachment 857855 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-03-15 17:34:59 UTC
Created attachment 857857 [details]
CMakeOutput.log
Comment 3 Toralf Förster gentoo-dev 2023-03-15 17:35:00 UTC
Created attachment 857859 [details]
dev-util:apitrace-9.0-r3:20230314-202941.log
Comment 4 Toralf Förster gentoo-dev 2023-03-15 17:35:01 UTC
Created attachment 857861 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2023-03-15 17:35:03 UTC
Created attachment 857863 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2023-03-15 17:35:04 UTC
Created attachment 857865 [details]
etc.clang.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-03-15 17:35:05 UTC
Created attachment 857867 [details]
etc.portage.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2023-03-15 17:35:06 UTC
Created attachment 857869 [details]
logs.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2023-03-15 17:35:07 UTC
Created attachment 857871 [details]
temp.tar.bz2
Comment 10 Denis Lisov 2023-04-13 13:09:24 UTC
Looks like media-libs/waffle upstream intentionally dropped[1] generating cmake files when building with Meson on non-Windows in 1.7.1 (and deprecate cmake support altogether[2]).

[1]: https://gitlab.freedesktop.org/mesa/waffle/-/commit/a16983fea590491727c8119256c7b938fe1f9d10
[2]: https://gitlab.freedesktop.org/mesa/waffle/-/issues/74
Comment 11 Florian Albrechtskirchinger 2023-05-15 07:02:14 UTC
Created attachment 861710 [details, diff]
Patch for media-libs/waffle restoring the generation of CMake files

I've attached a patch for media-libs/waffle that restores the generation of CMake files (thanks to Denis for pointing out the issue). I was able to successfully build apitrace after re-emerging waffle.
Comment 12 Henry R. Bent 2023-05-23 12:28:40 UTC
I am also running into this problem and Florian's patch fixes it for me.
Comment 13 Ionen Wolkens gentoo-dev 2023-06-01 13:25:28 UTC
*** Bug 907615 has been marked as a duplicate of this bug. ***
Comment 14 Larry the Git Cow gentoo-dev 2023-06-01 14:16:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e66b9fb7165acbbf4d7056ea9c93cf791aa806ff

commit e66b9fb7165acbbf4d7056ea9c93cf791aa806ff
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-06-01 13:38:17 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-06-01 14:16:17 +0000

    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>

 dev-util/apitrace/apitrace-9.0-r3.ebuild                   |  1 +
 .../apitrace/files/apitrace-9.0-pkgconfig-waffle.patch     | 14 ++++++++++++++
 2 files changed, 15 insertions(+)