From patchwork Sun Dec 15 18:42:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Perez de Castro X-Patchwork-Id: 1209996 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="O76H2Xc6"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47bYFF4wpZz9sPK for ; Mon, 16 Dec 2019 05:43:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C3A7D204A4; Sun, 15 Dec 2019 18:43:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AnqcrZe3GBD9; Sun, 15 Dec 2019 18:43:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 62DB820481; Sun, 15 Dec 2019 18:43:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 5C0E51BF59D for ; Sun, 15 Dec 2019 18:43:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 599D284494 for ; Sun, 15 Dec 2019 18:43:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4-POoSPyg1nK for ; Sun, 15 Dec 2019 18:43:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fanzine.igalia.com (fanzine.igalia.com [178.60.130.6]) by fraxinus.osuosl.org (Postfix) with ESMTPS id C34C184491 for ; Sun, 15 Dec 2019 18:43:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From; bh=OthY4quEc1Xo5fuGvoTGLVNvQmwdxg6Qd/vfCMl20xE=; b=O76H2Xc6yYrCuBl2fEqdvZml+RwbGv0JzWUW4jyDP59XziKnxALDIClTNuLVJvGIpntqv7aky0OX2nEVOSW2KgRfruU7cFgnpAZ0cu2cDw5mfnz6867itAkJ0odUPdnP7KB/lHmJ+HmKcn22mj5do25cYy30g5HlRLdthPnrvFfXdP/+B2fvWMc00JJepKdzOiPC/gmMPNS48lVwtKSeooo+rpif4CTa+nC+Cy08llB+FD0u84Joj5R2ekMWkvfgXoCNI+/KAB+WXecwtCH6E+k2FLM5nyVhgxOr9Z2PTm8JVD91F0YBsdej91HZu5xwiIHz/p0itrNw1VBAzQsKKQ==; Received: from 82-181-217-9.bb.dnainternet.fi ([82.181.217.9] helo=kodama) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1igYr5-0001ll-M2; Sun, 15 Dec 2019 19:42:59 +0100 Received: from localhost (kodama [local]) by kodama (OpenSMTPD) with ESMTPA id f52353e3; Sun, 15 Dec 2019 18:42:46 +0000 (UTC) From: Adrian Perez de Castro To: buildroot@buildroot.org Date: Sun, 15 Dec 2019 20:42:46 +0200 Message-Id: <20191215184246.3600021-1-aperez@igalia.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/xdg-dbus-proxy: add patch to support building with musl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adrian Perez de Castro Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Import "0001-Fix-musl-compilation-by-adding-TEMP_FAILURE_RETRY.patch" from the upstream repository, which allows building against the musl libc (or any other which does not define the TEMP_FAILURE_RETRY macro). The patch has been accepted upstream, but no releases have been made yet which include the fix. Signed-off-by: Adrian Perez de Castro --- ...ilation-by-adding-TEMP_FAILURE_RETRY.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 package/xdg-dbus-proxy/0001-Fix-musl-compilation-by-adding-TEMP_FAILURE_RETRY.patch diff --git a/package/xdg-dbus-proxy/0001-Fix-musl-compilation-by-adding-TEMP_FAILURE_RETRY.patch b/package/xdg-dbus-proxy/0001-Fix-musl-compilation-by-adding-TEMP_FAILURE_RETRY.patch new file mode 100644 index 0000000000..e531f58923 --- /dev/null +++ b/package/xdg-dbus-proxy/0001-Fix-musl-compilation-by-adding-TEMP_FAILURE_RETRY.patch @@ -0,0 +1,36 @@ +From 645c45f0334bb1d6e31b5927cece5e446f129cbb Mon Sep 17 00:00:00 2001 +From: Danilo Spinella +Date: Sat, 7 Dec 2019 00:05:21 +0100 +Subject: [PATCH] Fix musl compilation by adding TEMP_FAILURE_RETRY + +Fetch from: https://github.com/flatpak/xdg-dbus-proxy/pull/13 +Upstream-Status: Accepted +Signed-off-by: Adrian Perez de Castro + +--- + dbus-proxy.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/dbus-proxy.c b/dbus-proxy.c +index 163df21..4b07931 100644 +--- a/dbus-proxy.c ++++ b/dbus-proxy.c +@@ -30,6 +30,15 @@ + #include + + #include "flatpak-proxy.h" ++// Taken from glibc unistd.h ++#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; +-- +2.24.1 +