Skip to content

openalSoft: broken pkgconfig file #178570

Open
@fgaz

Description

Describe the bug

the pkgconfig file is invalid

Steps To Reproduce

$ nix-build -A openalSoft
[...]
$ cat result/lib/pkgconfig/openal.pc 
prefix=/nix/store/1p2xn8rigpx45vm7jl7hdipyx4b4vymr-openal-soft-1.22.0
exec_prefix=${prefix}
libdir=${exec_prefix}//nix/store/1p2xn8rigpx45vm7jl7hdipyx4b4vymr-openal-soft-1.22.0/lib
includedir=${prefix}//nix/store/1p2xn8rigpx45vm7jl7hdipyx4b4vymr-openal-soft-1.22.0/include

Name: OpenAL
Description: OpenAL is a cross-platform 3D audio API
Requires: 
Version: 1.22.0
Libs: -L${libdir} -lopenal 
Libs.private:
Cflags: -I${includedir} -I${includedir}/AL

Note the extra ${prefix}/ and ${exec_prefix}/

Expected behavior

A valid pkgconfig file

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

While trying to build a package that depends on openal I got

CMake Error in CMakeLists.txt:
  Imported target "PkgConfig::OPENAL" includes non-existent path                                                                        
                                                                                                                                        
    "/nix/store/1p2xn8rigpx45vm7jl7hdipyx4b4vymr-openal-soft-1.22.0//nix/store/1p2xn8rigpx45vm7jl7hdipyx4b4vymr-openal-soft-1.22.0/include"                                                                                                                                     
                                                                                                                                        
  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:                                                                      
                                                                                                                                        
  * The path was deleted, renamed, or moved to another location.                                                                        
                                                                                                                                        
  * An install or uninstall procedure did not complete successfully.                                                                    
                                                                                                                                        
  * The installation package was faulty and references files it does not                                                                
  provide.                                                                                                                              

Notify maintainers

@ftrvxmtrx @fufexan

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.46, NixOS, 22.05 (Quokka), 22.05.908.a119e218ad2`

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions