From patchwork Sat Mar 11 12:46:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Olivain X-Patchwork-Id: 1755728 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PYjN36dRcz1yWv for ; Sat, 11 Mar 2023 23:46:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 38E6F605A6; Sat, 11 Mar 2023 12:46:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 38E6F605A6 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Uf5ss4ySbrRv; Sat, 11 Mar 2023 12:46:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 93D4B60B74; Sat, 11 Mar 2023 12:46:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 93D4B60B74 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B66921BF3DD for ; Sat, 11 Mar 2023 12:46:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 9D6BD4049F for ; Sat, 11 Mar 2023 12:46:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 9D6BD4049F X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z56iistotPw3 for ; Sat, 11 Mar 2023 12:46:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 6C94640140 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [IPv6:2a01:e0c:1:1599::12]) by smtp2.osuosl.org (Postfix) with ESMTPS id 6C94640140 for ; Sat, 11 Mar 2023 12:46:17 +0000 (UTC) Received: from b52572-12.ea.freescale.net.net (unknown [37.174.13.46]) (Authenticated sender: ju.o@free.fr) by smtp3-g21.free.fr (Postfix) with ESMTPSA id F024013F87C; Sat, 11 Mar 2023 13:46:12 +0100 (CET) From: Julien Olivain To: buildroot@buildroot.org Date: Sat, 11 Mar 2023 13:46:06 +0100 Message-Id: <20230311124607.464110-1-ju.o@free.fr> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1678538774; bh=fygy3ZiN8ldZM0PcKpSGkn26A+z2sKDLuGzlFGk1Ztc=; h=From:To:Cc:Subject:Date:From; b=Lo681pQJf1wK4yvipJFQLqhuFMFlvfsjV8vdn3dIYyhGPluf6kn80TZjlEpWKo0dl XM1Qw70/G3IpBSsz0AAKGaswpCBCUAjezdK1nSgpk+xxOE85cJamNyDPeMtL76XMoN Gwf2ZuVmrNJymAyWTdWq+oOrPFjHpjw6hz42lxOLjDM4KBdEiiraEqDctNUzBRF62q xAMxlRsLD4R91OGWWOcgIt3M+6L8/Qd1OF70cBVUraaHwbGX3A3UBMHB+Ffm0wdekc iJnXYZz0sIbKLTUcgcYYbTJtr6okfnB9UeRk00oJl0C4yDNxtCZH3gykiET5f1yXU8 h6GakwavXjQew== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr header.a=rsa-sha256 header.s=smtp-20201208 header.b=Lo681pQJ Subject: [Buildroot] [PATCH next 1/2] package/lsof: bump to version 4.98.0 X-BeenThere: buildroot@buildroot.org 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: Julien Olivain Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" For change log since 4.96.5, see: - https://github.com/lsof-org/lsof/releases/tag/4.97.0 - https://github.com/lsof-org/lsof/releases/tag/4.98.0 Signed-off-by: Julien Olivain --- Patch tested on branch next at commit b793f3a with commands: make check-package ... 0 warnings generated utils/test-pkg -a -p lsof ... 45 builds, 2 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed --- package/lsof/lsof.hash | 2 +- package/lsof/lsof.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/lsof/lsof.hash b/package/lsof/lsof.hash index 29cf443a24..b6a29b3cea 100644 --- a/package/lsof/lsof.hash +++ b/package/lsof/lsof.hash @@ -1,3 +1,3 @@ # Locally calculated -sha256 e9030af1123ff052ab69e12ef55b8a17dc47ac4bccfba85ee1ca1f31acf29607 lsof-4.96.5.tar.gz +sha256 80308a614508814ac70eb2ae1ed2c4344dcf6076fa60afc7734d6b1a79e62b16 lsof-4.98.0.tar.gz sha256 32a728188b19bf86917659d904ab29d0a294b4506e1c98b8b7f1c70ab4975fe1 dialects/linux/dproto.h diff --git a/package/lsof/lsof.mk b/package/lsof/lsof.mk index fd5887141b..66911dddb9 100644 --- a/package/lsof/lsof.mk +++ b/package/lsof/lsof.mk @@ -4,7 +4,7 @@ # ################################################################################ -LSOF_VERSION = 4.96.5 +LSOF_VERSION = 4.98.0 LSOF_SITE = $(call github,lsof-org,lsof,$(LSOF_VERSION)) LSOF_LICENSE = lsof license # License is repeated in each file, this is a relatively small one. From patchwork Sat Mar 11 12:46:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Olivain X-Patchwork-Id: 1755729 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PYjND5MHyz1yWv for ; Sat, 11 Mar 2023 23:46:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B62E7605A6; Sat, 11 Mar 2023 12:46:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B62E7605A6 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rD_bilHbVkth; Sat, 11 Mar 2023 12:46:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id E5E8360E44; Sat, 11 Mar 2023 12:46:32 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E5E8360E44 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 279B41BF3DD for ; Sat, 11 Mar 2023 12:46:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 0154A60B74 for ; Sat, 11 Mar 2023 12:46:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 0154A60B74 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JkaVC8npkBSu for ; Sat, 11 Mar 2023 12:46:18 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 9775B605A6 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by smtp3.osuosl.org (Postfix) with ESMTPS id 9775B605A6 for ; Sat, 11 Mar 2023 12:46:18 +0000 (UTC) Received: from b52572-12.ea.freescale.net.net (unknown [37.174.13.46]) (Authenticated sender: ju.o@free.fr) by smtp3-g21.free.fr (Postfix) with ESMTPSA id 7646313F8AF; Sat, 11 Mar 2023 13:46:14 +0100 (CET) From: Julien Olivain To: buildroot@buildroot.org Date: Sat, 11 Mar 2023 13:46:07 +0100 Message-Id: <20230311124607.464110-2-ju.o@free.fr> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230311124607.464110-1-ju.o@free.fr> References: <20230311124607.464110-1-ju.o@free.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1678538777; bh=z4G2qbxe+jYxWzu2XvmNP2CDgkTiwuZyt/P4btqTAS8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ou0ghvUIrkH6oBujMjSE1OeOEAqU3BtQGrwRc7TwDpZymk+apF7ECe0m2VKL9rNWQ WQQ8h1UrajbhQCEwqOFA51gBMZNfj/BXxRYHMYcfJVaCuqX0xUxhwhikoijSFebm9A ZudeJhgfzCzppM7WiOj6V77xhikpd3t3IUja0Xe9kuYpmzVjWmNzyLJQeSVbeDz1NE NH0vhztkcy78prGFxjC9FwERJ8cUpXSdgD3YtF/CeNnU4+S/qN/82hfCvRhlQTMKqS su/Rm1+0LLyvWrAMSTF/yJJdZ3bypihlzNgFMImc0WkOAB7akF1bp2dHZb8WgK48P8 lMExR5DAJcB4w== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr header.a=rsa-sha256 header.s=smtp-20201208 header.b=Ou0ghvUI Subject: [Buildroot] [PATCH next 2/2] support/testing/tests/package/test_lsof.py: new runtime test X-BeenThere: buildroot@buildroot.org 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: Julien Olivain Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Julien Olivain --- Patch tested on branch next at commit b793f3a with commands: python3 -m flake8 support/testing/tests/package/test_lsof.py [no-output] support/testing/run-tests \ -d dl -o output_folder \ tests.package.test_lsof ... OK --- DEVELOPERS | 1 + support/testing/tests/package/test_lsof.py | 41 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 support/testing/tests/package/test_lsof.py diff --git a/DEVELOPERS b/DEVELOPERS index d052e59122..7733d5a04e 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1719,6 +1719,7 @@ F: support/testing/tests/package/test_gnupg2.py F: support/testing/tests/package/test_highway.py F: support/testing/tests/package/test_hwloc.py F: support/testing/tests/package/test_libjxl.py +F: support/testing/tests/package/test_lsof.py F: support/testing/tests/package/test_ncdu.py F: support/testing/tests/package/test_octave.py F: support/testing/tests/package/test_ola.py diff --git a/support/testing/tests/package/test_lsof.py b/support/testing/tests/package/test_lsof.py new file mode 100644 index 0000000000..b0478dfbb7 --- /dev/null +++ b/support/testing/tests/package/test_lsof.py @@ -0,0 +1,41 @@ +import os + +import infra.basetest + + +class TestLsof(infra.basetest.BRTest): + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y + BR2_PACKAGE_LSOF=y + BR2_TARGET_ROOTFS_CPIO=y + # BR2_TARGET_ROOTFS_TAR is not set + """ + + def test_run(self): + cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio") + self.emulator.boot(arch="armv5", + kernel="builtin", + options=["-initrd", cpio_file]) + self.emulator.login() + + test_file = "/tmp/this-is-a-test-file" + + # Check the program can execute + self.assertRunOk("lsof -v") + + # Check a normal program invocation + self.assertRunOk("lsof") + + # Check lsof fails if requested file is not opened + _, exit_code = self.emulator.run("lsof {}".format(test_file)) + self.assertNotEqual(exit_code, 0) + + # Open the test file from the shell on descriptor 10 + self.assertRunOk("exec 10> {}".format(test_file)) + + # Check that lsof now show the file + output, exit_code = self.emulator.run("lsof {}".format(test_file)) + self.assertEqual(exit_code, 0) + # output[0] is the lsof header line + self.assertIn(test_file, output[1])