lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #301553 from WxNzEMof/podman-5

podman: 4.9.3 -> 5.0.1

authored by

Sandro and committed by
GitHub
f9be31de dbc4877d

+138 -8
+12 -5
pkgs/applications/virtualization/podman/default.nix
··· 17 17 , makeWrapper 18 18 , runtimeShell 19 19 , symlinkJoin 20 + , substituteAll 20 21 , extraPackages ? [ ] 21 22 , runc 22 23 , crun 24 + , gvisor 25 + , youki 23 26 , conmon 24 27 , slirp4netns 25 28 , fuse-overlayfs ··· 30 33 , gvproxy 31 34 , aardvark-dns 32 35 , netavark 36 + , passt 33 37 , testers 34 38 , podman 35 39 }: ··· 37 41 # do not add qemu to this wrapper, store paths get written to the podman vm config and break when GCed 38 42 39 43 binPath = lib.makeBinPath (lib.optionals stdenv.isLinux [ 40 - runc 41 - crun 42 - conmon 43 44 fuse-overlayfs 44 45 util-linux 45 46 iptables ··· 57 58 catatonit # added here for the pause image and also set in `containersConf` for `init_path` 58 59 netavark 59 60 slirp4netns 61 + passt 60 62 ]; 61 63 }; 62 64 in 63 65 buildGoModule rec { 64 66 pname = "podman"; 65 - version = "4.9.3"; 67 + version = "5.0.1"; 66 68 67 69 src = fetchFromGitHub { 68 70 owner = "containers"; 69 71 repo = "podman"; 70 72 rev = "v${version}"; 71 - hash = "sha256-PdAXcXtc/Jl3ttWWB6TciiOwWescJ51Glhf2ZhOw550="; 73 + hash = "sha256-XgLrPLswLmaB9FYXKEMLP+7KT/OY50z3JKz8DvMLrEE="; 72 74 }; 73 75 74 76 patches = [ 77 + (substituteAll { 78 + src = ./hardcode-paths.patch; 79 + inherit crun runc gvisor youki conmon; 80 + }) 81 + 75 82 # we intentionally don't build and install the helper so we shouldn't display messages to users about it 76 83 ./rm-podman-mac-helper-msg.patch 77 84 ];
+109
pkgs/applications/virtualization/podman/hardcode-paths.patch
··· 1 + diff --git a/vendor/github.com/containers/common/pkg/config/default.go b/vendor/github.com/containers/common/pkg/config/default.go 2 + index 19c4bb6bf..2743de4b2 100644 3 + --- a/vendor/github.com/containers/common/pkg/config/default.go 4 + +++ b/vendor/github.com/containers/common/pkg/config/default.go 5 + @@ -364,75 +364,34 @@ func defaultEngineConfig() (*EngineConfig, error) { 6 + c.Retry = 3 7 + c.OCIRuntimes = map[string][]string{ 8 + "crun": { 9 + - "/usr/bin/crun", 10 + - "/usr/sbin/crun", 11 + - "/usr/local/bin/crun", 12 + - "/usr/local/sbin/crun", 13 + - "/sbin/crun", 14 + - "/bin/crun", 15 + - "/run/current-system/sw/bin/crun", 16 + + "@crun@/bin/crun", 17 + }, 18 + "crun-vm": { 19 + - "/usr/bin/crun-vm", 20 + - "/usr/local/bin/crun-vm", 21 + - "/usr/local/sbin/crun-vm", 22 + - "/sbin/crun-vm", 23 + - "/bin/crun-vm", 24 + - "/run/current-system/sw/bin/crun-vm", 25 + + // TODO: "@crun-vm@/bin/crun-vm", 26 + }, 27 + "crun-wasm": { 28 + - "/usr/bin/crun-wasm", 29 + - "/usr/sbin/crun-wasm", 30 + - "/usr/local/bin/crun-wasm", 31 + - "/usr/local/sbin/crun-wasm", 32 + - "/sbin/crun-wasm", 33 + - "/bin/crun-wasm", 34 + - "/run/current-system/sw/bin/crun-wasm", 35 + + // TODO: "@crun-wasm@/bin/crun-wasm", 36 + }, 37 + "runc": { 38 + - "/usr/bin/runc", 39 + - "/usr/sbin/runc", 40 + - "/usr/local/bin/runc", 41 + - "/usr/local/sbin/runc", 42 + - "/sbin/runc", 43 + - "/bin/runc", 44 + - "/usr/lib/cri-o-runc/sbin/runc", 45 + - "/run/current-system/sw/bin/runc", 46 + + "@runc@/bin/runc", 47 + }, 48 + "runj": { 49 + - "/usr/local/bin/runj", 50 + + // TODO: "@runj@/bin/runj", 51 + }, 52 + "kata": { 53 + - "/usr/bin/kata-runtime", 54 + - "/usr/sbin/kata-runtime", 55 + - "/usr/local/bin/kata-runtime", 56 + - "/usr/local/sbin/kata-runtime", 57 + - "/sbin/kata-runtime", 58 + - "/bin/kata-runtime", 59 + - "/usr/bin/kata-qemu", 60 + - "/usr/bin/kata-fc", 61 + + // TODO: "@kata@/bin/kata", 62 + }, 63 + "runsc": { 64 + - "/usr/bin/runsc", 65 + - "/usr/sbin/runsc", 66 + - "/usr/local/bin/runsc", 67 + - "/usr/local/sbin/runsc", 68 + - "/bin/runsc", 69 + - "/sbin/runsc", 70 + - "/run/current-system/sw/bin/runsc", 71 + + "@gvisor@/bin/runsc", 72 + }, 73 + "youki": { 74 + - "/usr/local/bin/youki", 75 + - "/usr/bin/youki", 76 + - "/bin/youki", 77 + - "/run/current-system/sw/bin/youki", 78 + + "@youki@/bin/youki", 79 + }, 80 + "krun": { 81 + - "/usr/bin/krun", 82 + - "/usr/local/bin/krun", 83 + + // TODO: "@krun@/bin/krun", 84 + }, 85 + "ocijail": { 86 + - "/usr/local/bin/ocijail", 87 + + // TODO: "@ocijail@/bin/ocijail", 88 + }, 89 + } 90 + c.PlatformToOCIRuntime = map[string]string{ 91 + @@ -443,16 +402,9 @@ func defaultEngineConfig() (*EngineConfig, error) { 92 + // Needs to be called after populating c.OCIRuntimes. 93 + c.OCIRuntime = c.findRuntime() 94 + 95 + - c.ConmonEnvVars.Set([]string{"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}) 96 + + c.ConmonEnvVars.Set([]string{}) 97 + c.ConmonPath.Set([]string{ 98 + - "/usr/libexec/podman/conmon", 99 + - "/usr/local/libexec/podman/conmon", 100 + - "/usr/local/lib/podman/conmon", 101 + - "/usr/bin/conmon", 102 + - "/usr/sbin/conmon", 103 + - "/usr/local/bin/conmon", 104 + - "/usr/local/sbin/conmon", 105 + - "/run/current-system/sw/bin/conmon", 106 + + "@conmon@/bin/conmon", 107 + }) 108 + c.ConmonRsPath.Set([]string{ 109 + "/usr/libexec/podman/conmonrs",
+17 -3
pkgs/applications/virtualization/podman/rm-podman-mac-helper-msg.patch
··· 1 1 diff --git a/pkg/machine/machine_common.go b/pkg/machine/machine_common.go 2 - index 4e43dd54c..a981d93bf 100644 2 + index 1afc3d15b..a8aafcaae 100644 3 3 --- a/pkg/machine/machine_common.go 4 4 +++ b/pkg/machine/machine_common.go 5 - @@ -127,14 +127,6 @@ address can't be used by podman. ` 5 + @@ -33,13 +33,8 @@ func GetDevNullFiles() (*os.File, *os.File, error) { 6 + // WaitAPIAndPrintInfo prints info about the machine and does a ping test on the 7 + // API socket 8 + func WaitAPIAndPrintInfo(forwardState APIForwardingState, name, helper, forwardSock string, noInfo, rootful bool) { 9 + - suffix := "" 10 + var fmtString string 11 + 12 + - if name != DefaultMachineName { 13 + - suffix = " " + name 14 + - } 15 + - 16 + if forwardState == NoForwarding { 17 + return 18 + } 19 + @@ -61,14 +56,6 @@ address can't be used by podman. ` 6 20 7 21 if len(helper) < 1 { 8 22 fmt.Print(fmtString) ··· 12 26 - sudo %s install 13 27 - podman machine stop%[2]s; podman machine start%[2]s 14 28 - 15 - - ` 29 + -` 16 30 - fmt.Printf(fmtString, helper, suffix) 17 31 } 18 32 case MachineLocal: