libarchive: pass CMAKE_INSTALL_LIBDIR
authorRobert Marko <redacted>
Tue, 10 Jun 2025 17:22:12 +0000 (19:22 +0200)
committerRobert Marko <redacted>
Tue, 10 Jun 2025 19:41:35 +0000 (21:41 +0200)
commitaf419864e305ca30758a9dd84560a62f7bf0ab28
treeb3527bab70a5eee6d1505e0ce0f19bb8825f5546
parentc0a839e5ad6e74f3fb32885bd9324bd9daecc810
libarchive: pass CMAKE_INSTALL_LIBDIR

libarchive changed the pkgconfig install logic in 3.8.1, so that it now
installs the pkgconfig file in ${CMAKE_INSTALL_LIBDIR}/pkgconfig instead
of the previous lib/pkgconfig.

While this is a bug[1] in libarchive as this was unintended change, until
that is fixed upstream lets pass -DCMAKE_INSTALL_LIBDIR=lib to restore
previous behaviour in order for InstallDev step to install the .pc file so
other packages can find libarchive and link against it.

[1] https://github.com/libarchive/libarchive/issues/2667

Fixes: d77931df5db6 ("libarchive: bump to 3.8.1")
Signed-off-by: Robert Marko <redacted>
libs/libarchive/Makefile
git clone https://git.99rst.org/PROJECT