Skip to content

Commit

Permalink
buildFHSEnv: symlink libexec into the FHS tree (#328685)
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptaron authored Dec 2, 2024
2 parents 2c15aa5 + 3cf4fac commit 7df3282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkgs/build-support/build-fhsenv-bubblewrap/buildFHSEnv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 7df3282

Please sign in to comment.