public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/musl:master commit in: sys-apps/bubblewrap/files/, sys-apps/bubblewrap/
Date: Sat, 11 May 2019 14:08:12 +0000 (UTC)	[thread overview]
Message-ID: <1557583683.0a26f54849ade73dd5f850ae32a1ec56ed099f33.blueness@gentoo> (raw)

commit:     0a26f54849ade73dd5f850ae32a1ec56ed099f33
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat May 11 14:08:03 2019 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat May 11 14:08:03 2019 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=0a26f548

sys-apps/bubblewrap: misses GNU macro TEMP_FAILURE_RETRY

Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>

 sys-apps/bubblewrap/Manifest                       |  1 +
 sys-apps/bubblewrap/bubblewrap-0.3.1-r1.ebuild     | 47 ++++++++++++++++++++++
 ...bblewrap-0.3.1-missing-TEMP_FAILURE_RETRY.patch | 21 ++++++++++
 sys-apps/bubblewrap/metadata.xml                   | 11 +++++
 4 files changed, 80 insertions(+)

diff --git a/sys-apps/bubblewrap/Manifest b/sys-apps/bubblewrap/Manifest
new file mode 100644
index 0000000..5ae1117
--- /dev/null
+++ b/sys-apps/bubblewrap/Manifest
@@ -0,0 +1 @@
+DIST bubblewrap-0.3.1.tar.xz 209924 BLAKE2B bacc4080106cd9876bf0e1ad866a7397d7d232e61a720b52b5a6b9b0d860e625511ed15ac630aa71003fb9fa145ffa9d08ae2e6ba6d1411fd75e7d9568312717 SHA512 74e36caa56540a956158445f5f38c7ac5f7ff3c733ecaf85893de4607900e1fe4050db86a4435cbe18d722e90c5b39c466c555ea8ea8d4944da6207ef1011d67

diff --git a/sys-apps/bubblewrap/bubblewrap-0.3.1-r1.ebuild b/sys-apps/bubblewrap/bubblewrap-0.3.1-r1.ebuild
new file mode 100644
index 0000000..27b330b
--- /dev/null
+++ b/sys-apps/bubblewrap/bubblewrap-0.3.1-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit bash-completion-r1 linux-info
+
+DESCRIPTION="Unprivileged sandboxing tool, namespaces-powered chroot-like solution"
+HOMEPAGE="https://github.com/projectatomic/bubblewrap"
+SRC_URI="https://github.com/projectatomic/${PN}/releases/download/v${PV}/${P}.tar.xz"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="selinux +suid"
+
+RDEPEND="
+	sys-libs/libseccomp
+	sys-libs/libcap
+	selinux? ( >=sys-libs/libselinux-2.1.9 )
+"
+DEPEND="${RDEPEND}
+	app-text/docbook-xml-dtd:4.3
+	app-text/docbook-xsl-stylesheets
+	dev-libs/libxslt
+	virtual/pkgconfig
+"
+
+# tests require root priviledge
+RESTRICT="test"
+
+PATCHES=( "${FILESDIR}"/${P}-missing-TEMP_FAILURE_RETRY.patch )
+
+pkg_setup() {
+	if [[ ${MERGE_TYPE} != buildonly ]]; then
+		CONFIG_CHECK="~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS"
+		linux-info_pkg_setup
+	fi
+}
+
+src_configure() {
+	econf \
+		$(use_enable selinux) \
+		"--enable-man" \
+		"--with-bash-completion-dir=$(get_bashcompdir)" \
+		"--with-priv-mode=$(usex suid setuid none)"
+}

diff --git a/sys-apps/bubblewrap/files/bubblewrap-0.3.1-missing-TEMP_FAILURE_RETRY.patch b/sys-apps/bubblewrap/files/bubblewrap-0.3.1-missing-TEMP_FAILURE_RETRY.patch
new file mode 100644
index 0000000..a5319bb
--- /dev/null
+++ b/sys-apps/bubblewrap/files/bubblewrap-0.3.1-missing-TEMP_FAILURE_RETRY.patch
@@ -0,0 +1,21 @@
+diff -Naur bubblewrap-0.3.1.orig/bubblewrap.c bubblewrap-0.3.1/bubblewrap.c
+--- bubblewrap-0.3.1.orig/bubblewrap.c	2018-09-26 12:55:17.000000000 -0000
++++ bubblewrap-0.3.1/bubblewrap.c	2019-05-11 14:02:55.475083321 -0000
+@@ -37,6 +37,7 @@
+ #include "utils.h"
+ #include "network.h"
+ #include "bind-mount.h"
++#include "missing.h"
+ 
+ #ifndef CLONE_NEWCGROUP
+ #define CLONE_NEWCGROUP 0x02000000 /* New cgroup namespace */
+diff -Naur bubblewrap-0.3.1.orig/missing.h bubblewrap-0.3.1/missing.h
+--- bubblewrap-0.3.1.orig/missing.h	1970-01-01 00:00:00.000000000 -0000
++++ bubblewrap-0.3.1/missing.h	2019-05-11 14:00:21.001061569 -0000
+@@ -0,0 +1,6 @@
++# define TEMP_FAILURE_RETRY(expression) \
++  (__extension__                                                              \
++    ({ long int __result;                                                     \
++       do __result = (long int) (expression);                                 \
++       while (__result == -1L && errno == EINTR);                             \
++       __result; }))

diff --git a/sys-apps/bubblewrap/metadata.xml b/sys-apps/bubblewrap/metadata.xml
new file mode 100644
index 0000000..29a569e
--- /dev/null
+++ b/sys-apps/bubblewrap/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>gnome@gentoo.org</email>
+		<name>Gentoo GNOME Desktop</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">projectatomic/bubblewrap</remote-id>
+	</upstream>
+</pkgmetadata>


             reply	other threads:[~2019-05-11 14:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-11 14:08 Anthony G. Basile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-07-19 13:08 [gentoo-commits] proj/musl:master commit in: sys-apps/bubblewrap/files/, sys-apps/bubblewrap/ Anthony G. Basile

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=1557583683.0a26f54849ade73dd5f850ae32a1ec56ed099f33.blueness@gentoo \
    --to=blueness@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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