NixOS / NixOS/nixpkgs

libvorbis: did not include cmake package configuration

Open
#548,129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0.kind: bug
Dominant language
Nix
Stars
26.2k
Forks
20.1k
PR merge metrics
PR metrics pending

Description

Nixpkgs version
  • Unstable (26.11)
Describe the bug

Expected to find

VorbisConfig.cmake
VorbisConfigVersion.cmake
VorbisTargets-release.cmake
VorbisTargets.cmake

to use by the cmake find_package command

Steps to reproduce
  1. Install libvorbis
  2. Use find_package(Vorbis) in a project
  3. run cmake
Expected behaviour

cmake should be creamy

Screenshots

No response

Relevant log output
CMake Error at extern/CMakeLists.txt:87 (find_package):
  By not providing "FindVorbis.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Vorbis", but
  CMake did not find one.

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

    Vorbis.cps
    vorbis.cps
    VorbisConfig.cmake
    vorbis-config.cmake

  Add the installation prefix of "Vorbis" to CMAKE_PREFIX_PATH or set
  "Vorbis_DIR" to a directory containing one of the above files.  If "Vorbis"
  provides a separate development package or SDK, be sure it has been
  installed.
Additional context

It appears that just adding cmake to nativeBuildInputs by overriding seems so solve the issue but may cause additional issue like the doc output may be gone?

System metadata
  • system: "x86_64-linux"
  • host os: Linux 7.1.2, NixOS, 26.11 (Zokor), 26.11.20260701.9e92285
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.34.7
  • channels(root): ""
  • nixpkgs: /nix/store/7gyywr0gaaqz927fcva9mw4ldxv8lzbr-nixpkgs/nixpkgs
Notify maintainers

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs
Is this issue important to you?

Add a 👍 reaction to issues you find important.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproducer at extern/CMakeLists.txt:87 and inspect how the libvorbis package is built and installed. Run the find_package(Vorbis) example against the package, then verify that the expected VorbisConfig.cmake, version, and targets files are available and the CMake configure step succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.