From patchwork Mon May 6 08:15:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1095710 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="ITtTwPBs"; 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 44yFtk0rpNz9s9y for ; Mon, 6 May 2019 18:16:14 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 27E1E2474E; Mon, 6 May 2019 08:16:10 +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 tYcVjg-2Q1An; Mon, 6 May 2019 08:15:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7844523E65; Mon, 6 May 2019 08:15:57 +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 3B81F1BF868 for ; Mon, 6 May 2019 08:15:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3836C85B8A for ; Mon, 6 May 2019 08:15:55 +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 CTl0VTwYrTrE for ; Mon, 6 May 2019 08:15:54 +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 4CB3A85B95 for ; Mon, 6 May 2019 08:15:54 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id e11so2973552wrs.0 for ; Mon, 06 May 2019 01:15:54 -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=ITtTwPBsJ9Tj6tscEGA+gUB342gowesSXQVebRa9bc+1OewQ1lCyW8F3Nd+vlxV0p5 Edruq8h7aisVmtcjrIwMWuX0XFXvHOacZCeVvjb2TefNuKRJbvuUNr3z1hmsa2E9cwpB OCFGTPVUfjv6X2NmJO2ZgFxBr1NpK9KgWsDEzNZh1ggmlw3PiBifVvSMz1OjSqRWGCdu ubo2wQeBSWXdGdWS1pmfdICnB6PEc74AjtpQtmpQC5hCvapD1y+jObLYamEmxmI6jufb LDqrRnfr4kp/VImpi2/LYtFRu+SWGw+9p8o96QgMfO228xfGRCup1Nxa+nbhKCUPGWSb OOow== 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=sNX4Hi7YauWxJOBCXKS3CM5SwRUkPqsXzrF69am5J2cgOvDRhV4hKlnRvooUev7Cmu +qe32ZqXHmq1xeZdez3yLEp03OUY+2EGOPCdH5McIimer26K1tZoJ4W5Uk4s2zs3Zu04 BaRDF21DzgF6iBQjQ9Ytsqf4CvxxOaAcN2A8DrPQePG1rKTatyx6mpj4pfUjnVWsVP+i kOn4LHGT2bkRMdJhYKY2LPVrFPzIPxv9JFFAzyGy2DOkfFHcuXphbcR6ajEgLj3NOnS7 pP4Nz304tokwoYSXECR3uHtKaZX3hefCuLiWGFvg5zT6GGeIzhBUBUqPOtNX3wLC09oF 0RSA== X-Gm-Message-State: APjAAAUSFMHIYGHPc7egGdNcYtRpNBJNmHYzSFNG5FgZCNxXUFy3DkpZ RtGHNerVAvyhAPTtV0Y6JVpBkOaFJmU= X-Google-Smtp-Source: APXvYqyL00VZ5BwFZBhS4VeZgFgpd5cwU4gDf6X6Z3/HkK/WE/Iwn+vNs/y545cLoz9+WoW+7Ra8iA== X-Received: by 2002:adf:dbcc:: with SMTP id e12mr16469873wrj.134.1557130552821; Mon, 06 May 2019 01:15:52 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id z7sm12205912wme.26.2019.05.06.01.15.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 May 2019 01:15:52 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Mon, 6 May 2019 10:15:42 +0200 Message-Id: <1557130548-6267-2-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v3 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 Mon May 6 08:15:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1095712 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="N+/t/EeH"; 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 44yFtn2x1xz9sB8 for ; Mon, 6 May 2019 18:16:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BCC4F241F9; Mon, 6 May 2019 08:16:15 +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 OS0lJXT3Cwo0; Mon, 6 May 2019 08:16:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 329E523BC0; Mon, 6 May 2019 08:16:00 +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 088C41BF868 for ; Mon, 6 May 2019 08:15:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 044E886D42 for ; Mon, 6 May 2019 08:15:57 +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 GXOsCDNRfbdH for ; Mon, 6 May 2019 08:15:55 +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 hemlock.osuosl.org (Postfix) with ESMTPS id 98A7A86FF9 for ; Mon, 6 May 2019 08:15:55 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id r4so727953wro.10 for ; Mon, 06 May 2019 01:15:55 -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=dBZiw9+yBOejvkboVoPe/7wIWXjri60mDnUfeFQNje4=; b=N+/t/EeHmZJje+bLfOHLbQ5xzwrJMsLyttLAk0HGBzCovjaQPp1bq0JrBmMuyhyBmH ZUpIY+yIic1d/DpcIpVhaTcS34GA+9AyQXWt+i8Ds7FM5qLO/zgvLiZ1x+lKYigos0eY s08s1pqCksFeb+Q793BBSPCxRyYg9aPdrxsQZ1YTjnb3fqWDUCfUfseamlAe2ROtIFfp pdIoTV/NAskZUrhwuhzVs1WIG56TAwFVluEJqjf6kXOY8WjRfOiVVFgjDEoj/tJG0B9t XMEhGAFvLSqRoioeOcvUzchh/yS97YTQkRAMyHaKBe+zANdveM0Q1ocQ1a7V8KwUrCuj /k+A== 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=dBZiw9+yBOejvkboVoPe/7wIWXjri60mDnUfeFQNje4=; b=aN+astgHJph6IOBwpO61wEcC41ruVFhXN0IcKksnAIMXEMaCyKTOhXOfSm4wkckojB tVzQkS/7Be0HWhd8TXhb9jfE80QGY8koo0U6zmjsIf3gkrBsswhPRsHc4dTXyIAqj1Ed tAQ0TJQ/I+qZf2RgPP6d/2e8cCgYKmuuSZfoNocBQqiYQzDKKDPxOZuRldNWaMs5AfeN MEdZ5SiwTrFdPz/Ua/2YoA8SCPmOMvvHsM/vzp00M9XeQY8nq7/W1eNi4FxnfJ04S299 tgC4L7egWeM7IlpKM2bqdzsq1i0qCGflwAx7zoZRUBFsQDXuXHvGeGGFAO5o4HqyXxQ9 brsA== X-Gm-Message-State: APjAAAWFnX67+E8SsSU0mA1n4kyDwj8jn0VyO9P7L0kX/3SqhIlCVS2d XF8MFdooK95ayxyx+3tR8JLHPxEQniE= X-Google-Smtp-Source: APXvYqzqM4le4iq75OZTBveGJyzuxgNw4mQUI3UBinQ+pnHm2y2KODZfCrrccx8MJ9MALeQjSyat8g== X-Received: by 2002:adf:df85:: with SMTP id z5mr10655779wrl.127.1557130553970; Mon, 06 May 2019 01:15:53 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id z7sm12205912wme.26.2019.05.06.01.15.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 May 2019 01:15:53 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Mon, 6 May 2019 10:15:43 +0200 Message-Id: <1557130548-6267-3-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v3 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 95ebfcb..abb6b4e 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 Mon May 6 08:15:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1095713 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="h7DxyzYN"; 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 44yFtr5Qccz9sB8 for ; Mon, 6 May 2019 18:16:20 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 360E28702D; Mon, 6 May 2019 08:16:13 +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 Bl1wBvaQynJ6; Mon, 6 May 2019 08:16:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C530287089; Mon, 6 May 2019 08:16:10 +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 B93F71BF868 for ; Mon, 6 May 2019 08:16:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 87D48248A1 for ; Mon, 6 May 2019 08:16:08 +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 3iaKHRjB2u-i for ; Mon, 6 May 2019 08:15:59 +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 silver.osuosl.org (Postfix) with ESMTPS id B171723C58 for ; Mon, 6 May 2019 08:15:56 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id s15so16001257wra.12 for ; Mon, 06 May 2019 01:15:56 -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=VBhqRrpnq+6wCbxOhkhxRA0a/bJ4RwKcbmRjV7j3V4g=; b=h7DxyzYNn+i2EJtJYbWzWyZ2m+2i7gVlJBwb7MoY8VhRNv/P9nNdz38n9FLVCWxKRv Llb/p1kpQxZPJo6sHnxwX1g8OL9OyV3Vt0eyQ0RJA/lP6nbglC7CE6H1sihVcB60l/Fs mY0WwiWMp8PpmFjymT0f7KHyV8S00KeHc2T54tzqW2ojrtzrlPNk8eaFnzLwNp6g6CjT 0ddoqOqkgPQ8JRwwFoBP7rKht2yrdYGTnbUhq1zn351mpIUh1Q39bwaKdQ1zqmnes1fa uonc+qAW2eZ3JwhDQ6eXgJcuxesIbcdXBll2ftNSiTWqt9q0KVpv2ysVeAxJMy5UqHAO wWDA== 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=VBhqRrpnq+6wCbxOhkhxRA0a/bJ4RwKcbmRjV7j3V4g=; b=lQwBI/jU8P7S1ksjAylCnj3jfK1w8uv1bXttDaxPDR3/HNSt2vN7PHR0DMxLA7KdOp PiZomlz91JbkLw1yYYAumXFzXhsTz3TPCeoRj+UAgnJIF0x85nD2Ao5nkrqTXvoBoaun RWtVOcX+Q78DkLK1GFzz6B7YX41vojeS7g6KaqoBAOmvk0aUyCA88Q4w1xDv3vkfwmiT Mf0BmBF+ZWEunq9zv1v9jXAS+VPDC6vw1c9POiW1te4+4C+BWxqsOfO2mYKFqgheluJl ZqHwuAOszpin2BpWZJb1OH/aBwN59Ha53QoAW7CEaRytPvaWoxig3f3wxxvgnloRuphW Cl7Q== X-Gm-Message-State: APjAAAVCB/MwyAmn/CFGKO1MLK3teg5dbXpot1Zv22D/9O/g24FmmFX8 omqU0al7EfCiRN3iZJGULlW+kTvKDuk= X-Google-Smtp-Source: APXvYqzM32/hSaU+sNpIGY5eLvIs0U91sa3FkS2uI084FGHg+UX9SPCuqhOZ4TIayooHPT2g7kuU+Q== X-Received: by 2002:adf:dc08:: with SMTP id t8mr16155443wri.220.1557130555048; Mon, 06 May 2019 01:15:55 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id z7sm12205912wme.26.2019.05.06.01.15.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 May 2019 01:15:54 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Mon, 6 May 2019 10:15:44 +0200 Message-Id: <1557130548-6267-4-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v3 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 abb6b4e..b7480c0 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 Mon May 6 08:15:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1095711 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="CeLWmLU5"; 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 44yFtm25tyz9s9y for ; Mon, 6 May 2019 18:16:16 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4048C8712D; Mon, 6 May 2019 08:16:11 +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 KK7AvEWRmbfV; Mon, 6 May 2019 08:16:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id EB25386FF9; Mon, 6 May 2019 08:16:09 +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 67BF61BF868 for ; Mon, 6 May 2019 08:16:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5E1E02420F for ; Mon, 6 May 2019 08:16:07 +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 PEdR2zNRqM1y for ; Mon, 6 May 2019 08:16:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by silver.osuosl.org (Postfix) with ESMTPS id B16BA240DF for ; Mon, 6 May 2019 08:15:57 +0000 (UTC) Received: by mail-wr1-f53.google.com with SMTP id o4so16063814wra.3 for ; Mon, 06 May 2019 01:15:57 -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=es+AE22GYtV53ooBzmGRMUP2/1rkecJoBnxdY+TCZcg=; b=CeLWmLU5caT30t55Qc+SkjbxRyor7LcTYSZ+khKfY5p70hI+rSRGSsxBYk3kfb5wNU NAUqSL0e5Jm9GvVXBsAvoTx8yQa72DtNl0eMCC78h5913a22Gt6UdQcvSpP/XqnYSx6Q VFk7b3KE+ijnsOUbq5HRV4Ou2P8cy5wDXWCWDu3PcKbvVcCFGnnfvL2O4dEezMGcgTGY XwbWoJfc0rzNx2KXMfILrJVUph8JD0QDlBoboCM638EELOxnIhhmFIFfACf/JqXqtLAQ F5bUtRChS6HpW2elCCX311X7FxFMJ+5TTjfpt1vX8VBtjK3HPaX1Q3U3iwLpcmxjWlHL dvUw== 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=es+AE22GYtV53ooBzmGRMUP2/1rkecJoBnxdY+TCZcg=; b=V7RKUFPyYDcmFesfQxriVuPgSNPRZcktnUV1DbZDkKFRexBdc32Gfk1Vymsi3dZyz8 0aaXrVg4fdM0AQw4QVQAWYLL+Vl2+pznDxRZvxKBg0I75PCFpWy11x014FeFvivlniLB ZXgYK22VGUdPB/rzbBi/o+EP9olLMAfwqH2BoYebUwfX+NymWH/0lmloWatKG0IOyBPv UclPNIKbUi1PDdcjzUdJ8OEjQLSM/zglAiZHkH94eZhFkNgh6/3xsgjb1aqihTZu25ed WdFnxQCdJIVPArtY2p84ZNa3pW48HJ8NLitaLRCbUmpeJCWYwQeazFcFhaCKwHj7wkCH 85FA== X-Gm-Message-State: APjAAAXtyiCg4QicotVNV1Hs02IZ1wwMTwXGFbDLDXjQN+A/w3QLzNcY q+OGEQ5ZCudoPEdKPQcYhOxiRa4iux0= X-Google-Smtp-Source: APXvYqxE28TcEKIih3Oj/gU5jO/4H0SHDnx2QrJIbxDq2uRDf4WohnOFvE5OGJINzuaKCg996JqFng== X-Received: by 2002:adf:f88f:: with SMTP id u15mr16680697wrp.155.1557130556234; Mon, 06 May 2019 01:15:56 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id z7sm12205912wme.26.2019.05.06.01.15.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 May 2019 01:15:55 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Mon, 6 May 2019 10:15:45 +0200 Message-Id: <1557130548-6267-5-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v3 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 b7480c0..c64589e 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 Mon May 6 08:15:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1095709 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="SbXeSdCb"; 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 44yFtf1FdFz9s9y for ; Mon, 6 May 2019 18:16:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A5E5785A00; Mon, 6 May 2019 08:16:08 +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 mOYJo_QHbRcS; Mon, 6 May 2019 08:16:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 097E4855CB; Mon, 6 May 2019 08:16:08 +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 700581BF868 for ; Mon, 6 May 2019 08:16:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4E81624723 for ; Mon, 6 May 2019 08:16:06 +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 sqP6ZoWIbNMH for ; Mon, 6 May 2019 08:16:01 +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 silver.osuosl.org (Postfix) with ESMTPS id D078B2420F for ; Mon, 6 May 2019 08:15:58 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id f7so5716733wrq.1 for ; Mon, 06 May 2019 01:15:58 -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=SbXeSdCbtW2cHXDzxaYVFg41yZxE9UaYeAgJi0C6o1rkFkKadqvwo4YlC6X3LqVQFk DK5vWaL1vgKDX07LtqLnnOTH0y5DMlIBBdmNmUfBva+vWJSv7AA6ELN2y6s9fb1J4tXf MTImKl869NHxV/AzqiIJ293m+tAW+n7CxEmWL7PSCj5UZt+n5BDFylD5Zy952kXchjZi Kc3ttG3vVSXAEPmK63IWWitZl2PSPXLQqWQoKjGKWMDlfjTGBD4gUiix7N2IXP0KHdy/ +yY5d84ucZhMr7LgVmzzkOCyg4cZPtV6Y0UUJTNb7vmRP2rSifyc//sPperkWsK0RKG3 09vQ== 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=C8GDmCMjUY3t+79cARNKadM1iTK3hEYsPBBSch647jJDp1WnEOwClJ1ihcGhchBmN/ Xtt0WhOEwliY7zOtdY7VpZzrvE9rYS4mPvNdz1PbiztZYfPXtbrf2s9ErxIz6ikQzPrn Mr4JVcHJwkHP/QMGWuQ4f4VnyxsLbuZhHQupSSbcD743av+I28WHGaBybMRlWK3Ul+8O A0uk8mfXgi1MUYtaDDlVBdcTLoNlYl8IHir8TO8qtzhSyPxqFCdF42u4gZVLfJRm9lgI +P33D2zYr96sktVOjBL1TI4peEpE6khAj+w91pkkQ9YEjOhCyPSCorcjsf7l/DL/F2S5 77fA== X-Gm-Message-State: APjAAAWq3dKBaVca+mB3sqDB6pdtfHda0zACrvzwQqvmAGPuMyfhcC9b q5iXZh2brJH///N63vjoox8tyXsdiK4= X-Google-Smtp-Source: APXvYqwvNaP/O6pSZDK76CpJJ1eEC78NUm8oXlJwQuWClfp5vjpk70iFFlm4UtlPcQ+Cw4FPUdtzOw== X-Received: by 2002:adf:f108:: with SMTP id r8mr6435444wro.221.1557130557380; Mon, 06 May 2019 01:15:57 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id z7sm12205912wme.26.2019.05.06.01.15.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 May 2019 01:15:56 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Mon, 6 May 2019 10:15:46 +0200 Message-Id: <1557130548-6267-6-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v3 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 Mon May 6 08:15:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1095708 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="hHz8UfxZ"; 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 44yFtY5zjTz9s9y for ; Mon, 6 May 2019 18:16:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 25FEF855C6; Mon, 6 May 2019 08:16:03 +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 s1KPT1Cq1btO; Mon, 6 May 2019 08:16:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 226D885534; Mon, 6 May 2019 08:16:02 +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 1DFD21BF868 for ; Mon, 6 May 2019 08:16:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 11DCD85B95 for ; Mon, 6 May 2019 08:16:01 +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 JtuBzXkKsOVo for ; Mon, 6 May 2019 08:16: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 whitealder.osuosl.org (Postfix) with ESMTPS id 025F985B8A for ; Mon, 6 May 2019 08:16:00 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id r4so728301wro.10 for ; Mon, 06 May 2019 01:15:59 -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=nLtAGjvtC+pdcK+zPcKlHEmn8KHOuP4F7UV/jHEPZrw=; b=hHz8UfxZgO7Dx2GZBdjQcFNb4SRCgPCUG1kTuM4m0eHJCAH+OKLlY7kuAd6861F/qo PFUQUkBzeaa4CrMWQhDVm17/+/2OckOHHQHNMewMBbLaC9k6X1ZdeaVwanBd/Np1Za9L 0bZyuNhQJcyxNrx5H2cbO/3KCcWycgArmqA+aBGChV1PBmQQiGw9TLPRq2Y3ZIhkkJZv TgoD+JOou8lrRt1xsEnf9QLhPzpzw7aAdW03SYleN7qB9sjMN9oY4R10RZIlc5gSykcn 3omGw4FxUnoM+mKQDRJ34ZZMyIt6zjwOiCIoxaChr0dBu/86OWMFQNyez12E9rXKI8FZ 1T/g== 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=nLtAGjvtC+pdcK+zPcKlHEmn8KHOuP4F7UV/jHEPZrw=; b=X17wFCb64hzDUgyYQ80XQMvkgkJrmojxoQ77A1rjbhZzBnyHe1GImGC9jtdn0K8H8S 5Nnsi4lUQ3H0mWyQXkOVWHPQRwQgJT1dHLA0+tCmz2htnEII7bIMnq7mieJrKcWPwZmw D3rxU35aRaIZTHrDsR9UGp+OPFRIffmQ9MKFyuKT9cBG8WFO3+3El0p7Jo0Z8MoqaDDD N4hnj9GKOzLgGBrYNW4rGES9gos7Mefhuf7u2K+nfFmbRBZ+2h61Y8sL2NU2M204Qadn M9PBNL72Dv5ECzCs1rvgkOL46WozTXxD23zrUQ187lGZ4ehsMrMBYj4RjYvjw8mxa60s fnqg== X-Gm-Message-State: APjAAAWzB4HS7zh4XpBpN+2jCLdXX+/UwzDLmDbIixefcD6wMfoDhqQY 2FnAt39a1/LoQv25Vy+yevULIJx4lXc= X-Google-Smtp-Source: APXvYqxB5jd2qUQaZO2INevbjyvVh2iLBS/+q6xMXuBwjjAzAEKg95WEaIIOxZiGn555Tr7+PB0FZw== X-Received: by 2002:adf:9c87:: with SMTP id d7mr11133031wre.68.1557130558488; Mon, 06 May 2019 01:15:58 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id z7sm12205912wme.26.2019.05.06.01.15.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 May 2019 01:15:58 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Mon, 6 May 2019 10:15:47 +0200 Message-Id: <1557130548-6267-7-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v3 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 corresponding numbers in various architectures that are different from x86_64. Signed-off-by: Jugurtha BELKALEM Reviewed-by: Yegor Yefremov --- Changes v1 => v2: - Correcting typos and adding #runtime comment. - Invoke pytest-runner only when neccessary. Changes v2 => v3: - Add runtime comment for TRAITTYPES package. - removing pytest-runner host dependency. Signed-off-by: Jugurtha BELKALEM --- DEVELOPERS | 1 + package/Config.in | 1 + ...e-pytest-runner-a-conditional-requirement.patch | 49 ++++++++++++++++++++++ package/python-bcc/Config.in | 10 +++++ package/python-bcc/python-bcc.hash | 3 ++ package/python-bcc/python-bcc.mk | 14 +++++++ 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 c64589e..07c82b5 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..023c7dd --- /dev/null +++ b/package/python-bcc/0001-Make-pytest-runner-a-conditional-requirement.patch @@ -0,0 +1,49 @@ +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. + +Patch sent upstream: https://github.com/willsheffler/bcc/pull/2 + +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..dcb06be --- /dev/null +++ b/package/python-bcc/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_PYTHON_BCC + bool "python-bcc" + depends on BR2_PACKAGE_PYTHON3 + select BR2_PACKAGE_AUDIT # runtime + select BR2_PACKAGE_PYTHON_TRAITLETS # runtime + select BR2_PACKAGE_PYTHON_TRAITTYPES # runtime + 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..6b896c9 --- /dev/null +++ b/package/python-bcc/python-bcc.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# 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 + +$(eval $(python-package)) From patchwork Mon May 6 08:15:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1095714 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="OBUvRpNq"; 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 44yFtw2XvWz9sB8 for ; Mon, 6 May 2019 18:16:24 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 12838861A0; Mon, 6 May 2019 08:16:21 +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 6RFeXg5EXkSq; Mon, 6 May 2019 08:16:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id AC63185B95; Mon, 6 May 2019 08:16:18 +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 4A63B1BF868 for ; Mon, 6 May 2019 08:16:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 34A3424763 for ; Mon, 6 May 2019 08:16:17 +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 sXTuCAXCF1VQ for ; Mon, 6 May 2019 08:16:09 +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 silver.osuosl.org (Postfix) with ESMTPS id 5B5C923BE7 for ; Mon, 6 May 2019 08:16:01 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id r7so15998088wrr.13 for ; Mon, 06 May 2019 01:16:01 -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=OBUvRpNq5CnkvHKB/Qn/VGkGzdCSC1mS9a7CPgBoiK8k0niYNiRl8ZxWAUXEEJ/bc7 uwM0jPJu+IO8VMyzImf82U2hV25lC6bDXGdTHWJdZs0VqPixbY+jgyjicpWlOxzSpEKg bhWF3RK6THXM+uNhvwIHKWE5wci3+5mcfte+qhoaugGryU4Z9TaBAiyc9/W3J66ovHDv fxki5KQiVx90B3zXBbiDmV4sR7tOTUxmD5+P9pf+AB8ZhzCQVm35Je7dFX0leoE1bPhu 6dJgRZZD+szZlVYp+7/hQl0WSaxnwGDZtwTfi4Jee3MkleBzg0trwS2/fvjcyzU9uca3 wVzQ== 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=apyFjK0aDJV7oFOy2ZQFglsYcn17McMmU2kSzRupNOwadv2blZlLDedWNOYwDXtcir 7k4w33Ic7Hx953JEAG+sNTR3/k+AVo56+Uss3bhHNVD8WMqok573x/oFuG8UYF+hU/Lt 4rsGPK2sbBSFBaxqPO5zsorg4aa97lXnVLHhJYyw50/jCbSuMDNiFXZtLGBmdtq31DW1 9hLDgRX0frYlWtyWKexqLyBNk4QHVozS8T9QLpPOKwLqTNavECJI5E1ZNHrJmL9URhS0 FAru9O60VZ7kRGiO+u4uUrKmyZKSZER7st0foqVFizF0GGZaWnSKTXJ2joBtOs6HP0ue 23bg== X-Gm-Message-State: APjAAAX1EYafKnpCPvYdLV69P+RANowrOOwIEkcChOoB3qVWefbBYkB7 ccKvyXYxK4Zzw+BOjE3k7Pty0Ll/GFM= X-Google-Smtp-Source: APXvYqxjRdnbfxFDSsAy5m+JU7mYsG2LMFTIvO5mJT+FnbnBP4t70Cl/zuLjf8P3ymZnOYFxIDykiA== X-Received: by 2002:adf:dd12:: with SMTP id a18mr17716958wrm.188.1557130559811; Mon, 06 May 2019 01:15:59 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id z7sm12205912wme.26.2019.05.06.01.15.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 May 2019 01:15:59 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Mon, 6 May 2019 10:15:48 +0200 Message-Id: <1557130548-6267-8-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1557130548-6267-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH v3 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))