From patchwork Thu May 2 18:51:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1094501 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="tgA/RuC7"; 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 44w49x2knCz9sBr for ; Fri, 3 May 2019 04:51:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 21ABD22829; Thu, 2 May 2019 18:51:45 +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 Fibh16eZdaoV; Thu, 2 May 2019 18:51:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 1C242228BA; Thu, 2 May 2019 18:51:42 +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 ED3E31BF3FC for ; Thu, 2 May 2019 18:51:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EA424228BA for ; Thu, 2 May 2019 18:51:39 +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 kqtkTCLBr9Rh for ; Thu, 2 May 2019 18:51:38 +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 silver.osuosl.org (Postfix) with ESMTPS id 1FE0722829 for ; Thu, 2 May 2019 18:51:37 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id r7so4763622wrr.13 for ; Thu, 02 May 2019 11:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vWWPRktE1NCzuoYw0Iod3xbrs1Y1ZODhPd1DVoCH7VE=; b=tgA/RuC78Ehc2r7aqoG85zBYUN0gYQ8Q00AKDpdTZYyc4oecPCrjea0W6hJlKCrgzV D9pixdJUsVxLZshXpUZn83xiFAYEW9f5Xl+9URPsb6AR//olpZD6ssP6TjN9xAh4PxE3 Gx+uCXxY3lYycYJfXHrZMMUo5ZdjCsBcTQQOyM/jx9/pjTQUznKMQyKW4qQzAgxXi48m IC28Ev+C0urc9X40zHc9jp2SU6rgJ+C+zYFAPZrGfzVfrbBeuJNgHJogV+g+lk0VB41H Dv64G9JfZx6Yjpj8IZ7sry49JtlHopIZ7RGtsER7nu2QOyLOBMSsXGZbfi2mL1xWYngn w+nw== 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; bh=vWWPRktE1NCzuoYw0Iod3xbrs1Y1ZODhPd1DVoCH7VE=; b=s/ZX/bgjeY8czcdsBRgeKuHJlkvoKnw+tUvhInPyfOhcS/AFNuo5+5nCYSrcf4S8gI cbHMSNTBXjHEgAR6UL6pn1/VC08NFCC25NyC5uxYbwVtygwhVqaPydoQwWxR7nGr++fL wHzJ1aa08CJ7NoqdVo6bbolcHpxaQYTClR+gQSpuqCL9etL0x4K1Wzx1ITlnWadq7tVA +xIoeDCwCWOaafJdUrjUyyKqzRJKZ72/kiUzSFv4P8xjabRJHuf5Hvit1PVidtR/jstt cDBqxb3FBbsjVQtKYLsy7H8UYqmTAizB0wpUAoFefMgAvakRXHvMJ7bVFkPmzw6sSpNy GhKQ== X-Gm-Message-State: APjAAAV84RdW+i40iYM9rPxfucRkIagFB3HKIz20nBBd7c4bs5ERoMbF dDdFfCxLXmTPqWEHTojdK3pwctBZ9Uw= X-Google-Smtp-Source: APXvYqxAZcwF873VjpbTUhe9yvDqJxx70MY/ezclNt958OyMGLwpXQ1LeGLS2R0QYrliWsC7+3yNHg== X-Received: by 2002:adf:e811:: with SMTP id o17mr3862793wrm.30.1556823096366; Thu, 02 May 2019 11:51:36 -0700 (PDT) Received: from localhost.localdomain (161.89.8.109.rev.sfr.net. [109.8.89.161]) by smtp.gmail.com with ESMTPSA id t24sm26335664wra.58.2019.05.02.11.51.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 May 2019 11:51:35 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 2 May 2019 20:51:20 +0200 Message-Id: <1556823086-29917-2-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v2 1/7] package/luajit: bump to version 2.1.x developpment version for aarch64 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: Jugurtha BELKALEM MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" luajit 2.0.5 has not been updated since 2017, it lacks aarch64 support. An upgrade to version 2.1.0-beta3 is required to get aarch64 which allows to execute bcc (ebpf's front end tool) on arm64 architectures. Luajit 2.0.1-beta3 is not a release version: https://github.com/LuaJIT/LuaJIT which why we kept luajit 2.0.5 version and the upgrade is only made when aarch64 is encountered. Signed-off-by: Jugurtha BELKALEM --- Changes V1 => V2 : Removing luajit patch for aarch64 as this patch should be in bcc package. --- package/luajit/Config.in | 2 +- package/luajit/luajit.hash | 1 + package/luajit/luajit.mk | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package/luajit/Config.in b/package/luajit/Config.in index 88c5bcb..9ecf6b4 100644 --- a/package/luajit/Config.in +++ b/package/luajit/Config.in @@ -1,6 +1,6 @@ config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS bool - default y if BR2_i386 || \ + default y if BR2_i386 || BR2_aarch64 || \ (BR2_x86_64 && BR2_HOSTARCH='x86_64') || \ BR2_powerpc || BR2_arm || BR2_armeb || \ ((BR2_mips || BR2_mipsel) && !BR2_MIPS_SOFT_FLOAT && \ diff --git a/package/luajit/luajit.hash b/package/luajit/luajit.hash index 7e2d87e..1737cca 100644 --- a/package/luajit/luajit.hash +++ b/package/luajit/luajit.hash @@ -2,4 +2,5 @@ md5 48353202cbcacab84ee41a5a70ea0a2c LuaJIT-2.0.5.tar.gz # Locally calculated +sha256 ad5077bd861241bf5e50ae4bf543d291c5fcffab95ccc3218401131f503e45bd luajit-f0e865dd4861520258299d0f2a56491bd9d602e1.tar.gz sha256 accb335aa3102f80d31caa2c2508fbcb795314106493519a367f13a87d0e87de COPYRIGHT diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk index 5b08a42..181cf1c 100644 --- a/package/luajit/luajit.mk +++ b/package/luajit/luajit.mk @@ -4,9 +4,15 @@ # ################################################################################ +ifeq ($(BR2_aarch64),y) +LUAJIT_VERSION = f0e865dd4861520258299d0f2a56491bd9d602e1 +LUAJIT_SITE = $(call github,luajit,luajit,$(LUAJIT_VERSION)) +else LUAJIT_VERSION = 2.0.5 LUAJIT_SOURCE = LuaJIT-$(LUAJIT_VERSION).tar.gz LUAJIT_SITE = http://luajit.org/download +endif + LUAJIT_LICENSE = MIT LUAJIT_LICENSE_FILES = COPYRIGHT From patchwork Thu May 2 18:51:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1094502 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="Li2quP6L"; 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 44w4B16xp3z9sBr for ; Fri, 3 May 2019 04:51:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4439E2291B; Thu, 2 May 2019 18:51:52 +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 9mY-z9zjGlOI; Thu, 2 May 2019 18:51:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id F11F222DB0; Thu, 2 May 2019 18:51:49 +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 C779E1BF3FC for ; Thu, 2 May 2019 18:51:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C3E27879A7 for ; Thu, 2 May 2019 18:51:40 +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 NuNI-rzLri4h for ; Thu, 2 May 2019 18:51:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2D614879A3 for ; Thu, 2 May 2019 18:51:39 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id f7so4838156wrs.2 for ; Thu, 02 May 2019 11:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IN4hjKZfbcQ3nb6C1LG7dJ/Mu2hOaPoec1UEzgxFi7o=; b=Li2quP6L900k0PdtzqApVzMM1B8e6Wlo/JBGE5ssHIuXKe3Dawes69nTARCos1FOnJ R7YuL9ueIHbQvOlYdOo9J21jAMQgU2ewKXIsKF6PuVNSfQToe/6F4E2ndgWTXEa+dplD 0qKwkDSdse853GcyPkTpVbZXpzSN7W6SgUBGM2UURB5yOWVpVRq57Covx+oc6xbfAkFj cyYwKds4zXJ23v4IKZuKm0YoAzRLxg8uKqtLyab7+CXXfK0xhfNFWfR3GS7Os+dwfou8 M9kNcAzrANoBZ4ZaD253H+SeOtFpHcxbmopa0+GeCz/myPN5E+GB3pNHZpVPOtcdsBtV mcmw== 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; bh=IN4hjKZfbcQ3nb6C1LG7dJ/Mu2hOaPoec1UEzgxFi7o=; b=ClkqEQaAKCYzF4Jx3NaQPrUykw6lppdWpkbgczA5el3hSFSRYGFqSzDTchK+/Nv5eX 9bN3kWRv//QYGI7qVluJF2V1bt0hdLU5lDZH8qr/ju7QuHLKfLhQ5jfoCUS3gkqeiVS1 v8SbfcIiP82QL3z2GmoXwIL3k/EbFVD9JDYyCywXUYwDXU0vC+sRQMkv7wWPGpIkmfqM VqSRsmAXKqrTXGdUhxj2qVzW3SxyXwz6Z9U8Egy8oA6guem+L2KigWRJNKOawSm1qgT+ N7iZAQLxoqLJWFh0BTtxqU30MT2KW5Jcdl2ydNIUvgmMeKkkHAlLFy2vMsaFdtgjrygV y/Uw== X-Gm-Message-State: APjAAAV/JGirbc+7HWZcEKMR8iNvQx4UWMEVqlDUjCbCws8g+FdW2OOw ZcSre1p3ydk3K/Ljoz7diM/Ei46ufBc= X-Google-Smtp-Source: APXvYqyRlfI9BR2LovM1z5TcA/579biTmwsYAh2NiwW6Q1JzKEfi2PHc+mfy32+T+lVfnjmQC+d9Dg== X-Received: by 2002:adf:ea86:: with SMTP id s6mr3936331wrm.44.1556823097530; Thu, 02 May 2019 11:51:37 -0700 (PDT) Received: from localhost.localdomain (161.89.8.109.rev.sfr.net. [109.8.89.161]) by smtp.gmail.com with ESMTPSA id t24sm26335664wra.58.2019.05.02.11.51.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 May 2019 11:51:37 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 2 May 2019 20:51:21 +0200 Message-Id: <1556823086-29917-3-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v2 2/7] package/python-pytest: 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: Jugurtha BELKALEM MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" bcc requires python-bcc which itself requires python-pytest. The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. Signed-off-by: Jugurtha BELKALEM --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/python-pytest/Config.in | 8 ++++++++ package/python-pytest/python-pytest.hash | 5 +++++ package/python-pytest/python-pytest.mk | 15 +++++++++++++++ 5 files changed, 32 insertions(+) create mode 100644 package/python-pytest/Config.in create mode 100644 package/python-pytest/python-pytest.hash create mode 100644 package/python-pytest/python-pytest.mk diff --git a/DEVELOPERS b/DEVELOPERS index 6ccb0af..f6d5d3e 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1224,6 +1224,9 @@ F: package/python-sentry-sdk/ F: package/python-websockets/ F: package/python-xlib/ +N: Jugurtha BELKALEM +F: package/python-pytest + N: Joshua Henderson F: package/qt5/qt5wayland/ diff --git a/package/Config.in b/package/Config.in index f592e74..2a0aca9 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1015,6 +1015,7 @@ menu "External python modules" source "package/python-pysocks/Config.in" source "package/python-pytablereader/Config.in" source "package/python-pytablewriter/Config.in" + source "package/python-pytest/Config.in" source "package/python-pytrie/Config.in" source "package/python-pytz/Config.in" source "package/python-pyudev/Config.in" diff --git a/package/python-pytest/Config.in b/package/python-pytest/Config.in new file mode 100644 index 0000000..7db5493 --- /dev/null +++ b/package/python-pytest/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_PYTHON_PYTEST + bool "python-pytest" + help + The pytest framework makes it easy to write small tests, + yet scales to support complex functional testing for + applications and libraries. + + https://pypi.org/project/pytest/ diff --git a/package/python-pytest/python-pytest.hash b/package/python-pytest/python-pytest.hash new file mode 100644 index 0000000..43f9f98 --- /dev/null +++ b/package/python-pytest/python-pytest.hash @@ -0,0 +1,5 @@ +# sha256 from https://pypi.org/project/pytest/#files +sha256 b7802283b70ca24d7119b32915efa7c409982f59913c1a6c0640aacf118b95f5 pytest-4.4.1.tar.gz + +# Locally calculated +sha256 4be38574daf05665b6194e4fd84c5ef6ce7c3a2810308a5222d5cdffc2d04d18 LICENSE diff --git a/package/python-pytest/python-pytest.mk b/package/python-pytest/python-pytest.mk new file mode 100644 index 0000000..665951f --- /dev/null +++ b/package/python-pytest/python-pytest.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# python-pytest +# +################################################################################ + +PYTHON_PYTEST_VERSION = 4.4.1 +PYTHON_PYTEST_SOURCE = pytest-$(PYTHON3_PYTEST_VERSION).tar.gz +PYTHON_PYTEST_SITE = https://files.pythonhosted.org/packages/2b/b1/c9a84f79fc3bad226a9085289da11ecdd9bd2779a2c654195962b37d4110/ +PYTHON_PYTEST_LICENSE = MIT +PYTHON_PYTEST_LICENSE_FILES = LICENSE +PYTHON_PYTEST_SETUP_TYPE = setuptools +PYTHON_PYTEST_DEPENDENCIES = python-setuptools-scm + +$(eval $(python-package)) From patchwork Thu May 2 18:51:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1094506 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="wQpmpaZL"; 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 44w4D43cDJz9sD4 for ; Fri, 3 May 2019 04:53:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B0700881BE; Thu, 2 May 2019 18:53:37 +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 O+UQGwatdcbq; Thu, 2 May 2019 18:53:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 785CC87A12; Thu, 2 May 2019 18:53:34 +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 0F9901BF3FC for ; Thu, 2 May 2019 18:53:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 064FB865D1 for ; Thu, 2 May 2019 18:53:31 +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 os0QSRtWY-k9 for ; Thu, 2 May 2019 18:53:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 13C4286824 for ; Thu, 2 May 2019 18:51:40 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id r7so4763758wrr.13 for ; Thu, 02 May 2019 11:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lCEB38AVKrOFIKuzFw1WGkeIsauXVHdRdBvXiRXd0GI=; b=wQpmpaZLnX5mHiY5ATklz3uWrpnNQu+muROKYVEJ46CiVQcS9ooMd9OmbPAN1Is2R6 KRgYDqzoGvSAO9DkFAyZxxfLDL8YZ/jz8UHMQO96u2eWmNw3dBPP0fNuI7e2Fl5iPkf1 Kl9gfbEHDcER+sO9tOeWWg1cpjxSbpoU8d5WQOidz/f2E5Rbo9chONneWHaNgy0gIXi+ fUfFaGiehLT5IQmBx10Tyld7rhpYIJPPteGaV/RG665fVPJKWVqOt0ufdOaUI/LXHFW4 wQHHNZf8hovfRXP7mmp5El23Xuzcuje/TOUIn3+bS4bhZfxaggWBEdIVfcW9S+7R7iH0 r6ZQ== 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; bh=lCEB38AVKrOFIKuzFw1WGkeIsauXVHdRdBvXiRXd0GI=; b=lX2oC99/BnzvGhkBRrSzD8Ei1XsKCM8UACuwrfZxWBh/6jdRDgJbMw0OU911zlRkk4 GYCC9JbmIkcf1VPIo2hCRzkGe/0AaBPDvp6DtF4PMzn0kws3ul3HqMDak17QngxdKazh Q7/UV9a3QGJKYeFH6uDBP8HkQsujQQHtZlZzIZ5J69x6dMcuyO4BY1bfgRMOzJDKQ97i fmA4R418FHkGOLo2MW/xcCNdMwQ3i6Znx4rzq6PHAO105mQiE2NHx+dfV5zghljK5qO1 eA2Nz9XPnXG+wlNMQcJVTUAaleWi0HqyQpVMQjLxjGb3VIj9VBcP7tdyTcIFC3Fm1zFH cV6Q== X-Gm-Message-State: APjAAAUpwPR7xPmGF5RTWrRZAuywj/taOEd+G0sZzCETeJy2ytS/K49g LPBJrEW3CGsdGpt2U/5sJ+sZl+mWh+E= X-Google-Smtp-Source: APXvYqyG7w623oF77jm4cLAlYeUxrfsNLTwdM/RQm4ezvRVDOUkyOll8eIEcs6uuBsflfulrMQj4gA== X-Received: by 2002:a5d:638c:: with SMTP id p12mr3925456wru.61.1556823098524; Thu, 02 May 2019 11:51:38 -0700 (PDT) Received: from localhost.localdomain (161.89.8.109.rev.sfr.net. [109.8.89.161]) by smtp.gmail.com with ESMTPSA id t24sm26335664wra.58.2019.05.02.11.51.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 May 2019 11:51:38 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 2 May 2019 20:51:22 +0200 Message-Id: <1556823086-29917-4-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v2 3/7] package/python-pytest-runner: 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: Jugurtha BELKALEM MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" bcc needs this package because python-bcc and python-pytest require this package to work. Setup scripts can use pytest-runner to add setup.py test support for pytest runner. python-bcc requires host pytest-runner to compile properly. Signed-off-by: Jugurtha BELKALEM --- --- DEVELOPERS | 1 + package/Config.in | 1 + .../0001-Remove-setuptools_scm-dependency.patch | 29 ++++++++++++++++++++++ package/python-pytest-runner/Config.in | 9 +++++++ .../python-pytest-runner/python-pytest-runner.hash | 3 +++ .../python-pytest-runner/python-pytest-runner.mk | 15 +++++++++++ 6 files changed, 58 insertions(+) create mode 100644 package/python-pytest-runner/0001-Remove-setuptools_scm-dependency.patch create mode 100644 package/python-pytest-runner/Config.in create mode 100644 package/python-pytest-runner/python-pytest-runner.hash create mode 100644 package/python-pytest-runner/python-pytest-runner.mk diff --git a/DEVELOPERS b/DEVELOPERS index f6d5d3e..d4370db 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1226,6 +1226,7 @@ F: package/python-xlib/ N: Jugurtha BELKALEM F: package/python-pytest +F: package/python-pytest-runner N: Joshua Henderson F: package/qt5/qt5wayland/ diff --git a/package/Config.in b/package/Config.in index 2a0aca9..4fcf4f7 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1016,6 +1016,7 @@ menu "External python modules" source "package/python-pytablereader/Config.in" source "package/python-pytablewriter/Config.in" source "package/python-pytest/Config.in" + source "package/python-pytest-runner/Config.in" source "package/python-pytrie/Config.in" source "package/python-pytz/Config.in" source "package/python-pyudev/Config.in" diff --git a/package/python-pytest-runner/0001-Remove-setuptools_scm-dependency.patch b/package/python-pytest-runner/0001-Remove-setuptools_scm-dependency.patch new file mode 100644 index 0000000..d67da8c --- /dev/null +++ b/package/python-pytest-runner/0001-Remove-setuptools_scm-dependency.patch @@ -0,0 +1,29 @@ +From d04d8da1c410e97e023c300d6606dee46741ae28 Mon Sep 17 00:00:00 2001 +From: Jugurtha BELKALEM +Date: Thu, 2 May 2019 16:41:34 +0200 +Subject: [PATCH] Remove setuptools_scm dependency + +setuptools_scm is an optional dependency of +pytest-runner. + +Signed-off-by: Jugurtha BELKALEM + +--- + host-python-pytest-runner-4.4/setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/host-python-pytest-runner-4.4/setup.py b/host-python-pytest-runner-4.4/setup.py +index b72262c..0396741 100644 +--- a/setup.py ++++ b/setup.py +@@ -55,7 +55,7 @@ params = dict( + ], + }, + setup_requires=[ +- 'setuptools_scm>=1.15.0', + ], + classifiers=[ + "Development Status :: 5 - Production/Stable", +-- +2.7.4 + diff --git a/package/python-pytest-runner/Config.in b/package/python-pytest-runner/Config.in new file mode 100644 index 0000000..01dea9d --- /dev/null +++ b/package/python-pytest-runner/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_PYTEST_RUNNER + bool "python-pytest-runner" + depends on BR2_PACKAGE_PYTHON3 + select BR2_PACKAGE_PYTHON_SETUPTOOLS_SCM + help + Setup scripts can use pytest-runner to add setup.py + test support for pytest runner. + + https://pypi.org/project/pytest-runner/ diff --git a/package/python-pytest-runner/python-pytest-runner.hash b/package/python-pytest-runner/python-pytest-runner.hash new file mode 100644 index 0000000..da76c50 --- /dev/null +++ b/package/python-pytest-runner/python-pytest-runner.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 00ad6cd754ce55b01b868a6d00b77161e4d2006b3918bde882376a0a884d0df4 pytest-runner-4.4.tar.gz +sha256 a55e2ffe9b44998e621d51d8c094bed09acc4b5236ee73d7df395a33ba3c18fd LICENSE diff --git a/package/python-pytest-runner/python-pytest-runner.mk b/package/python-pytest-runner/python-pytest-runner.mk new file mode 100644 index 0000000..ffebea5 --- /dev/null +++ b/package/python-pytest-runner/python-pytest-runner.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# python-pytest-runner +# +################################################################################ + +PYTHON_PYTEST_RUNNER_VERSION = 4.4 +PYTHON_PYTEST_RUNNER_SOURCE = pytest-runner-$(PYTHON_PYTEST_RUNNER_VERSION).tar.gz +PYTHON_PYTEST_RUNNER_SITE = https://files.pythonhosted.org/packages/15/0a/1e73c3a3d3f4f5faf5eacac4e55675c1627b15d84265b80b8fef3f8a3fb5 +PYTHON_PYTEST_RUNNER_LICENSE = MIT +PYTHON_PYTEST_RUNNER_LICENSE_FILES = LICENSE +PYTHON_PYTEST_RUNNER_SETUP_TYPE = setuptools + +$(eval $(python-package)) +$(eval $(host-python-package)) From patchwork Thu May 2 18:51:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1094503 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="p8ArKAQK"; 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 44w4Cx08kcz9sBr for ; Fri, 3 May 2019 04:53:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1D3C48562D; Thu, 2 May 2019 18:53:30 +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 RXIQhPYFI9TT; Thu, 2 May 2019 18:53:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 22F0981A14; Thu, 2 May 2019 18:53:28 +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 D98091C162E for ; Thu, 2 May 2019 18:51:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D2EC0879A7 for ; Thu, 2 May 2019 18:51:41 +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 48swEqc-CYaj for ; Thu, 2 May 2019 18:51:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 05285879A3 for ; Thu, 2 May 2019 18:51:41 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id h4so4800492wre.7 for ; Thu, 02 May 2019 11:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vsm8GEk4DAQKjkKfI1aB288gVep0ZT1mPkBEtN1/9oc=; b=p8ArKAQKLONIaGJNx3qObwyEqJmwWXwtPG17b1tgCrfK2LHUo3o8orCJ/UXD+LVI96 4TYRAiYjNyLrdp4154q4ONoGUdRnCcE3XW+Ygw2IQtZNez8Si8aH2dMVDlj4EjlmHNPr t/aFuRoLEqJAuJLDxAOcAE5EOXfHszvhDj7RvkjSIN5Hb5PoAiTdTTA+HvWY2UITbrm2 LA0eYqz/FmlRVfk3iZowXKA2SS6HmvtWyzKdicAv303UAStGGbzPWnNd3ExpcgICNVfx QAaJA+8BMZrVGOkb1Aaj2WtCickpaVC1aKtOy20LGrRYQ0rvhPpVIFYJ9qqWm4likvKm JoVA== 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; bh=vsm8GEk4DAQKjkKfI1aB288gVep0ZT1mPkBEtN1/9oc=; b=VcHTZH4sqq7szBm+vWP+2USDROi7peNECRlI5nna6MkLMl+5VgABYJI7NfYTu0c7u0 nQmjoq1ca+sO/Rx1e2hBWOQDVQoja4PvLPTcrW1xGYItFrolj5mv7wNxiH5gy8I5ZhYB Bcoih21ir5un2h14ZiJo/PirVsr698/kZGntobnp6wf28tlb4IC5EDRE4o8mTQUP0cnW wXgvSurfLljMQgWo1qEHjxHJFwJj64wnJknnMoPL3BK6huAUFAhxlSJ3q4FmhicEAvfA HCKEjZXjn24e2N6h3uxbX0eaj8jbYnOUFa6ye9TbkvB1duKsIMoFWHR9lGH70JOFsO5k FfgQ== X-Gm-Message-State: APjAAAUOJ15lN9PnX7wcjtDdPN95CA988ssrbASBz7le42mI1cIWzZtf 84yqGWA05Zcq+vcVgAgh3aPi1jKcfxw= X-Google-Smtp-Source: APXvYqxwejlu+7kDoYAcXQWKY9WlhG9v205gvl+Furu8ysDuUwwdvXaJfllYgrBRCZFqUqDOmCwC/w== X-Received: by 2002:a05:6000:1242:: with SMTP id j2mr4103879wrx.274.1556823099578; Thu, 02 May 2019 11:51:39 -0700 (PDT) Received: from localhost.localdomain (161.89.8.109.rev.sfr.net. [109.8.89.161]) by smtp.gmail.com with ESMTPSA id t24sm26335664wra.58.2019.05.02.11.51.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 May 2019 11:51:39 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 2 May 2019 20:51:23 +0200 Message-Id: <1556823086-29917-5-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v2 4/7] package/python-traittypes: 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: Jugurtha BELKALEM MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" bcc requires this package which is used to add custom trait types for scientific computing. Signed-off-by: Jugurtha BELKALEM Reviewed-by: Yegor Yefremov --- Changes v1 => v2: Correcting typos, adding #runtime comment and fixing License name. --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-traittypes/Config.in | 7 +++++++ package/python-traittypes/python-traittypes.hash | 5 +++++ package/python-traittypes/python-traittypes.mk | 14 ++++++++++++++ 5 files changed, 28 insertions(+) create mode 100644 package/python-traittypes/Config.in create mode 100644 package/python-traittypes/python-traittypes.hash create mode 100644 package/python-traittypes/python-traittypes.mk diff --git a/DEVELOPERS b/DEVELOPERS index d4370db..dc83571 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1227,6 +1227,7 @@ F: package/python-xlib/ N: Jugurtha BELKALEM F: package/python-pytest F: package/python-pytest-runner +F: package/python-traittypes N: Joshua Henderson F: package/qt5/qt5wayland/ diff --git a/package/Config.in b/package/Config.in index 4fcf4f7..4918ec5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1073,6 +1073,7 @@ menu "External python modules" source "package/python-toml/Config.in" source "package/python-tornado/Config.in" source "package/python-traitlets/Config.in" + source "package/python-traittypes/Config.in" source "package/python-treq/Config.in" source "package/python-twisted/Config.in" source "package/python-txaio/Config.in" diff --git a/package/python-traittypes/Config.in b/package/python-traittypes/Config.in new file mode 100644 index 0000000..0688f80 --- /dev/null +++ b/package/python-traittypes/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_TRAITTYPES + bool "python-traittypes" + select BR2_PACKAGE_PYTHON_TRAITLETS # runtime + help + Custom trait types for scientific computing. + + https://pypi.org/project/traittypes/ diff --git a/package/python-traittypes/python-traittypes.hash b/package/python-traittypes/python-traittypes.hash new file mode 100644 index 0000000..a94b256 --- /dev/null +++ b/package/python-traittypes/python-traittypes.hash @@ -0,0 +1,5 @@ +# sha256 from https://pypi.org/project/traittypes/#files +sha256 be6fa26294733e7489822ded4ae25da5b4824a8a7a0e0c2dccfde596e3489bd6 traittypes-0.2.1.tar.gz + +# Locally calculated +sha256 221976dfad5db283a2669efe8607e24c9c9aecca8453d6beba045e665c2f88a1 LICENSE diff --git a/package/python-traittypes/python-traittypes.mk b/package/python-traittypes/python-traittypes.mk new file mode 100644 index 0000000..d360e2d --- /dev/null +++ b/package/python-traittypes/python-traittypes.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-traittypes +# +################################################################################ + +PYTHON_TRAITTYPES_VERSION = 0.2.1 +PYTHON_TRAITTYPES_SOURCE = traittypes-$(PYTHON_TRAITTYPES_VERSION).tar.gz +PYTHON_TRAITTYPES_SITE = https://files.pythonhosted.org/packages/8a/71/0578e44d2110f93c2136eb705f5b11e706e1e8ea3acaaaeac043bd40d8fd +PYTHON_TRAITTYPES_LICENSE = BSD-3-Clause +PYTHON_TRAITTYPES_LICENSE_FILES = LICENSE +PYTHON_TRAITTYPES_SETUP_TYPE = distutils + +$(eval $(python-package)) From patchwork Thu May 2 18:51:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1094505 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="1fhxapbh"; 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 44w4D40X4Cz9sBr for ; Fri, 3 May 2019 04:53:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4B7F8879A9; Thu, 2 May 2019 18:53:38 +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 YxHPsPCD2IwX; Thu, 2 May 2019 18:53:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id DFA97879B5; Thu, 2 May 2019 18:53:30 +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 4B3641BF3FC for ; Thu, 2 May 2019 18:53:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 203C481A13 for ; Thu, 2 May 2019 18:53:28 +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 Hu-TOK7DHW-D for ; Thu, 2 May 2019 18:53:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 39AC186825 for ; Thu, 2 May 2019 18:51:42 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id c12so4804102wrt.8 for ; Thu, 02 May 2019 11:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/fI4qtoc8WuEsK04g8PmkjQIkHgwIYaYu7KJoPLDRE0=; b=1fhxapbh2EEEoXwBZpUaWv6dxdoPoPHMy/lCOs4forSGVzlsHBv9DYTlqKuS0yEORH IwxqujnpSRIX4eSaekfIeQVi6WMKfnJP99ZyzZ9c/j1NEKTuHTMXrq2haizXTrzFQ0hM i8r3kNR68YeU8whGPdpAVlJeglo4jEUGBav24azQQ5YM7MQMn1sGRRxTgafJfgPaQLfB gDsPo6nUzMQKHQxfbY44t5mv13pqBFC4yGrsnWRhxmqhMtm5a332SLjJKA+mFyaiCbVi 1vUBgNxKuc4M6wnhW+OfTPfSmFLtewhipubuF5sUsGZ0+ARiJtIQia4oJMZCvab4L+ZF TV4g== 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; bh=/fI4qtoc8WuEsK04g8PmkjQIkHgwIYaYu7KJoPLDRE0=; b=stvmxCK3GrLrWLk4oR5/GRU1FYyn+413SfyDrwukJBtj1ZmJlrMg5OSGZl+ZCtYMPj kaugc9h9WwImD/LBlHuGRQkX/72jajTZBoOsPB3fp1Ru7oip1zL4RD29w9UQfiZct91a YAYVSOwPyMhMO1mMQrIv/6PY6LRm1uAsE2Sqsvpe8ZHCTmmvxHBMqAUK2zpfsd9rHpDx Lffahhhau+oRMfx2qoFVhdnlwc97XfY0hVpQhSQ7U72wx1qcT2g5+5zW3gGXMVGMIy89 tGodvBYYQVVzX06gFG9zOKlxZ4eeu5eXcR+5dPrSe9yQemcvVMf4nK5GBBSJ8hkDDtiZ N6GQ== X-Gm-Message-State: APjAAAXo8r/fx3TKiB1f16J4Mw9SQOqr9frBeLD1YkK1+suQVVmY3XrT Vp/XvfxwSWCEoo+EcZtSzFNKXSmXBXw= X-Google-Smtp-Source: APXvYqzGuAnW1hckooRlcUDLmWwz5REW13pg9HQ3jMgilmCKutDVEPAdPISVAk8EoEm8etwwL1vNVA== X-Received: by 2002:adf:f310:: with SMTP id i16mr3813739wro.291.1556823100783; Thu, 02 May 2019 11:51:40 -0700 (PDT) Received: from localhost.localdomain (161.89.8.109.rev.sfr.net. [109.8.89.161]) by smtp.gmail.com with ESMTPSA id t24sm26335664wra.58.2019.05.02.11.51.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 May 2019 11:51:40 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 2 May 2019 20:51:24 +0200 Message-Id: <1556823086-29917-6-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v2 5/7] package/llvm: add BPF backend 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: Jugurtha BELKALEM , Romain Naour , Valentin Korenblit MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Romain Naour The BPF backend is needed for bcc tool. Signed-off-by: Romain Naour Signed-off-by: Jugurtha BELKALEM Cc: Valentin Korenblit --- package/llvm/Config.in | 6 ++++++ package/llvm/llvm.mk | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/package/llvm/Config.in b/package/llvm/Config.in index 83e9466..72d920e 100644 --- a/package/llvm/Config.in +++ b/package/llvm/Config.in @@ -35,6 +35,12 @@ config BR2_PACKAGE_LLVM_AMDGPU Build AMDGPU target. Select this option if you are going to install mesa3d with llvm and use Gallium Radeon driver. +config BR2_PACKAGE_LLVM_BPF + bool "BPF backend" + help + Build BPF target. Select this option if you are going + to install bcc on the target. + endif comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 4.8, host gcc >= 4.8, dynamic library" diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk index 3c62285..ad4f3c4 100644 --- a/package/llvm/llvm.mk +++ b/package/llvm/llvm.mk @@ -61,6 +61,11 @@ ifeq ($(BR2_PACKAGE_LLVM_AMDGPU),y) LLVM_TARGETS_TO_BUILD += AMDGPU endif +# Build BPF backend +ifeq ($(BR2_PACKAGE_LLVM_BPF),y) +LLVM_TARGETS_TO_BUILD += BPF +endif + # Use native llvm-tblgen from host-llvm (needed for cross-compilation) LLVM_CONF_OPTS += -DLLVM_TABLEGEN=$(HOST_DIR)/bin/llvm-tblgen From patchwork Thu May 2 18:51:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1094504 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="B1p6ID9a"; 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 44w4Cy4Y1fz9sBr for ; Fri, 3 May 2019 04:53:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 57E55879D0; Thu, 2 May 2019 18:53:32 +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 q5769LUECHsu; Thu, 2 May 2019 18:53:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 2403F879A7; Thu, 2 May 2019 18:53:29 +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 ED3C81BF3FC for ; Thu, 2 May 2019 18:51:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EA0BD879A7 for ; Thu, 2 May 2019 18:51:44 +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 gyqO6E-iV2tS for ; Thu, 2 May 2019 18:51:43 +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 whitealder.osuosl.org (Postfix) with ESMTPS id 844F0879A3 for ; Thu, 2 May 2019 18:51:43 +0000 (UTC) Received: by mail-wr1-f43.google.com with SMTP id k16so4814200wrn.5 for ; Thu, 02 May 2019 11:51:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CbRCReV880RWWZuvmykiknJke+X8Ch0MPjyk1ZMckww=; b=B1p6ID9aOpz1ongiSENmo4Rj/gzSPP6e3bQMGUBIBASeh7evR6WK6TQAa7AXAPleOo Q20jIbvDWL5xkRe9hWgViBL2/Pf/hXUdHB7BhlbffMgc8D2UlcK6kj5bksiupNcbJfNe HqewZsV3kjXH1ZEXY9nLuAr19qbdZBDMYHYGPuDhYZkrLeUZ6iI9c2ciNJ33BBy4+WAj dMkMJmu5VHhaRRL0UR5w8dAd8NNDRYC0sS/Ms8VNlsgOYA+1CvqmVR3uX2lb3208bezB aqHknZ6/nv/h1X1mPc/7Bt59XaplrbJE+MIMQeBodxWoRRBh4t5iQ8tg0Gp36ZwCw/j1 AR8Q== 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; bh=CbRCReV880RWWZuvmykiknJke+X8Ch0MPjyk1ZMckww=; b=LNcmr7hU88RHqJlexpKbRRFxudY7LbtUvcyLd6nGDi4dLjw8y0pyhndJr04S6Y1Cn5 kLChKRyR5h4duxO+sgDN5wSgdxoTwi81WAIUTMuZOldKxv4MtbkAlkAjrNyxuc1mM3Cv LsUCqft0Gp4+Pvml76Bz+hjX6vIIZ//7dWf6Pgp/PCCj0nDMnJxzBG6MmFmGkQ5STON5 6VNHSbfjqx9cZ28HlByEvEQoc24n/W0uD/K2Fdzt2v6cOZLTdlgwxA8Dlw6mzKFVssJC gQv1LNqJAlA6BzE1RWwAAhx9ck8uNNoAYJu9kFNMi+t5vOTnCadfg/pEoBcs7tjmRDI2 9OYA== X-Gm-Message-State: APjAAAXegEjdorMEGar9aiClMhdu5TWEj6CZJMZhXCAVFpJME+rjpaIm l1977YApMQ6zIpI+RrLqHdzhrTcGwGI= X-Google-Smtp-Source: APXvYqxi5wQlCHnSwJ6UR89tilY5zSkqGGRxl/Ap4OW3qM9DicPz2Krk95ukCSPHJecSgTZ6MEZxnA== X-Received: by 2002:a5d:6a4d:: with SMTP id t13mr2024922wrw.107.1556823102051; Thu, 02 May 2019 11:51:42 -0700 (PDT) Received: from localhost.localdomain (161.89.8.109.rev.sfr.net. [109.8.89.161]) by smtp.gmail.com with ESMTPSA id t24sm26335664wra.58.2019.05.02.11.51.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 May 2019 11:51:41 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 2 May 2019 20:51:25 +0200 Message-Id: <1556823086-29917-7-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v2 6/7] package/python-bcc: 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: Jugurtha BELKALEM MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" bcc python wrapper required by bcc to work properly. audit package is used by python-bcc to map system calls to their correspending numbers in various architectures that are different from x86_64. python-bcc requires host-python-pytest-runner to compile properly. Signed-off-by: Jugurtha BELKALEM --- Changes v1 => v2: - Correcting typos and adding #runtime comment. - Invoke pytest-runner only when neccessary. Signed-off-by: Jugurtha BELKALEM --- DEVELOPERS | 1 + package/Config.in | 1 + ...e-pytest-runner-a-conditional-requirement.patch | 47 ++++++++++++++++++++++ package/python-bcc/Config.in | 11 +++++ package/python-bcc/python-bcc.hash | 3 ++ package/python-bcc/python-bcc.mk | 15 +++++++ 6 files changed, 78 insertions(+) create mode 100644 package/python-bcc/0001-Make-pytest-runner-a-conditional-requirement.patch create mode 100644 package/python-bcc/Config.in create mode 100644 package/python-bcc/python-bcc.hash create mode 100644 package/python-bcc/python-bcc.mk diff --git a/DEVELOPERS b/DEVELOPERS index dc83571..35451d5 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1225,6 +1225,7 @@ F: package/python-websockets/ F: package/python-xlib/ N: Jugurtha BELKALEM +F: package/python-bcc F: package/python-pytest F: package/python-pytest-runner F: package/python-traittypes diff --git a/package/Config.in b/package/Config.in index 4918ec5..38d5321 100644 --- a/package/Config.in +++ b/package/Config.in @@ -832,6 +832,7 @@ menu "External python modules" source "package/python-backports-abc/Config.in" source "package/python-backports-shutil-get-terminal-size/Config.in" source "package/python-backports-ssl-match-hostname/Config.in" + source "package/python-bcc/Config.in" source "package/python-bcrypt/Config.in" source "package/python-beautifulsoup4/Config.in" source "package/python-bitstring/Config.in" diff --git a/package/python-bcc/0001-Make-pytest-runner-a-conditional-requirement.patch b/package/python-bcc/0001-Make-pytest-runner-a-conditional-requirement.patch new file mode 100644 index 0000000..219e850 --- /dev/null +++ b/package/python-bcc/0001-Make-pytest-runner-a-conditional-requirement.patch @@ -0,0 +1,47 @@ +From e7c8912e5e59de50fe359fe2e03f179c25c2dfbf Mon Sep 17 00:00:00 2001 +From: Jugurtha BELKALEM +Date: Thu, 2 May 2019 17:18:16 +0200 +Subject: [PATCH] Make pytest runner a conditional requirement + +Check for pytest-runner only if setup.py was invoked with 'test' +argument. + +Signed-off-by: Jugurtha BELKALEM +--- + python-bcc-0.1.10/setup.py | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/python-bcc-0.1.10/setup.py +index c27e9a9..9a91e04 100644 +--- a/setup.py ++++ b/setup.py +@@ -4,6 +4,7 @@ + """The setup script.""" + + from setuptools import setup, find_packages ++import sys + + with open('README.rst') as readme_file: + readme = readme_file.read() +@@ -17,7 +18,8 @@ requirements = [ + 'traittypes', + ] + +-setup_requirements = ['pytest-runner', ] ++needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv) ++pytest_runner = ['pytest-runner'] if needs_pytest else [] + + test_requirements = [ + 'pytest', +@@ -46,7 +48,7 @@ setup( + keywords='bcc', + name='bcc', + packages=find_packages(include=['bcc']), +- setup_requires=setup_requirements, ++ setup_requires=pytest_runner, + test_suite='tests', + tests_require=test_requirements, + url='https://github.com/willsheffler/bcc', +-- +2.7.4 + diff --git a/package/python-bcc/Config.in b/package/python-bcc/Config.in new file mode 100644 index 0000000..a007bc9 --- /dev/null +++ b/package/python-bcc/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_PYTHON_BCC + bool "python-bcc" + depends on BR2_PACKAGE_PYTHON3 + select BR2_PACKAGE_AUDIT # runtime + select BR2_PACKAGE_PYTHON_PYTEST_RUNNER + select BR2_PACKAGE_PYTHON_TRAITLETS # runtime + select BR2_PACKAGE_PYTHON_TRAITTYPES + help + Python3 wrappers for BPF Compiler Collection (BCC). + + https://pypi.org/project/bcc/ diff --git a/package/python-bcc/python-bcc.hash b/package/python-bcc/python-bcc.hash new file mode 100644 index 0000000..29caac9 --- /dev/null +++ b/package/python-bcc/python-bcc.hash @@ -0,0 +1,3 @@ +# locally calculated +sha256 a6f41ae67a8b697979d26bbc719fc9ea1b8bb47bdebb44b08fc0d5d308ae12b3 bcc-0.1.10.tar.gz +sha256 c6386f8304dfdbfc5184f2f01c9b9f45c7cef27cf4ffdf9e138372487f7a9c2b LICENSE diff --git a/package/python-bcc/python-bcc.mk b/package/python-bcc/python-bcc.mk new file mode 100644 index 0000000..5327e5e --- /dev/null +++ b/package/python-bcc/python-bcc.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# python-bcc +# +################################################################################ + +PYTHON_BCC_VERSION = 0.1.10 +PYTHON_BCC_SOURCE = bcc-$(PYTHON_BCC_VERSION).tar.gz +PYTHON_BCC_SITE = https://files.pythonhosted.org/packages/38/dc/3ca34874926789f8df53f3c1d1c38e77ebf876f43760e8745316bb8bd1c0 +PYTHON_BCC_LICENSE = Apache-2.0 +PYTHON_BCC_LICENSE_FILES = LICENSE +PYTHON_BCC_SETUP_TYPE = setuptools +PYTHON_BCC_DEPENDENCIES = host-python-pytest-runner + +$(eval $(python-package)) From patchwork Thu May 2 18:51:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1094508 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="QinZ124P"; 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 44w4DF52YLz9sBr for ; Fri, 3 May 2019 04:53:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 06B10879BA; Thu, 2 May 2019 18:53:48 +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 XAzHA7n9oG7Z; Thu, 2 May 2019 18:53:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5ECEA879D9; Thu, 2 May 2019 18:53:32 +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 8FFF41BF3FC for ; Thu, 2 May 2019 18:53:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 864D980ADB for ; Thu, 2 May 2019 18:53:30 +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 bHO7oJhzEO3R for ; Thu, 2 May 2019 18:53:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id CA32586826 for ; Thu, 2 May 2019 18:51:44 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id k16so4814286wrn.5 for ; Thu, 02 May 2019 11:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R5Mxa4eiKs0yE++roXLEAsI5uQDqt8Wmd1aoO7Obl4s=; b=QinZ124PGoKh+E57ehZWtzK93kwGeYKDQ4XOaVjSyQQsQp1qTXX+Erx1crR4oXYmQr UKuc4GUr8ju5YbGNeqZkQnxqVgcgIB8dAF4MYj9QUzzNF0G7SyJ5QB+1YXlZi4GkVdLr euqa3I0UXiZZHWxaMTfbVSgsZFV9x9rXSOc62081PfMH52tSgbBLseqgBv8LbZoH8Vr/ G2eZHpy7D9kiTB1m63r8d7+Z9P8us7Eih4Ea836KltTSC+GXbft7gOw9WL3TPvukV0kA TijsCIMJBNmXphod6CYKqAhjXXWK68q5veQ0KXgtA88heiCD/WiQwtbT3LXBOZBddDnu lZZA== 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; bh=R5Mxa4eiKs0yE++roXLEAsI5uQDqt8Wmd1aoO7Obl4s=; b=aCJw0Edzo8DaIVPnzxNnHiEnFCn2qfpGUiBNrO4lYSyR/SZONUrP/DfU5yod6KvtpO uu95bNrMffQQhjUZnkp0Q+cT/eo9pyABa0Zm09+j2w5XqciWdM+a5DpY66cgfi+CIb15 e2AcAsTwo/h53hpldcYZNOo+PCDUZEpvXz6AImQ7rNDgMzwlP3dFjP4K8H0XOZm5yVzf RlzraykTOdjnyp57T5j8ZExIIllnYe6m7eU47+uufoyyQaukHy2SM2ytBR9WeGugze+p 46hzz0nxk27E0Q8sDj3jUGAy7QZKhKWHn6zKOUSntwRKShDWiFbbFBNM9qu+eRgfpRTM fdKg== X-Gm-Message-State: APjAAAV8GZysYcRCmYWZhAOpQgWfpsTjqXpPtwjLL+aoz0kO4lOCjh8m XuiA9ASWnz91NK1CX/APi9UDu1gYB8M= X-Google-Smtp-Source: APXvYqyNSjng6Rc2V6iyzx7qjtggY2CrlxMIzwi8i/q5L/k3BCfPWmJ9iBZeZjtQ5NDnaEOWfjvBdw== X-Received: by 2002:adf:e811:: with SMTP id o17mr3863092wrm.30.1556823103242; Thu, 02 May 2019 11:51:43 -0700 (PDT) Received: from localhost.localdomain (161.89.8.109.rev.sfr.net. [109.8.89.161]) by smtp.gmail.com with ESMTPSA id t24sm26335664wra.58.2019.05.02.11.51.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 May 2019 11:51:42 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Thu, 2 May 2019 20:51:26 +0200 Message-Id: <1556823086-29917-8-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1556823086-29917-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v2 7/7] package/bcc: 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: Jugurtha BELKALEM , Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Romain Naour bcc is a front-end tool for eBPF : https://github.com/iovisor/bcc/blob/master/README.md. eBPF is the most powerful Linux tracer, and bcc allows to write eBPF scripts in C and PYTHON3. bcc can help to troubleshoot issues quickly on embedded systems (as long as Linux kernel version >= 4.1). bcc can also make it easy to create observabilty tools, SDN configuration, ddos mitigation, intrusion detection and secure containers. More information is available at: http://www.brendangregg.com/ebpf.html. Signed-off-by: Romain Naour Signed-off-by: Jugurtha BELKALEM --- --- package/Config.in | 1 + ...CMake-Allow-to-disable-building-man-pages.patch | 35 +++++++++++++++ package/bcc/0002-fix-aarch64-cross-compile.patch | 38 ++++++++++++++++ package/bcc/Config.in | 51 ++++++++++++++++++++++ package/bcc/bcc.hash | 3 ++ package/bcc/bcc.mk | 23 ++++++++++ 6 files changed, 151 insertions(+) create mode 100644 package/bcc/0001-CMake-Allow-to-disable-building-man-pages.patch create mode 100644 package/bcc/0002-fix-aarch64-cross-compile.patch create mode 100644 package/bcc/Config.in create mode 100644 package/bcc/bcc.hash create mode 100644 package/bcc/bcc.mk diff --git a/package/Config.in b/package/Config.in index 38d5321..b2fa28d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -79,6 +79,7 @@ menu "Compressors and decompressors" endmenu menu "Debugging, profiling and benchmark" + source "package/bcc/Config.in" source "package/blktrace/Config.in" source "package/bonnie/Config.in" source "package/cache-calibrator/Config.in" diff --git a/package/bcc/0001-CMake-Allow-to-disable-building-man-pages.patch b/package/bcc/0001-CMake-Allow-to-disable-building-man-pages.patch new file mode 100644 index 0000000..c5c87d5 --- /dev/null +++ b/package/bcc/0001-CMake-Allow-to-disable-building-man-pages.patch @@ -0,0 +1,35 @@ +From a99f097aedbf964356e62c0c4bba1257f108c3eb Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Fri, 7 Dec 2018 22:36:21 +0100 +Subject: [PATCH] CMake: Allow to disable building man pages + +Signed-off-by: Romain Naour +--- + CMakeLists.txt | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bb3f53b9..5e95d555 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -19,6 +19,7 @@ include(cmake/FindCompilerFlag.cmake) + option(ENABLE_LLVM_SHARED "Enable linking LLVM as a shared library" OFF) + option(ENABLE_CLANG_JIT "Enable Loading BPF through Clang Frontend" ON) + option(ENABLE_USDT "Enable User-level Statically Defined Tracing" ON) ++option(ENABLE_MAN "Build man pages" ON) + CMAKE_DEPENDENT_OPTION(ENABLE_CPP_API "Enable C++ API" ON "ENABLE_USDT" OFF) + + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) +@@ -88,7 +89,9 @@ add_subdirectory(src) + add_subdirectory(introspection) + if(ENABLE_CLANG_JIT) + add_subdirectory(examples) ++if(ENABLE_MAN) + add_subdirectory(man) ++endif(ENABLE_MAN) + add_subdirectory(tests) + add_subdirectory(tools) + endif(ENABLE_CLANG_JIT) +-- +2.14.5 + diff --git a/package/bcc/0002-fix-aarch64-cross-compile.patch b/package/bcc/0002-fix-aarch64-cross-compile.patch new file mode 100644 index 0000000..896ad6a --- /dev/null +++ b/package/bcc/0002-fix-aarch64-cross-compile.patch @@ -0,0 +1,38 @@ +From 4198c9589f9285c2f4e656159e28a3f19e280a7b Mon Sep 17 00:00:00 2001 +From: Jugurtha BELKALEM +Date: Thu, 2 May 2019 11:06:23 +0200 +Subject: [PATCH] luajit: fix aarch64 cross-compile + +Unlike CMAKE_SYSTEM_PROCESSOR which identifies aarch64 +as a valid architecture, luajit does not recognize it. +luajit defines aarch64 as arm64. + +Signed-off-by: Jugurtha BELKALEM +--- + src/lua/CMakeLists.txt | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/src/lua/CMakeLists.txt b/src/lua/CMakeLists.txt +index 7541d48..59415b0 100644 +--- a/src/lua/CMakeLists.txt ++++ b/src/lua/CMakeLists.txt +@@ -13,9 +13,15 @@ if (LUAJIT_LIBRARIES AND LUAJIT) + DEPENDS ${SRC_LUA} ${CMAKE_CURRENT_SOURCE_DIR}/squishy + ) + ++ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") ++ SET (LUAJIT_TARGET_ARCH arm64) ++ else() ++ SET (LUAJIT_TARGET_ARCH ${CMAKE_SYSTEM_PROCESSOR}) ++ endif() ++ + ADD_CUSTOM_COMMAND( + OUTPUT bcc.o +- COMMAND ${LUAJIT} -bg bcc.lua bcc.o ++ COMMAND ${LUAJIT} -bg bcc.lua -a ${LUAJIT_TARGET_ARCH} bcc.o + DEPENDS bcc.lua + ) + +-- +2.7.4 + diff --git a/package/bcc/Config.in b/package/bcc/Config.in new file mode 100644 index 0000000..4efcb94 --- /dev/null +++ b/package/bcc/Config.in @@ -0,0 +1,51 @@ +config BR2_PACKAGE_BCC + bool "bcc" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_USES_GLIBC # hardcode GNU tuple (x86_64-unknown-linux-gnu) + depends on BR2_LINUX_KERNEL # needs kernel sources on the target + depends on BR2_HOST_GCC_AT_LEAST_4_8 # clang + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # clang + depends on BR2_TOOLCHAIN_HAS_THREADS # clang + depends on BR2_INSTALL_LIBSTDCPP # clang + depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # clang + depends on !BR2_STATIC_LIBS # clang, luajit + depends on BR2_USE_WCHAR # clang + select BR2_PACKAGE_CLANG + select BR2_PACKAGE_ELFUTILS + select BR2_PACKAGE_FLEX # needs FlexLexer.h + select BR2_PACKAGE_LLVM_BPF + select BR2_PACKAGE_LUAJIT + select BR2_PACKAGE_PYTHON_BCC # wrappers for BPF + help + BPF Compiler Collection (BCC) + + BCC is a toolkit for creating efficient kernel tracing and + manipulation programs, and includes several useful tools and + examples. It makes use of extended BPF (Berkeley Packet + Filters), formally known as eBPF, a new feature that was + first added to Linux 3.15. Much of what BCC uses requires + Linux 4.1 and above. + + Note: Before using bcc, you need to copy the kernel source + code to the target. By default bcc use: + "/lib/module//build". That's because the + clang frontend build eBPF code at runtime. + + https://github.com/iovisor/bcc + +comment "bcc needs a Linux kernel to be built" + depends on !BR2_LINUX_KERNEL + +comment "bcc needs a glibc toolchain w/ wchar, threads, C++, gcc >= 4.8, host gcc >= 4.8, dynamic library" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on BR2_LINUX_KERNEL + depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_TOOLCHAIN_HAS_THREADS \ + || !BR2_INSTALL_LIBSTDCPP || !BR2_HOST_GCC_AT_LEAST_4_8 \ + || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || BR2_STATIC_LIBS \ + || !BR2_USE_WCHAR + +comment "bcc needs a toolchain not affected by GCC bug 64735" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on BR2_LINUX_KERNEL + depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735 diff --git a/package/bcc/bcc.hash b/package/bcc/bcc.hash new file mode 100644 index 0000000..19eccb3 --- /dev/null +++ b/package/bcc/bcc.hash @@ -0,0 +1,3 @@ +# locally calculated +sha256 269949a47f9ed2ff01b5ebca20ec4a52341f7ff14b033b9dc1669b72a87af042 bcc-v0.8.0.tar.gz +sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE.txt diff --git a/package/bcc/bcc.mk b/package/bcc/bcc.mk new file mode 100644 index 0000000..e8f53eb --- /dev/null +++ b/package/bcc/bcc.mk @@ -0,0 +1,23 @@ +################################################################################ +# +# bcc +# +################################################################################ + +BCC_VERSION = v0.8.0 +BCC_SITE = $(call github,iovisor,bcc,$(BCC_VERSION)) +BCC_LICENSE = Apache-2.0 +BCC_LICENSE_FILES = LICENSE.txt +# libbcc.so and libbpf.so +BCC_INSTALL_STAGING = YES + +BCC_DEPENDENCIES = host-bison host-flex host-luajit clang elfutils flex llvm luajit + +# ENABLE_LLVM_SHARED=ON to use llvm.so. +# Force REVISION otherwise bcc will use git describe to generate a version number. +BCC_CONF_OPTS = -DENABLE_LLVM_SHARED=ON \ + -DREVISION=$(BCC_VERSION) \ + -DENABLE_CLANG_JIT=ON \ + -DENABLE_MAN=OFF + +$(eval $(cmake-package))