commit: 7b3334e4407979463f645e0e390a409d0da8ed4d Author: callmetango <callmetango <AT> users <DOT> noreply <DOT> github <DOT> com> AuthorDate: Sat Jul 4 09:31:34 2020 +0000 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> CommitDate: Thu Jul 9 17:04:16 2020 +0000 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=7b3334e4
sys-apps/xdg-dbus-proxy: make it compile on musl * add missing TEMP_FAILURE_RETRY macro Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> sys-apps/xdg-dbus-proxy/Manifest | 1 + ...us-proxy-0.1.2-missing-TEMP_FAILURE_RETRY.patch | 22 ++++++++++++++++ sys-apps/xdg-dbus-proxy/metadata.xml | 8 ++++++ .../xdg-dbus-proxy/xdg-dbus-proxy-0.1.2.ebuild | 30 ++++++++++++++++++++++ 4 files changed, 61 insertions(+) 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>gn...@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 +}