From patchwork Sun Jul 12 14:58:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1327536 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=EcZBHfgz; 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 4B4VKR4DSdz9sQt for ; Mon, 13 Jul 2020 00:58:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A6D9A25CE1; Sun, 12 Jul 2020 14:58:47 +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 1n8oxFjEb3QU; Sun, 12 Jul 2020 14:58:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 19DC92151E; Sun, 12 Jul 2020 14:58:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 48EE31BF346 for ; Sun, 12 Jul 2020 14:58:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 12E7E2151E for ; Sun, 12 Jul 2020 14:58:45 +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 Ud5gthIGKYXj for ; Sun, 12 Jul 2020 14:58:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by silver.osuosl.org (Postfix) with ESMTPS id 7B3F9203B0 for ; Sun, 12 Jul 2020 14:58:43 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id z13so10377210wrw.5 for ; Sun, 12 Jul 2020 07:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=z3rX2nSO/o8SBIf5BX5xKjAJlH8UMeev9xfJzRlkxjQ=; b=EcZBHfgzCMUNHyPToKzYAi7QKvfK/SidOhPig0mCNQ8ekL19RGT9FPCXToKkOBVtX3 4GDDEnsj7S0Tp7aEHlrHGanKV5BxYOZoFbBinhZbNDuBm3nYMA6GrdJxPVSLKz4ooFdX us1lVKgib3R7vHFlhBDo3vWOSMgw03SeeSD4u1D828YquqfjWKbCgCgXiqDH8Fv5YrJn XdiHO9pdzPybhylaCfaShOBgIz9Wpa8rjmk2xVlDRNVNBMGeRaKrJLo3TVqR5Y/fFj5R FG3/TwEj/cAP5FEumPSUbjn0OCjigV3336bUfRqlaB128mvoX6HYwSOxwxshQNqYXZgY AuJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=z3rX2nSO/o8SBIf5BX5xKjAJlH8UMeev9xfJzRlkxjQ=; b=UKvEN/lMJxWUByiR/t2evIJ1u3A7JFGnvVzbbdR6JzqPU2DRz1RQxsePfTtooDnYU5 miIMi0KRsCWvcDAH2i3y8e0hkg7hAvfn3UmC4ll1PCI50WZrmW8Ssg29rYMDX8/dEtlv FaQlzpOsBE1GHXHGj7Dri06GuO/CZG4Re4lX8Iw25lrQ4efTjI4q+e4jX3cymo2Ik3HM PYVwls2eKrMQ74hgQtlMtzTx6rLsbKDSKyf+TPOq0VRhP/glOX7K5ZvVgXE0zbqFJQz0 roNbt47duVXFA5a5a4Rc9Hm2Ke9m23v0CMpFLneyGaPU+jAE8+xJlh3VNoSca4wnVVh2 wvfA== X-Gm-Message-State: AOAM532m23XR0IvEqNKtTjpg77x22m7DFR+6pBDsJwsdin5rJAMYFB06 mjbLS3FvfSm+TEdpXkAv3zOW+k2Q X-Google-Smtp-Source: ABdhPJyoI+1iz2JEZ0TPwgnje0/HOyDtvoXzWqYa+ztyy6iHVRNPnJx9H/0Cp00uuuhjD2qSao6/vA== X-Received: by 2002:adf:ee0f:: with SMTP id y15mr74358317wrn.76.1594565921532; Sun, 12 Jul 2020 07:58:41 -0700 (PDT) Received: from t450s.fritz.box (ip5b426f84.dynamic.kabel-deutschland.de. [91.66.111.132]) by smtp.gmail.com with ESMTPSA id 69sm19395578wma.16.2020.07.12.07.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 07:58:40 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Sun, 12 Jul 2020 16:58:25 +0200 Message-Id: <20200712145825.9316-1-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/bluez-alsa: add patch for fixing build failure with gcc 10 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: Heiko Thiery Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" A fix is available upstream but does not apply on the used version by buildroot. Signed-off-by: Heiko Thiery --- .../0001-fix-build-issue-with-gcc-10.patch | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 package/bluez-alsa/0001-fix-build-issue-with-gcc-10.patch diff --git a/package/bluez-alsa/0001-fix-build-issue-with-gcc-10.patch b/package/bluez-alsa/0001-fix-build-issue-with-gcc-10.patch new file mode 100644 index 0000000000..346b51c29f --- /dev/null +++ b/package/bluez-alsa/0001-fix-build-issue-with-gcc-10.patch @@ -0,0 +1,118 @@ +From 72324e9415d2757a5f0f028865f841de70e1d0c4 Mon Sep 17 00:00:00 2001 +From: Heiko Thiery +Date: Sun, 12 Jul 2020 14:18:09 +0200 +Subject: [PATCH] fix build issue with gcc 10 + +Signed-off-by: Heiko Thiery + +This patch is created on top of tagged version v2.1.0. +An upstream fix commit [1] for this issue is already in upstream master but +does not apply on current used version in buildroot. + +[1] https://github.com/Arkq/bluez-alsa/commit/30a23dd7ce9b00c702fa48545f6b03038f9e17c6 +--- + src/bluealsa-dbus.c | 4 ++++ + src/bluealsa-iface.c | 2 ++ + src/bluealsa-iface.h | 4 ---- + src/bluealsa.c | 3 +++ + src/bluez-a2dp.h | 3 --- + src/bluez-iface.h | 3 --- + src/bluez.c | 3 +++ + 7 files changed, 12 insertions(+), 10 deletions(-) + +diff --git a/src/bluealsa-dbus.c b/src/bluealsa-dbus.c +index 5e748e3..4c9cd3d 100644 +--- a/src/bluealsa-dbus.c ++++ b/src/bluealsa-dbus.c +@@ -33,6 +33,10 @@ + #include "shared/defs.h" + #include "shared/log.h" + ++extern const GDBusInterfaceInfo bluealsa_iface_manager; ++extern const GDBusInterfaceInfo bluealsa_iface_pcm; ++extern const GDBusInterfaceInfo bluealsa_iface_rfcomm; ++ + static GVariant *ba_variant_new_device_path(const struct ba_device *d) { + return g_variant_new_object_path(d->bluez_dbus_path); + } +diff --git a/src/bluealsa-iface.c b/src/bluealsa-iface.c +index 71810c7..55b79c9 100644 +--- a/src/bluealsa-iface.c ++++ b/src/bluealsa-iface.c +@@ -10,6 +10,8 @@ + + #include "bluealsa-iface.h" + ++#define BLUEALAS_IFACE_C ++ + static const GDBusArgInfo arg_codec = { + -1, "codec", "q", NULL + }; +diff --git a/src/bluealsa-iface.h b/src/bluealsa-iface.h +index 262fb76..4f3e85b 100644 +--- a/src/bluealsa-iface.h ++++ b/src/bluealsa-iface.h +@@ -32,8 +32,4 @@ + #define BLUEALSA_RFCOMM_MODE_HSP_AG "HSP-AG" + #define BLUEALSA_RFCOMM_MODE_HSP_HS "HSP-HS" + +-const GDBusInterfaceInfo bluealsa_iface_manager; +-const GDBusInterfaceInfo bluealsa_iface_pcm; +-const GDBusInterfaceInfo bluealsa_iface_rfcomm; +- + #endif +diff --git a/src/bluealsa.c b/src/bluealsa.c +index 929f9ed..690c407 100644 +--- a/src/bluealsa.c ++++ b/src/bluealsa.c +@@ -20,6 +20,9 @@ + #include "bluez-a2dp.h" + #include "hfp.h" + ++/* NULL-terminated list of available A2DP codecs */ ++extern const struct bluez_a2dp_codec **bluez_a2dp_codecs; ++ + /* Initialize global configuration variable. */ + struct ba_config config = { + +diff --git a/src/bluez-a2dp.h b/src/bluez-a2dp.h +index 7c0e33b..127dbd9 100644 +--- a/src/bluez-a2dp.h ++++ b/src/bluez-a2dp.h +@@ -57,7 +57,4 @@ struct bluez_a2dp_codec { + size_t samplings_size; + }; + +-/* NULL-terminated list of available A2DP codecs */ +-const struct bluez_a2dp_codec **bluez_a2dp_codecs; +- + #endif +diff --git a/src/bluez-iface.h b/src/bluez-iface.h +index 34269c5..250267e 100644 +--- a/src/bluez-iface.h ++++ b/src/bluez-iface.h +@@ -27,7 +27,4 @@ + #define BLUEZ_TRANSPORT_STATE_PENDING "pending" + #define BLUEZ_TRANSPORT_STATE_ACTIVE "active" + +-const GDBusInterfaceInfo bluez_iface_endpoint; +-const GDBusInterfaceInfo bluez_iface_profile; +- + #endif +diff --git a/src/bluez.c b/src/bluez.c +index cfdbff8..190101e 100644 +--- a/src/bluez.c ++++ b/src/bluez.c +@@ -45,6 +45,9 @@ + # define G_DBUS_ERROR_UNKNOWN_OBJECT G_DBUS_ERROR_FAILED + #endif + ++extern const GDBusInterfaceInfo bluez_iface_endpoint; ++extern const GDBusInterfaceInfo bluez_iface_profile; ++ + /** + * Structure describing registered D-Bus object. */ + struct dbus_object_data { +-- +2.20.1 +