From patchwork Sat Oct 26 14:02:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asaf Kahlon X-Patchwork-Id: 1184726 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.133; helo=hemlock.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.b="T2DTAAg0"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 470jN82BF0z9s7T for ; Sun, 27 Oct 2019 01:02:16 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 95C4486E6E; Sat, 26 Oct 2019 14:02:14 +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 iaPhj9rhn67m; Sat, 26 Oct 2019 14:02:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C41528738A; Sat, 26 Oct 2019 14:02:13 +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 662E11BF5F8 for ; Sat, 26 Oct 2019 14:02:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6360A84F9F for ; Sat, 26 Oct 2019 14:02:12 +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 wDG31CXLbFlo for ; Sat, 26 Oct 2019 14:02:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 18FBC84F76 for ; Sat, 26 Oct 2019 14:02:11 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id c2so5334538wrr.10 for ; Sat, 26 Oct 2019 07:02:11 -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=sc/l1lMd9qJmo+PUnOVdtuJJQsHXnBgv5PDZeWXAV0o=; b=T2DTAAg0q5JNWmviwyRKqXAp+WIKB3qmqIUVG3s0RsZtnAuxpgAjbT7dKD1Fhg+QEI /EPnUsf9ilJDiMdQm1vca/Arxqsr6M8CtcvcHzdCXKmM1dw8Gc6U0LuhstMrS1MZJmUQ 1V4TQ1+XFURUED1WMK+SHEwgWTnfz3Cxs2TCAlXhVPq6zniFkiY68FYkNAKPjIPmR98T HiogpiaT7La7TxuO988tIgK4NKVlgfAkE44hjUqNg2a4Vhnh6lsYAR61qBfR7OBnf/1p Yr0M2Ywdjgfb1CPvNPDL9R0XehDXhmXz33+zMeK+R4b/rI0ZU+RRjL0saYBTyMe8frUm jOXw== 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=sc/l1lMd9qJmo+PUnOVdtuJJQsHXnBgv5PDZeWXAV0o=; b=WRZBmYGu0Ze5/JA/oxKVjX0qi64Rzl+l2VKP8is8SLJF0YCt7Kg2Inadmys1Eymar1 h06tZ0x9Qk8apJMJMSr0QyJc8a3YGBq59djV9UDWGb14CitebykO+qTTOqtf5zKsQZIb xBYvNmR+SHYNIvnuLNwkoy0wdiGx0AbA6NSbPBFLwSP0mH8ucG7wnWBxIuh5n2dII3aY S2haHk3QRx8FA8YzgElP9QuAi7ExrWTmfRdVKm8xjlFNT18N896zMgmQBbaSPftbJwR6 L/wIyHHGX3aeWAWYXI8d1AwBp1v/tl3RqzWrELJ0Q8RUmINSSK21YRijGIHIFuCsj83V rG8g== X-Gm-Message-State: APjAAAVIpcRaxhpei/P2ehf/RYnohRDWTZJL0i9uMlAoZXpV7/Oy+H9j tX6bwpmvaqdFVkJp6b0ytDJ++t7S X-Google-Smtp-Source: APXvYqzZTiHraoqoR3pDZgBoVxreyWldOtl8qlYaehfqVuFX3PaHNrkI3RK+txHbCy1K9kZLfhe9Mg== X-Received: by 2002:a5d:628e:: with SMTP id k14mr7491959wru.60.1572098529458; Sat, 26 Oct 2019 07:02:09 -0700 (PDT) Received: from localhost.localdomain (bzq-84-108-5-46.cablep.bezeqint.net. [84.108.5.46]) by smtp.gmail.com with ESMTPSA id p1sm5157394wmg.11.2019.10.26.07.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2019 07:02:08 -0700 (PDT) From: Asaf Kahlon To: buildroot@buildroot.org Date: Sat, 26 Oct 2019 17:02:04 +0300 Message-Id: <20191026140204.14776-1-asafka7@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v4 1/1] package/uvw: new package 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: Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" A header-only libuv wrapper in C++. Signed-off-by: Asaf Kahlon --- v3->v4: * gcc 7.x is now OR'ed with NPTL and dynamic library. * use UVW_SUPPORTS_IN_SOURCE_BUILD = NO. Signed-off-by: Asaf Kahlon --- DEVELOPERS | 1 + package/Config.in | 1 + package/libuv/libuv.mk | 2 ++ package/uvw/Config.in | 19 +++++++++++++++++++ package/uvw/uvw.hash | 3 +++ package/uvw/uvw.mk | 16 ++++++++++++++++ 6 files changed, 42 insertions(+) create mode 100644 package/uvw/Config.in create mode 100644 package/uvw/uvw.hash create mode 100644 package/uvw/uvw.mk diff --git a/DEVELOPERS b/DEVELOPERS index ec4f50a79e..b9e6881419 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -239,6 +239,7 @@ F: package/python* F: package/snmpclitools/ F: package/spdlog/ F: package/uftp/ +F: package/uvw/ F: package/zeromq/ N: Ash Charles diff --git a/package/Config.in b/package/Config.in index d78b4c444b..901c25fe02 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1805,6 +1805,7 @@ endif source "package/tinycbor/Config.in" source "package/tz/Config.in" source "package/tzdata/Config.in" + source "package/uvw/Config.in" source "package/xapian/Config.in" endmenu diff --git a/package/libuv/libuv.mk b/package/libuv/libuv.mk index d5f1d7dbab..618b25d5f6 100644 --- a/package/libuv/libuv.mk +++ b/package/libuv/libuv.mk @@ -4,6 +4,8 @@ # ################################################################################ +# When bumping libuv, check if a new version of uvw is available +# and bump it too. LIBUV_VERSION = 1.33.1 LIBUV_SITE = $(call github,libuv,libuv,v$(LIBUV_VERSION)) LIBUV_DEPENDENCIES = host-pkgconf diff --git a/package/uvw/Config.in b/package/uvw/Config.in new file mode 100644 index 0000000000..bfaed25796 --- /dev/null +++ b/package/uvw/Config.in @@ -0,0 +1,19 @@ +config BR2_PACKAGE_UVW + bool "uvw" + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv + depends on BR2_USE_MMU # libuv + depends on !BR2_STATIC_LIBS # libuv + depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17 + select BR2_PACKAGE_LIBUV + help + Header-only, event based, tiny and easy to use + libuv wrapper in modern C++. + + https://github.com/skypjack/uvw + +comment "uvw needs a toolchain w/ NPTL, dynamic library, gcc >= 7" + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_7 + depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_HAS_SYNC_4 diff --git a/package/uvw/uvw.hash b/package/uvw/uvw.hash new file mode 100644 index 0000000000..e6129e559d --- /dev/null +++ b/package/uvw/uvw.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 266a354f0c64a8e85f29b10f20f4d08a35bc1e8caa7cc94a8afecf9ca43f4442 uvw-2.2.0_libuv-v1.33.tar.gz +sha256 ea786619b4d1b2ba0a188e923111122dfefea1d01c86e37f9e8c80bdbc3ea400 LICENSE diff --git a/package/uvw/uvw.mk b/package/uvw/uvw.mk new file mode 100644 index 0000000000..64122aea44 --- /dev/null +++ b/package/uvw/uvw.mk @@ -0,0 +1,16 @@ +################################################################################ +# +# uvw +# +################################################################################ + +UVW_VERSION = 2.2.0_libuv-v1.33 +UVW_SITE = $(call github,skypjack,uvw,v$(UVW_VERSION)) +UVW_INSTALL_STAGING = YES +UVW_INSTALL_TARGET = NO +UVW_SUPPORTS_IN_SOURCE_BUILD = NO +UVW_DEPENDENCIES = libuv +UVW_LICENSE = MIT +UVW_LICENSE_FILES = LICENSE + +$(eval $(cmake-package))