From patchwork Fri Mar 24 10:14:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zongyuan Li X-Patchwork-Id: 48628 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4B56A16FCC; Fri, 24 Mar 2023 15:15:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 14A8316D87 for ; Fri, 24 Mar 2023 15:15:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pff8Z-0003rr-HZ; Fri, 24 Mar 2023 06:59:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pff8T-0003ob-QB for guix-patches@gnu.org; Fri, 24 Mar 2023 06:59:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pff8T-00022K-Ic for guix-patches@gnu.org; Fri, 24 Mar 2023 06:59:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfeRq-0001pF-5p for guix-patches@gnu.org; Fri, 24 Mar 2023 06:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61682] [PATCH v3 1/1] gnu: buildah: Add 'buildah' package Resent-From: Zongyuan Li Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Mar 2023 10:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61682 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61682@debbugs.gnu.org, liliana.prikler@gmail.com Cc: Zongyuan Li Received: via spool by 61682-submit@debbugs.gnu.org id=B61682.16796528956984 (code B ref 61682); Fri, 24 Mar 2023 10:15:02 +0000 Received: (at 61682) by debbugs.gnu.org; 24 Mar 2023 10:14:55 +0000 Received: from localhost ([127.0.0.1]:39876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfeRi-0001oa-O0 for submit@debbugs.gnu.org; Fri, 24 Mar 2023 06:14:55 -0400 Received: from mail-4018.proton.ch ([185.70.40.18]:55953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfeRf-0001oG-0x for 61682@debbugs.gnu.org; Fri, 24 Mar 2023 06:14:53 -0400 Date: Fri, 24 Mar 2023 10:14:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c0x0o.me; s=protonmail; t=1679652880; x=1679912080; bh=RlCsUH2BmzDGCWOdYEiQ1vXdYc+excFCD/XoyX5jGxk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=qrAog5WDImqBc2nvJkBRZHvZ+95Of2+bgUzMBmZaYyk0TDC5n+78Guf7AAGx4bzr1 cZ47hrmpxZ0x+T+XwoCz6JTScxyc66X05TRwfLV8qA2JLiPIYkX1WI55qx9zZgDsgy vUpzq+FJYLHyVMC45GaTYiO17A+w+ksvPhgRmrQUu62PT7dgJzE7zpKlP07QqGfVV9 xcahcOUhuOcYCq80N/RkaAqoPbFReLBpwDcDgLjsLw6QZnO29vykG8zBaIvqC9B4dq VUVElv8kjBloy2xp3at1XwSf0G0W8q3pATlQTc2sonbhGRLz3ir76a+pmSJxAkbHN0 oXT6JG3qy1CgQ== Message-ID: <29eeb5f527c4eb6f966e5d0365b459f980dbb0b9.1679652457.git.zongyuan.li@c0x0o.me> In-Reply-To: References: Feedback-ID: 67462066:user:proton MIME-Version: 1.0 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: , Reply-to: Zongyuan Li X-ACL-Warn: , Zongyuan Li via Guix-patches X-Patchwork-Original-From: Zongyuan Li via Guix-patches via From: Zongyuan Li Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches gnu: buildah: Add 'buildah' package Introduce new 'buildah' package * gnu/packages/containers.scm: New 'buildah' package --- gnu/packages/containers.scm | 73 +++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) -- 2.37.1 (Apple Git-137.1) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index b316588ea2..c20bcdaba3 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -406,3 +406,76 @@ (define-public podman volumes mounted into those containers, and pods made from groups of containers.") (license license:asl2.0))) + +(define-public buildah + (package + (name "buildah") + (version "1.29.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/buildah") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1mcqkz68fjccdla1bgxw57w268a586brm6x28fcm6x425ah0w07h")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/containers/buildah/cmd/buildah" + #:unpack-path "github.com/containers/buildah" + ; Some dependencies require go-1.18 to build + #:go go-1.18 + #:tests? #f + #:build-flags + ; These information is constructed in 'buildah' Makefile. + #~(list (string-append "-ldflags=-X main.GitCommit=" + "faf0d4fcbaede00f4e615dc5cc2ccc816f240cfe" + " -X main.cniVersion=v1.1.2")) + #:install-source? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'prepare-install-docs + (lambda* (#:key unpack-path #:allow-other-keys) + (substitute* (string-append "src/" + unpack-path + "/docs/Makefile") + (("../tests/tools/build/go-md2man") + (which "go-md2man"))) + (substitute* (string-append "src/" + unpack-path + "/docs/Makefile") + (("/usr/local") (string-append #$output))))) + (add-after 'build 'build-docs + (lambda* (#:key unpack-path #:allow-other-keys) + (let* + ((doc-path (string-append "src/" unpack-path "/docs"))) + (invoke "make" "-C" doc-path)))) + (add-after 'install 'install-docs + (lambda* (#:key unpack-path #:allow-other-keys) + (let* + ((doc-path (string-append "src/" unpack-path "/docs"))) + (invoke "make" "-C" doc-path "install"))))))) + (inputs (list btrfs-progs + cni-plugins + conmon + eudev + glib + gpgme + libassuan + libseccomp + lvm2 + runc)) + (native-inputs + (list go-github-com-go-md2man + gnu-make + pkg-config)) + (synopsis + "Facilitates building Open Container Initiative (OCI) container images") + (description + "Buildah is an open source, Linux-based tool used to build Open Container +Initiative (OCI)-compatible containers. With Buildah, you can use your +favorite tools to create efficient container images from an existing base image +or from scratch using an empty image.") + (home-page "https://buildah.io") + (license license:asl2.0)))