diff options
-rw-r--r-- | community/xdg-dbus-proxy/APKBUILD | 36 | ||||
-rw-r--r-- | community/xdg-dbus-proxy/musl-fix.patch | 22 |
2 files changed, 58 insertions, 0 deletions
diff --git a/community/xdg-dbus-proxy/APKBUILD b/community/xdg-dbus-proxy/APKBUILD new file mode 100644 index 0000000000..a9d7fa0272 --- /dev/null +++ b/community/xdg-dbus-proxy/APKBUILD @@ -0,0 +1,36 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname="xdg-dbus-proxy" +pkgver="0.1.1" +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 +builddir="$srcdir/xdg-dbus-proxy-$pkgver" + +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="30917de338c596f9728eece0858675f82e7d410cea862840e6818209beeaf2f42d85d59e9019d667fcb30db0987e439b36ecd81168ef4c3f998c560e12ddd348 xdg-dbus-proxy-0.1.1.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; |