Bug 283489 - emulators/flycast: unbreak build after graphics/glslang 15.1.0_1 update
Summary: emulators/flycast: unbreak build after graphics/glslang 15.1.0_1 update
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL: https://pkg-status.freebsd.org/beefy2...
Keywords:
Depends on:
Blocks: 283325
  Show dependency treegraph
 
Reported: 2024-12-22 10:19 UTC by Stefan Schlosser
Modified: 2024-12-23 23:31 UTC (History)
1 user (show)

See Also:


Attachments
unbreak build (1.22 KB, patch)
2024-12-22 10:19 UTC, Stefan Schlosser
bsdcode: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Schlosser 2024-12-22 10:19:18 UTC
Created attachment 256041 [details]
unbreak build

After the update of graphics/glslang to 15.1.0_1 (see PR 283325), the build
fails at configuration stage by not finding the FindSPIRV-Tools-opt.cmake module.
Unbreak the build by adding graphics/spirv-tools to the BUILD_DEPENDS list when
building with vulkan support.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-12-23 23:05:26 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8de81f83be09343d77ac5ee84ab8641cd72a244d

commit 8de81f83be09343d77ac5ee84ab8641cd72a244d
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-12-23 21:05:37 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-12-23 23:03:09 +0000

    graphics/glslang: track static library dependency after cbf133ac4b4a

    $ cat CMakeLists.txt
    cmake_minimum_required(VERSION 3.10)
    project(foo)
    find_package(glslang REQUIRED)

    $ cmake .
    [...]
    CMake Error at /usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
      By not providing "FindSPIRV-Tools-opt.cmake" in CMAKE_MODULE_PATH this
      project has asked CMake to find a package configuration file provided by
      "SPIRV-Tools-opt", but CMake did not find one.

      Could not find a package configuration file provided by "SPIRV-Tools-opt"
      with any of the following names:

        SPIRV-Tools-optConfig.cmake
        spirv-tools-opt-config.cmake

      Add the installation prefix of "SPIRV-Tools-opt" to CMAKE_PREFIX_PATH or
      set "SPIRV-Tools-opt_DIR" to a directory containing one of the above files.
      If "SPIRV-Tools-opt" provides a separate development package or SDK, be
      sure it has been installed.
    Call Stack (most recent call first):
      /usr/local/lib/cmake/glslang/glslang-config.cmake:28 (find_dependency)
      CMakeLists.txt:3 (find_package)

    https://github.com/KhronosGroup/glslang/commit/82e0d00b32d2

    PR:             283489
    Reported by:    Stefan Schlosser

 graphics/glslang/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 2 Jan Beich freebsd_committer freebsd_triage 2024-12-23 23:23:49 UTC
graphics/libplacebo was also affected but masked by an unrelated BROKEN until ports 5dc9e6d0c83c.
Comment 3 Stefan Schlosser 2024-12-23 23:31:30 UTC
Thank you very much for looking into it.