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
build-setupcfg
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
fetchbzr
fetchcvs
fetchdarcs
fetchdocker
fetchegg
fetchfossil
fetchgit fetchgit: adapt regex to git 2.18.0 2018-06-28 07:01:14 -05:00
fetchgitlocal
fetchgx
fetchhg
fetchipfs
fetchmavenartifact
fetchmtn
fetchnuget
fetchpatch Revert "haskell generic-builder: Use strictDeps always" 2018-07-04 13:18:21 +02:00
fetchrepoproject
fetchs3
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl fetchurl: add sageupstream mirror 2018-06-30 01:20:44 +02:00
fetchzip
icon-conv-tools
kernel
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
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
build-maven.nix
build-pecl.nix
closure-info.nix
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