Skip to content

Commit

Permalink
Fixup pkgconfig file for absolute install dirs.
Browse files Browse the repository at this point in the history
Fixes:
```
slang> Broken paths found in a .pc file! /nix/store/23f6pl4nhwl4xx1h35hs64d1kqh9g5sk-slang-1.0g20221020_fdf27a0/share/pkgconfig/sv-lang.pc
slang> The following lines have issues (specifically '//' in paths).
slang> 2:includedir="${prefix}//nix/store/23f6pl4nhwl4xx1h35hs64d1kqh9g5sk-slang-1.0g20221020_fdf27a0/include"
slang> 3:libdir="${prefix}//nix/store/23f6pl4nhwl4xx1h35hs64d1kqh9g5sk-slang-1.0g20221020_fdf27a0/lib"
slang> It is very likely that paths are being joined improperly.
slang> ex: "${prefix}/@CMAKE_INSTALL_LIBDIR@" should be "@CMAKE_INSTALL_FULL_LIBDIR@"
slang> Please see NixOS/nixpkgs#144170 for more details.
error: builder for '/nix/store/4w5nq781aw161b9lrk1f59j914ibk368-slang-1.0g20221020_fdf27a0.drv' failed with exit code 1;
```
  • Loading branch information
dtzWill committed Oct 28, 2022
1 parent ea3d64e commit 36138d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/sv-lang.pc.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
prefix=@CMAKE_INSTALL_PREFIX@
includedir="${prefix}/@CMAKE_INSTALL_INCLUDEDIR@"
libdir="${prefix}/@CMAKE_INSTALL_LIBDIR@"
includedir="@CMAKE_INSTALL_FULL_INCLUDEDIR@"
libdir="@CMAKE_INSTALL_FULL_LIBDIR@"

Name: @PROJECT_NAME@
Description: @PROJECT_DESCRIPTION@
Expand Down

0 comments on commit 36138d6

Please sign in to comment.