3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support
aszlig caccc40ad0
vmTools: Fix BusyBox runtime error in initrd
With the recent update of BusyBox to version 1.29.0 in
d6aa506e3b there is now a new dependency
on libresolv.

This now throws a runtime error when executing ash, eg. whenever we do
something like this:

nix-build -E 'with import ./. {}; vmTools.runInLinuxVM hello'

The resulting error will be:

  .../ash: error while loading shared libraries: libresolv.so.2: cannot
           open shared object file: No such file or directory

I tried to override BusyBox with enableStatic, but that still requires
parts of glibc:

  Static linking against glibc, can't use --gc-sections
  Trying libraries: crypt m resolv
   Library crypt is not needed, excluding it
   Library m is needed, can't exclude it (yet)
   Library resolv is needed, can't exclude it (yet)
   Library m is needed, can't exclude it (yet)
   Library resolv is needed, can't exclude it (yet)
  Final link with: m resolv

In the long term maybe switching to a more minimal C library such as
musl would make more sense, but for now I just added libresolv.so to the
initrd which fixes the runtime error.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @edolstra, @rbvermaa
Signed-off-by: aszlig <aszlig@nix.build>
2018-07-18 03:02:55 +02:00
..
agda
bintools-wrapper cc-wrapper, bintools-wrapper: use getHostRoleEnvHook instead of getTargetRoleEnvHook 2018-06-03 10:54:32 -04:00
build-bazel-package bazel-deps: init at 2018-05-31 (#43018) 2018-07-09 22:38:45 +00:00
build-dotnet-package
build-fhs-userenv buildFHSUserEnv: change to root directory after chroot 2018-04-28 14:51:07 +01:00
build-setupcfg Revert "buildSetupcfg: Include unzip for zip sources." 2018-04-14 20:12:22 -04:00
buildenv
cc-wrapper cc-wrapper: disable stackprotector for mingw 2018-06-23 22:05:26 -04:00
docker dockerTools.examples: explicitly set image tag to fix docker-tools tests 2018-07-06 16:38:42 +02:00
dotnetbuildhelpers
dotnetenv
emacs emacsPackagesNg: 2018-07-15 update 2018-07-15 20:52:41 -05:00
expand-response-params
fetchbower Merge remote-tracking branch 'upstream/master' into staging 2018-01-14 21:18:27 +02:00
fetchbzr
fetchcvs bsd: init netbsd & openbsd userland 2018-04-24 14:16:35 -05:00
fetchdarcs Merge remote-tracking branch 'upstream/master' into staging 2018-01-14 21:18:27 +02:00
fetchdocker
fetchegg
fetchfossil
fetchgit fetchgit: adapt regex to git 2.18.0 2018-06-28 07:01:14 -05:00
fetchgitlocal
fetchgx Merge remote-tracking branch 'upstream/master' into staging 2018-01-14 21:18:27 +02:00
fetchhg
fetchipfs
fetchmavenartifact
fetchmtn
fetchnuget
fetchpatch Revert "haskell generic-builder: Use strictDeps always" 2018-07-04 13:18:21 +02:00
fetchrepoproject
fetchs3 fetchs3: allow to name the derivation output (#39823) 2018-05-03 11:08:25 +01:00
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl fetchurl: add sageupstream mirror 2018-06-30 01:20:44 +02:00
fetchzip
icon-conv-tools
kernel kernel: Fix running kernels *with* modules 2018-04-12 15:43:53 +02:00
libredirect
make-desktopitem
make-startupitem
make-symlinks
mkshell
mono-dll-fixer
nix-prefetch-github nix-prefetch-github: init -> 1.3 2018-05-22 20:55:07 +02:00
nuke-references
ocaml
release debBuild: install all packages at once to avoid dependency management 2018-02-19 16:07:40 +03:00
remove-references-to
rust buildRustCrate: Add some commentary about target_os. 2018-07-02 11:22:47 -04:00
setup-hooks autoPatchelfHook: Run after patchelf's setup hook 2018-07-16 01:52:28 +02:00
singularity-tools singularity-tools: create mount points for image building (#41470) 2018-06-18 23:50:06 +02:00
src-only
substitute
substitute-files
templaterpm
upstream-updater
vm vmTools: Fix BusyBox runtime error in initrd 2018-07-18 03:02:55 +02:00
wrapper-common {bintools,cc}-wrapper: Factor out role accumulation logic 2018-05-07 15:10:45 -04:00
build-maven.nix
build-pecl.nix
closure-info.nix Cleanup 2018-02-27 19:59:26 +01:00
dhall-to-nix.nix
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix
trivial-builders.nix trivial-builders: disallow sub in requireFile 2018-06-26 21:49:08 -04:00