From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH] gnu: Add podman Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Nov 2021 07:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: Timmy Douglas X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163816932326180 (code B ref -1); Mon, 29 Nov 2021 07:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Nov 2021 07:02:03 +0000 Received: from localhost ([127.0.0.1]:36844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrafm-0006nq-Vu for submit@debbugs.gnu.org; Mon, 29 Nov 2021 02:02:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:37956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrafk-0006ni-0Z for submit@debbugs.gnu.org; Mon, 29 Nov 2021 02:01:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrafj-0007w3-Pp for guix-patches@gnu.org; Mon, 29 Nov 2021 02:01:55 -0500 Received: from out1.migadu.com ([91.121.223.63]:63206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mraff-0004oK-LT for guix-patches@gnu.org; Mon, 29 Nov 2021 02:01:55 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1638169306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RVMdUA0Z5HTVBSTtfBRWZcFB0uLWzqlyxgyvYCC07fw=; b=W7beZXaaSbEidhPh/MHeGSxvs7yzLfv9e9TIYTHBuYPlFjGBfEExemET1vZWpV58NoLi7R /ckUlyt1WKgzrXZvliRhdnT7SwAhFJa0I9djYXS0vc2BqVEzsbOmoIQiBIvl9SZz33MonM VKI7A7mFmVDyk4szAIPj4jLkWB5Vj5E= From: Timmy Douglas Date: Sun, 28 Nov 2021 22:46:36 -0800 Message-Id: <4d5abde1033a5178c7b088fbd13f93f4f96866b6.1638168394.git.mail@timmydouglas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=91.121.223.63; envelope-from=mail@timmydouglas.com; helo=out1.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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 (--) * gnu/packages/containers.scm (crun, conmon, libslirp, slirp4netns, cni-plugins, podman): Add podman and dependencies. --- I was going to try running some docker containers on my Guix system today, but I noticed docker was an old version. I decided to try packaging podman as the daemonless aspect seems appealing and was able to run a basic alpine image (rootless) after a couple of hours of putting this together. This is one of my first packages for Guix, so please give me some feedback--I'm also interested if anyone else would like to work together on this, because I'm fairly new to Guix and I haven't used podman before either. This probably needs some more testing since I only tried a basic scenario. For podman to work, I needed to run this: `sudo mount -t cgroup2 none /sys/fs/cgroup` gnu/packages/containers.scm | 304 ++++++++++++++++++++++++++++++++++++ 1 file changed, 304 insertions(+) create mode 100644 gnu/packages/containers.scm diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm new file mode 100644 index 0000000000..1c83698c2e --- /dev/null +++ b/gnu/packages/containers.scm @@ -0,0 +1,304 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2021 Timmy Douglas +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages containers) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (guix build-system go) + #:use-module (guix build-system meson) + #:use-module (guix utils) + #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages glib) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages golang) + #:use-module (gnu packages linux) + #:use-module (gnu packages python) + #:use-module (gnu packages networking) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages selinux) + #:use-module (gnu packages version-control) + #:use-module (gnu packages virtualization) + #:use-module (gnu packages web)) + +;; For podman to work, the user needs to run +;; `sudo mount -t cgroup2 none /sys/fs/cgroup` + +(define-public crun + (package + (name "crun") + (version "1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/crun") + (commit "8e5757a4e68590326dafe8a8b1b4a584b10a1370") ; 1.3 + (recursive? #t))) + (sha256 + (base32 "01yiss2d57kwlxb7zlqzjwlg9fyaf19yjngd1mw9n4hxls3dfj3k")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:configure-flags '("--disable-systemd") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'do-not-depend-on-git + (lambda _ + (substitute* "autogen.sh" + (("^git submodule update.*") + "")) + (with-output-to-file "git-version.h" + (lambda () + (display (string-append + "/* autogenerated. */\n#ifndef GIT_VERSION\n# define GIT_VERSION \"" + "8e5757a4e68590326dafe8a8b1b4a584b10a1370" ; refactor this + "\"\n#endif\n")))) + #t + ))))) + (inputs + `(("libcap" ,libcap) + ("libseccomp" ,libseccomp) + ("libyajl" ,libyajl))) + (native-inputs + `(("automake" ,automake) + ("autoreconf" ,autoconf) + ("git" ,git) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config) + ("python-3" ,python-3))) + (home-page "https://github.com/containers/crun") + (synopsis "OCI Container runtime") + (description + "crun is a fast and low-memory footprint OCI Container Runtime fully written in C.") + (license license:gpl2+))) + +(define-public conmon + (package + (name "conmon") + (version "v2.0.30") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/conmon") + (commit version))) + (sha256 + (base32 "1sxpbm01g4xak4kqwvk45gmzr6n9bjzlfp1j85wyz8rj2hg2x4rm")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments + `(#:make-flags (list ,(string-append "CC=" (cc-for-target)) + (string-append "PREFIX=" %output)) + #:tests? #f ; currently broken as go tries to use network + #: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=/homeless-shelter. + (setenv "HOME" "/tmp"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (inputs + `(("glib" ,glib) + ("glibc" ,glibc) + ("libseccomp" ,libseccomp) + ("crun" ,crun))) + (native-inputs + `(("git" ,git) + ("go" ,go) + ("pkg-config" ,pkg-config))) + (home-page "https://github.com/containers/conmon") + (synopsis "Monitoring and communication tool between container manager and OCI runtime") + (description + "Conmon is a monitoring program and communication tool between a container +manager (like Podman or CRI-O) and an OCI runtime (like runc or crun) for a +single container.") + (license license:asl2.0))) + +(define-public libslirp + (package + (name "libslirp") + (version "v4.6.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/slirp/libslirp") + (commit version))) + (sha256 + (base32 "1b4cn51xvzbrxd63g6w1033prvbxfxsnsn1l0fa5i311xv28vkh0")) + (file-name (git-file-name name version)))) + + (build-system meson-build-system) + (arguments '(#:tests? #f)) + (inputs + `(("glib" ,glib))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://gitlab.freedesktop.org/slirp/libslirp") + (synopsis "User-mode networking library") + (description + "libslirp is a user-mode networking library used by virtual machines, +containers or various tools.") + (license license:non-copyleft))) ;fixme what is this? + +(define-public slirp4netns + (package + (name "slirp4netns") + (version "v1.1.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rootless-containers/slirp4netns") + (commit version))) + (sha256 + (base32 "03llv4dlf7qqxwz4zdyk926g4bigfj2gb50glm70ciflpvzs8081")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments '(#:tests? #f)) + (inputs + `(("glib" ,glib) + ("libcap" ,libcap) + ("libseccomp" ,libseccomp) + ("libslirp" ,libslirp))) + (native-inputs + `(("automake" ,automake) + ("autoreconf" ,autoconf) + ("pkg-config" ,pkg-config))) + (home-page "https://github.com/rootless-containers/slirp4netns") + (synopsis "User-mode networking for unprivileged network namespaces") + (description + "slirp4netns provides user-mode networking (\"slirp\") for unprivileged network namespaces.") + (license license:gpl2+))) + +(define-public cni-plugins + (package + (name "cni-plugins") + (version "v1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containernetworking/plugins") + (commit version))) + (sha256 + (base32 "1j91in0mg4nblpdccyq63ncbnn2pc2zzjp1fh3jy0bsndllgv0nc")) + (file-name (git-file-name name version)))) + + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/containernetworking/plugins" + #:tests? #f + #:phases (modify-phases %standard-phases + (replace 'build + (lambda _ + (with-directory-excursion "src/github.com/containernetworking/plugins" + (invoke "./build_linux.sh")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (copy-recursively "src/github.com/containernetworking/plugins/bin" + (string-append (assoc-ref outputs "out") "/bin")) + #t))))) + (home-page "https://github.com/containernetworking/plugins") + (synopsis "CNI network plugins") + (description + "Some CNI network plugins, maintained by the containernetworking team.") + (license license:asl2.0))) + +(define-public podman + (package + (name "podman") + (version "v3.4.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/podman") + (commit version))) + (sha256 + (base32 "0v1xpd1q6ym9ibaj6242v4mp0wwdmj4dd9l7zfyydbxrx6a8ahjn")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments + `(#:make-flags (list ,(string-append "CC=" (cc-for-target)) + (string-append "PREFIX=" %output)) + #:tests? #f ; need to setup ginkgo + #: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=/homeless-shelter. + (setenv "HOME" "/tmp"))) + (add-after 'unpack 'fix-hardcoded-paths + (lambda _ + (substitute* (find-files "libpod" "\\.go") + (("exec.LookPath[(][\"]slirp4netns[\"][)]") + (string-append "exec.LookPath(\"" (which "slirp4netns") "\")"))) + (substitute* "vendor/github.com/containers/common/pkg/config/config_linux.go" + (("/usr/local/libexec/podman") + (string-append (assoc-ref %outputs "out") "/bin"))) + (substitute* "vendor/github.com/containers/common/pkg/config/default.go" + (("/usr/libexec/podman/conmon") (which "conmon")) + (("/usr/local/libexec/cni") + (string-append (assoc-ref %build-inputs "cni-plugins") "/bin")) + (("/usr/bin/crun") (which "crun"))) + #true)) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (inputs + `(("btrfs-progs" ,btrfs-progs) + ("cni-plugins" ,cni-plugins) + ("conmon" ,conmon) + ("gpgme" ,gpgme) + ("go-md2man" ,go-github-com-go-md2man) + ("iptables" ,iptables) ; fixme not sure if podman will call this using $PATH + ("libassuan" ,libassuan) + ("libseccomp" ,libseccomp) + ("libselinux" ,libselinux) + ("slirp4netns" ,slirp4netns) + ("crun" ,crun))) + (native-inputs + `(("git" ,git) + ("go" ,go) + ("pkg-config" ,pkg-config))) + (home-page "https://podman.io") + (synopsis "Manage containers, images, pods, and their volumes") + (description + "Podman (the POD MANager) is a tool for managing containers and images, +volumes mounted into those containers, and pods made from groups of +containers.") + (license license:asl2.0))) -- 2.33.1 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH] gnu: Add podman Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Dec 2021 17:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Timmy Douglas Cc: 52174@debbugs.gnu.org Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.163985025124632 (code B ref 52174); Sat, 18 Dec 2021 17:58:01 +0000 Received: (at 52174) by debbugs.gnu.org; 18 Dec 2021 17:57:31 +0000 Received: from localhost ([127.0.0.1]:43784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mydxb-0006PD-C2 for submit@debbugs.gnu.org; Sat, 18 Dec 2021 12:57:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mydxZ-0006P0-Gg for 52174@debbugs.gnu.org; Sat, 18 Dec 2021 12:57:29 -0500 Received: from [2001:470:142:3::e] (port=33628 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mydxU-0004z4-78; Sat, 18 Dec 2021 12:57:24 -0500 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=LOC5Nwmb80BUH1RTWZxhjfhjZ60zarm4QY88dpIgJAM=; b=rCQKIk1nniBvb7EKlMES jXu7dknE2AMAt4qh8TgZYFeKl6V1fupU4pWpxxavXhk8zcygQurfaNaQlOC9DMNrVK6N8FrZCGpHB jn1ssVORlvRsmt253Hpm0LchukwRGvFFN6HolSyS6YytV1AA7XEBZLODMhJBBiUrpSD5jWej1Xo65 pW1pkb4XgG5fskLnggT4JmyoV3XKxBxqLbXMnTmcdnPIuuNmpX3s9kYPAROPhI7Y/4cI1Ooaw03hP QXPavUpzNq+mP9DJCMsHn94A9kGE45HAeWhYnDrfMrnoFkFjT3ExlW2ICMydgcyEhbYYZXAWlbcYu PLKXr6CVah66Ug==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:64335 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mydxU-0003ba-7N; Sat, 18 Dec 2021 12:57:24 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <4d5abde1033a5178c7b088fbd13f93f4f96866b6.1638168394.git.mail@timmydouglas.com> Date: Sat, 18 Dec 2021 18:57:20 +0100 In-Reply-To: <4d5abde1033a5178c7b088fbd13f93f4f96866b6.1638168394.git.mail@timmydouglas.com> (Timmy Douglas's message of "Sun, 28 Nov 2021 22:46:36 -0800") Message-ID: <874k75pzi7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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 Timmy, Timmy Douglas skribis: > * gnu/packages/containers.scm (crun, conmon, libslirp, slirp4netns, > cni-plugins, podman): Add podman and dependencies. > --- > > I was going to try running some docker containers on my Guix system > today, but I noticed docker was an old version. I decided to try > packaging podman as the daemonless aspect seems appealing and was able > to run a basic alpine image (rootless) after a couple of hours of > putting this together. This is one of my first packages for Guix, so > please give me some feedback--I'm also interested if anyone else would > like to work together on this, because I'm fairly new to Guix and I > haven't used podman before either. This probably needs some more > testing since I only tried a basic scenario. > > For podman to work, I needed to run this: > `sudo mount -t cgroup2 none /sys/fs/cgroup` Woow, that=E2=80=99s a great start, and it=E2=80=99ll certainly be useful t= o many. Overall it LGTM. Here are some minor issues that would be nice addressing: > gnu/packages/containers.scm | 304 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 304 insertions(+) > create mode 100644 gnu/packages/containers.scm We usually have one patch per new package; IWBN if you could split this patch accordingly. Make sure to add =E2=80=98containers.scm=E2=80=99 to =E2=80=98gnu/local.mk= =E2=80=99 too. > + (arguments > + '(#:tests? #f > + #:configure-flags '("--disable-systemd") > + #:phases Please align keywords, as in: '(#:tests? #f #:configure-flags =E2=80=A6 #:phases =E2=80=A6) > + (display (string-append > + "/* autogenerated. */\n#ifndef GIT_= VERSION\n# define GIT_VERSION \"" > + "8e5757a4e68590326dafe8a8b1b4a584b10= a1370" ; refactor this You can write =E2=80=9C,commit=E2=80=9D (read: =E2=80=9Cunquote commit=E2= =80=9D), assuming there=E2=80=99s a =E2=80=98commit=E2=80=99 local variable above. > + (inputs > + `(("libcap" ,libcap) > + ("libseccomp" ,libseccomp) > + ("libyajl" ,libyajl))) > + (native-inputs > + `(("automake" ,automake) > + ("autoreconf" ,autoconf) > + ("git" ,git) > + ("libtool" ,libtool) > + ("pkg-config" ,pkg-config) > + ("python-3" ,python-3))) IWBN if you could run packages through =E2=80=98guix style=E2=80=99: https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-style.html > + (name "conmon") > + (version "v2.0.30") Please remove =E2=80=9Cv=E2=80=9D from the version number (here and elsewhe= re), and=E2=80=A6 > + (uri (git-reference > + (url "https://github.com/containers/conmon") > + (commit version))) ^ =E2=80=A6 add it here, with (string-append "v" version). > + (home-page "https://gitlab.freedesktop.org/slirp/libslirp") > + (synopsis "User-mode networking library") > + (description > + "libslirp is a user-mode networking library used by virtual machine= s, > +containers or various tools.") > + (license license:non-copyleft))) ;fixme what is this? It=E2=80=99s =E2=80=98license:bsd-3=E2=80=99, per . That=E2=80=99s it. Could you send updated patches? Thank you, and apologies for the delay! Ludo=E2=80=99. From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 1/6] gnu: add crun Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 Dec 2021 05:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.16398899688610 (code B ref 52174); Sun, 19 Dec 2021 05:00:02 +0000 Received: (at 52174) by debbugs.gnu.org; 19 Dec 2021 04:59:28 +0000 Received: from localhost ([127.0.0.1]:44681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIA-0002Em-4T for submit@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:28 -0500 Received: from out0.migadu.com ([94.23.1.103]:14716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoI6-0002Eb-7p for 52174@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:25 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1639889960; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KK90Y55LmAoJr7B9rHV7wD1IUGk+ufq6La7PrUBqBl4=; b=OZuMbBxJYYpYs1zQW79vwDNFb9XrligLnBScXVxBruzNmnMQgs6Lytim/nxB0dns+Peb+W Iirn+OaL/Q/n9LVx+BBcp42tFOfue7gSVVdFNhAQOha0YdU8Om545WMg+RoaH4VqoXripB HqNWZbGx2wNIt/eYubnMT2/bKb1NdkY= From: Timmy Douglas Date: Sat, 18 Dec 2021 20:58:26 -0800 Message-Id: <52542aec3c127a893453ac1ecbbd504022d4c8dd.1639889841.git.mail@timmydouglas.com> In-Reply-To: <874k75pzi7.fsf@gnu.org> References: <874k75pzi7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm: new file * gnu/local.mk: add containers.scm --- gnu/local.mk | 1 + gnu/packages/containers.scm | 87 +++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 gnu/packages/containers.scm diff --git a/gnu/local.mk b/gnu/local.mk index 33e108c752..8ffcf662ce 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -157,6 +157,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/configuration-management.scm \ %D%/packages/conky.scm \ %D%/packages/connman.scm \ + %D%/packages/containers.scm \ %D%/packages/convmv.scm \ %D%/packages/cook.scm \ %D%/packages/coq.scm \ diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm new file mode 100644 index 0000000000..7ffe6e95d0 --- /dev/null +++ b/gnu/packages/containers.scm @@ -0,0 +1,87 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2021 Timmy Douglas +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages containers) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (guix build-system go) + #:use-module (guix build-system meson) + #:use-module (guix utils) + #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages glib) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages golang) + #:use-module (gnu packages linux) + #:use-module (gnu packages python) + #:use-module (gnu packages networking) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages selinux) + #:use-module (gnu packages version-control) + #:use-module (gnu packages virtualization) + #:use-module (gnu packages web)) + +(define-public crun + (let ((commit "8e5757a4e68590326dafe8a8b1b4a584b10a1370")) + (package + (name "crun") + (version "1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/crun") + (commit commit) + (recursive? #t))) + (sha256 + (base32 "01yiss2d57kwlxb7zlqzjwlg9fyaf19yjngd1mw9n4hxls3dfj3k")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:configure-flags '("--disable-systemd") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'do-not-depend-on-git + (lambda _ + (substitute* "autogen.sh" + (("^git submodule update.*") + "")) + (with-output-to-file "git-version.h" + (lambda () + (display (string-append + "/* autogenerated. */\n#ifndef GIT_VERSION\n# define GIT_VERSION \"" + ,commit + "\"\n#endif\n")))) + #t))))) + (inputs + (list libcap libseccomp libyajl)) + (native-inputs + (list automake autoconf git libtool pkg-config python-3)) + (home-page "https://github.com/containers/crun") + (synopsis "OCI Container runtime") + (description + "crun is a fast and low-memory footprint OCI Container Runtime fully written in C.") + (license license:gpl2+)))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 2/6] gnu: add conmon Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 Dec 2021 05:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.16398899878650 (code B ref 52174); Sun, 19 Dec 2021 05:00:02 +0000 Received: (at 52174) by debbugs.gnu.org; 19 Dec 2021 04:59:47 +0000 Received: from localhost ([127.0.0.1]:44685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIV-0002FS-4X for submit@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:47 -0500 Received: from out0.migadu.com ([94.23.1.103]:14904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIT-0002FE-6H for 52174@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:45 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1639889984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BM2Y2fPPvSdWnlHhqofuDzFIEuic9hbBgCHXT3OnfIo=; b=islOgnzZGuUYtZFQZOcQe4KOs0IlNwOFYGuMJnTbL0Il73BXCx3zggvF7dbX1LjqMDR58c JdiwzWh77ASbpnJQgHF77p08YjKpUx43/mu/SKBBCJNp7TC4gUl0rMV5sSt/7K1Om7/MUt rttc6a9K4xV4cchmJb5fy4CbVTXO7E4= From: Timmy Douglas Date: Sat, 18 Dec 2021 20:58:27 -0800 Message-Id: <058f226cf4e0b5fdb6642ff4b9d20e28b5312781.1639889841.git.mail@timmydouglas.com> In-Reply-To: <874k75pzi7.fsf@gnu.org> References: <874k75pzi7.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm: add conmon --- gnu/packages/containers.scm | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 7ffe6e95d0..d4f9d742db 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -85,3 +85,45 @@ (define-public crun (description "crun is a fast and low-memory footprint OCI Container Runtime fully written in C.") (license license:gpl2+)))) + +(define-public conmon + (package + (name "conmon") + (version "2.0.30") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/conmon") + (commit (string-append "v" version)))) + (sha256 + (base32 "1sxpbm01g4xak4kqwvk45gmzr6n9bjzlfp1j85wyz8rj2hg2x4rm")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments + `(#:make-flags (list ,(string-append "CC=" (cc-for-target)) + (string-append "PREFIX=" %output)) + #:tests? #f ; currently broken as go tries to use network + #: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=/homeless-shelter. + (setenv "HOME" "/tmp"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (inputs + (list glib glibc libseccomp crun)) + (native-inputs + (list git go pkg-config)) + (home-page "https://github.com/containers/conmon") + (synopsis "Monitoring and communication tool between container manager and OCI runtime") + (description + "Conmon is a monitoring program and communication tool between a container +manager (like Podman or CRI-O) and an OCI runtime (like runc or crun) for a +single container.") + (license license:asl2.0))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 3/6] gnu: add libslirp Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 Dec 2021 05:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.16398899918682 (code B ref 52174); Sun, 19 Dec 2021 05:00:03 +0000 Received: (at 52174) by debbugs.gnu.org; 19 Dec 2021 04:59:51 +0000 Received: from localhost ([127.0.0.1]:44690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIZ-0002Fx-Cf for submit@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:51 -0500 Received: from out0.migadu.com ([94.23.1.103]:14914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIU-0002FL-IL for 52174@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:46 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1639889986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MoPthzUoWVr24q8C/71I+tgqVDDRXMASADHcLc645/8=; b=Ql+yliKVAem+Lake/kiI1VDTg1YXZUYYJrkUjr76Wxu6OOxV/dSyHYVO4lByKbcz0/EdLj I5oxyJ6ShLSLux6iurOO/H7Wwao6LfVCyrlSWeoxOK64UxAeje7w6h90OStGKm4XLLbqK5 PET2g+mUN707O8gIOegimCa1EXAFQ4k= From: Timmy Douglas Date: Sat, 18 Dec 2021 20:58:28 -0800 Message-Id: <494f640fc1a93f5b04d4f39692af3b831998d085.1639889841.git.mail@timmydouglas.com> In-Reply-To: <874k75pzi7.fsf@gnu.org> References: <874k75pzi7.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm: add libslirp --- gnu/packages/containers.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index d4f9d742db..777eaa2eb9 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -127,3 +127,30 @@ (define-public conmon manager (like Podman or CRI-O) and an OCI runtime (like runc or crun) for a single container.") (license license:asl2.0))) + +(define-public libslirp + (package + (name "libslirp") + (version "4.6.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/slirp/libslirp") + (commit (string-append "v" version)))) + (sha256 + (base32 "1b4cn51xvzbrxd63g6w1033prvbxfxsnsn1l0fa5i311xv28vkh0")) + (file-name (git-file-name name version)))) + + (build-system meson-build-system) + (arguments '(#:tests? #f)) + (inputs + (list glib)) + (native-inputs + (list pkg-config)) + (home-page "https://gitlab.freedesktop.org/slirp/libslirp") + (synopsis "User-mode networking library") + (description + "libslirp is a user-mode networking library used by virtual machines, +containers or various tools.") + (license license:bsd-3))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 4/6] gnu: add slirp4netns Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 Dec 2021 05:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.16398899928689 (code B ref 52174); Sun, 19 Dec 2021 05:00:03 +0000 Received: (at 52174) by debbugs.gnu.org; 19 Dec 2021 04:59:52 +0000 Received: from localhost ([127.0.0.1]:44692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIZ-0002Fz-Lu for submit@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:51 -0500 Received: from out0.migadu.com ([94.23.1.103]:14929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIW-0002Fa-0h for 52174@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:48 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1639889987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SCTA18D/pP28POQBZM9IsuNcFTg3hhSyK5TFtEmH5a8=; b=djH12t4nlGnrleS+b3bz3rvEmuzv9LbPoH/vdQ6wdvUaiY1vYMgOsxKaL8dvgo14b3fmyg OdSVoNaH0qIz0EmYF0TxYCHFpe35/LjX1iVNl+1F7kfgyzmtBL1JI6N+fBZZryQvpz6Je5 aAV5cQYnu3siWeMqE/YQ9zU613orGP4= From: Timmy Douglas Date: Sat, 18 Dec 2021 20:58:29 -0800 Message-Id: <5c1a99e39b736f68c55669842cf68c08180a8086.1639889841.git.mail@timmydouglas.com> In-Reply-To: <874k75pzi7.fsf@gnu.org> References: <874k75pzi7.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm: add slirp4netns --- gnu/packages/containers.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 777eaa2eb9..f13da74ac1 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -154,3 +154,29 @@ (define-public libslirp "libslirp is a user-mode networking library used by virtual machines, containers or various tools.") (license license:bsd-3))) + +(define-public slirp4netns + (package + (name "slirp4netns") + (version "1.1.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rootless-containers/slirp4netns") + (commit (string-append "v" version)))) + (sha256 + (base32 "03llv4dlf7qqxwz4zdyk926g4bigfj2gb50glm70ciflpvzs8081")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments '(#:tests? #f)) + (inputs + (list glib libcap libseccomp libslirp)) + (native-inputs + (list automake autoconf pkg-config)) + (home-page "https://github.com/rootless-containers/slirp4netns") + (synopsis "User-mode networking for unprivileged network namespaces") + (description + "slirp4netns provides user-mode networking (\"slirp\") for unprivileged network namespaces.") + (license license:gpl2+))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 5/6] gnu: add cni-plugins Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 Dec 2021 05:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.16398899928696 (code B ref 52174); Sun, 19 Dec 2021 05:00:03 +0000 Received: (at 52174) by debbugs.gnu.org; 19 Dec 2021 04:59:52 +0000 Received: from localhost ([127.0.0.1]:44694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIZ-0002G6-Vr for submit@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:52 -0500 Received: from out0.migadu.com ([94.23.1.103]:14942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIX-0002Fi-DA for 52174@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:49 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1639889988; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oECVdv+e1yauqVf8mTuriDeMu8OO1ZM8zuxq23DemSY=; b=cTuOzdTdwaNIgAIki/Hrh4CaGn2ERMaG4j+9yiAy0Mvqjzm26JfUg4tpxa094TUCCm3gAB ca5aoKVvjpioZ5+wHsUIDnV5yGWgYQTpfi8LmjBLxU5u/cYrJNuqBRCah+InNkdwQ6uulG uWR6XO36sMx3r7FIqQh/HN9c4hEra8I= From: Timmy Douglas Date: Sat, 18 Dec 2021 20:58:30 -0800 Message-Id: In-Reply-To: <874k75pzi7.fsf@gnu.org> References: <874k75pzi7.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm: add cni-plugins --- gnu/packages/containers.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index f13da74ac1..8810ecb8c8 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -180,3 +180,37 @@ (define-public slirp4netns (description "slirp4netns provides user-mode networking (\"slirp\") for unprivileged network namespaces.") (license license:gpl2+))) + +(define-public cni-plugins + (package + (name "cni-plugins") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containernetworking/plugins") + (commit (string-append "v" version)))) + (sha256 + (base32 "1j91in0mg4nblpdccyq63ncbnn2pc2zzjp1fh3jy0bsndllgv0nc")) + (file-name (git-file-name name version)))) + + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/containernetworking/plugins" + #:tests? #f + #:phases (modify-phases %standard-phases + (replace 'build + (lambda _ + (with-directory-excursion "src/github.com/containernetworking/plugins" + (invoke "./build_linux.sh")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (copy-recursively "src/github.com/containernetworking/plugins/bin" + (string-append (assoc-ref outputs "out") "/bin")) + #t))))) + (home-page "https://github.com/containernetworking/plugins") + (synopsis "CNI network plugins") + (description + "Some CNI network plugins, maintained by the containernetworking team.") + (license license:asl2.0))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 6/6] gnu: add podman Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 Dec 2021 05:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.16398899988708 (code B ref 52174); Sun, 19 Dec 2021 05:00:04 +0000 Received: (at 52174) by debbugs.gnu.org; 19 Dec 2021 04:59:58 +0000 Received: from localhost ([127.0.0.1]:44696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIg-0002GO-AI for submit@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:58 -0500 Received: from out0.migadu.com ([94.23.1.103]:14955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myoIY-0002Fq-PB for 52174@debbugs.gnu.org; Sat, 18 Dec 2021 23:59:51 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1639889990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UPqIzWwJYWjGadP57UanotjJm3E1aNKeFpSjM8tQucg=; b=WCrOLLdyL2PH4GnTXUDSTjJQ1hh/LEZ5EJIgpIV5Stvb4vGv2hlWVWro1hQ0KHoB33ZPeU ZYGuXqDy/VybPcJ4Lfb6u+KZSZ97Ei0j86Z4NdJ2fAeWfrLFwtTPwFo5GLcwJGy5cN7JMv TbCLFnXle0IM0Oauu/SI16KakIRItEE= From: Timmy Douglas Date: Sat, 18 Dec 2021 20:58:31 -0800 Message-Id: <5d39e8142d916df8da9d317bf7a3781c0513ad77.1639889841.git.mail@timmydouglas.com> In-Reply-To: <874k75pzi7.fsf@gnu.org> References: <874k75pzi7.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm: add podman --- Thanks for the review Ludo! Hopefully this v2 fixes the issues you pointed out. gnu/packages/containers.scm | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 8810ecb8c8..389ef42092 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -214,3 +214,63 @@ (define-public cni-plugins (description "Some CNI network plugins, maintained by the containernetworking team.") (license license:asl2.0))) + +;; For podman to work, the user needs to run +;; `sudo mount -t cgroup2 none /sys/fs/cgroup` + +(define-public podman + (package + (name "podman") + (version "3.4.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/podman") + (commit (string-append "v" version)))) + (sha256 + (base32 "1q09qsl1wwiiy5njvb97n1j5f5jin4ckmzj5xbdfs28czb2kx3g5")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments + `(#:make-flags (list ,(string-append "CC=" (cc-for-target)) + (string-append "PREFIX=" %output)) + #:tests? #f ; need to setup ginkgo + #: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=/homeless-shelter. + (setenv "HOME" "/tmp"))) + (add-after 'unpack 'fix-hardcoded-paths + (lambda _ + (substitute* (find-files "libpod" "\\.go") + (("exec.LookPath[(][\"]slirp4netns[\"][)]") + (string-append "exec.LookPath(\"" (which "slirp4netns") "\")"))) + (substitute* "vendor/github.com/containers/common/pkg/config/config_linux.go" + (("/usr/local/libexec/podman") + (string-append (assoc-ref %outputs "out") "/bin"))) + (substitute* "vendor/github.com/containers/common/pkg/config/default.go" + (("/usr/libexec/podman/conmon") (which "conmon")) + (("/usr/local/libexec/cni") + (string-append (assoc-ref %build-inputs "cni-plugins") "/bin")) + (("/usr/bin/crun") (which "crun"))) + #true)) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (inputs + (list btrfs-progs cni-plugins conmon crun gpgme go-github-com-go-md2man + iptables libassuan libseccomp libselinux slirp4netns)) + (native-inputs + (list git go pkg-config)) + (home-page "https://podman.io") + (synopsis "Manage containers, images, pods, and their volumes") + (description + "Podman (the POD MANager) is a tool for managing containers and images, +volumes mounted into those containers, and pods made from groups of +containers.") + (license license:asl2.0))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 1/6] gnu: add crun Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Dec 2021 20:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 52174@debbugs.gnu.org Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.16401178406658 (code B ref 52174); Tue, 21 Dec 2021 20:18:02 +0000 Received: (at 52174) by debbugs.gnu.org; 21 Dec 2021 20:17:20 +0000 Received: from localhost ([127.0.0.1]:55779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzlZY-0001iu-14 for submit@debbugs.gnu.org; Tue, 21 Dec 2021 15:17:20 -0500 Received: from out2.migadu.com ([188.165.223.204]:17534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzlZS-0001eA-5f for 52174@debbugs.gnu.org; Tue, 21 Dec 2021 15:17:19 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1640117833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3cAGP8ftNPdlq63EmONE8SuZB5L8p1lxBqfQT+V1CVY=; b=dCyxYUkmJUdoni6w1PMR5JNWkJ66ppYZurktl/kgvaoM9OFIHaFLW4FBA6vcR3cms0hIvr 9iZWnkNH23DUjfKr5Dyhw3Ox5Ci8hDMVvy6SRqaXwOxGTalC/iC63VeLrLOXd7gZBUJ0OT Ebr0Vvd5oodGI6h+MaWkCR76AmPtuv0= From: Timmy Douglas In-Reply-To: <875yrjl8a5.fsf@gnu.org> References: <874k75pzi7.fsf@gnu.org> <52542aec3c127a893453ac1ecbbd504022d4c8dd.1639889841.git.mail@timmydouglas.com> <875yrjl8a5.fsf@gnu.org> Date: Tue, 21 Dec 2021 12:17:10 -0800 Message-ID: <87tuf1zpa1.fsf@timmydouglas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com 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: -1.0 (-) Ludovic Court=C3=A8s writes: > Hi, > > Timmy Douglas skribis: > >> * gnu/packages/containers.scm: new file >> * gnu/local.mk: add containers.scm > > [...] > >> + (arguments >> + `(#:tests? #f > > Sorry for not noticing earlier: we try hard to run test suites, and only > disable it as a last resort, with a comment explaining why. Often, we > disable specific tests that cannot run in the build environment (for > instance because they assume network access) and run everything else. > > I had a quick go at running crun=E2=80=99s test suite, and there=E2=80=99= s a number of > failures, which is not reassuring. > > Could you investigate a bit with the goal of fixing any actual issues > the test suite reveals and/or skipping individual tests that cannot be > run? are there some docs I could refer to on how Guix sandboxes the build? I tried https://guix.gnu.org/manual/en/html_node/Debugging-Build-Failures.html#Debu= gging-Build-Failures but I think I need to go further than sourcing env vars. I tried modifying `make check` phase to invoking `mount` to see if I could poke around (which didn't exactly work in my quick attempt...) because I'm not sure how to debug some of the issues. I suspect some are due to the fs layout/mounts. Probably could figure it out with some more time but thought it might be best to ask first. With these changes I could get them to pass by manually `make check`ing in the --keep-failed directory: (add-after 'unpack 'fix-tests (lambda _ (substitute* (find-files "tests" "\\.(c|py)") (("/bin/true") (which "true")) (("/bin/false") (which "false")) ; relies on sd_notify which requires systemd? (("\"sd-notify\" : test_sd_notify,") "") (("\"sd-notify-file\" : test_sd_notify_file,") ""))))))) from guix build: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Testsuite summary for crun UNKNOWN =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D # TOTAL: 73 # PASS: 9 # SKIP: 28 # XFAIL: 0 # FAIL: 36 # XPASS: 0 # ERROR: 0 from cd /tmp/guix-build-crun-1.3.drv-5/source && make check =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Testsuite summary for crun UNKNOWN =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D # TOTAL: 73 # PASS: 40 # SKIP: 33 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 > Nitpick: You can omit the trailing #t now (yay!). great! From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 3/6] gnu: add libslirp Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Dec 2021 22:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 52174@debbugs.gnu.org Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164012625829602 (code B ref 52174); Tue, 21 Dec 2021 22:38:02 +0000 Received: (at 52174) by debbugs.gnu.org; 21 Dec 2021 22:37:38 +0000 Received: from localhost ([127.0.0.1]:55963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mznlJ-0007hO-Sl for submit@debbugs.gnu.org; Tue, 21 Dec 2021 17:37:38 -0500 Received: from out1.migadu.com ([91.121.223.63]:23886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mznlI-0007hF-F5 for 52174@debbugs.gnu.org; Tue, 21 Dec 2021 17:37:37 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1640126255; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u2DOxbqLyE3ahUVoM3fGQr/TmGP0kp45qiUN1LNWY8E=; b=GMwycrcZu4AkdMwgate4qypsoB7nVIpChSGhZqiFTV7QSdj8cRNvnEWKVc28t5AuRmCZea OVC+KnzEaJm/KykiIWELK2CcQqxEMimFKcmHIsTR1LubQ5srQA7Vf807iTD6j4weuvx+2o p/W4V+oe3H1E/5YwmVefxapyTEk0khM= From: Timmy Douglas In-Reply-To: <871r27l87f.fsf@gnu.org> References: <874k75pzi7.fsf@gnu.org> <494f640fc1a93f5b04d4f39692af3b831998d085.1639889841.git.mail@timmydouglas.com> <871r27l87f.fsf@gnu.org> Date: Tue, 21 Dec 2021 14:37:32 -0800 Message-ID: <87r1a5zis3.fsf@timmydouglas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) Ludovic Court=C3=A8s writes: > Timmy Douglas skribis: > >> * gnu/packages/containers.scm: add libslirp > > Rather: > > * gnu/packages/containers.scm (libslirp): New variable. Is this generated with a guix command? From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 2/6] gnu: add conmon Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Dec 2021 22:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 52174@debbugs.gnu.org Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164012654430056 (code B ref 52174); Tue, 21 Dec 2021 22:43:02 +0000 Received: (at 52174) by debbugs.gnu.org; 21 Dec 2021 22:42:24 +0000 Received: from localhost ([127.0.0.1]:55973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mznpv-0007oi-So for submit@debbugs.gnu.org; Tue, 21 Dec 2021 17:42:24 -0500 Received: from out0.migadu.com ([94.23.1.103]:31866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mznps-0007oX-Qj for 52174@debbugs.gnu.org; Tue, 21 Dec 2021 17:42:22 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1640126539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3NikMe7tRT0KGoOl2wOlrlZx7hv2WWgQxRet9eiDqig=; b=AjaSEZ6z+SLIOmShb609st1UlkU358Zf6R8LmumGHKUyHMPYhrH3NuadNQdmbzJOedjhwn MBvcez5AjHbtLz8VYO2OuSdhg9fMLrACNO0jOv+Z6BuY2Pp7ZBIW6mz/10dIHoKAOaWahn mRczRh17LaJktzuCS0h4STv5dTQEaHk= From: Timmy Douglas In-Reply-To: <87wnjzjtk2.fsf@gnu.org> References: <874k75pzi7.fsf@gnu.org> <058f226cf4e0b5fdb6642ff4b9d20e28b5312781.1639889841.git.mail@timmydouglas.com> <87wnjzjtk2.fsf@gnu.org> Date: Tue, 21 Dec 2021 14:42:16 -0800 Message-ID: <87o859zik7.fsf@timmydouglas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) Ludovic Court=C3=A8s writes: > Timmy Douglas skribis: > >> * gnu/packages/containers.scm: add conmon > > [...] > >> + (source >> + (origin >> + (method git-fetch) >> + (uri (git-reference >> + (url "https://github.com/containers/conmon") >> + (commit (string-append "v" version)))) >> + (sha256 >> + (base32 "1sxpbm01g4xak4kqwvk45gmzr6n9bjzlfp1j85wyz8rj2hg2x4rm")) >> + (file-name (git-file-name name version)))) >> + >> + (build-system gnu-build-system) > > Nitpick: you can remove the empty line. ok. I think guix lint outputted that way or maybe I already had it like tha= t? >> + (arguments >> + `(#:make-flags (list ,(string-append "CC=3D" (cc-for-target)) >> + (string-append "PREFIX=3D" %output)) >> + #:tests? #f ; currently broken as go tries to use n= etwork > > Indentation is off. emacs really likes to indent it like that. I wonder if I'm missing something in my setup. I'll take a look at just skipping network tests rather than avoiding them altogether. From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v3 1/6] gnu: add crun Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Dec 2021 07:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164015846510879 (code B ref 52174); Wed, 22 Dec 2021 07:35:01 +0000 Received: (at 52174) by debbugs.gnu.org; 22 Dec 2021 07:34:25 +0000 Received: from localhost ([127.0.0.1]:56521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw8l-0002pK-NI for submit@debbugs.gnu.org; Wed, 22 Dec 2021 02:34:25 -0500 Received: from out1.migadu.com ([91.121.223.63]:26672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw8g-0002p6-Ts for 52174@debbugs.gnu.org; Wed, 22 Dec 2021 02:34:22 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1640158457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zmM/9+amNRQp3nvQJ9mKMd5nkRO+XYkxMmMs3Z6Es30=; b=M3BAx4B5iEduKh/am2hkrpJ7LzyOBDkSFQ6mrAvPYdZboOnbkU4YxGcF4Qlw9sCfl/rgK0 Qp4g7UGDDOdO5WVpeEQnwUldQu37Ig99QU5BWS6kKB5gVNMiVBR+KcV0/Fahas4jjrYeak SbCGsKp9b5/FFNdKNzzPKeKRjhFl1jA= From: Timmy Douglas Date: Tue, 21 Dec 2021 23:33:46 -0800 Message-Id: <6e4392911497417cb77932dcd6812eac4587e0a9.1640158278.git.mail@timmydouglas.com> In-Reply-To: <87sfunjtfi.fsf@gnu.org> References: <87sfunjtfi.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm (crun): New variable. * gnu/local.mk: add containers.scm --- gnu/local.mk | 1 + gnu/packages/containers.scm | 103 ++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 gnu/packages/containers.scm diff --git a/gnu/local.mk b/gnu/local.mk index 33e108c752..8ffcf662ce 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -157,6 +157,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/configuration-management.scm \ %D%/packages/conky.scm \ %D%/packages/connman.scm \ + %D%/packages/containers.scm \ %D%/packages/convmv.scm \ %D%/packages/cook.scm \ %D%/packages/coq.scm \ diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm new file mode 100644 index 0000000000..4228a27a91 --- /dev/null +++ b/gnu/packages/containers.scm @@ -0,0 +1,103 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2021 Timmy Douglas +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages containers) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (guix build-system go) + #:use-module (guix build-system meson) + #:use-module (guix utils) + #:use-module (gnu packages admin) + #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages glib) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages golang) + #:use-module (gnu packages linux) + #:use-module (gnu packages python) + #:use-module (gnu packages networking) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages selinux) + #:use-module (gnu packages version-control) + #:use-module (gnu packages virtualization) + #:use-module (gnu packages web)) + +(define-public crun + (let ((commit "8e5757a4e68590326dafe8a8b1b4a584b10a1370")) + (package + (name "crun") + (version "1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/crun") + (commit commit) + (recursive? #t))) + (sha256 + (base32 "01yiss2d57kwlxb7zlqzjwlg9fyaf19yjngd1mw9n4hxls3dfj3k")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags '("--disable-systemd") + #:tests? #f ; XXX: needs /sys/fs/cgroup mounted + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'do-not-depend-on-git + (lambda _ + (substitute* "autogen.sh" + (("^git submodule update.*") + "")) + (with-output-to-file "git-version.h" + (lambda () + (display (string-append + "/* autogenerated. */\n#ifndef GIT_VERSION\n# define GIT_VERSION \"" + ,commit + "\"\n#endif\n")))))) + (add-after 'unpack 'fix-tests + (lambda _ + (substitute* (find-files "tests" "\\.(c|py)") + (("/bin/true") (which "true")) + (("/bin/false") (which "false")) + ; relies on sd_notify which requires systemd? + (("\"sd-notify\" : test_sd_notify,") "") + (("\"sd-notify-file\" : test_sd_notify_file,") ""))))))) + (inputs + (list libcap + libseccomp + libyajl)) + (native-inputs + (list automake + autoconf + git + libtool + pkg-config + python-3)) + (home-page "https://github.com/containers/crun") + (synopsis "Open Container Initiative (OCI) Container runtime") + (description + "crun is a fast and low-memory footprint Open Container Initiative (OCI) +Container Runtime fully written in C.") + (license license:gpl2+)))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v3 2/6] gnu: add conmon Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Dec 2021 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164015847210897 (code B ref 52174); Wed, 22 Dec 2021 07:35:02 +0000 Received: (at 52174) by debbugs.gnu.org; 22 Dec 2021 07:34:32 +0000 Received: from localhost ([127.0.0.1]:56524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw8u-0002pg-KL for submit@debbugs.gnu.org; Wed, 22 Dec 2021 02:34:32 -0500 Received: from out1.migadu.com ([91.121.223.63]:26783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw8s-0002pY-Ih for 52174@debbugs.gnu.org; Wed, 22 Dec 2021 02:34:30 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1640158470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gx20rPPnr3NRybden6hIVp1u/ASYmq1UQzVFoHNxnOY=; b=CgfahyrCj0VWOiUvGcsT6UWVcT+ZqO4WLEXcROgHXyY9LlwG1/DWgJ9vRb5sQQBTLAOPD5 z+ICBmnP63VrQi/krDyljll05LjBYX6b3d+3BG3ea4eAQ82B0pAGOX23jc3AMOn9O8AIgJ z9EmRy2e/iKYs9aNh17R8IlWswWC38k= From: Timmy Douglas Date: Tue, 21 Dec 2021 23:33:48 -0800 Message-Id: <93293005601cb92f39825d11263b443d06a3b824.1640158278.git.mail@timmydouglas.com> In-Reply-To: <87sfunjtfi.fsf@gnu.org> References: <87sfunjtfi.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm (conmon): New variable. --- gnu/packages/containers.scm | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 4228a27a91..ff61219c41 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -101,3 +101,50 @@ (define-public crun "crun is a fast and low-memory footprint Open Container Initiative (OCI) Container Runtime fully written in C.") (license license:gpl2+)))) + +(define-public conmon + (package + (name "conmon") + (version "2.0.30") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/conmon") + (commit (string-append "v" version)))) + (sha256 + (base32 "1sxpbm01g4xak4kqwvk45gmzr6n9bjzlfp1j85wyz8rj2hg2x4rm")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list ,(string-append "CC=" (cc-for-target)) + (string-append "PREFIX=" %output)) + ;; XXX: uses `go get` to download 50 packages, runs a ginkgo test suite + ;; then tries to download busybox and use a systemd logging library + ;; see also https://github.com/containers/conmon/blob/main/nix/derivation.nix + #:tests? #f + #: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=/homeless-shelter. + (setenv "HOME" "/tmp")))))) + (inputs + (list crun + glib + glibc + libseccomp)) + (native-inputs + (list git + go + pkg-config)) + (home-page "https://github.com/containers/conmon") + (synopsis "Monitoring and communication tool between container manager and Open +Container Initiative (OCI) runtime") + (description + "Conmon is a monitoring program and communication tool between a container +manager (like Podman or CRI-O) and an Open Container Initiative (OCI) +runtime (like runc or crun) for a single container.") + (license license:asl2.0))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v3 3/6] gnu: add libslirp Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Dec 2021 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164015848210919 (code B ref 52174); Wed, 22 Dec 2021 07:35:02 +0000 Received: (at 52174) by debbugs.gnu.org; 22 Dec 2021 07:34:42 +0000 Received: from localhost ([127.0.0.1]:56527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw93-0002q2-T2 for submit@debbugs.gnu.org; Wed, 22 Dec 2021 02:34:42 -0500 Received: from out1.migadu.com ([91.121.223.63]:26863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw92-0002pv-Ta for 52174@debbugs.gnu.org; Wed, 22 Dec 2021 02:34:41 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1640158480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uKjGvYqjUaOJH6Q1dw0YI0tdRZ/RWfmw00y2193DCtI=; b=dOI6VUiCQPaDlXFevkJ4ZnPhGbcYaYpidC5s59hKTqWyCtG6tFTK/1O3sjIrADdG04MSci OQERk8oNCXWe5JDc6bjx8hR5bqKS4xTyZNed4L3xYu/Qk8DVqke60p8vTVCKWNIRdJRRkD 0T4D0xm3esUlmFmE3OzaGRUNT0IHScE= From: Timmy Douglas Date: Tue, 21 Dec 2021 23:33:50 -0800 Message-Id: <470eb4eeaf43a6e7596a35205ba6db5c52e7fdc7.1640158278.git.mail@timmydouglas.com> In-Reply-To: <87sfunjtfi.fsf@gnu.org> References: <87sfunjtfi.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm (libslirp): New variable. --- gnu/packages/containers.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index ff61219c41..7ba39b5c69 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -148,3 +148,28 @@ (define-public conmon manager (like Podman or CRI-O) and an Open Container Initiative (OCI) runtime (like runc or crun) for a single container.") (license license:asl2.0))) + +(define-public libslirp + (package + (name "libslirp") + (version "4.6.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/slirp/libslirp") + (commit (string-append "v" version)))) + (sha256 + (base32 "1b4cn51xvzbrxd63g6w1033prvbxfxsnsn1l0fa5i311xv28vkh0")) + (file-name (git-file-name name version)))) + (build-system meson-build-system) + (inputs + (list glib)) + (native-inputs + (list pkg-config)) + (home-page "https://gitlab.freedesktop.org/slirp/libslirp") + (synopsis "User-mode networking library") + (description + "libslirp is a user-mode networking library used by virtual machines, +containers or various tools.") + (license license:bsd-3))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v3 4/6] gnu: add slirp4netns Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Dec 2021 07:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164015849210942 (code B ref 52174); Wed, 22 Dec 2021 07:35:03 +0000 Received: (at 52174) by debbugs.gnu.org; 22 Dec 2021 07:34:52 +0000 Received: from localhost ([127.0.0.1]:56530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw9E-0002qQ-4e for submit@debbugs.gnu.org; Wed, 22 Dec 2021 02:34:52 -0500 Received: from out1.migadu.com ([91.121.223.63]:26948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw9D-0002qJ-7r for 52174@debbugs.gnu.org; Wed, 22 Dec 2021 02:34:51 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1640158490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=akwh5YHPGsmiwClfu0MRV4sxV3xj4DO5k6Qk6K9mRnU=; b=HC2qs1WvIX/eaT9l0SAz0hVygPx68xvh8bySLsJtS1ScrY93FUnueG5savfCDhXeAA6ISI gQqOgysBRc4au5IJZIpjYmiCxfPAMF4yPDHCZEVKpccGfR2oiOLpRIENU4LxCaKtqUQ8sr 9WdYhM/l0QcyGhiFh0luREu+1k/y++c= From: Timmy Douglas Date: Tue, 21 Dec 2021 23:33:52 -0800 Message-Id: <1061553b8c9ab0ece4fa3f53d534dd052c9d1a71.1640158278.git.mail@timmydouglas.com> In-Reply-To: <87sfunjtfi.fsf@gnu.org> References: <87sfunjtfi.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm (slirp4netns): New variable. --- gnu/packages/containers.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 7ba39b5c69..5e540bcfe4 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -173,3 +173,43 @@ (define-public libslirp "libslirp is a user-mode networking library used by virtual machines, containers or various tools.") (license license:bsd-3))) + +(define-public slirp4netns + (package + (name "slirp4netns") + (version "1.1.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rootless-containers/slirp4netns") + (commit (string-append "v" version)))) + (sha256 + (base32 "03llv4dlf7qqxwz4zdyk926g4bigfj2gb50glm70ciflpvzs8081")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; XXX: open("/dev/net/tun"): No such file or directory + #:phases (modify-phases %standard-phases + (add-after 'unpack 'fix-hardcoded-paths + (lambda _ + (substitute* (find-files "tests" "\\.sh") + (("ping") "/run/setuid-programs/ping"))))))) + (inputs + (list glib + libcap + libseccomp + libslirp)) + (native-inputs + (list automake + autoconf + iproute ; iproute, jq, nmap (ncat) and util-linux are for tests + jq + nmap + pkg-config + util-linux)) + (home-page "https://github.com/rootless-containers/slirp4netns") + (synopsis "User-mode networking for unprivileged network namespaces") + (description + "slirp4netns provides user-mode networking (\"slirp\") for unprivileged network namespaces.") + (license license:gpl2+))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v3 5/6] gnu: add cni-plugins Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Dec 2021 07:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164015850611019 (code B ref 52174); Wed, 22 Dec 2021 07:36:01 +0000 Received: (at 52174) by debbugs.gnu.org; 22 Dec 2021 07:35:06 +0000 Received: from localhost ([127.0.0.1]:56537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw9S-0002rf-DL for submit@debbugs.gnu.org; Wed, 22 Dec 2021 02:35:06 -0500 Received: from out1.migadu.com ([91.121.223.63]:27067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw9Q-0002rV-I6 for 52174@debbugs.gnu.org; Wed, 22 Dec 2021 02:35:04 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1640158504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0gAiMnmI5/W3v6OH9D2XQf7QkZX5xyCo0K5AD8U1MhM=; b=SSsTKs1lC7smNpbnqZsTjRUANdBIq9rOL1uO6mABDQg+NigOhwFayi6tOGtFeC9j4ffQFw sTZYU9hvc/1zUKhMlr48rBDqoV4hPwRYZvVQKFjJKAAgvKY7r8OqGA+jciNuNHx0clvgrs Gns085IcnSiSxFaHrMApKiF023sdMwo= From: Timmy Douglas Date: Tue, 21 Dec 2021 23:33:54 -0800 Message-Id: <4916a92131ef49b3264de4a049d78d18a2b2c91b.1640158278.git.mail@timmydouglas.com> In-Reply-To: <87sfunjtfi.fsf@gnu.org> References: <87sfunjtfi.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm (cni-plugins): New variable. --- gnu/packages/containers.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 5e540bcfe4..2789dcfc7c 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -213,3 +213,48 @@ (define-public slirp4netns (description "slirp4netns provides user-mode networking (\"slirp\") for unprivileged network namespaces.") (license license:gpl2+))) + +(define-public cni-plugins + (package + (name "cni-plugins") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containernetworking/plugins") + (commit (string-append "v" version)))) + (sha256 + (base32 "1j91in0mg4nblpdccyq63ncbnn2pc2zzjp1fh3jy0bsndllgv0nc")) + (file-name (git-file-name name version)))) + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/containernetworking/plugins" + #:tests? #f ; XXX: see stat /var/run below + #:phases (modify-phases %standard-phases + (replace 'build + (lambda _ + (with-directory-excursion "src/github.com/containernetworking/plugins" + (invoke "./build_linux.sh")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + ; only pkg/ns tests run without root + (when tests? + (with-directory-excursion "src/github.com/containernetworking/plugins/pkg/ns" + (invoke "stat" "/var/run") ; XXX: test tries to stat this directory + (invoke "unshare" "-rmn" "go" "test"))))) + (add-before 'check 'set-test-environment + (lambda _ + (setenv "XDG_RUNTIME_DIR" "/tmp/cni-rootless"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (copy-recursively "src/github.com/containernetworking/plugins/bin" + (string-append (assoc-ref outputs "out") "/bin"))))))) + (native-inputs + (list util-linux)) + (home-page "https://github.com/containernetworking/plugins") + (synopsis "Container Network Interface (CNI) network plugins") + (description + "Some Container Network Interface (CNI) network plugins, maintained by the +containernetworking team.") + (license license:asl2.0))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v3 6/6] gnu: add podman Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Dec 2021 07:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52174@debbugs.gnu.org Cc: ludo@gnu.org, mail@timmydouglas.com Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164015851911051 (code B ref 52174); Wed, 22 Dec 2021 07:36:02 +0000 Received: (at 52174) by debbugs.gnu.org; 22 Dec 2021 07:35:19 +0000 Received: from localhost ([127.0.0.1]:56540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw9e-0002sB-Oq for submit@debbugs.gnu.org; Wed, 22 Dec 2021 02:35:19 -0500 Received: from out1.migadu.com ([91.121.223.63]:27188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzw9c-0002s1-SC for 52174@debbugs.gnu.org; Wed, 22 Dec 2021 02:35:17 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1640158516; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KtuMHLwJCxfwEW9ONl0gobA2BLSvXOUQXXRb9L82Y5U=; b=CmqMVrLUKLXuUzYIQADTGq9/JyJwAyEwcT3Ip0I4VV2nlza4RNBjFLoYNq4Vt5LQy3HZg7 LHcpG+4T3RHz+iliMVtigEswMit9oQmfvENE2/XqfXfyLVu0fYj4+5HzMqX9rU8oLpvE7V TqbyBOQJcH7arK8vy3IAIZu3uIpCEjg= From: Timmy Douglas Date: Tue, 21 Dec 2021 23:33:56 -0800 Message-Id: In-Reply-To: <87sfunjtfi.fsf@gnu.org> References: <87sfunjtfi.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/containers.scm (podman): New variable. --- sending a v3 with some cleanup. I left some comments next to the tests to try to explain the issues I was running into. Let me know if you have suggestions. thanks gnu/packages/containers.scm | 78 +++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 2789dcfc7c..5656de616a 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -258,3 +258,81 @@ (define-public cni-plugins "Some Container Network Interface (CNI) network plugins, maintained by the containernetworking team.") (license license:asl2.0))) + +;; For podman to work, the user needs to run +;; `sudo mount -t cgroup2 none /sys/fs/cgroup` + +(define-public podman + (package + (name "podman") + (version "3.4.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/podman") + (commit (string-append "v" version)))) + (sha256 + (base32 "1q09qsl1wwiiy5njvb97n1j5f5jin4ckmzj5xbdfs28czb2kx3g5")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments + `(#:make-flags (list ,(string-append "CC=" (cc-for-target)) + (string-append "PREFIX=" %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=/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=\"[^\"]+\"") + (string-append "CATATONIT_PATH=" (which "true")))) + (substitute* "vendor/github.com/containers/common/pkg/config/config_linux.go" + (("/usr/local/libexec/podman") + (string-append (assoc-ref %outputs "out") "/bin"))) + (substitute* "vendor/github.com/containers/common/pkg/config/default.go" + (("/usr/libexec/podman/conmon") (which "conmon")) + (("/usr/local/libexec/cni") + (string-append (assoc-ref %build-inputs "cni-plugins") "/bin")) + (("/usr/bin/crun") (which "crun")))))))) + (inputs + (list btrfs-progs + cni-plugins + conmon + crun + gpgme + go-github-com-go-md2man + iptables + libassuan + libseccomp + libselinux + slirp4netns)) + (native-inputs + (list bats + git + go + ; strace ; XXX debug + pkg-config)) + (home-page "https://podman.io") + (synopsis "Manage containers, images, pods, and their volumes") + (description + "Podman (the POD MANager) is a tool for managing containers and images, +volumes mounted into those containers, and pods made from groups of +containers.") + (license license:asl2.0))) -- 2.34.0 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 1/6] gnu: add crun Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Dec 2021 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Timmy Douglas Cc: 52174@debbugs.gnu.org Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164035942227504 (code B ref 52174); Fri, 24 Dec 2021 15:24:02 +0000 Received: (at 52174) by debbugs.gnu.org; 24 Dec 2021 15:23:42 +0000 Received: from localhost ([127.0.0.1]:37899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0mQ2-00079W-F9 for submit@debbugs.gnu.org; Fri, 24 Dec 2021 10:23:42 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:58298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0mPw-000793-TP for 52174@debbugs.gnu.org; Fri, 24 Dec 2021 10:23:40 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 7F8A9331; Fri, 24 Dec 2021 16:23:30 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vjxMgTmTecaw; Fri, 24 Dec 2021 16:23:29 +0100 (CET) Received: from ribbon (unknown [78.199.208.147]) by hera.aquilenet.fr (Postfix) with ESMTPSA id DD909BE; Fri, 24 Dec 2021 16:23:28 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <874k75pzi7.fsf@gnu.org> <52542aec3c127a893453ac1ecbbd504022d4c8dd.1639889841.git.mail@timmydouglas.com> <875yrjl8a5.fsf@gnu.org> <87tuf1zpa1.fsf@timmydouglas.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?UTF-8?Q?Niv=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 24 Dec 2021 16:23:27 +0100 In-Reply-To: <87tuf1zpa1.fsf@timmydouglas.com> (Timmy Douglas's message of "Tue, 21 Dec 2021 12:17:10 -0800") Message-ID: <87v8zet4b4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 7F8A9331 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.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: -0.0 (/) Hello, Timmy Douglas skribis: > Ludovic Court=C3=A8s writes: [...] >> Sorry for not noticing earlier: we try hard to run test suites, and only >> disable it as a last resort, with a comment explaining why. Often, we >> disable specific tests that cannot run in the build environment (for >> instance because they assume network access) and run everything else. >> >> I had a quick go at running crun=E2=80=99s test suite, and there=E2=80= =99s a number of >> failures, which is not reassuring. >> >> Could you investigate a bit with the goal of fixing any actual issues >> the test suite reveals and/or skipping individual tests that cannot be >> run? > > are there some docs I could refer to on how Guix sandboxes the build? > I tried > https://guix.gnu.org/manual/en/html_node/Debugging-Build-Failures.html#De= bugging-Build-Failures > but I think I need to go further than sourcing env vars. Pretty much all the tricks are there. There=E2=80=99s also info on what=E2=80=99s visible in the build environmen= t here: https://guix.gnu.org/manual/en/html_node/Invoking-guix_002ddaemon.html > I tried modifying `make check` phase to invoking `mount` to see if I > could poke around (which didn't exactly work in my quick attempt...) > because I'm not sure how to debug some of the issues. I suspect some are > due to the fs layout/mounts. Probably could figure it out with some more > time but thought it might be best to ask first. > > With these changes I could get them to pass by manually `make check`ing > in the --keep-failed directory: > > (add-after 'unpack 'fix-tests > (lambda _ > (substitute* (find-files "tests" "\\.(c|py)") > (("/bin/true") (which "true")) > (("/bin/false") (which "false")) > ; relies on sd_notify which requires systemd? > (("\"sd-notify\" : test_sd_notify,") "") > (("\"sd-notify-file\" : test_sd_notify_file,") ""))))))) > > > from guix build: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > Testsuite summary for crun UNKNOWN > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > # TOTAL: 73 > # PASS: 9 > # SKIP: 28 > # XFAIL: 0 > # FAIL: 36 > # XPASS: 0 > # ERROR: 0 There are 36 failures though; does =E2=80=98test-suite.log=E2=80=99 show mo= re details? Thanks, Ludo=E2=80=99. From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 3/6] gnu: add libslirp Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Dec 2021 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Timmy Douglas Cc: 52174@debbugs.gnu.org Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164035946127639 (code B ref 52174); Fri, 24 Dec 2021 15:25:02 +0000 Received: (at 52174) by debbugs.gnu.org; 24 Dec 2021 15:24:21 +0000 Received: from localhost ([127.0.0.1]:37904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0mQe-0007Bi-Rn for submit@debbugs.gnu.org; Fri, 24 Dec 2021 10:24:20 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:58320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0mQd-0007BO-Ct for 52174@debbugs.gnu.org; Fri, 24 Dec 2021 10:24:19 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id E7C6B331; Fri, 24 Dec 2021 16:24:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b7zElAMkc7pI; Fri, 24 Dec 2021 16:24:13 +0100 (CET) Received: from ribbon (unknown [78.199.208.147]) by hera.aquilenet.fr (Postfix) with ESMTPSA id EC39776; Fri, 24 Dec 2021 16:24:12 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <874k75pzi7.fsf@gnu.org> <494f640fc1a93f5b04d4f39692af3b831998d085.1639889841.git.mail@timmydouglas.com> <871r27l87f.fsf@gnu.org> <87r1a5zis3.fsf@timmydouglas.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?UTF-8?Q?Niv=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 24 Dec 2021 16:24:10 +0100 In-Reply-To: <87r1a5zis3.fsf@timmydouglas.com> (Timmy Douglas's message of "Tue, 21 Dec 2021 14:37:32 -0800") Message-ID: <87r1a2t49x.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: E7C6B331 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.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: -0.0 (/) Timmy Douglas skribis: > Ludovic Court=C3=A8s writes: > >> Timmy Douglas skribis: >> >>> * gnu/packages/containers.scm: add libslirp >> >> Rather: >> >> * gnu/packages/containers.scm (libslirp): New variable. > > > Is this generated with a guix command? Yes, etc/committer.scm can do that for you. Ludo=E2=80=99. From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 2/6] gnu: add conmon Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Dec 2021 15:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Timmy Douglas Cc: 52174@debbugs.gnu.org Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164035954027864 (code B ref 52174); Fri, 24 Dec 2021 15:26:01 +0000 Received: (at 52174) by debbugs.gnu.org; 24 Dec 2021 15:25:40 +0000 Received: from localhost ([127.0.0.1]:37908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0mRw-0007FM-46 for submit@debbugs.gnu.org; Fri, 24 Dec 2021 10:25:40 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:58352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0mRv-0007F5-2U for 52174@debbugs.gnu.org; Fri, 24 Dec 2021 10:25:39 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 99034331; Fri, 24 Dec 2021 16:25:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T1684sGLYjLp; Fri, 24 Dec 2021 16:25:33 +0100 (CET) Received: from ribbon (unknown [78.199.208.147]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 62A12BE; Fri, 24 Dec 2021 16:25:31 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <874k75pzi7.fsf@gnu.org> <058f226cf4e0b5fdb6642ff4b9d20e28b5312781.1639889841.git.mail@timmydouglas.com> <87wnjzjtk2.fsf@gnu.org> <87o859zik7.fsf@timmydouglas.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?UTF-8?Q?Niv=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 24 Dec 2021 16:25:30 +0100 In-Reply-To: <87o859zik7.fsf@timmydouglas.com> (Timmy Douglas's message of "Tue, 21 Dec 2021 14:42:16 -0800") Message-ID: <87mtkqt47p.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 99034331 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.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: -0.0 (/) Timmy Douglas skribis: > Ludovic Court=C3=A8s writes: > >> Timmy Douglas skribis: [...] >>> + (arguments >>> + `(#:make-flags (list ,(string-append "CC=3D" (cc-for-target)) >>> + (string-append "PREFIX=3D" %output)) >>> + #:tests? #f ; currently broken as go tries to use = network >> >> Indentation is off. > > emacs really likes to indent it like that. I wonder if I'm missing > something in my setup. I does it right for me, but I forgot if it=E2=80=99s the default or if it= =E2=80=99s thanks to Emacs-Guix or something else. Ludo=E2=80=99. From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH v2 1/6] gnu: add crun Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Dec 2021 00:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 52174@debbugs.gnu.org Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.164039178914511 (code B ref 52174); Sat, 25 Dec 2021 00:24:01 +0000 Received: (at 52174) by debbugs.gnu.org; 25 Dec 2021 00:23:09 +0000 Received: from localhost ([127.0.0.1]:38317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0uq5-0003lz-3b for submit@debbugs.gnu.org; Fri, 24 Dec 2021 19:23:09 -0500 Received: from out1.migadu.com ([91.121.223.63]:19347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0uq0-0003lj-Mk for 52174@debbugs.gnu.org; Fri, 24 Dec 2021 19:23:08 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1640391783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C4O8lsx/3yMqJCqS5QnrBubacHeNq0RhkbLkUb+v6Po=; b=EdjDqutkQni0T8oqk5xs1BmFOdxjhxrHygYy8Ldy8inAYnyPOuuqu/zmfFys/ZefwsnfFQ oBumYNsuR/a5w7rRNUnxPbHBpsAB4ydNQ+whjm/P12Cj42fULdTLX5NrxQ8wGmApM2SQVL YYM46LP4b29IUlfxsLca3xCNYjlIMB8= From: Timmy Douglas In-Reply-To: <87v8zet4b4.fsf@gnu.org> References: <874k75pzi7.fsf@gnu.org> <52542aec3c127a893453ac1ecbbd504022d4c8dd.1639889841.git.mail@timmydouglas.com> <875yrjl8a5.fsf@gnu.org> <87tuf1zpa1.fsf@timmydouglas.com> <87v8zet4b4.fsf@gnu.org> Date: Fri, 24 Dec 2021 16:22:59 -0800 Message-ID: <87pmplmt24.fsf@timmydouglas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) Ludovic Court=C3=A8s writes: >> from guix build: >> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D >> Testsuite summary for crun UNKNOWN >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D >> # TOTAL: 73 >> # PASS: 9 >> # SKIP: 28 >> # XFAIL: 0 >> # FAIL: 36 >> # XPASS: 0 >> # ERROR: 0 > > There are 36 failures though; does =E2=80=98test-suite.log=E2=80=99 show = more details? Maybe my original reply wasn't clear--they all pass when I cd into the tmp (--keep-failed) directory and run them manually. They fail when the bui= lder runs them. I think I put the reasons in the v3 patch. For crun, it's because it needs the /sys/fs/cgroup mount which doesn't seem to be there for the builder. For the others, it's a similar situation--off the top of my head, they were either missing that mount or a /dev device. From unknown Tue Aug 19 05:08:28 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: Timmy Douglas Subject: bug#52174: closed (Re: bug#52174: [PATCH] gnu: Add podman) Message-ID: References: <87wnjjnx5u.fsf_-_@gnu.org> <4d5abde1033a5178c7b088fbd13f93f4f96866b6.1638168394.git.mail@timmydouglas.com> X-Gnu-PR-Message: they-closed 52174 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 52174@debbugs.gnu.org Date: Sat, 01 Jan 2022 18:12:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1641060722-28901-1" This is a multi-part message in MIME format... ------------=_1641060722-28901-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #52174: [PATCH] gnu: Add podman 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 52174@debbugs.gnu.org. --=20 52174: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D52174 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1641060722-28901-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 52174-done) by debbugs.gnu.org; 1 Jan 2022 18:11:55 +0000 Received: from localhost ([127.0.0.1]:59263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3irD-0007Vn-CJ for submit@debbugs.gnu.org; Sat, 01 Jan 2022 13:11:55 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:50258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3ir8-0007VS-4F for 52174-done@debbugs.gnu.org; Sat, 01 Jan 2022 13:11:53 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 9A8DD25A; Sat, 1 Jan 2022 19:11:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kz6Ix3efrYCs; Sat, 1 Jan 2022 19:11:42 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 443DB17D; Sat, 1 Jan 2022 19:11:42 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Timmy Douglas Subject: Re: bug#52174: [PATCH] gnu: Add podman References: <874k75pzi7.fsf@gnu.org> <52542aec3c127a893453ac1ecbbd504022d4c8dd.1639889841.git.mail@timmydouglas.com> <875yrjl8a5.fsf@gnu.org> <87tuf1zpa1.fsf@timmydouglas.com> <87v8zet4b4.fsf@gnu.org> <87pmplmt24.fsf@timmydouglas.com> Date: Sat, 01 Jan 2022 19:11:41 +0100 In-Reply-To: <87pmplmt24.fsf@timmydouglas.com> (Timmy Douglas's message of "Fri, 24 Dec 2021 16:22:59 -0800") Message-ID: <87wnjjnx5u.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 9A8DD25A X-Spamd-Result: default: False [0.46 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.56)[subject]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 52174-done Cc: 52174-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: -0.0 (/) Hi, Timmy Douglas skribis: > Ludovic Court=C3=A8s writes: > >>> from guix build: >>> >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>> Testsuite summary for crun UNKNOWN >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>> # TOTAL: 73 >>> # PASS: 9 >>> # SKIP: 28 >>> # XFAIL: 0 >>> # FAIL: 36 >>> # XPASS: 0 >>> # ERROR: 0 >> >> There are 36 failures though; does =E2=80=98test-suite.log=E2=80=99 show= more details? > > Maybe my original reply wasn't clear--they all pass when I cd into the > tmp (--keep-failed) directory and run them manually. They fail when the b= uilder runs > them. I think I put the reasons in the v3 patch. For crun, it's because > it needs the /sys/fs/cgroup mount which doesn't seem to be there for the > builder. For the others, it's a similar situation--off the top of my > head, they were either missing that mount or a /dev device. Oh I see. I pushed v3 as 637dec9d45db4df2a3e6aa565fa2c5cf6bb77768 with minor tweaks (long lines and one or two synopses/descriptions tweaked.) IWBN to see if we can still run those tests somehow, or at least the subset of them that doesn=E2=80=99t rely on /sys/fs/cgroup. I=E2=80=99d ar= gue that the test harness should automatically skip tests that cannot be run; perhaps worth raising upstream? Thanks! Ludo=E2=80=99. ------------=_1641060722-28901-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Nov 2021 07:02:03 +0000 Received: from localhost ([127.0.0.1]:36844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrafm-0006nq-Vu for submit@debbugs.gnu.org; Mon, 29 Nov 2021 02:02:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:37956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrafk-0006ni-0Z for submit@debbugs.gnu.org; Mon, 29 Nov 2021 02:01:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrafj-0007w3-Pp for guix-patches@gnu.org; Mon, 29 Nov 2021 02:01:55 -0500 Received: from out1.migadu.com ([91.121.223.63]:63206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mraff-0004oK-LT for guix-patches@gnu.org; Mon, 29 Nov 2021 02:01:55 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1638169306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RVMdUA0Z5HTVBSTtfBRWZcFB0uLWzqlyxgyvYCC07fw=; b=W7beZXaaSbEidhPh/MHeGSxvs7yzLfv9e9TIYTHBuYPlFjGBfEExemET1vZWpV58NoLi7R /ckUlyt1WKgzrXZvliRhdnT7SwAhFJa0I9djYXS0vc2BqVEzsbOmoIQiBIvl9SZz33MonM VKI7A7mFmVDyk4szAIPj4jLkWB5Vj5E= From: Timmy Douglas To: guix-patches@gnu.org Subject: [PATCH] gnu: Add podman Date: Sun, 28 Nov 2021 22:46:36 -0800 Message-Id: <4d5abde1033a5178c7b088fbd13f93f4f96866b6.1638168394.git.mail@timmydouglas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=91.121.223.63; envelope-from=mail@timmydouglas.com; helo=out1.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Timmy Douglas 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 (--) * gnu/packages/containers.scm (crun, conmon, libslirp, slirp4netns, cni-plugins, podman): Add podman and dependencies. --- I was going to try running some docker containers on my Guix system today, but I noticed docker was an old version. I decided to try packaging podman as the daemonless aspect seems appealing and was able to run a basic alpine image (rootless) after a couple of hours of putting this together. This is one of my first packages for Guix, so please give me some feedback--I'm also interested if anyone else would like to work together on this, because I'm fairly new to Guix and I haven't used podman before either. This probably needs some more testing since I only tried a basic scenario. For podman to work, I needed to run this: `sudo mount -t cgroup2 none /sys/fs/cgroup` gnu/packages/containers.scm | 304 ++++++++++++++++++++++++++++++++++++ 1 file changed, 304 insertions(+) create mode 100644 gnu/packages/containers.scm diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm new file mode 100644 index 0000000000..1c83698c2e --- /dev/null +++ b/gnu/packages/containers.scm @@ -0,0 +1,304 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2021 Timmy Douglas +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages containers) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (guix build-system go) + #:use-module (guix build-system meson) + #:use-module (guix utils) + #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages glib) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages golang) + #:use-module (gnu packages linux) + #:use-module (gnu packages python) + #:use-module (gnu packages networking) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages selinux) + #:use-module (gnu packages version-control) + #:use-module (gnu packages virtualization) + #:use-module (gnu packages web)) + +;; For podman to work, the user needs to run +;; `sudo mount -t cgroup2 none /sys/fs/cgroup` + +(define-public crun + (package + (name "crun") + (version "1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/crun") + (commit "8e5757a4e68590326dafe8a8b1b4a584b10a1370") ; 1.3 + (recursive? #t))) + (sha256 + (base32 "01yiss2d57kwlxb7zlqzjwlg9fyaf19yjngd1mw9n4hxls3dfj3k")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:configure-flags '("--disable-systemd") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'do-not-depend-on-git + (lambda _ + (substitute* "autogen.sh" + (("^git submodule update.*") + "")) + (with-output-to-file "git-version.h" + (lambda () + (display (string-append + "/* autogenerated. */\n#ifndef GIT_VERSION\n# define GIT_VERSION \"" + "8e5757a4e68590326dafe8a8b1b4a584b10a1370" ; refactor this + "\"\n#endif\n")))) + #t + ))))) + (inputs + `(("libcap" ,libcap) + ("libseccomp" ,libseccomp) + ("libyajl" ,libyajl))) + (native-inputs + `(("automake" ,automake) + ("autoreconf" ,autoconf) + ("git" ,git) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config) + ("python-3" ,python-3))) + (home-page "https://github.com/containers/crun") + (synopsis "OCI Container runtime") + (description + "crun is a fast and low-memory footprint OCI Container Runtime fully written in C.") + (license license:gpl2+))) + +(define-public conmon + (package + (name "conmon") + (version "v2.0.30") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/conmon") + (commit version))) + (sha256 + (base32 "1sxpbm01g4xak4kqwvk45gmzr6n9bjzlfp1j85wyz8rj2hg2x4rm")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments + `(#:make-flags (list ,(string-append "CC=" (cc-for-target)) + (string-append "PREFIX=" %output)) + #:tests? #f ; currently broken as go tries to use network + #: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=/homeless-shelter. + (setenv "HOME" "/tmp"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (inputs + `(("glib" ,glib) + ("glibc" ,glibc) + ("libseccomp" ,libseccomp) + ("crun" ,crun))) + (native-inputs + `(("git" ,git) + ("go" ,go) + ("pkg-config" ,pkg-config))) + (home-page "https://github.com/containers/conmon") + (synopsis "Monitoring and communication tool between container manager and OCI runtime") + (description + "Conmon is a monitoring program and communication tool between a container +manager (like Podman or CRI-O) and an OCI runtime (like runc or crun) for a +single container.") + (license license:asl2.0))) + +(define-public libslirp + (package + (name "libslirp") + (version "v4.6.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/slirp/libslirp") + (commit version))) + (sha256 + (base32 "1b4cn51xvzbrxd63g6w1033prvbxfxsnsn1l0fa5i311xv28vkh0")) + (file-name (git-file-name name version)))) + + (build-system meson-build-system) + (arguments '(#:tests? #f)) + (inputs + `(("glib" ,glib))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://gitlab.freedesktop.org/slirp/libslirp") + (synopsis "User-mode networking library") + (description + "libslirp is a user-mode networking library used by virtual machines, +containers or various tools.") + (license license:non-copyleft))) ;fixme what is this? + +(define-public slirp4netns + (package + (name "slirp4netns") + (version "v1.1.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rootless-containers/slirp4netns") + (commit version))) + (sha256 + (base32 "03llv4dlf7qqxwz4zdyk926g4bigfj2gb50glm70ciflpvzs8081")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments '(#:tests? #f)) + (inputs + `(("glib" ,glib) + ("libcap" ,libcap) + ("libseccomp" ,libseccomp) + ("libslirp" ,libslirp))) + (native-inputs + `(("automake" ,automake) + ("autoreconf" ,autoconf) + ("pkg-config" ,pkg-config))) + (home-page "https://github.com/rootless-containers/slirp4netns") + (synopsis "User-mode networking for unprivileged network namespaces") + (description + "slirp4netns provides user-mode networking (\"slirp\") for unprivileged network namespaces.") + (license license:gpl2+))) + +(define-public cni-plugins + (package + (name "cni-plugins") + (version "v1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containernetworking/plugins") + (commit version))) + (sha256 + (base32 "1j91in0mg4nblpdccyq63ncbnn2pc2zzjp1fh3jy0bsndllgv0nc")) + (file-name (git-file-name name version)))) + + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/containernetworking/plugins" + #:tests? #f + #:phases (modify-phases %standard-phases + (replace 'build + (lambda _ + (with-directory-excursion "src/github.com/containernetworking/plugins" + (invoke "./build_linux.sh")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (copy-recursively "src/github.com/containernetworking/plugins/bin" + (string-append (assoc-ref outputs "out") "/bin")) + #t))))) + (home-page "https://github.com/containernetworking/plugins") + (synopsis "CNI network plugins") + (description + "Some CNI network plugins, maintained by the containernetworking team.") + (license license:asl2.0))) + +(define-public podman + (package + (name "podman") + (version "v3.4.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/podman") + (commit version))) + (sha256 + (base32 "0v1xpd1q6ym9ibaj6242v4mp0wwdmj4dd9l7zfyydbxrx6a8ahjn")) + (file-name (git-file-name name version)))) + + (build-system gnu-build-system) + (arguments + `(#:make-flags (list ,(string-append "CC=" (cc-for-target)) + (string-append "PREFIX=" %output)) + #:tests? #f ; need to setup ginkgo + #: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=/homeless-shelter. + (setenv "HOME" "/tmp"))) + (add-after 'unpack 'fix-hardcoded-paths + (lambda _ + (substitute* (find-files "libpod" "\\.go") + (("exec.LookPath[(][\"]slirp4netns[\"][)]") + (string-append "exec.LookPath(\"" (which "slirp4netns") "\")"))) + (substitute* "vendor/github.com/containers/common/pkg/config/config_linux.go" + (("/usr/local/libexec/podman") + (string-append (assoc-ref %outputs "out") "/bin"))) + (substitute* "vendor/github.com/containers/common/pkg/config/default.go" + (("/usr/libexec/podman/conmon") (which "conmon")) + (("/usr/local/libexec/cni") + (string-append (assoc-ref %build-inputs "cni-plugins") "/bin")) + (("/usr/bin/crun") (which "crun"))) + #true)) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (inputs + `(("btrfs-progs" ,btrfs-progs) + ("cni-plugins" ,cni-plugins) + ("conmon" ,conmon) + ("gpgme" ,gpgme) + ("go-md2man" ,go-github-com-go-md2man) + ("iptables" ,iptables) ; fixme not sure if podman will call this using $PATH + ("libassuan" ,libassuan) + ("libseccomp" ,libseccomp) + ("libselinux" ,libselinux) + ("slirp4netns" ,slirp4netns) + ("crun" ,crun))) + (native-inputs + `(("git" ,git) + ("go" ,go) + ("pkg-config" ,pkg-config))) + (home-page "https://podman.io") + (synopsis "Manage containers, images, pods, and their volumes") + (description + "Podman (the POD MANager) is a tool for managing containers and images, +volumes mounted into those containers, and pods made from groups of +containers.") + (license license:asl2.0))) -- 2.33.1 ------------=_1641060722-28901-1-- From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH] gnu: Add podman Resent-From: Timmy Douglas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Jan 2022 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 52174-done@debbugs.gnu.org Received: via spool by 52174-done@debbugs.gnu.org id=D52174.16410671737873 (code D ref 52174); Sat, 01 Jan 2022 20:00:02 +0000 Received: (at 52174-done) by debbugs.gnu.org; 1 Jan 2022 19:59:33 +0000 Received: from localhost ([127.0.0.1]:59365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3kXM-00022v-Su for submit@debbugs.gnu.org; Sat, 01 Jan 2022 14:59:33 -0500 Received: from out1.migadu.com ([91.121.223.63]:38553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3kXK-00022l-4N for 52174-done@debbugs.gnu.org; Sat, 01 Jan 2022 14:59:31 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timmydouglas.com; s=key1; t=1641067168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JLqw3lxImGYjQW0OXCmIp5m4xe+GXhpNeIlYv6lW+iA=; b=CB8xYmfgerGpWFtkpoQ6nay24Toy0o2LWkG536Yvb+gEuMIVlGFFh6LhgZG8mf3JcLAs10 FIsJBuKaAGAH3qCySz/akgw6DYh/m3vwETIwyQbSKApR8JWFV6md4RZkYXmnRKCNhad0pe zmhn79eOW94Cv41kFucjJG9fm6sonno= From: Timmy Douglas In-Reply-To: <87wnjjnx5u.fsf_-_@gnu.org> References: <874k75pzi7.fsf@gnu.org> <52542aec3c127a893453ac1ecbbd504022d4c8dd.1639889841.git.mail@timmydouglas.com> <875yrjl8a5.fsf@gnu.org> <87tuf1zpa1.fsf@timmydouglas.com> <87v8zet4b4.fsf@gnu.org> <87pmplmt24.fsf@timmydouglas.com> <87wnjjnx5u.fsf_-_@gnu.org> Date: Sat, 01 Jan 2022 11:59:25 -0800 Message-ID: <87czlbmdlu.fsf@timmydouglas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: timmydouglas.com X-Spam-Score: -0.7 (/) 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: -1.7 (-) Ludovic Court=C3=A8s writes: > Hi, > >> Timmy Douglas skribis: >> >> Maybe my original reply wasn't clear--they all pass when I cd into the >> tmp (--keep-failed) directory and run them manually. They fail when the = builder runs >> them. I think I put the reasons in the v3 patch. For crun, it's because >> it needs the /sys/fs/cgroup mount which doesn't seem to be there for the >> builder. For the others, it's a similar situation--off the top of my >> head, they were either missing that mount or a /dev device. > > Oh I see. I pushed v3 as 637dec9d45db4df2a3e6aa565fa2c5cf6bb77768 with > minor tweaks (long lines and one or two synopses/descriptions tweaked.) thanks for the help Ludo! > IWBN to see if we can still run those tests somehow, or at least the > subset of them that doesn=E2=80=99t rely on /sys/fs/cgroup. I=E2=80=99d = argue that the > test harness should automatically skip tests that cannot be run; perhaps > worth raising upstream? I'd like to get the tests to run also, but the builder sandbox appears to be blocking some pretty major functionality that the tests would rely on. I think pretty much all of the container/crun ones would rely on the cgroup mount because that's the kernel interface into the container APIs... Is there some way that guix and the builder could eventually expose those by default? I don't know how receptive upstream would be towards an ask to run container tests with the container interface disabled? For the networking ones that fail, they try to use /dev/net/tun. Like the cgroup one, I assume this is a kernel interface needed to perform network operations. I guess the builders disable this as a part of the network disabling stuff because the tests pass outside of the builder sandbox. The cni-plugins (cni=3Dcontainer network interface) use /var/run to mount network namespaces. /var/run is present on my machine but I don't think it exists inside the builder sandbox. The actual directory used can be set with XDG_RUNTIME_DIR, but it appears the code still checks the ownership of /var/run to see if it's running in a user namespace: https://github.com/containernetworking/plugins/blob/2c46a726805bcf13e2f7858= 0c57b21e9de107285/pkg/testutils/netns_linux.go From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH] gnu: Add podman Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Jan 2022 11:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Timmy Douglas Cc: 52174-done@debbugs.gnu.org Received: via spool by 52174-done@debbugs.gnu.org id=D52174.164120847821635 (code D ref 52174); Mon, 03 Jan 2022 11:15:02 +0000 Received: (at 52174-done) by debbugs.gnu.org; 3 Jan 2022 11:14:38 +0000 Received: from localhost ([127.0.0.1]:34239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4LIT-0005ct-RD for submit@debbugs.gnu.org; Mon, 03 Jan 2022 06:14:38 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:55028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4LIR-0005cf-IZ for 52174-done@debbugs.gnu.org; Mon, 03 Jan 2022 06:14:36 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id A9E1913B; Mon, 3 Jan 2022 12:14:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ASkBzOKqIdbH; Mon, 3 Jan 2022 12:14:28 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id BC4C8A4; Mon, 3 Jan 2022 12:14:27 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <874k75pzi7.fsf@gnu.org> <52542aec3c127a893453ac1ecbbd504022d4c8dd.1639889841.git.mail@timmydouglas.com> <875yrjl8a5.fsf@gnu.org> <87tuf1zpa1.fsf@timmydouglas.com> <87v8zet4b4.fsf@gnu.org> <87pmplmt24.fsf@timmydouglas.com> <87wnjjnx5u.fsf_-_@gnu.org> <87czlbmdlu.fsf@timmydouglas.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 =?UTF-8?Q?Niv=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 03 Jan 2022 12:14:27 +0100 In-Reply-To: <87czlbmdlu.fsf@timmydouglas.com> (Timmy Douglas's message of "Sat, 01 Jan 2022 11:59:25 -0800") Message-ID: <87czl9m5po.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: A9E1913B X-Spamd-Result: default: False [0.46 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.56)[subject]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.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: -0.0 (/) Hello, Timmy Douglas skribis: > Ludovic Court=C3=A8s writes: [...] >> IWBN to see if we can still run those tests somehow, or at least the >> subset of them that doesn=E2=80=99t rely on /sys/fs/cgroup. I=E2=80=99d= argue that the >> test harness should automatically skip tests that cannot be run; perhaps >> worth raising upstream? > > I'd like to get the tests to run also, but the builder sandbox appears > to be blocking some pretty major functionality that the tests would rely > on. > > I think pretty much all of the container/crun ones would rely on the > cgroup mount because that's the kernel interface into the container > APIs... Is there some way that guix and the builder could eventually > expose those by default? I don't know how receptive upstream would be > towards an ask to run container tests with the container interface > disabled? The daemon probably won=E2=80=99t expose those; we=E2=80=99re rather conser= vative into what to expose and how to change it because changes could break bit-reproducible builds in unexpected ways. I understand many/most tests require cgroups, I=E2=80=99m just wondering if= we can run at least those that don=E2=80=99t require it. Perhaps we=E2=80=99r= e talking about a very limited number of tests, in which case it=E2=80=99s moot, I do= n=E2=80=99t know. > For the networking ones that fail, they try to use /dev/net/tun. Like > the cgroup one, I assume this is a kernel interface needed to perform > network operations. I guess the builders disable this as a part of the > network disabling stuff because the tests pass outside of the builder > sandbox. Yeah. > The cni-plugins (cni=3Dcontainer network interface) use /var/run to mount > network namespaces. /var/run is present on my machine but I don't think > it exists inside the builder sandbox. The actual directory used can be > set with XDG_RUNTIME_DIR, but it appears the code still checks the > ownership of /var/run to see if it's running in a user namespace: > https://github.com/containernetworking/plugins/blob/2c46a726805bcf13e2f78= 580c57b21e9de107285/pkg/testutils/netns_linux.go Hmm OK. So yeah, maybe there=E2=80=99s nothing we can do here. Thanks for your feedback, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 03:11:28 2022 Received: (at control) by debbugs.gnu.org; 23 Aug 2022 07:11:28 +0000 Received: from localhost ([127.0.0.1]:42443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQO4O-0005Ih-Ft for submit@debbugs.gnu.org; Tue, 23 Aug 2022 03:11:28 -0400 Received: from knopi.disroot.org ([178.21.23.139]:55206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQO4M-0005Ia-SK for control@debbugs.gnu.org; Tue, 23 Aug 2022 03:11:27 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 53FB640126 for ; Tue, 23 Aug 2022 09:11:26 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ohohAqABJTvN for ; Tue, 23 Aug 2022 09:11:25 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1661238685; bh=9Z5pt21f3iYMECjonJprBuq+iYsqeBe+gPBpZSdYE5E=; h=Date:Subject:To:From; b=KFFM2EpUyiy/2o50Wa70h2I9T0CTH01FarSdMM6hYMxwia+VS7IhJPeQv2ICnf5ir miahGBZXMaH/CbMlEZte00iq4uoOOoVQEj42S0ohhsHt6wE5Ml/tOfgJPUtWVAAApp MqIam5PKD96wM9YYxDiyOi/OYOrCajrB/w6Sh9GpQfXCxQR5zzu8L71tQCfga4h0ia fKX+O3YDi8LgsL4CZEnnYCRvol1c09uHIKifuatkSRmrtimxGAbInWEjbGyCTUIPei q8LOukvBK0jWmIqHFzeCO8dCOyGeifmWkMmbFZ4OVQOdJNvECDlAmluQa797SICzHQ MzvRwm61sNMFA== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 23 Aug 2022 16:11:20 +0900 Message-Id: Subject: unarchive 52174 To: From: =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong?= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) unarchive 52174 From unknown Tue Aug 19 05:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#52174] [PATCH] gnu: Add podman Resent-From: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Aug 2022 07:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: <52174@debbugs.gnu.org> Received: via spool by 52174-submit@debbugs.gnu.org id=B52174.166123889620718 (code B ref 52174); Tue, 23 Aug 2022 07:15:01 +0000 Received: (at 52174) by debbugs.gnu.org; 23 Aug 2022 07:14:56 +0000 Received: from localhost ([127.0.0.1]:42454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQO7k-0005O6-87 for submit@debbugs.gnu.org; Tue, 23 Aug 2022 03:14:56 -0400 Received: from knopi.disroot.org ([178.21.23.139]:37104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQO7h-0005Ny-VP for 52174@debbugs.gnu.org; Tue, 23 Aug 2022 03:14:54 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 55AEB40094 for <52174@debbugs.gnu.org>; Tue, 23 Aug 2022 09:14:53 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SKPXCmfUFjqA for <52174@debbugs.gnu.org>; Tue, 23 Aug 2022 09:14:52 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1661238892; bh=jnb8dYc8LnGxOr0fcS/ixrHrrlbE0LSCbSQdrJQrfjg=; h=Date:Subject:To:From:References:In-Reply-To; b=mmEQOIOHPA4lDoOJqS5zp4Fn3jww15dAilAA1aYlPhWxYvbGTLltA7YGAzHs63GPt 8F8yX3X15T1CyI6xojEM15EpLeYn252RlOPH6RFZDDkLHgYmOMhjwxP8TcWOUNbzqL N+WsNRJ1oL0UhH43ekOAdcFxNLJiItnjfnslGsxq0lA74GriIO9C4T1whtmGqukK1j UOTuQ1JitH0G0MSmexUMG7uD/rlkc3VeqDTt3yl+/B4s10aDc4Uvy3YyKD+un0CM+o vLSBasZ4U6X8seixiTw4HBu+gxYL5888JOkxS04Cf2q7aAmr7opdN02z2b4Bqntj7l hRcgPp7yc7Tzg== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 23 Aug 2022 16:14:46 +0900 Message-Id: From: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong References: In-Reply-To: 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: -1.0 (-) > For podman to work, the user needs to run > `sudo mount -t cgroup2 none /sys/fs/cgroup` I mounted /sys/fs/cgroup as v2 but podman info still shows host: ... cgroupControllers: [] cgroupManager: cgroupfs cgroupVersion: v1 and (expectedly) podman run fails: Error: OCI runtime error: cgroups in hybrid mode not supported, drop all controllers from cgroupv2 How do I look for a fix?