From patchwork Sat Mar 25 10:25:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zongyuan Li X-Patchwork-Id: 48670 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 D691716FA7; Sat, 25 Mar 2023 12:52:32 +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 3177716D87 for ; Sat, 25 Mar 2023 12:52:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pg3NP-0004wG-5b; Sat, 25 Mar 2023 08:52:07 -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 1pg3NN-0004op-Pi for guix-patches@gnu.org; Sat, 25 Mar 2023 08:52:05 -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 1pg3NK-0002or-Fx for guix-patches@gnu.org; Sat, 25 Mar 2023 08:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pg3NK-0005i8-AY for guix-patches@gnu.org; Sat, 25 Mar 2023 08:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61682] [PATCH v4 1/1] gnu: buildah: Add 'buildah' package Resent-From: Zongyuan Li Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Mar 2023 12:52: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 Cc: liliana.prikler@gmail.com, Zongyuan Li Received: via spool by 61682-submit@debbugs.gnu.org id=B61682.167974867321877 (code B ref 61682); Sat, 25 Mar 2023 12:52:02 +0000 Received: (at 61682) by debbugs.gnu.org; 25 Mar 2023 12:51:13 +0000 Received: from localhost ([127.0.0.1]:42112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pg3MX-0005gm-8a for submit@debbugs.gnu.org; Sat, 25 Mar 2023 08:51:13 -0400 Received: from mail-41104.protonmail.ch ([185.70.41.104]:45909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pg3MT-0005gQ-HJ for 61682@debbugs.gnu.org; Sat, 25 Mar 2023 08:51:12 -0400 Date: Sat, 25 Mar 2023 10:25:05 +0000 Authentication-Results: mail-41104.protonmail.ch; dkim=pass (2048-bit key) header.d=c0x0o.me header.i=@c0x0o.me header.b="NiDssed3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c0x0o.me; s=protonmail; t=1679739910; x=1679999110; bh=ciUqrhV7ZLd1TBjJdX8XXW8HZx5tI8+HktRtdqfbMYo=; 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=NiDssed3DO1wjqD3WdQsrGGdmoZOAvwANXzT1Fj13mad01gxYwCPLWihQWitaYt8t iFMUlU3AW+tTV9KR/KLSaANN/BMTSaU7rC0SrfNRKe1hj+5Mbl91nqpT+u7OHLXG0Y fZPokdr5U4x63icDsKHtQPiD5GZvJvu7pwtn2gyKNHodDmmHwES2Od/zNUBim8Gd8i ct92+43BLtz/p1WgDmffiZjdl0CR9d/UXZ3zfRhNt9QqZaxNEIcWKogshJKZxFgR/W j39zA1lYiXpXvHjo15n8oKNU20nUoymVgDgYtLOZPWCubkZE0VVqo5h3Dz+1oqosIz +plgBy5WTIf4Q== Message-ID: 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 | 66 +++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) -- 2.37.1 (Apple Git-137.1) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index b316588ea2..43d215ea6a 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -406,3 +406,69 @@ (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 + #: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 + "Build Open Container Initiative images") + (description + "Buildah is used to build Open Container Initiative +@acronym{OCI, Open Container Initiative} compatible containers.") + (home-page "https://buildah.io") + (license license:asl2.0)))