From patchwork Wed Jun 24 05:46:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwenhael Goavec-Merou X-Patchwork-Id: 1315857 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.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=trabucayre.com Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49sByS5L34z9sSJ for ; Wed, 24 Jun 2020 15:48:16 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 656D18770B; Wed, 24 Jun 2020 05:48:14 +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 oM_798tprUat; Wed, 24 Jun 2020 05:48:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 93D0A876A2; Wed, 24 Jun 2020 05:48:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A79371BF863 for ; Wed, 24 Jun 2020 05:48:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 98E4687D56 for ; Wed, 24 Jun 2020 05:48:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 66LeI9TN5MLn for ; Wed, 24 Jun 2020 05:48:10 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by whitealder.osuosl.org (Postfix) with ESMTPS id E28D787D4B for ; Wed, 24 Jun 2020 05:48:09 +0000 (UTC) Received: from x230.trabucayre.com (unknown [IPv6:2a01:e34:efc8:1080:3e97:eff:fe89:644f]) by smtp2-g21.free.fr (Postfix) with ESMTP id 106DC2003DE; Wed, 24 Jun 2020 07:48:05 +0200 (CEST) From: Gwenhael Goavec-Merou To: buildroot@buildroot.org Date: Wed, 24 Jun 2020 07:46:09 +0200 Message-Id: <20200624054609.25448-1-gwenj@trabucayre.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/gqrx: fix build with boost 1.73.0 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: Gwenhael Goavec-Merou Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Gwenhael Goavec-Merou With boost >= 1.73, placeholders must be qualified by using the full namespace. Without the namespace, the build fails with: gqrx-2.12.1/src/dsp/rds/parser_impl.cc: In constructor 'gr::rds::parser_impl::parser_impl(bool, bool)': gqrx-2.12.1/src/dsp/rds/parser_impl.cc:42:72: error: '_1' was not declared in this scope set_msg_handler(pmt::mp("in"), boost::bind(&parser_impl::parse, this, _1)); backport Pull Request https://github.com/csete/gqrx/pull/811 fix: - http://autobuild.buildroot.net/results/73c490ba361dd6040720442bcbf332f1c3cc4882/ Signed-off-by: Gwenhael Goavec-Merou --- ...aceholders_with_their_full_namespace.patch | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 package/gqrx/0001-boost_qualify_placeholders_with_their_full_namespace.patch diff --git a/package/gqrx/0001-boost_qualify_placeholders_with_their_full_namespace.patch b/package/gqrx/0001-boost_qualify_placeholders_with_their_full_namespace.patch new file mode 100644 index 0000000000..919dc2da01 --- /dev/null +++ b/package/gqrx/0001-boost_qualify_placeholders_with_their_full_namespace.patch @@ -0,0 +1,46 @@ +From 0510f6ffee646171bb105e0e8d016ac35e606cd4 Mon Sep 17 00:00:00 2001 +From: Gwenhael Goavec-Merou +Date: Mon, 22 Jun 2020 15:45:20 +0200 +Subject: [PATCH] qualify placeholders with their full namespace + +With boost >= 1.73, placeholders must be qualified by using the full namespace. + +Without the namespace, the build fails with: +gqrx-2.12.1/src/dsp/rds/parser_impl.cc: In constructor 'gr::rds::parser_impl::parser_impl(bool, bool)': +gqrx-2.12.1/src/dsp/rds/parser_impl.cc:42:72: error: '_1' was not declared in this scope +set_msg_handler(pmt::mp("in"), boost::bind(&parser_impl::parse, this, _1)); + +[Upstream status: https://github.com/csete/gqrx/pull/811] + +Signed-off-by: Gwenhael Goavec-Merou +--- + src/dsp/rds/parser_impl.cc | 2 +- + src/dsp/rx_rds.cpp | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/dsp/rds/parser_impl.cc b/src/dsp/rds/parser_impl.cc +index b10fdb01..07dae038 100644 +--- a/src/dsp/rds/parser_impl.cc ++++ b/src/dsp/rds/parser_impl.cc +@@ -40,7 +40,7 @@ parser_impl::parser_impl(bool log, bool debug, unsigned char pty_locale) + pty_locale(pty_locale) + { + message_port_register_in(pmt::mp("in")); +- set_msg_handler(pmt::mp("in"), boost::bind(&parser_impl::parse, this, _1)); ++ set_msg_handler(pmt::mp("in"), boost::bind(&parser_impl::parse, this, boost::placeholders::_1)); + message_port_register_out(pmt::mp("out")); + reset(); + } +diff --git a/src/dsp/rx_rds.cpp b/src/dsp/rx_rds.cpp +index c4a541f3..c09835b0 100644 +--- a/src/dsp/rx_rds.cpp ++++ b/src/dsp/rx_rds.cpp +@@ -97,7 +97,7 @@ rx_rds_store::rx_rds_store() : gr::block ("rx_rds_store", + gr::io_signature::make (0, 0, 0)) + { + message_port_register_in(pmt::mp("store")); +- set_msg_handler(pmt::mp("store"), boost::bind(&rx_rds_store::store, this, _1)); ++ set_msg_handler(pmt::mp("store"), boost::bind(&rx_rds_store::store, this, boost::placeholders::_1)); + d_messages.set_capacity(100); + } +