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

gvisor: fix ldconfig path
This commit is contained in:
Aleksana
2024-05-21 21:16:38 +08:00
committed by GitHub
+7
View File
@@ -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 ];