aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-12-23 14:32:35 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-24 12:29:12 +0100
commitcea2f818f130adc136b5e6365302ad6061d46862 (patch)
tree24ec7ac363241a8a8586ce189a1fc6a2b1b85536
parentfaa178737886abe4ce4975ee84955e9bc44e7e5e (diff)
downloadaports-cea2f818f130adc136b5e6365302ad6061d46862.tar.gz
aports-cea2f818f130adc136b5e6365302ad6061d46862.tar.bz2
aports-cea2f818f130adc136b5e6365302ad6061d46862.tar.xz
community/xdg-dbus-proxy: new aport, required for webkit2gtk
https://github.com/flatpak/xdg-dbus-proxy/ Filtering proxy for D-Bus connections
-rw-r--r--community/xdg-dbus-proxy/APKBUILD35
-rw-r--r--community/xdg-dbus-proxy/musl-fix.patch22
2 files changed, 57 insertions, 0 deletions
diff --git a/community/xdg-dbus-proxy/APKBUILD b/community/xdg-dbus-proxy/APKBUILD
new file mode 100644
index 0000000000..103beff7a5
--- /dev/null
+++ b/community/xdg-dbus-proxy/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xdg-dbus-proxy
+pkgver=0.1.2
+pkgrel=0
+pkgdesc="Filtering proxy for D-Bus connections"
+url="https://github.com/flatpak/xdg-dbus-proxy/"
+arch="all"
+license="LGPL-2.1-or-later"
+depends="dbus"
+makedepends="glib-dev docbook-xsl libxslt"
+subpackages="$pkgname-doc"
+source="https://github.com/flatpak/xdg-dbus-proxy/releases/download/$pkgver/xdg-dbus-proxy-$pkgver.tar.xz
+ musl-fix.patch" # https://github.com/flatpak/flatpak/issues/618
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="c76460e365778efeb1ef7cb9e479491afd1dc270680d108e7ece82b27be30bb4f958d4d218ac7d4497dcc749da25437f62119003866dcdeafcb6cea843dcbe1e xdg-dbus-proxy-0.1.2.tar.xz
+aa3d8494e7d59079f14a8352b2062e8b67409ce452d1eeadebbbcf444a876ebbafd722146fbaf6c9258d19991ed50988655a8314993b1fe83f5c7b63e0847878 musl-fix.patch"
diff --git a/community/xdg-dbus-proxy/musl-fix.patch b/community/xdg-dbus-proxy/musl-fix.patch
new file mode 100644
index 0000000000..3e18d1b6d7
--- /dev/null
+++ b/community/xdg-dbus-proxy/musl-fix.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;