Open bryceberger opened 2 months ago
This might be relevant to notify upstream? I believe the offending line is here: set(libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}). Nix sets CMAKE_INSTALL_LIBDIR to an absolute path (allowed, according to the cmake docs, but not recommended), but libftdi assumes that it's relative.
Yes please. Replacing ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}
with ${CMAKE_INSTALL_FULL_LIBDIR}
upstream should fix the issue.
Describe the bug
The generated
libfti1.pc
has the wronglibdir
, causing it to not link correctly.Steps To Reproduce
Steps to reproduce the behavior:
nix build github:nixos/nixpkgs/c79da508#libftdi1
cat result/lib/pkgconfig/libftdi1.pc
libdir=/nix/store/{hash}//nix/store/{hash}/lib
Expected behavior
Should just be set to
/nix/store/{hash}/lib
Additional context
This might be relevant to notify upstream? I believe the offending line is here:
set(libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
. Nix setsCMAKE_INSTALL_LIBDIR
to an absolute path (allowed, according to the cmake docs, but not recommended), butlibftdi
assumes that it's relative.Have not yet bisected to find the point of failure, occurred when updating:
Notify maintainers
@bjornfor (maintainer), @mweinelt (last touched)
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.