From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAEb7-0008QG-N8 for guix-patches@gnu.org; Sun, 22 Apr 2018 09:00:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAEb4-0006A6-Il for guix-patches@gnu.org; Sun, 22 Apr 2018 09:00:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55821) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAEb4-00069s-FC for guix-patches@gnu.org; Sun, 22 Apr 2018 09:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fAEb4-0002tM-14 for guix-patches@gnu.org; Sun, 22 Apr 2018 09:00:02 -0400 Subject: [bug#31237] [PATCH] gnu: Add runc. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAEa2-000843-Ky for guix-patches@gnu.org; Sun, 22 Apr 2018 08:58:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAEZz-0005Im-Eo for guix-patches@gnu.org; Sun, 22 Apr 2018 08:58:58 -0400 Received: from rezeros.cc ([2001:19f0:7001:2f3e:5400:ff:fe84:e55d]:43658) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fAEZz-0005Ga-07 for guix-patches@gnu.org; Sun, 22 Apr 2018 08:58:55 -0400 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Sun, 22 Apr 2018 20:58:44 +0800 Message-Id: <20180422125844.15227-1-iyzsong@member.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31237@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= * gnu/packages/virtualization.scm (runc): New variable. --- gnu/packages/virtualization.scm | 54 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 55ace5a56..e6d52c870 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2017 Rutger Helling ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice ;;; Copyright © 2018 Danny Milosavljevic +;;; Copyright © 2018 Sou Bunnbu ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,6 +42,7 @@ #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages golang) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages libusb) @@ -65,7 +67,8 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (guix download) - #:use-module ((guix licenses) #:select (gpl2 gpl2+ gpl3+ lgpl2.1 lgpl2.1+)) + #:use-module ((guix licenses) #:select (gpl2 gpl2+ gpl3+ lgpl2.1 lgpl2.1+ + asl2.0)) #:use-module (guix packages) #:use-module (guix utils) #:use-module (srfi srfi-1)) @@ -772,3 +775,52 @@ monitor/GPU.") ;; This package requires SSE instructions. (supported-systems '("i686-linux" "x86_64-linux")) (license gpl2+))) + +(define-public runc + (package + (name "runc") + (version "1.0.0-rc5") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/opencontainers/runc/releases/" + "download/v" version "/runc.tar.xz")) + (sha256 + (base32 + "081avdzwnqpk368wbaihlzsypaxpj42d7699h7jgp0fks14x4103")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; FIXME: 20/139 tests fail. + #:test-target "localunittest" + #:phases + (modify-phases %standard-phases + (delete 'configure) ; no 'configure' script + (replace 'build + (lambda _ + (let* ((gopath (string-append (getenv "TMPDIR") "/go")) + (srcdir (string-append + gopath "/src/github.com/opencontainers/runc"))) + (setenv "GOPATH" gopath) + (mkdir-p (dirname srcdir)) + (copy-recursively (getcwd) srcdir) + (chdir srcdir) + ;; XXX: requires 'go-md2man'. + ;; (invoke "make man") + (invoke "make")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "make" "install" "install-bash" + (string-append "PREFIX=" out)))))))) + (native-inputs + `(("go" ,go) + ("pkg-config" ,pkg-config))) + (inputs + `(("libseccomp" ,libseccomp))) + (synopsis "Open container initiative runtime") + (home-page "https://www.opencontainers.org/") + (description + "@command{runc} is a command line client for running applications +packaged according to the Open Container Initiative (OCI) format and is a +compliant implementation of the Open Container Initiative specification.") + (license asl2.0))) -- 2.13.3