Unverified Commit c38990bf authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #311951 from msanft/gvisor/fix-ldconfig-path

gvisor: fix ldconfig path
parents 24cf45af da7ae1ba
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
, iptables
, makeWrapper
, procps
, glibc
}:

buildGoModule {
@@ -23,6 +24,12 @@ buildGoModule {
    hash = "sha256-idgUEbYAfnm/HphVs12Sj1FwG+jmL2BBr0PJnG9BC3A=";
  };

    # Replace the placeholder with the actual path to ldconfig
  postPatch = ''
    substituteInPlace runsc/container/container.go \
      --replace-fail '"/sbin/ldconfig"' '"${glibc}/bin/ldconfig"'
  '';

  vendorHash = "sha256-jbMXeNXzvjfJcIfHjvf8I3ePjm6KFTXJ94ia4T2hUs4=";

  nativeBuildInputs = [ makeWrapper ];