From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UCOVOC+9vmGePgAAgWs5BA (envelope-from ) for ; Sun, 19 Dec 2021 06:03:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UO8ONC+9vmH5cQAAbx9fmQ (envelope-from ) for ; Sun, 19 Dec 2021 05:03:43 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7CBE233854 for ; Sun, 19 Dec 2021 06:03:43 +0100 (CET) Received: from localhost ([::1]:44844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myoMH-0002Ty-2z for larch@yhetil.org; Sun, 19 Dec 2021 00:03:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myoIk-0007u1-RB for guix-patches@gnu.org; Sun, 19 Dec 2021 00:00:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33150) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myoIk-0003wW-9C for guix-patches@gnu.org; Sun, 19 Dec 2021 00:00:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myoIk-0002Hf-7P for guix-patches@gnu.org; Sun, 19 Dec 2021 00:00:02 -0500 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= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Timmy Douglas X-ACL-Warn: , Timmy Douglas via Guix-patches From: Timmy Douglas via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639890223; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KK90Y55LmAoJr7B9rHV7wD1IUGk+ufq6La7PrUBqBl4=; b=g4BwhyM2d5adQaGFftVcEbA7a1gtB5hek6qU9q0uwDU1vozevPNdEYr2cy+0bY4atIhjU4 K6GwDZDXAy/G8xNHHmuBJO7HlyMRIpu+9YhiozNUdOYL84yXdIwG50pLsycw5L93u3vlQE W/Mo4IWKKv0Uw6u4NXtQq7efgGFpPO3FswL1oooEd1YynKYyDIfSgWcnINLk2ppLkkfvHi 8GjqnTb4DeZ4zes3qbLgR3e+Jx5YT0vWtGl0XBMFbr6oB6hfihFHEjaLMXjvpjLBhJVSdi 0Y+oYJtTh9rI9+5joV0Ed/94jkdi/IPoQNJJhARRjDXB1QuqX/wvwAXzGyYmTg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639890223; a=rsa-sha256; cv=none; b=udLTv2E3ULfhEOFQZfpe5biXulQ1EsY3laZeP2fjfmngVKkRTYGdgu+R+GqjgW/QYtL1Fk nrxx6wYjw4JR2LpQ9zKWHi/jyQXLks3/zq3CnYWGOTjNteEB/qonsA9yBJQRJXDb5/ZlOd c2x4QIOG7CymCtvUP0KEmnXJhwzH57/XvysAJSesjIQUJEEN509FlchOoa8ie386xQ9foT 5L31VTyvf19TU1XqvTUI9P0718yN23VRSITqSb/qEGpdPfJvfH1HH3KnzP83bi7RBVDgya e9n2M+ZawhT4XrGF7cJadp6hdJ5fRiZGlNs7GtoC7Kajp6lhj1QnOsmTMEY/gg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=timmydouglas.com header.s=key1 header.b=OZuMbBxJ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=timmydouglas.com header.s=key1 header.b=OZuMbBxJ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7CBE233854 X-Spam-Score: -4.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9i2PYCrv0T17 * 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