From patchwork Fri Oct 25 18:54:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asaf Kahlon X-Patchwork-Id: 1184408 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="LaIgHKn/"; 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 470Cwf0XLJz9s4Y for ; Sat, 26 Oct 2019 05:55:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8D98D85F9D; Fri, 25 Oct 2019 18:55: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 GaBfdo2QbeSi; Fri, 25 Oct 2019 18:55:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9284085F78; Fri, 25 Oct 2019 18:55:05 +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 434E41BF35A for ; Fri, 25 Oct 2019 18:55:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 409A5843EC for ; Fri, 25 Oct 2019 18:55:01 +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 INwUANIWDBZJ for ; Fri, 25 Oct 2019 18:55:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 7B4B8842A5 for ; Fri, 25 Oct 2019 18:55:00 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id n15so3472286wrw.13 for ; Fri, 25 Oct 2019 11:55:00 -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=mKxo3ufs84yi6MLuxBiyWotOru0iRqWdQVVu4MRUBG0=; b=LaIgHKn/t1W7zXu1oERnWKdCZ0aI55XfF2Jdkt0HQzwKKdle6iEaGznJYKGg7Cg2+r u/oeg7WOqfW5336akMlc4uRc/oOYOOn8CIWbHl1iX0NNFxULpRbrhgktDhNkiPIKT4zb /6G/J9ZeV/uqMgiJx+Xg4c+p0aaqmLASDcsktg+sTHwTD6Htlh2TsQohIx1DtawIvStg q818JaBbsmwCZlG/SADclobhYcsRyAsKKyYcIkH9EktjQATIx9/+DkOfVS0bigSBRkUB sfpCtWGW2SW/DLVk0gS0835hwmV74qeyEao4LdI9I4Tc3PzEe68BG2XPZwdDfF6OEGP6 aXjg== 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=mKxo3ufs84yi6MLuxBiyWotOru0iRqWdQVVu4MRUBG0=; b=k7IwM9zt/IoFU7Kl7DM+PVmZk8K8QpSDCxSXJ4LfGCSfbgTehH/Y/aWTj2UixKCZjX 6TLSVGk2Uoqh8r7KQZc4shauAlAtAQlQNbuxJ9McUpUEZIU6fx3z0tuF6RGLxAVgwAI/ QO5IaCCaZL4998n/6VbawyzKhI/PIaBGjMghQlWB0x3+f8gZ9P/LxlbLT/QXlXmVXMuW XRhFlAS6V/Ka0+jHjh08MZbLJNN55hPPBUd/XbQk9BLwPOD8alD0QlcNaKaNQrgHfdwL OD2+UeCqs73V4U7GZvY8qo0bDbkcJ7oRZUfOfXRUMgbyDB7Ub9Mf6v+KsTUvArkkwAjU N9BQ== X-Gm-Message-State: APjAAAVG0MmGctThaEPMzF22OemHzs8tmgEODaRvnATazrwh7LgoylOS lMySuFNsHNG+JSRlACLj5Ndnqwx6 X-Google-Smtp-Source: APXvYqxUQ8nPvg/tmRQIkJwV51vgHf30ppyQ34Nidqn26ga7fSbpmdP3zOu7/JVxcppngiBNk8YbFQ== X-Received: by 2002:adf:dbd2:: with SMTP id e18mr4397931wrj.268.1572029698803; Fri, 25 Oct 2019 11:54:58 -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 r5sm3964847wrs.57.2019.10.25.11.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 11:54:58 -0700 (PDT) From: Asaf Kahlon To: buildroot@buildroot.org Date: Fri, 25 Oct 2019 21:54:47 +0300 Message-Id: <20191025185448.32633-5-asafka7@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191025185448.32633-1-asafka7@gmail.com> References: <20191025185448.32633-1-asafka7@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 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 --- 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 +++++++++ 5 files changed, 67 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/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))