Merge pull request #44900 from volth/patch-228

libvirt: fix dlopen("libjansson.so.4")
This commit is contained in:
Franz Pletz 2018-08-11 20:24:11 +00:00 committed by GitHub
commit b5b11e9da4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,10 @@ in stdenv.mkDerivation rec {
substituteInPlace src/lxc/lxc_conf.c \
--replace 'lxc_path,' '"/run/libvirt/nix-emulators/libvirt_lxc",'
[ -f ${jansson}/lib/libjansson.so.4 ] || exit 1
substituteInPlace src/util/virjsoncompat.c \
--replace '"libjansson.so.4"' '"${jansson}/lib/libjansson.so.4"'
patchShebangs . # fixes /usr/bin/python references
'';