[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help needed for glbinding: CMake fails in autopkgtest



Hi,

Am Tue, Dec 10, 2024 at 05:38:28PM +0100 schrieb Andreas Tille:

Am Wed, Nov 27, 2024 at 07:07:55AM +0100 schrieb Anton Gladky:
thanks for working on this! I have pushed the fix.

Thanks a lot.  The package was accepted from new, but it breaks
globjects autopkgtest according to tracker[1].  I tried rebuilding (and
refreshing packaging!) of globject but it also has some cmake issues.


I think the problem is actually in glbinding:

/usr/lib/x86_64-linux-gnu/cmake/glbinding/glbinding-config.cmake
might be missing a `find_package(KHR)` call that defines these targets (used
in /usr/lib/x86_64-linux-gnu/cmake/glbinding/glbinding-export.cmake).
Note that the file where the test for KHR is defined is
/usr/lib/x86_64-linux-gnu/cmake/glbinding/FindKHR.cmake. This needs to be
in the CMAKE_MODULE_PATH for this to work.

list(PREPEND  CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
find_package(KHR)
list(POP_FRONT CMAKE_MODULE_PATH)


A workaround in globjects would be to put this after find_package(glbinding).

list(PREPEND CMAKE_MODULE_PATH ${glbinding_DIR})
find_package(KHR)
list(POP_FRONT CMAKE_MODULE_PATH)

Markus

Any help would be welcome
  Andreas.


[1] https://tracker.debian.org/pkg/glbinding
[2] https://salsa.debian.org/science-team/globjects/-/jobs/6732242


Reply to: