diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-06-10 22:48:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-10 22:48:03 +0100 |
commit | f2e1e7f3cd9f89f926d147f2c6a8aab533ec75bd (patch) | |
tree | 716d7a5cea1c9098bf96937af9526bece0eff18d /pkgs/applications/virtualization | |
parent | 86de155951a0e86d3e8d40c9b0845b8cb1c7d8ee (diff) | |
parent | 46b00e0b15e93607a7e797408e08fe3ca441e765 (diff) | |
download | nixlib-f2e1e7f3cd9f89f926d147f2c6a8aab533ec75bd.tar nixlib-f2e1e7f3cd9f89f926d147f2c6a8aab533ec75bd.tar.gz nixlib-f2e1e7f3cd9f89f926d147f2c6a8aab533ec75bd.tar.bz2 nixlib-f2e1e7f3cd9f89f926d147f2c6a8aab533ec75bd.tar.lz nixlib-f2e1e7f3cd9f89f926d147f2c6a8aab533ec75bd.tar.xz nixlib-f2e1e7f3cd9f89f926d147f2c6a8aab533ec75bd.tar.zst nixlib-f2e1e7f3cd9f89f926d147f2c6a8aab533ec75bd.zip |
Merge pull request #26503 from vdemeester/update-runc
Update runc to 1.0.0-rc3
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r-- | pkgs/applications/virtualization/runc/default.nix | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/pkgs/applications/virtualization/runc/default.nix b/pkgs/applications/virtualization/runc/default.nix index 3ce183d90e26..3c7480e51812 100644 --- a/pkgs/applications/virtualization/runc/default.nix +++ b/pkgs/applications/virtualization/runc/default.nix @@ -5,30 +5,15 @@ with lib; stdenv.mkDerivation rec { name = "runc-${version}"; - version = "1.0.0-rc2"; + version = "1.0.0-rc3"; src = fetchFromGitHub { owner = "opencontainers"; repo = "runc"; rev = "v${version}"; - sha256 = "06bxc4g3frh4i1lkzvwdcwmzmr0i52rz4a4pij39s15zaigm79wk"; + sha256 = "14hdhnni0rz3g0bhcaq95zn2zrhyds0mq2pm2padbamg4bgq4r1c"; }; - patches = [ - # Two patches to fix CVE-2016-9962 - # From https://bugzilla.suse.com/show_bug.cgi?id=1012568 - (fetchpatch { - name = "0001-libcontainer-nsenter-set-init-processes-as-non-dumpa.patch"; - url = "https://bugzilla.suse.com/attachment.cgi?id=709048&action=diff&context=patch&collapsed=&headers=1&format=raw"; - sha256 = "1cfsmsyhc45a2929825mdaql0mrhhbrgdm54ly0957j2f46072ck"; - }) - (fetchpatch { - name = "0002-libcontainer-init-only-pass-stateDirFd-when-creating.patch"; - url = "https://bugzilla.suse.com/attachment.cgi?id=709049&action=diff&context=patch&collapsed=&headers=1&format=raw"; - sha256 = "1ykwg1mbvsxsnsrk9a8i4iadma1g0rgdmaj19dvif457hsnn31wl"; - }) - ]; - outputs = [ "out" "man" ]; hardeningDisable = ["fortify"]; @@ -37,7 +22,16 @@ stdenv.mkDerivation rec { makeFlags = ''BUILDTAGS+=seccomp BUILDTAGS+=apparmor''; + preConfigure = '' + # Extract the source + cd "$NIX_BUILD_TOP" + mkdir -p "go/src/github.com/opencontainers" + mv "$sourceRoot" "go/src/github.com/opencontainers/runc" + export GOPATH=$NIX_BUILD_TOP/go:$GOPATH + ''; + preBuild = '' + cd go/src/github.com/opencontainers/runc patchShebangs . substituteInPlace libcontainer/apparmor/apparmor.go \ --replace /sbin/apparmor_parser ${apparmor-parser}/bin/apparmor_parser |