From patchwork Wed Jan 6 19:47:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Klinger X-Patchwork-Id: 1423042 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=it-klinger.de 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 4DB0J304PHz9sVm for ; Thu, 7 Jan 2021 06:47:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 61CC9873D4; Wed, 6 Jan 2021 19:47: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 VXj41aP0231K; Wed, 6 Jan 2021 19:47:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 70826873C2; Wed, 6 Jan 2021 19:47:12 +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 ED6911BF330 for ; Wed, 6 Jan 2021 19:47:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EA5AA873C2 for ; Wed, 6 Jan 2021 19:47:10 +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 tydyw2SQvPIe for ; Wed, 6 Jan 2021 19:47:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by hemlock.osuosl.org (Postfix) with ESMTPS id 5224E873C0 for ; Wed, 6 Jan 2021 19:47:08 +0000 (UTC) Received: from localhost ([31.220.115.241]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mt7x1-1k983V3jk9-00tSb3; Wed, 06 Jan 2021 20:47:04 +0100 Date: Wed, 6 Jan 2021 20:47:04 +0100 From: Andreas Klinger To: buildroot@buildroot.org Message-ID: <20210106194703.GA5083@arbad> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Provags-ID: V03:K1:JKpLluS+In/5WTvz5NdjB7/XYpdVUlfQvQz87MTu2+Ya+AEO5xa wJLc2u1Paf03fE0PItUGtLJ60xDZ2Pj7N7CjyW7FK5O6ntLuU5F3OexWQhCyH7xQ2+pSarw PyQJFl+bIbK+5hE+rAZ5tO0fK1FIQ0AjCHsEmOc0Haa8Q9TO7VgxtzCNW9MOji29O+zt15x QH8WZuBMitGsIQboriFvA== X-UI-Out-Filterresults: notjunk:1;V03:K0:/50+P+2JQJc=:yw4q0v3MvY0rwTuhRthUZp Wdx0fuOuCHjoBtoAMPeAnZIueJAbKRUBLzIQD9d+yZfJaR7BmrWBfFSzeeWfGDqa+HW1QJmxY rrhFQpJDsJsJnARmK8h+WmLwkXykcsQD5ng84cX0lswFufIHegPePTDIg5zlOgtKxAtJxjnR5 Bn+O5z8qlFcoGAjDetjWNN/K4fBANys8b0j62EJj8lB/pAZbRO9BzVR9U24GCf6hCcTUhZ/Ef PJAfmTxF3XSaFOZJc8Z5zW5dDRaRp7r09mCtxLQrjasRZ+icTU9K8XoR5tJP8VlC0fp1faHrB CV0v51vP8ueJCnKpeY/wp7aPXZti5Gpsi1LslfxcLPirOUEf6y+QSPSbIxyQCa0BhmN7sScB2 tR+AktrF9cVDGOnXve2BqTZ7ra+knLig59fG+OBYYXBF55WSLTeUQ8H5PKW5m Subject: [Buildroot] [PATCH v2] package/ply: add 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: ak@it-klinger.de, tobias@waldekranz.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" ply is a light-weight dynamic tracer for Linux. By means of using the BPF it can attach probes to the linux kernel (e. g. kprobes). It's a small alternative to LLVM based tracers for embedded systems. Project page: https://github.com/wkz/ply/releases Documentation can be found here: https://wkz.github.io/ply/ Tested with beaglebone_defconfig (uClibc-ng as well as glibc) Signed-off-by: Andreas Klinger --- Changes in v2: - project and download site (suggested by Tobias) - configure.ac uses a fixed version string because of annoying messages ("fatal: not a git repository ...") DEVELOPERS | 3 ++ package/Config.in | 1 + ...ure.ac-fix-error-with-version-string.patch | 29 +++++++++++++++++++ ...02-printxf.h-add-stdarg.h-in-include.patch | 27 +++++++++++++++++ package/ply/Config.in | 16 ++++++++++ package/ply/ply.hash | 4 +++ package/ply/ply.mk | 15 ++++++++++ 7 files changed, 95 insertions(+) create mode 100644 package/ply/0001-configure.ac-fix-error-with-version-string.patch create mode 100644 package/ply/0002-printxf.h-add-stdarg.h-in-include.patch create mode 100644 package/ply/Config.in create mode 100644 package/ply/ply.hash create mode 100644 package/ply/ply.mk diff --git a/DEVELOPERS b/DEVELOPERS index ddab7073b8..18e3c2ced7 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -131,6 +131,9 @@ F: package/openal/ F: package/p7zip/ F: package/wine/ +N: Andreas Klinger +F: package/ply/ + N: Andrey Smirnov F: package/python-backports-shutil-get-terminal-size/ F: package/python-decorator/ diff --git a/package/Config.in b/package/Config.in index 219dba1c9d..2ea61a3551 100644 --- a/package/Config.in +++ b/package/Config.in @@ -123,6 +123,7 @@ menu "Debugging, profiling and benchmark" source "package/pax-utils/Config.in" source "package/pcm-tools/Config.in" source "package/piglit/Config.in" + source "package/ply/Config.in" source "package/ptm2human/Config.in" source "package/pv/Config.in" source "package/racehound/Config.in" diff --git a/package/ply/0001-configure.ac-fix-error-with-version-string.patch b/package/ply/0001-configure.ac-fix-error-with-version-string.patch new file mode 100644 index 0000000000..7532b3be29 --- /dev/null +++ b/package/ply/0001-configure.ac-fix-error-with-version-string.patch @@ -0,0 +1,29 @@ +From 684bae6043fa2242a5c6551c3f260c9db0cf7dc8 Mon Sep 17 00:00:00 2001 +From: Andreas Klinger +Date: Mon, 4 Jan 2021 08:40:50 +0100 +Subject: [PATCH 1/2] configure.ac: fix error with version string + +When autoreconfiguring there's an error: "configure.ac:6: error: AC_INIT +should be called with package and version arguments". + +Put version string in square brackets to satisfy autoconfigure. + +Signed-off-by: Andreas Klinger +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 65387d6..7a0054e 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1,5 +1,5 @@ + AC_PREREQ(2.61) +-AC_INIT(ply, m4_esyscmd_s(git describe --always --dirty), ++AC_INIT(ply, [2.1.1], + https://github.com/wkz/ply/issues) + + AC_GNU_SOURCE +-- +2.20.1 + diff --git a/package/ply/0002-printxf.h-add-stdarg.h-in-include.patch b/package/ply/0002-printxf.h-add-stdarg.h-in-include.patch new file mode 100644 index 0000000000..19233659fc --- /dev/null +++ b/package/ply/0002-printxf.h-add-stdarg.h-in-include.patch @@ -0,0 +1,27 @@ +From 3fb3cb779c535ec28cbba80573bbea42435108c0 Mon Sep 17 00:00:00 2001 +From: Andreas Klinger +Date: Mon, 4 Jan 2021 20:48:41 +0100 +Subject: [PATCH 2/2] printxf.h: add stdarg.h in include + +Include of is needed for va_list. + +Signed-off-by: Andreas Klinger +--- + include/ply/printxf.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/ply/printxf.h b/include/ply/printxf.h +index a59f0d2..e985936 100644 +--- a/include/ply/printxf.h ++++ b/include/ply/printxf.h +@@ -8,6 +8,7 @@ + #define _PRINTXF_H + + #include ++#include + + struct printxf; + +-- +2.20.1 + diff --git a/package/ply/Config.in b/package/ply/Config.in new file mode 100644 index 0000000000..7b88a397e8 --- /dev/null +++ b/package/ply/Config.in @@ -0,0 +1,16 @@ +config BR2_PACKAGE_PLY + bool "ply" + help + ply is a light-weight dynamic tracer for Linux. By means of using + the BPF it can attach probes to the linux kernel (e. g. kprobes). + + It's a small alternative to LLVM based tracers for embedded + systems. + + When using debugfs needs to be mounted on /sys/kernel/debug. + + Project page: + https://github.com/wkz/ply + + Documentation can be found here: + https://wkz.github.io/ply/ diff --git a/package/ply/ply.hash b/package/ply/ply.hash new file mode 100644 index 0000000000..0c8de6f8e8 --- /dev/null +++ b/package/ply/ply.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 cecf0913c65027750ac3272e936110c9f843435938f9ca2edbc34e99ba6c00e2 ply-2.1.1.tar.gz +sha256 0e7bf51b014d4ad5be999b8b35eeefb8c99fe63454685b52a5c0c728290b1570 0001-configure.ac-fix-error-with-version-string.patch +sha256 b445002ea0869a667e1195aad1b118d13eb3396adf10b85b80037669a59c6657 0002-printxf.h-add-stdarg.h-in-include.patch diff --git a/package/ply/ply.mk b/package/ply/ply.mk new file mode 100644 index 0000000000..04fee3e4a8 --- /dev/null +++ b/package/ply/ply.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# ply +# +################################################################################ + +PLY_VERSION = 2.1.1 +PLY_SITE = $(call github,wkz,ply,$(PLY_VERSION)) +PLY_AUTORECONF = YES + +PLY_LICENSE = GPL-2.0 +PLY_LICENSE_FILES = COPYING +PLY_INSTALL_STAGING = YES + +$(eval $(autotools-package))