From unknown Sun Jun 22 08:04:45 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#57571] [PATCH]: Update podman to 4.2.0. Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 04 Sep 2022 05:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57571 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57571@debbugs.gnu.org X-Debbugs-Original-To: guix-patches Received: via spool by submit@debbugs.gnu.org id=B.166227090630782 (code B ref -1); Sun, 04 Sep 2022 05:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Sep 2022 05:55:06 +0000 Received: from localhost ([127.0.0.1]:43312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUib3-00080Q-NT for submit@debbugs.gnu.org; Sun, 04 Sep 2022 01:55:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:59886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUib1-00080F-5u for submit@debbugs.gnu.org; Sun, 04 Sep 2022 01:55:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUiay-0006Ii-F5 for guix-patches@gnu.org; Sun, 04 Sep 2022 01:55:02 -0400 Received: from mail-m973.mail.163.com ([123.126.97.3]:30737) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUias-0007tW-8u for guix-patches@gnu.org; Sun, 04 Sep 2022 01:54:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=g0Sf5 Mc/lu+cKAjmKK+As0IdVCia6CpjdI4DxsmyHb4=; b=qANqMa6xrXZXq9lLy1zyK zWT26x0dKMfe5Tgn71obTcZOYG2KwUo7FvO/7/s4lRmOigs3iAbtfz6e1+hOYdVM 9XRGltDtjD8YRhrZD9DEaU64cSKFtNpaOKNmQW7FcGZQ0aqMVxcp56lE4I2Ah59C /IciL8WnA83IOAjJQDmQpU= Received: from asus-laptop (unknown [27.38.249.43]) by smtp3 (Coremail) with SMTP id G9xpCgCXM5WgPRRjXzTaag--.53298S2; Sun, 04 Sep 2022 13:54:42 +0800 (CST) User-agent: mu4e 1.8.9; emacs 29.0.50 From: Zhu Zihao Date: Sun, 04 Sep 2022 13:53:59 +0800 Message-ID: <86czcbbs6a.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: G9xpCgCXM5WgPRRjXzTaag--.53298S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4REmhzUUUUU X-Originating-IP: [27.38.249.43] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBaxdyr1et6X3IegAAs9 Received-SPF: pass client-ip=123.126.97.3; envelope-from=all_but_last@163.com; helo=mail-m973.mail.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-podman-Use-G-expressions.patch Content-Transfer-Encoding: quoted-printable >From ad34900d79073e37fe5e4794aa7de2c0b7980401 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sun, 4 Sep 2022 13:23:29 +0800 Subject: [PATCH 1/2] gnu: podman: Use G-expressions. * gnu/packages/containers.scm (podman)[arguments]: Use G-expressions. --- gnu/packages/containers.scm | 74 +++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 35 deletions(-) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index a156f4191c..32d772f16c 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2021 Timmy Douglas ;;; Copyright =C2=A9 2022 Tobias Geerinckx-Rice +;;; Copyright =C2=A9 2022 Zhu Zihao ;;; ;;; This file is part of GNU Guix. ;;; @@ -284,41 +285,44 @@ (define-public podman =20 (build-system gnu-build-system) (arguments - `(#:make-flags (list ,(string-append "CC=3D" (cc-for-target)) - (string-append "PREFIX=3D" %output)) - #:tests? #f ; /sys/fs/cgroup not set up in guix sandbox - #:test-target "test" - #:phases (modify-phases %standard-phases - (delete 'configure) - (add-after 'unpack 'set-env - (lambda* (#:key inputs #:allow-other-keys) - ;; when running go, things fail because - ;; HOME=3D/homeless-shelter. - (setenv "HOME" "/tmp"))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; (invoke "strace" "-f" "bin/podman" "version") - (invoke "make" "localsystem") - (invoke "make" "remotesystem")))) - (add-after 'unpack 'fix-hardcoded-paths - (lambda _ - (substitute* (find-files "libpod" "\\.go") - (("exec.LookPath[(][\"]slirp4netns[\"][)]") - (string-append "exec.LookPath(\"" - (which "slirp4netns") "\")"))) - (substitute* "hack/install_catatonit.sh" - (("CATATONIT_PATH=3D\"[^\"]+\"") - (string-append "CATATONIT_PATH=3D" (which "true")= ))) - (substitute* "vendor/github.com/containers/common/pk= g/config/config_linux.go" - (("/usr/local/libexec/podman") - (string-append (assoc-ref %outputs "out") "/bin")= )) - (substitute* "vendor/github.com/containers/common/pk= g/config/default.go" - (("/usr/libexec/podman/conmon") (which "conmon")) - (("/usr/local/libexec/cni") - (string-append (assoc-ref %build-inputs "cni-plug= ins") - "/bin")) - (("/usr/bin/crun") (which "crun")))))))) + (list + #:make-flags + #~(list #$(string-append "CC=3D" (cc-for-target)) + (string-append "PREFIX=3D" #$output)) + #:tests? #f ; /sys/fs/cgroup not set up in guix san= dbox + #:test-target "test" + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'set-env + (lambda* (#:key inputs #:allow-other-keys) + ;; when running go, things fail because + ;; HOME=3D/homeless-shelter. + (setenv "HOME" "/tmp"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; (invoke "strace" "-f" "bin/podman" "version") + (invoke "make" "localsystem") + (invoke "make" "remotesystem")))) + (add-after 'unpack 'fix-hardcoded-paths + (lambda _ + (substitute* (find-files "libpod" "\\.go") + (("exec.LookPath[(][\"]slirp4netns[\"][)]") + (string-append "exec.LookPath(\"" + (which "slirp4netns") "\")"))) + (substitute* "hack/install_catatonit.sh" + (("CATATONIT_PATH=3D\"[^\"]+\"") + (string-append "CATATONIT_PATH=3D" (which "true")))) + (substitute* "vendor/github.com/containers/common/pkg/config= /config_linux.go" + (("/usr/local/libexec/podman") + (string-append #$output "/bin"))) + (substitute* "vendor/github.com/containers/common/pkg/config= /default.go" + (("/usr/libexec/podman/conmon") (which "conmon")) + (("/usr/local/libexec/cni") + (string-append #$(this-package-input "cni-plugins") + "/bin")) + (("/usr/bin/crun") (which "crun")))))))) (inputs (list btrfs-progs cni-plugins --=20 2.37.2 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-podman-Update-to-4.2.0.patch >From bc90eae17b851f8cd8a43a7be254fe85a4dc0098 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sun, 4 Sep 2022 13:28:30 +0800 Subject: [PATCH 2/2] gnu: podman: Update to 4.2.0. * gnu/packages/containers.scm (podman): Update to 4.2.0. --- gnu/packages/containers.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 32d772f16c..2c7e7ae9c4 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -272,7 +272,7 @@ (define-public cni-plugins (define-public podman (package (name "podman") - (version "3.4.4") + (version "4.2.0") (source (origin (method git-fetch) @@ -280,7 +280,7 @@ (define-public podman (url "https://github.com/containers/podman") (commit (string-append "v" version)))) (sha256 - (base32 "1q09qsl1wwiiy5njvb97n1j5f5jin4ckmzj5xbdfs28czb2kx3g5")) + (base32 "00wyjppd11hznmals9ax4s2qjklj6p1vfz4jjkp50bk8q4blxfbj")) (file-name (git-file-name name version)))) (build-system gnu-build-system) -- 2.37.2 --=-=-= Content-Type: text/plain -- Retrieve my PGP public key: gpg --recv-keys 481F5EEEBA425ADC13247C76A6E672D981B8E744 Zihao --=-=-=-- From unknown Sun Jun 22 08:04:45 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Zhu Zihao Subject: bug#57571: closed (Re: bug#57571: [PATCH]: Update podman to 4.2.0.) Message-ID: References: <87bkrqgeud.fsf@gnu.org> <86czcbbs6a.fsf@163.com> X-Gnu-PR-Message: they-closed 57571 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 57571@debbugs.gnu.org Date: Thu, 08 Sep 2022 13:46:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1662644762-10395-1" This is a multi-part message in MIME format... ------------=_1662644762-10395-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #57571: [PATCH]: Update podman to 4.2.0. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 57571@debbugs.gnu.org. --=20 57571: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D57571 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1662644762-10395-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 57571-done) by debbugs.gnu.org; 8 Sep 2022 13:45:12 +0000 Received: from localhost ([127.0.0.1]:57775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWHqC-00017Z-Fi for submit@debbugs.gnu.org; Thu, 08 Sep 2022 09:45:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWHqA-0000gq-5f for 57571-done@debbugs.gnu.org; Thu, 08 Sep 2022 09:45:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47212) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWHq3-0005pV-RC; Thu, 08 Sep 2022 09:45:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=fYHMbMcTkOjWoe3acXbq/XXB8hTRofkYL5SgBcGjfbs=; b=T3jOvdSuPJe9AYOExsgN pA1/D/3Voi869qUfWoi2sLvxLksK1x/qVKfXHgylC+SPRkWCytAodpVi8F10wos3gW4I91RnsfdxC M0D9vrLZ46QRaQZ9NRWnFFrd3QqEhpCGdAOok52caOtIrvmUPWUPeAs8BtEZL0/jCTzseRdqgUWDo yN1jDnzyM+LpRtrexNwHQbRK0gyBdUTgU3hhtarP3TFhblhmYWK+zVoairuHsT9CGTd47NFMKrYd1 JvkrOzKCADE+2d/56ODDqwajIee2wNoNTHxcQTtopcdMidkyHhePrRfG7/rxyBNZapcdEH+QbAHz4 UMErOAB3RarTdw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=59876 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWHq2-0006wN-3N; Thu, 08 Sep 2022 09:45:03 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Zhu Zihao Subject: Re: bug#57571: [PATCH]: Update podman to 4.2.0. References: <86czcbbs6a.fsf@163.com> Date: Thu, 08 Sep 2022 15:44:58 +0200 In-Reply-To: <86czcbbs6a.fsf@163.com> (Zhu Zihao's message of "Sun, 04 Sep 2022 13:53:59 +0800") Message-ID: <87bkrqgeud.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57571-done Cc: 57571-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Zhu Zihao skribis: >>>From ad34900d79073e37fe5e4794aa7de2c0b7980401 Mon Sep 17 00:00:00 2001 > From: Zhu Zihao > Date: Sun, 4 Sep 2022 13:23:29 +0800 > Subject: [PATCH 1/2] gnu: podman: Use G-expressions. > > * gnu/packages/containers.scm (podman)[arguments]: Use G-expressions. [...] >>>From bc90eae17b851f8cd8a43a7be254fe85a4dc0098 Mon Sep 17 00:00:00 2001 > From: Zhu Zihao > Date: Sun, 4 Sep 2022 13:28:30 +0800 > Subject: [PATCH 2/2] gnu: podman: Update to 4.2.0. > > * gnu/packages/containers.scm (podman): Update to 4.2.0. Applied, thanks! (It=E2=80=99s all green here -> . :-)) Ludo=E2=80=99. ------------=_1662644762-10395-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Sep 2022 05:55:06 +0000 Received: from localhost ([127.0.0.1]:43312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUib3-00080Q-NT for submit@debbugs.gnu.org; Sun, 04 Sep 2022 01:55:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:59886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUib1-00080F-5u for submit@debbugs.gnu.org; Sun, 04 Sep 2022 01:55:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUiay-0006Ii-F5 for guix-patches@gnu.org; Sun, 04 Sep 2022 01:55:02 -0400 Received: from mail-m973.mail.163.com ([123.126.97.3]:30737) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUias-0007tW-8u for guix-patches@gnu.org; Sun, 04 Sep 2022 01:54:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=g0Sf5 Mc/lu+cKAjmKK+As0IdVCia6CpjdI4DxsmyHb4=; b=qANqMa6xrXZXq9lLy1zyK zWT26x0dKMfe5Tgn71obTcZOYG2KwUo7FvO/7/s4lRmOigs3iAbtfz6e1+hOYdVM 9XRGltDtjD8YRhrZD9DEaU64cSKFtNpaOKNmQW7FcGZQ0aqMVxcp56lE4I2Ah59C /IciL8WnA83IOAjJQDmQpU= Received: from asus-laptop (unknown [27.38.249.43]) by smtp3 (Coremail) with SMTP id G9xpCgCXM5WgPRRjXzTaag--.53298S2; Sun, 04 Sep 2022 13:54:42 +0800 (CST) User-agent: mu4e 1.8.9; emacs 29.0.50 From: Zhu Zihao To: guix-patches Subject: [PATCH]: Update podman to 4.2.0. Date: Sun, 04 Sep 2022 13:53:59 +0800 Message-ID: <86czcbbs6a.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: G9xpCgCXM5WgPRRjXzTaag--.53298S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4REmhzUUUUU X-Originating-IP: [27.38.249.43] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBaxdyr1et6X3IegAAs9 Received-SPF: pass client-ip=123.126.97.3; envelope-from=all_but_last@163.com; helo=mail-m973.mail.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-podman-Use-G-expressions.patch Content-Transfer-Encoding: quoted-printable >From ad34900d79073e37fe5e4794aa7de2c0b7980401 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sun, 4 Sep 2022 13:23:29 +0800 Subject: [PATCH 1/2] gnu: podman: Use G-expressions. * gnu/packages/containers.scm (podman)[arguments]: Use G-expressions. --- gnu/packages/containers.scm | 74 +++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 35 deletions(-) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index a156f4191c..32d772f16c 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2021 Timmy Douglas ;;; Copyright =C2=A9 2022 Tobias Geerinckx-Rice +;;; Copyright =C2=A9 2022 Zhu Zihao ;;; ;;; This file is part of GNU Guix. ;;; @@ -284,41 +285,44 @@ (define-public podman =20 (build-system gnu-build-system) (arguments - `(#:make-flags (list ,(string-append "CC=3D" (cc-for-target)) - (string-append "PREFIX=3D" %output)) - #:tests? #f ; /sys/fs/cgroup not set up in guix sandbox - #:test-target "test" - #:phases (modify-phases %standard-phases - (delete 'configure) - (add-after 'unpack 'set-env - (lambda* (#:key inputs #:allow-other-keys) - ;; when running go, things fail because - ;; HOME=3D/homeless-shelter. - (setenv "HOME" "/tmp"))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; (invoke "strace" "-f" "bin/podman" "version") - (invoke "make" "localsystem") - (invoke "make" "remotesystem")))) - (add-after 'unpack 'fix-hardcoded-paths - (lambda _ - (substitute* (find-files "libpod" "\\.go") - (("exec.LookPath[(][\"]slirp4netns[\"][)]") - (string-append "exec.LookPath(\"" - (which "slirp4netns") "\")"))) - (substitute* "hack/install_catatonit.sh" - (("CATATONIT_PATH=3D\"[^\"]+\"") - (string-append "CATATONIT_PATH=3D" (which "true")= ))) - (substitute* "vendor/github.com/containers/common/pk= g/config/config_linux.go" - (("/usr/local/libexec/podman") - (string-append (assoc-ref %outputs "out") "/bin")= )) - (substitute* "vendor/github.com/containers/common/pk= g/config/default.go" - (("/usr/libexec/podman/conmon") (which "conmon")) - (("/usr/local/libexec/cni") - (string-append (assoc-ref %build-inputs "cni-plug= ins") - "/bin")) - (("/usr/bin/crun") (which "crun")))))))) + (list + #:make-flags + #~(list #$(string-append "CC=3D" (cc-for-target)) + (string-append "PREFIX=3D" #$output)) + #:tests? #f ; /sys/fs/cgroup not set up in guix san= dbox + #:test-target "test" + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'set-env + (lambda* (#:key inputs #:allow-other-keys) + ;; when running go, things fail because + ;; HOME=3D/homeless-shelter. + (setenv "HOME" "/tmp"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; (invoke "strace" "-f" "bin/podman" "version") + (invoke "make" "localsystem") + (invoke "make" "remotesystem")))) + (add-after 'unpack 'fix-hardcoded-paths + (lambda _ + (substitute* (find-files "libpod" "\\.go") + (("exec.LookPath[(][\"]slirp4netns[\"][)]") + (string-append "exec.LookPath(\"" + (which "slirp4netns") "\")"))) + (substitute* "hack/install_catatonit.sh" + (("CATATONIT_PATH=3D\"[^\"]+\"") + (string-append "CATATONIT_PATH=3D" (which "true")))) + (substitute* "vendor/github.com/containers/common/pkg/config= /config_linux.go" + (("/usr/local/libexec/podman") + (string-append #$output "/bin"))) + (substitute* "vendor/github.com/containers/common/pkg/config= /default.go" + (("/usr/libexec/podman/conmon") (which "conmon")) + (("/usr/local/libexec/cni") + (string-append #$(this-package-input "cni-plugins") + "/bin")) + (("/usr/bin/crun") (which "crun")))))))) (inputs (list btrfs-progs cni-plugins --=20 2.37.2 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-podman-Update-to-4.2.0.patch >From bc90eae17b851f8cd8a43a7be254fe85a4dc0098 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sun, 4 Sep 2022 13:28:30 +0800 Subject: [PATCH 2/2] gnu: podman: Update to 4.2.0. * gnu/packages/containers.scm (podman): Update to 4.2.0. --- gnu/packages/containers.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 32d772f16c..2c7e7ae9c4 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -272,7 +272,7 @@ (define-public cni-plugins (define-public podman (package (name "podman") - (version "3.4.4") + (version "4.2.0") (source (origin (method git-fetch) @@ -280,7 +280,7 @@ (define-public podman (url "https://github.com/containers/podman") (commit (string-append "v" version)))) (sha256 - (base32 "1q09qsl1wwiiy5njvb97n1j5f5jin4ckmzj5xbdfs28czb2kx3g5")) + (base32 "00wyjppd11hznmals9ax4s2qjklj6p1vfz4jjkp50bk8q4blxfbj")) (file-name (git-file-name name version)))) (build-system gnu-build-system) -- 2.37.2 --=-=-= Content-Type: text/plain -- Retrieve my PGP public key: gpg --recv-keys 481F5EEEBA425ADC13247C76A6E672D981B8E744 Zihao --=-=-=-- ------------=_1662644762-10395-1--