GNU bug report logs - #31767
[PATCH 2/3] gnu: Add umoci.

Previous Next

Package: guix-patches;

Reported by: 宋文武 <iyzsong <at> member.fsf.org>

Date: Sat, 9 Jun 2018 11:23:04 UTC

Severity: normal

Tags: patch

Done: iyzsong <at> member.fsf.org (宋文武)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31767 in the body.
You can then email your comments to 31767 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#31767; Package guix-patches. (Sat, 09 Jun 2018 11:23:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to 宋文武 <iyzsong <at> member.fsf.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 09 Jun 2018 11:23:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> member.fsf.org>
To: guix-patches <at> gnu.org
Cc: 宋文武 <iyzsong <at> member.fsf.org>
Subject: [PATCH 2/3] gnu: Add umoci.
Date: Sat,  9 Jun 2018 19:20:59 +0800
* gnu/packages/virtualization.scm (umoci): New variable.
---
 gnu/packages/virtualization.scm | 45 +++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index d2419df98..d5be45b1e 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -864,3 +864,48 @@ packaged according to the
 Container Initiative (OCI) format} and is a compliant implementation of the
 Open Container Initiative specification.")
     (license asl2.0)))
+
+(define-public umoci
+  (package
+    (name "umoci")
+    (version "0.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/openSUSE/umoci/releases/download/v"
+                    version "/umoci.tar.xz"))
+              (file-name (string-append "umoci-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0hg7hs4dagj2fgymm4b4s68k1v2k2093s3jg0d94j0ixhfmyg9nd"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/openSUSE/umoci"
+       #:install-source? #f
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'unpack
+           (lambda* (#:key source import-path #:allow-other-keys)
+             ;; Unpack the tarball into 'umoci' instead of "runc-${version}".
+             (let ((dest (string-append "src/" import-path)))
+               (mkdir-p dest)
+               (invoke "tar" "-C" (string-append "src/" import-path)
+                       "--strip-components=1"
+                       "-xvf" source))))
+         (replace 'build
+           (lambda* (#:key import-path #:allow-other-keys)
+             (chdir (string-append "src/" import-path))
+             ;; TODO: build manpages with 'go-md2man'.
+             (invoke "make" "SHELL=bash")))
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bindir (string-append out "/bin")))
+               (install-file "umoci" bindir)
+               #t))))))
+    (home-page "https://umo.ci/")
+    (synopsis "Tool for modifying Open Container images")
+    (description
+     "@command{umoci} is a tool that allows for high-level modification of an
+OCI image layout and its tagged images.")
+    (license asl2.0)))
-- 
2.17.1





Information forwarded to guix-patches <at> gnu.org:
bug#31767; Package guix-patches. (Mon, 11 Jun 2018 12:25:02 GMT) Full text and rfc822 format available.

Message #8 received at 31767 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong <at> member.fsf.org>
Cc: 31767 <at> debbugs.gnu.org
Subject: Re: [bug#31767] [PATCH 2/3] gnu: Add umoci.
Date: Mon, 11 Jun 2018 14:24:03 +0200
宋文武 <iyzsong <at> member.fsf.org> skribis:

> * gnu/packages/virtualization.scm (umoci): New variable.

[...]

> +    (home-page "https://umo.ci/")
> +    (synopsis "Tool for modifying Open Container images")
> +    (description
> +     "@command{umoci} is a tool that allows for high-level modification of an
> +OCI image layout and its tagged images.")

Maybe s/OCI/Open Container Image (OCI)/.

Otherwise LGTM, thanks!

Ludo’.




Reply sent to iyzsong <at> member.fsf.org (宋文武):
You have taken responsibility. (Tue, 12 Jun 2018 11:37:03 GMT) Full text and rfc822 format available.

Notification sent to 宋文武 <iyzsong <at> member.fsf.org>:
bug acknowledged by developer. (Tue, 12 Jun 2018 11:37:03 GMT) Full text and rfc822 format available.

Message #13 received at 31767-done <at> debbugs.gnu.org (full text, mbox):

From: iyzsong <at> member.fsf.org (宋文武)
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 31767-done <at> debbugs.gnu.org
Subject: Re: [bug#31767] [PATCH 2/3] gnu: Add umoci.
Date: Tue, 12 Jun 2018 19:35:43 +0800
ludo <at> gnu.org (Ludovic Courtès) writes:

> 宋文武 <iyzsong <at> member.fsf.org> skribis:
>
>> * gnu/packages/virtualization.scm (umoci): New variable.
>
> [...]
>
>> +    (home-page "https://umo.ci/")
>> +    (synopsis "Tool for modifying Open Container images")
>> +    (description
>> +     "@command{umoci} is a tool that allows for high-level modification of an
>> +OCI image layout and its tagged images.")
>
> Maybe s/OCI/Open Container Image (OCI)/.

Okay.
>
> Otherwise LGTM, thanks!

Pushed,  thanks!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 11 Jul 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.