Github messages for voidlinux
 help / color / mirror / Atom feed
From: ap4y <ap4y@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: crun-0.15
Date: Mon, 28 Sep 2020 04:58:15 +0200	[thread overview]
Message-ID: <20200928025815.F6WxczLmhaDwpXrhA9oCceYqbZ1FwLbw0YPberSN9FY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25140@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

There is an updated pull request by ap4y against master on the void-packages repository

https://github.com/ap4y/void-packages crun
https://github.com/void-linux/void-packages/pull/25140

New package: crun-0.15
crun is supported by podman as an alternative for runc.

A patch file from https://github.com/void-linux/void-packages/pull/25140.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-crun-25140.patch --]
[-- Type: text/x-diff, Size: 4047 bytes --]

From 318ca9cb7bf5c75839aeaafd48b0654ba71d2938 Mon Sep 17 00:00:00 2001
From: ap4y <mail@ap4y.me>
Date: Mon, 28 Sep 2020 14:46:22 +1300
Subject: [PATCH] New package: crun-0.15

crun is supported by podman as an alternative for runc, new virtual
package was added to handle this.
---
 common/shlibs           |  1 +
 etc/defaults.virtual    |  1 +
 srcpkgs/crun/template   | 34 ++++++++++++++++++++++++++++++++++
 srcpkgs/libcrun         |  1 +
 srcpkgs/libcrun-devel   |  1 +
 srcpkgs/podman/template |  2 +-
 srcpkgs/runc/template   |  1 +
 7 files changed, 40 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/crun/template
 create mode 120000 srcpkgs/libcrun
 create mode 120000 srcpkgs/libcrun-devel

diff --git a/common/shlibs b/common/shlibs
index aae753c73a1..479c1de0a1f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3989,3 +3989,4 @@ libneatvnc.so.0 neatvnc-0.2.0_1
 libtdjson.so.1.6.0 libtd-1.6.0_1
 libJudy.so.1 judy-1.0.5_1
 libsignal-protocol-c.so.2 libsignal-protocol-c-2.3.3_2
+libcrun.so.0 libcrun-0.15_1
diff --git a/etc/defaults.virtual b/etc/defaults.virtual
index 083ab6349ea..34c314f8e81 100644
--- a/etc/defaults.virtual
+++ b/etc/defaults.virtual
@@ -36,3 +36,4 @@ xserver-abi-video xorg-server
 libGL libglvnd
 libEGL libglvnd
 libGLES libglvnd
+oci-runtime runc
diff --git a/srcpkgs/crun/template b/srcpkgs/crun/template
new file mode 100644
index 00000000000..7c7a0ccc25e
--- /dev/null
+++ b/srcpkgs/crun/template
@@ -0,0 +1,34 @@
+# Template file for 'crun'
+pkgname=crun
+version=0.15
+revision=1
+build_style=gnu-configure
+configure_args="--disable-systemd --enable-shared"
+hostmakedepends="pkg-config python3"
+makedepends="libcap-devel libseccomp-devel yajl-devel go-md2man"
+short_desc="Fast and lightweight fully featured OCI runtime"
+maintainer="Arthur Evstifeev <mail@ap4y.me>"
+license="GPL-2.0-or-later, LGPL-2.1-or-later"
+homepage="https://github.com/containers/crun"
+distfiles="https://github.com/containers/crun/releases/download/${version}/crun-${version}.tar.xz"
+checksum=e635b953327b1ae0155db63ef75be56755c0c3ce91ebbe4b4093774fdbd56df1
+provides="oci-runtime-0_1"
+
+case $XBPS_TARGET_MACHINE in
+	*-musl) makedepends+=" argp-standalone"
+esac
+
+libcrun-devel_package() {
+	depends="libcrun-${version}_${revision}"
+	short_desc+=" - C library for running containers - development files"
+	pkg_install() {
+		vmove "usr/lib/libcrun*.a"
+	}
+}
+
+libcrun_package() {
+	short_desc+=" - C library for running containers"
+	pkg_install() {
+		vmove "usr/lib/libcrun.so*"
+	}
+}
diff --git a/srcpkgs/libcrun b/srcpkgs/libcrun
new file mode 120000
index 00000000000..d132684fcdb
--- /dev/null
+++ b/srcpkgs/libcrun
@@ -0,0 +1 @@
+crun
\ No newline at end of file
diff --git a/srcpkgs/libcrun-devel b/srcpkgs/libcrun-devel
new file mode 120000
index 00000000000..d132684fcdb
--- /dev/null
+++ b/srcpkgs/libcrun-devel
@@ -0,0 +1 @@
+crun
\ No newline at end of file
diff --git a/srcpkgs/podman/template b/srcpkgs/podman/template
index 46703514fdd..87644c5731a 100644
--- a/srcpkgs/podman/template
+++ b/srcpkgs/podman/template
@@ -9,7 +9,7 @@ go_build_tags="seccomp apparmor containers_image_ostree_stub
  btrfs_noversion exclude_graphdriver_btrfs"
 hostmakedepends="pkg-config go-md2man"
 makedepends="gpgme-devel libseccomp-devel device-mapper-devel"
-depends="runc conmon cni-plugins slirp4netns containers.image"
+depends="virtual?oci-runtime conmon cni-plugins slirp4netns containers.image"
 short_desc="Simple management tool for containers and images"
 maintainer="Cameron Nemo <cnemo@tutanota.com>"
 license="Apache-2.0"
diff --git a/srcpkgs/runc/template b/srcpkgs/runc/template
index b2709fa2440..22add76beac 100644
--- a/srcpkgs/runc/template
+++ b/srcpkgs/runc/template
@@ -16,6 +16,7 @@ license="Apache-2.0"
 homepage="https://github.com/opencontainers/runc"
 distfiles="https://github.com/opencontainers/runc/releases/download/v${_ver}/runc.tar.xz"
 checksum=2f76b623b550588db98e2be72e74aae426f5d4cf736bd92afb91dd5586816daf
+provides="oci-runtime-0_1"
 
 post_build() {
 	make man

  reply	other threads:[~2020-09-28  2:58 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-28  1:59 [PR PATCH] " ap4y
2020-09-28  2:58 ` ap4y [this message]
2020-09-28  3:00 ` ap4y
2020-09-28  3:00 ` ericonr
2020-09-28  3:17 ` ap4y
2020-09-28  3:20 ` ap4y
2020-09-28  3:48 ` [PR PATCH] [Updated] " ap4y
2020-09-28  4:36 ` CameronNemo
2020-09-28  4:42 ` CameronNemo
2020-09-28  4:43 ` CameronNemo
2020-09-28  8:00 ` ap4y
2020-09-29 20:30 ` [PR REVIEW] " CameronNemo
2020-09-29 20:32 ` CameronNemo
2020-09-29 20:32 ` CameronNemo
2020-09-30  4:36 ` ap4y
2020-09-30  5:16 ` CameronNemo
2020-09-30  7:31 ` ap4y
2020-09-30  7:31 ` [PR PATCH] [Closed]: " ap4y
2020-09-30 16:22 ` CameronNemo
2020-09-30 16:24 ` CameronNemo
2020-09-30 21:49 ` ap4y

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200928025815.F6WxczLmhaDwpXrhA9oCceYqbZ1FwLbw0YPberSN9FY@z \
    --to=ap4y@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).