From patchwork Sat Oct 26 07:19:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asaf Kahlon X-Patchwork-Id: 1184566 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=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="cAtYykVe"; dkim-atps=neutral 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 470XRM3cnCz9sPf for ; Sat, 26 Oct 2019 18:19:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id ED93686937; Sat, 26 Oct 2019 07:19:25 +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 eSV5n4HRukh8; Sat, 26 Oct 2019 07:19:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3E589869DD; Sat, 26 Oct 2019 07:19:25 +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 F216A1BF94B for ; Sat, 26 Oct 2019 07:19:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EEB2920485 for ; Sat, 26 Oct 2019 07:19:21 +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 AK0V1gR9rrBR for ; Sat, 26 Oct 2019 07:19:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by silver.osuosl.org (Postfix) with ESMTPS id B5DC72045D for ; Sat, 26 Oct 2019 07:19:19 +0000 (UTC) Received: by mail-wr1-f43.google.com with SMTP id o28so4702982wro.7 for ; Sat, 26 Oct 2019 00:19:19 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=EBnPs2IhYqevS8VJiH53r6kYCOT94/GJmcSHrBC/u/s=; b=cAtYykVe30mk0VFOCj/JRVK1Qqu2JvNWDpr+/+jxEQU+c1zmjW4ywByHpC8CEgFweD l7cwAiajgbliQYliEN73qM/q71nC9m7q0MLn5p4cZai2bUDL1d3hbhwehSVxc/lSGwv4 Ytpk5sQm4IkN31/tNO540r+OG9mYt4+J/+yMjPXEksWfNSlR/cQEpuddIYyDzb7kZEMP PuibrfCDXJm3nGokY1MNLdvf7e19knZUarlfvGyKJJIHZEBXRI8F+xkIiSETo4TEtFxb R7K3gbgBF+lJWlqe5CUqTeJjWkX7HGnEjXGRW+pdwtvf3/c0dNfg9ITL77jxiSGOGNyV Oh7Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=EBnPs2IhYqevS8VJiH53r6kYCOT94/GJmcSHrBC/u/s=; b=I0NIsBdkQ6QH2BBVR2RpTfuAaOu330UT982V3OPZTmV8ImQeLTCUjiPvp241enHpQU HW7l6MwG2oN44L5BfDOcbsYK37gD0LqmLgcYs9vOPUoMwZnB8gTTbapuX825wIi44ggi dgc17MRNNuWz9zd9q8uwsWhZqaKQOIsUAZSi5DmurY+gE/MSY6iBcjzdYcLMWGFyU0em WmuHtWtkPSJRLMko7YGG7civNj4hXaEDwgB2diPveQcJ64eQVttYU0oSBLNvOqoApLWl h5uWjGig5h5LvZWRXfzj+HYp4ajmOTUw2UUSm4LuLANvyGqGGULvylBjn4vS4udTZObz FlmQ== X-Gm-Message-State: APjAAAX7JpFCZdxx/inPAzZXsaZMgpIYf7wZQfiLM9DNN7wZRBazbnhX zewQv4w1pkWTJBbIIUDDIePwYmg/ X-Google-Smtp-Source: APXvYqw3ieMHe6pA9uZS7vYYJVfk4nSmV1szQVWZTJ3ap8vNqtlQPkUyA8hitGquji0DLVgDtjlx+g== X-Received: by 2002:a5d:52c8:: with SMTP id r8mr1903219wrv.347.1572074357882; Sat, 26 Oct 2019 00:19:17 -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 r3sm7233906wre.29.2019.10.26.00.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2019 00:19:17 -0700 (PDT) From: Asaf Kahlon To: buildroot@buildroot.org Date: Sat, 26 Oct 2019 10:19:05 +0300 Message-Id: <20191026071905.23036-2-asafka7@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191026071905.23036-1-asafka7@gmail.com> References: <20191026071905.23036-1-asafka7@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 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++. A patch is added to enable in-tree build, which is checked and prevented by the package and fails the build. Signed-off-by: Asaf Kahlon --- v1->v2: add missing entry in DEVELOPERS --- DEVELOPERS | 1 + package/Config.in | 1 + ...-CMakeLists.txt-allow-in-place-build.patch | 32 +++++++++++++++++++ package/uvw/Config.in | 16 ++++++++++ package/uvw/uvw.hash | 3 ++ package/uvw/uvw.mk | 15 +++++++++ 6 files changed, 68 insertions(+) create mode 100644 package/uvw/0001-CMakeLists.txt-allow-in-place-build.patch 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/uvw/0001-CMakeLists.txt-allow-in-place-build.patch b/package/uvw/0001-CMakeLists.txt-allow-in-place-build.patch new file mode 100644 index 0000000000..01068d0427 --- /dev/null +++ b/package/uvw/0001-CMakeLists.txt-allow-in-place-build.patch @@ -0,0 +1,32 @@ +From 1d784a0067b7123971c834c77f4f137acca56ae6 Mon Sep 17 00:00:00 2001 +From: Asaf Kahlon +Date: Fri, 25 Oct 2019 19:09:14 +0300 +Subject: [PATCH 1/1] CMakeLists.txt: allow in-tree build + +Signed-off-by: Asaf Kahlon +--- + CMakeLists.txt | 8 -------- + 1 file changed, 8 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9fc5538..4aaabf7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,14 +4,6 @@ + + cmake_minimum_required(VERSION 3.2) + +-# +-# Building in-tree is not allowed (we take care of your craziness). +-# +- +-if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) +- message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the source code and call cmake from there. Thank you.") +-endif() +- + # + # Project configuration + # +-- +2.20.1 + diff --git a/package/uvw/Config.in b/package/uvw/Config.in new file mode 100644 index 0000000000..58e68392af --- /dev/null +++ b/package/uvw/Config.in @@ -0,0 +1,16 @@ +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 + 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" + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS + 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..6b3621e55d --- /dev/null +++ b/package/uvw/uvw.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# 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_DEPENDENCIES = libuv +UVW_LICENSE = MIT +UVW_LICENSE_FILES = LICENSE + +$(eval $(cmake-package))