logo

overlay

My own overlay for experimentations, use with caution, no support is provided
commit: 5818d414f9bae88bb4783e76cc769d1d78542dfa
parent: 2ee23074ccf12892ea6ea2c81aeeefb0c2f975c4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 19 Jan 2020 17:44:42 +0000

sys-apps/xdg-dbus-proxy: Apply musl fix from Alpine

Diffstat:

Asys-apps/xdg-dbus-proxy/files/xdg-dbus-proxy-0.1.2_temp_failure_retry.patch22++++++++++++++++++++++
Msys-apps/xdg-dbus-proxy/xdg-dbus-proxy-0.1.2.ebuild2++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/sys-apps/xdg-dbus-proxy/files/xdg-dbus-proxy-0.1.2_temp_failure_retry.patch b/sys-apps/xdg-dbus-proxy/files/xdg-dbus-proxy-0.1.2_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/xdg-dbus-proxy-0.1.2.ebuild b/sys-apps/xdg-dbus-proxy/xdg-dbus-proxy-0.1.2.ebuild @@ -16,6 +16,8 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}/xdg-dbus-proxy-0.1.2_temp_failure_retry.patch" ) + src_configure() { econf --enable-man }