aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcallmetango <callmetango@users.noreply.github.com>2020-07-04 11:31:34 +0200
committerAnthony G. Basile <blueness@gentoo.org>2020-07-09 13:04:16 -0400
commit7b3334e4407979463f645e0e390a409d0da8ed4d (patch)
tree069219662a852e7da5565fe25710532391b5af09 /sys-apps
parentsys-apps/iucode_tool: fix patch application (diff)
downloadmusl-7b3334e4407979463f645e0e390a409d0da8ed4d.tar.gz
musl-7b3334e4407979463f645e0e390a409d0da8ed4d.tar.bz2
musl-7b3334e4407979463f645e0e390a409d0da8ed4d.zip
sys-apps/xdg-dbus-proxy: make it compile on musl
* add missing TEMP_FAILURE_RETRY macro Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/xdg-dbus-proxy/Manifest1
-rw-r--r--sys-apps/xdg-dbus-proxy/files/xdg-dbus-proxy-0.1.2-missing-TEMP_FAILURE_RETRY.patch22
-rw-r--r--sys-apps/xdg-dbus-proxy/metadata.xml8
-rw-r--r--sys-apps/xdg-dbus-proxy/xdg-dbus-proxy-0.1.2.ebuild30
4 files changed, 61 insertions, 0 deletions
diff --git a/sys-apps/xdg-dbus-proxy/Manifest b/sys-apps/xdg-dbus-proxy/Manifest
new file mode 100644
index 0000000..24a0753
--- /dev/null
+++ b/sys-apps/xdg-dbus-proxy/Manifest
@@ -0,0 +1 @@
+DIST xdg-dbus-proxy-0.1.2.tar.xz 119264 BLAKE2B 9f9fb561dd434e146636dd2e78275065c3f249b0486b1cb09ac0df2a2a9bd534f84192bb6f0f4b0627d47b9d490e3f5c10a6a4dca67d36a2465e4a971b28c64e SHA512 c76460e365778efeb1ef7cb9e479491afd1dc270680d108e7ece82b27be30bb4f958d4d218ac7d4497dcc749da25437f62119003866dcdeafcb6cea843dcbe1e
diff --git a/sys-apps/xdg-dbus-proxy/files/xdg-dbus-proxy-0.1.2-missing-TEMP_FAILURE_RETRY.patch b/sys-apps/xdg-dbus-proxy/files/xdg-dbus-proxy-0.1.2-missing-TEMP_FAILURE_RETRY.patch
new file mode 100644
index 0000000..3e18d1b
--- /dev/null
+++ b/sys-apps/xdg-dbus-proxy/files/xdg-dbus-proxy-0.1.2-missing-TEMP_FAILURE_RETRY.patch
@@ -0,0 +1,22 @@
+https://github.com/flatpak/flatpak/issues/618
+diff --git a/dbus-proxy.c b/dbus-proxy.c
+index 163df21..99090e1 100644
+--- a/dbus-proxy.c
++++ b/dbus-proxy.c
+@@ -31,6 +31,16 @@
+
+ #include "flatpak-proxy.h"
+
++/* taken from glibc unistd.h and fixes musl */
++#ifndef TEMP_FAILURE_RETRY
++#define TEMP_FAILURE_RETRY(expression) \
++ (__extension__ \
++ ({ long int __result; \
++ do __result = (long int) (expression); \
++ while (__result == -1L && errno == EINTR); \
++ __result; }))
++#endif
++
+ static const char *argv0;
+ static GList *proxies;
+ static int sync_fd = -1;
diff --git a/sys-apps/xdg-dbus-proxy/metadata.xml b/sys-apps/xdg-dbus-proxy/metadata.xml
new file mode 100644
index 0000000..996e7ca
--- /dev/null
+++ b/sys-apps/xdg-dbus-proxy/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/sys-apps/xdg-dbus-proxy/xdg-dbus-proxy-0.1.2.ebuild b/sys-apps/xdg-dbus-proxy/xdg-dbus-proxy-0.1.2.ebuild
new file mode 100644
index 0000000..6239ed5
--- /dev/null
+++ b/sys-apps/xdg-dbus-proxy/xdg-dbus-proxy-0.1.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Filtering proxy for D-Bus connections"
+HOMEPAGE="https://github.com/flatpak/xdg-dbus-proxy"
+SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="amd64 ~arm arm64 ~ppc64 x86"
+IUSE=""
+
+RDEPEND="
+ >=dev-libs/glib-2.40:2
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ virtual/pkgconfig
+"
+PATCHES=(
+ "${FILESDIR}/${P}-missing-TEMP_FAILURE_RETRY.patch"
+)
+
+src_configure() {
+ econf --enable-man
+}