buildFHSEnv: symlink libexec into the FHS tree (#328685)

This commit is contained in:
Philip Taron
2024-12-01 16:33:50 -08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
@@ -196,6 +196,7 @@ let
ln -s /usr/lib32 $out/lib32
ln -s /usr/lib64 $out/lib64
ln -s /usr/lib64 $out/usr/lib
ln -s /usr/libexec $out/libexec
# symlink 32-bit ld-linux so it's visible in /lib
if [ -e $out/usr/lib32/ld-linux.so.2 ]; then
@@ -159,7 +159,7 @@ fn collect_candidate_paths(
}
fn remap_native_path(root: &Path, p: &Path) -> Option<PathBuf> {
if p.starts_with("bin/") || p.starts_with("sbin/") {
if p.starts_with("bin/") || p.starts_with("sbin/") || p.starts_with("libexec/") {
return Some(PathBuf::from("usr/").join(p));
}