From patchwork Sat Feb 22 08:57:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1242456 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=mtOzlkIU; 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 48PjGk6V9Sz9sPk for ; Sat, 22 Feb 2020 20:10:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id EDD0F860AD; Sat, 22 Feb 2020 09:10:33 +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 p_5KzvggjJO6; Sat, 22 Feb 2020 09:10:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 45F78855A1; Sat, 22 Feb 2020 09:10:33 +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 773A01BF5D7 for ; Sat, 22 Feb 2020 09:10:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 723CE86DD6 for ; Sat, 22 Feb 2020 09:10: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 gH+vkMHrR7iZ for ; Sat, 22 Feb 2020 09:10:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id B06FF86DBD for ; Sat, 22 Feb 2020 09:10:31 +0000 (UTC) Received: by mail-wr1-f52.google.com with SMTP id n10so4701354wrm.1 for ; Sat, 22 Feb 2020 01:10:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M+TlcrUrbM+p0gPxZBBR5KmpWu4+sRTsUI6T7jd+m3Y=; b=mtOzlkIUvphN54lKArQMqjBWY+drv+ykS2+TB3y3IB+jzqoOb7fb9lK1hIQ5qQ/4+c iT+0uHfKd2jDvTijuCj4DNverA044WNbjwvn4W8hjDPvskhVKDLUhGj1jHMDhbsZn6cn if9rN0uebktBBggmYXOcVsbXu9I0xINxRLmjjaSGq125YdnAHeWrlCx5qkKgGqhPUdAN S+OToWWi1ksEFPJL/lSSDhmdZGEGvE3pccAeLpHQX3x1wqoZP36Kv/XQfHCNyGC+RkS3 e4Rc8J6WlO0L0k3OAG1NqjHvG0Ive35+e3EFwnIsPmlLwt4SvVs5UIKjvchm2Cp9QUCs FRuA== 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:mime-version :content-transfer-encoding; bh=M+TlcrUrbM+p0gPxZBBR5KmpWu4+sRTsUI6T7jd+m3Y=; b=M0gw7O5J+l5yOctvqiznXSGreYJmU7nocAhAPjJwbyA4ZysMsEDCGAVcT/oCGaCIlw +IcjjhZo2CUi3B1w+mE1FswG1gw4V67ui0JS5BHCgf4S7v40BA+OLi05nxyhWj6p4wZ6 wv9XcrMLvg8ainlhTUAjOVRc+IjDe2jSYM9yMg6uLY+lfrzFFrJqTv8rsYn+dmLRMY+x +IiWOY7HdijpKq972zyQ4A5f4ZpMoVYKdcKT04FUjb0UXaG9dUFte85moYJcSwb2MeZh KJDw6L7yxbNeHOd18uSuzxo4fzi6a/HnOO2shLMbwtMCtupt5mgOqdNmd6UQajtX0Rkp 6vkA== X-Gm-Message-State: APjAAAVysDsK+JRKPVv4s83YXiQ6uKz/dtGR9ePxggohq/IHWjc+q6u9 6vw8fYVTrXgtCUZziTpWu/ZRPU/q X-Google-Smtp-Source: APXvYqynJUSa9NEh6nqVP+2O6WdPEF3ijpAXWSLqyWNM6Sady0FC1Kz0LYTwCNo/MPJPNV8S2lndQg== X-Received: by 2002:adf:db48:: with SMTP id f8mr50729120wrj.146.1582362629651; Sat, 22 Feb 2020 01:10:29 -0800 (PST) Received: from t450s.fritz.box (ip5f589959.dynamic.kabel-deutschland.de. [95.88.153.89]) by smtp.gmail.com with ESMTPSA id l6sm603970wrb.75.2020.02.22.01.10.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Feb 2020 01:10:28 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Sat, 22 Feb 2020 09:57:04 +0100 Message-Id: <20200222085715.23769-1-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 00/12] pkg-stats json output improvements 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: Heiko Thiery , Thomas Petazzoni , Titouan Christophe Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patchset adds several improvements for the json output of the pkg-stats script. - add developers information to the packages - add supported defconfigs to json - add license information to json - add more generic status field to the packages for easier post processing --- v2 -> v3: - keep variable latest_release but change format - add check for license file hashes - introduce a na status for the checks - add a list of all possible checks to the json output - add the cve check status v1 -> v2: - cleanup and recreation of patches - remove pkg name from dumping to json - use patch_files instead of combine count and files in dict - include getdevelopers.py to reuse Developers class --- Heiko Thiery (12): support/scripts/pkg-stats: store latest version in a dict support/scripts/pkg-stats: store patch files for the package support/scripts/pkg-stats: set developers info support/scripts/pkg-stats: store licences of package support/scripts/pkg-stats: add package status support/scripts/pkg-stats: add package count to stats support/scripts/pkg-stats: store pkg dir path support/scripts/pkg-stats: add defconfig support support/scripts/pkg-stats: add support for license hash check support/scripts/pkg-stats: set status to 'na' for virtual packages support/scripts/pkg-stats: initialize all package status checks support/scripts/pkg-stats: add status for cve check support/scripts/pkg-stats | 272 +++++++++++++++++++++++++++++--------- 1 file changed, 212 insertions(+), 60 deletions(-)