Skip to content

Commit

Permalink
Merge pull request #89 from mikatammi/yocto_fhsenv_fix
Browse files Browse the repository at this point in the history
yocto: Fix deprecation warnings
  • Loading branch information
Mic92 authored Jan 8, 2025
2 parents bdfffe4 + 7a01594 commit e61efc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions envs/yocto/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}:

let
fhs = pkgs.buildFHSUserEnvBubblewrap {
fhs = pkgs.buildFHSEnvBubblewrap {
name = "yocto-fhs";
targetPkgs = pkgs: with pkgs; let
ncurses' = pkgs.ncurses5.overrideAttrs
Expand Down Expand Up @@ -40,7 +40,7 @@ let
lz4'
# https://github.com/NixOS/nixpkgs/issues/218534
# postFixup would create symlinks for the non-unicode version but since it breaks
# in buildFHSUserEnv, we just install both variants
# in buildFHSEnv, we just install both variants
ncurses'
(ncurses'.override { unicodeSupport = false; })
patch
Expand Down Expand Up @@ -102,7 +102,7 @@ let
'';
in
''
# buildFHSUserEnvBubblewrap configures ld.so.conf while buildFHSUserEnv additionally sets the LD_LIBRARY_PATH.
# buildFHSEnvBubblewrap configures ld.so.conf while buildFHSEnv additionally sets the LD_LIBRARY_PATH.
# This is redundant, and incorrectly overrides the RPATH of yocto-built binaries causing the dynamic loader
# to load libraries from the host system that they were not built against, instead of those from yocto.
unset LD_LIBRARY_PATH
Expand All @@ -111,7 +111,7 @@ let
# ld-config causing unexpected libraries to be loaded when when the executable is run.
export NIX_DYNAMIC_LINKER_${pkgs.stdenv.cc.suffixSalt}="/lib/ld-linux-x86-64.so.2"
# These are set by buildFHSUserEnvBubblewrap
# These are set by buildFHSEnvBubblewrap
export BB_ENV_PASSTHROUGH_ADDITIONS="${lib.strings.concatStringsSep " " passthroughVars}"
# source the config for bibake equal to --postread
Expand Down

0 comments on commit e61efc3

Please sign in to comment.