From patchwork Tue Oct 27 17:40:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nosthoff X-Patchwork-Id: 1388823 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=heine.tech header.i=@heine.tech header.a=rsa-sha256 header.s=dkim header.b=hrHK0kIV; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CLJsm01NVz9sV7 for ; Wed, 28 Oct 2020 04:41:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4CD8D864A4; Tue, 27 Oct 2020 17:41:28 +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 v+aLgGF5UlIF; Tue, 27 Oct 2020 17:41:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A9C6E864D4; Tue, 27 Oct 2020 17:41:27 +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 73B371BF283 for ; Tue, 27 Oct 2020 17:41:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6FC01864D4 for ; Tue, 27 Oct 2020 17:41:24 +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 6hi7CdN4cVJH for ; Tue, 27 Oct 2020 17:41:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.heine.tech (mail.heine.tech [195.201.24.99]) by whitealder.osuosl.org (Postfix) with ESMTPS id DB440864A4 for ; Tue, 27 Oct 2020 17:41:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 1DE771822DB; Tue, 27 Oct 2020 18:41:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heine.tech; s=dkim; t=1603820481; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=ir3WCPNnfhmQ9hGeYjS9GSS0rsTLt388ML4ffO1Y44A=; b=hrHK0kIVSf0nTR14hc+FQHZUKS1j9EApAByI6dAUAO9JI+9mRnmZi4ykRlItUuRRNPT+xO S94GiXeRQkxZR8XDu6VSeKNkeU+tFziOYiFAhKXlhQ4p1UBOMcQmgLUkZPux/nhYvBfdPI fg7hPA4NGIE/HVSu+xWyTQlTx0vVOsc= To: buildroot@buildroot.org Date: Tue, 27 Oct 2020 18:40:44 +0100 Message-Id: <20201027174046.17157-2-buildroot@heine.tech> In-Reply-To: <20201027174046.17157-1-buildroot@heine.tech> References: <20201027174046.17157-1-buildroot@heine.tech> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 Subject: [Buildroot] [PATCH 1/3] package/libabseil-cpp: enforce C++11 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: , From: Michael Nosthoff via buildroot Reply-To: buildroot@heine.tech Cc: Michael Nosthoff Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Michael Nosthoff For gcc < 6 the c++ default is 98. Abseil needs at least 11 but doesn't enforce this anymore. So we need to do this. Signed-off-by: Michael Nosthoff --- package/libabseil-cpp/libabseil-cpp.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/libabseil-cpp/libabseil-cpp.mk b/package/libabseil-cpp/libabseil-cpp.mk index dfcf892f65..8490b6d948 100644 --- a/package/libabseil-cpp/libabseil-cpp.mk +++ b/package/libabseil-cpp/libabseil-cpp.mk @@ -20,5 +20,15 @@ HOST_LIBABSEIL_CPP_CONF_OPTS = \ -DABSL_USE_GOOGLETEST_HEAD=OFF \ -DABSL_RUN_TESTS=OFF +# abseil needs c++ >= 11 but doesn't set this anymore, +# before gcc6 the default is 98. +ifeq ($(BR2_GCC_AT_LEAST_6_0),) +LIBABSEIL_CPP_CONF_OPTS += -DCMAKE_CXX_STANDARD=11 +endif + +ifeq ($(BR2_HOST_GCC_AT_LEAST_6_0),) +HOST_LIBABSEIL_CPP_CONF_OPTS += -DCMAKE_CXX_STANDARD=11 +endif + $(eval $(cmake-package)) $(eval $(host-cmake-package)) From patchwork Tue Oct 27 17:40:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nosthoff X-Patchwork-Id: 1388826 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=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=heine.tech header.i=@heine.tech header.a=rsa-sha256 header.s=dkim header.b=I/aMH0M7; 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 4CLJst5mvgz9sV7 for ; Wed, 28 Oct 2020 04:41:38 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id F0F56204F7; Tue, 27 Oct 2020 17:41:34 +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 IF4WD0-zsCbz; Tue, 27 Oct 2020 17:41:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 2036120533; Tue, 27 Oct 2020 17:41:30 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 0DA511BF283 for ; Tue, 27 Oct 2020 17:41:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0AC8E870D4 for ; Tue, 27 Oct 2020 17:41:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v-kw7ZaUQ647 for ; Tue, 27 Oct 2020 17:41:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.heine.tech (mail.heine.tech [195.201.24.99]) by hemlock.osuosl.org (Postfix) with ESMTPS id 00DD0870CF for ; Tue, 27 Oct 2020 17:41:25 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id D8E831822DC; Tue, 27 Oct 2020 18:41:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heine.tech; s=dkim; t=1603820483; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=KXlhLPXt/sKDHdW8ti2bIg5DSPQQgpvj5Cp0Us+No9s=; b=I/aMH0M7Gk/vQBEIMRM77PVq+3ajFIAx3xJr0U39mUHjspQ1ZQsLRK+POGektabrUmWJjJ 0SQyWHrUks7jeHm9Q59lJBn2CHnC/MK4EWuk+aI66tyw155J43Ng87SFvJreM35zO+C5K9 J3rp2e5SgRqgGcPK8vzvVm0yCZ4BBkg= To: buildroot@buildroot.org Date: Tue, 27 Oct 2020 18:40:45 +0100 Message-Id: <20201027174046.17157-3-buildroot@heine.tech> In-Reply-To: <20201027174046.17157-1-buildroot@heine.tech> References: <20201027174046.17157-1-buildroot@heine.tech> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 Subject: [Buildroot] [PATCH 2/3] package/libabseil-cpp: depend on gcc >= 4.9 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: , From: Michael Nosthoff via buildroot Reply-To: buildroot@heine.tech Cc: Michael Nosthoff Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Michael Nosthoff abseil depends on gcc >= 4.9 https://abseil.io/docs/cpp/platforms/platforms#linux Signed-off-by: Michael Nosthoff --- package/libabseil-cpp/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/libabseil-cpp/Config.in b/package/libabseil-cpp/Config.in index 8018e7b264..222e3a092a 100644 --- a/package/libabseil-cpp/Config.in +++ b/package/libabseil-cpp/Config.in @@ -14,6 +14,7 @@ config BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS config BR2_PACKAGE_LIBABSEIL_CPP bool "libabseil-cpp" depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_STATIC_LIBS # uses dlfcn.h depends on BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS @@ -26,7 +27,7 @@ config BR2_PACKAGE_LIBABSEIL_CPP https://github.com/abseil/abseil-cpp -comment "libabseil-cpp needs a toolchain w/ C++, threads, dynamic library" +comment "libabseil-cpp needs a toolchain w/ gcc >= 4.9, C++, threads, dynamic library" depends on BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ - BR2_STATIC_LIBS + BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 From patchwork Tue Oct 27 17:40:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nosthoff X-Patchwork-Id: 1388825 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=heine.tech header.i=@heine.tech header.a=rsa-sha256 header.s=dkim header.b=rpBQhBG8; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CLJsr21TZz9sSs for ; Wed, 28 Oct 2020 04:41:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9C7FF86940; Tue, 27 Oct 2020 17:41:34 +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 lCiRE-BY4vKj; Tue, 27 Oct 2020 17:41:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BF1FE8690D; Tue, 27 Oct 2020 17:41:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 65DBB1BF283 for ; Tue, 27 Oct 2020 17:41:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 62F57870D4 for ; Tue, 27 Oct 2020 17:41:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id robP5DkxzxL6 for ; Tue, 27 Oct 2020 17:41:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.heine.tech (mail.heine.tech [195.201.24.99]) by hemlock.osuosl.org (Postfix) with ESMTPS id D7C59870CF for ; Tue, 27 Oct 2020 17:41:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0F3051814B9; Tue, 27 Oct 2020 18:41:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heine.tech; s=dkim; t=1603820486; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=L0sKsVolHIm1fc10TqyyGlHL/d/non8Yk3BbNc9W/k4=; b=rpBQhBG8NXMCzMsrhMZl4gsrt+zMOn1rQ8lym8d7bxacSREM4ZzpV8IM3TrLBr62c9NklS wLKNnEyvs8EsXkVnr/inBasTv0rzwdqPHEgmLlTaNHZZJqioWw8/Ot9NmAxL1MSUFT64Ny I45OwIQLYT/lQRLpohr6RE0QW+OyrwI= To: buildroot@buildroot.org Date: Tue, 27 Oct 2020 18:40:46 +0100 Message-Id: <20201027174046.17157-4-buildroot@heine.tech> In-Reply-To: <20201027174046.17157-1-buildroot@heine.tech> References: <20201027174046.17157-1-buildroot@heine.tech> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 Subject: [Buildroot] [PATCH 3/3] package/grpc: raise (host) gcc dependency to 4.9 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: , From: Michael Nosthoff via buildroot Reply-To: buildroot@heine.tech Cc: Michael Nosthoff , Robert Rose Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Michael Nosthoff (host-)libabseil-cpp depends on gcc >= 4.9 Signed-off-by: Michael Nosthoff --- package/grpc/Config.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package/grpc/Config.in b/package/grpc/Config.in index 0270b38c35..6151f4b3d1 100644 --- a/package/grpc/Config.in +++ b/package/grpc/Config.in @@ -3,7 +3,8 @@ config BR2_PACKAGE_GRPC depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS # protobuf, re2 depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # protobuf - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # protobuf, re2 + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # protobuf, re2, libabseil-cpp + depends on BR2_HOST_GCC_AT_LEAST_4_9 # host-libabseil-cpp depends on !BR2_STATIC_LIBS # protobuf, libabseil-cpp depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_ATOMIC depends on BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS @@ -19,9 +20,10 @@ config BR2_PACKAGE_GRPC http://github.com/grpc/grpc -comment "grpc needs a toolchain w/ C++, threads, dynamic library, gcc >= 4.8" +comment "grpc needs a toolchain w/ C++, threads, dynamic library, gcc >= 4.9" depends on BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_ATOMIC depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \ - || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 + || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 \ + || !BR2_HOST_GCC_AT_LEAST_4_9 depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS