From patchwork Tue Apr 28 11:14:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asaf Kahlon X-Patchwork-Id: 1278398 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.138; helo=whitealder.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=PYw0i7DU; 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 49BJwk119pz9sSG for ; Tue, 28 Apr 2020 21:15:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7901A86F87; Tue, 28 Apr 2020 11:15:46 +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 NHYdsn2ZW+Py; Tue, 28 Apr 2020 11:15:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1900786E5E; Tue, 28 Apr 2020 11:15:44 +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 DE2941BF5E6 for ; Tue, 28 Apr 2020 11:15:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DA6B122008 for ; Tue, 28 Apr 2020 11:15:42 +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 yo9pkZM9dOdR for ; Tue, 28 Apr 2020 11:15:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by silver.osuosl.org (Postfix) with ESMTPS id CE33B20117 for ; Tue, 28 Apr 2020 11:15:41 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id z6so2413662wml.2 for ; Tue, 28 Apr 2020 04:15:41 -0700 (PDT) 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=DQfOvEKdXqccZCtphozbhjidDnPoGyyXkfKGk0dszVc=; b=PYw0i7DUzjykGik7TAXt3RxfBoH5I+1qzoCSBbp5xnH/SmtV9zPlODhmttgv+5Xj3s dPwpdQpAU/3uszpZ8Ipgnkt4kGyOrUFdoxv7gc9XmypbwP3rEWn9FXjtEoSigQaf9rzv KXBBuirF4NEbh2NGtTpEo/ninynx7E7FApyvQI6euPnG+HdcnOORkt1PGLTvQmp3fqD7 iO32A7B31hjE/hOuLFXVuWrJKwX7evWjlYJxygRRrSu/aN91TDZqEOQH3RVH96jNAQ5X gEAnybbnI0qTYqwbCuuP1MQ54VSRC76LzDfWklz779xfQixKGHhOXEW8EgrJcQi45VEA Ti2g== 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=DQfOvEKdXqccZCtphozbhjidDnPoGyyXkfKGk0dszVc=; b=FbPJMgkDrKXFsNGwDRvcvKhuu34hVQ3itHI9PhIedFT0fsThkqAY7fx7yCcTvyb5px 4+mFIaVZrNjor6Kw857vPLqbO2XpO6ZdBlABbwWpgMnwjXdn7BSKcr16PzwoJwUSf+U2 opI6E6KqS6a5m2Lu+rTDMXWtIVrUxCVLWj+qanZNX7c0cVAPExLvtonCe7CMSz7uBEWl oU6T6WRA4K+ER+hJYHYkiOlNanKxg3CSEupTfqJwj1YdoAtWrNsMopyNxQZGunkROie2 2dUxCK55lnfsi2Z2umI518qNHQFUfVwPrnAvN1OEOu1xxMfRbk+l/aQgI/kAkkx9Vp6P C7nQ== X-Gm-Message-State: AGi0PuZBbwgx/Cmq5Dk/GocitDoOQ4HfVuWUddPcOVPL0zkKmpeucrG4 mD4fRFBP7id+G6HDd/0j19Z+1eyp X-Google-Smtp-Source: APiQypJ6zEUJuzBjNB6+I8sZAKg4A1Qk43Ub23th3l42sTSPeMHCNQeqyPTKtN0THbBwIvoFlUc1dQ== X-Received: by 2002:a1c:1b88:: with SMTP id b130mr3992310wmb.75.1588072540024; Tue, 28 Apr 2020 04:15:40 -0700 (PDT) Received: from localhost.localdomain (bzq-84-108-4-25.cablep.bezeqint.net. [84.108.4.25]) by smtp.gmail.com with ESMTPSA id s30sm25301379wrb.67.2020.04.28.04.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2020 04:15:39 -0700 (PDT) From: Asaf Kahlon To: buildroot@buildroot.org Date: Tue, 28 Apr 2020 14:14:51 +0300 Message-Id: <20200428111451.6677-1-asafka7@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/1] package/python-bsdiff4: 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: Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Binary diff and patch using the BSDIFF4-format. License file isn't shipped with the package, so PKG-INFO is used instead. A PR has been submitted upstream in order to add the license when the package is shipped. PR status: https://github.com/ilanschnell/bsdiff4/pull/15 Signed-off-by: Asaf Kahlon --- v1->v2: Add "BSD-Protection" to _LICENSE --- package/Config.in | 1 + package/python-bsdiff4/Config.in | 8 ++++++++ package/python-bsdiff4/python-bsdiff4.hash | 5 +++++ package/python-bsdiff4/python-bsdiff4.mk | 14 ++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 package/python-bsdiff4/Config.in create mode 100644 package/python-bsdiff4/python-bsdiff4.hash create mode 100644 package/python-bsdiff4/python-bsdiff4.mk diff --git a/package/Config.in b/package/Config.in index bf02870ea2..8d857b6bcb 100644 --- a/package/Config.in +++ b/package/Config.in @@ -893,6 +893,7 @@ menu "External python modules" source "package/python-bluezero/Config.in" source "package/python-bottle/Config.in" source "package/python-brotli/Config.in" + source "package/python-bsdiff4/Config.in" source "package/python-bunch/Config.in" source "package/python-cached-property/Config.in" source "package/python-can/Config.in" diff --git a/package/python-bsdiff4/Config.in b/package/python-bsdiff4/Config.in new file mode 100644 index 0000000000..a383cda0f5 --- /dev/null +++ b/package/python-bsdiff4/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_PYTHON_BSDIFF4 + bool "python-bsdiff4" + select BR2_PACKAGE_PYTHON_BZIP2 if BR2_PACKAGE_PYTHON # runtime + select BR2_PACKAGE_PYTHON3_BZIP2 if BR2_PACKAGE_PYTHON3 # runtime + help + binary diff and patch using the BSDIFF4-format. + + https://github.com/ilanschnell/bsdiff4 diff --git a/package/python-bsdiff4/python-bsdiff4.hash b/package/python-bsdiff4/python-bsdiff4.hash new file mode 100644 index 0000000000..6db2535cc1 --- /dev/null +++ b/package/python-bsdiff4/python-bsdiff4.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/bsdiff4/json +md5 59ae574a8bc2aae659ce4c282293202c bsdiff4-1.1.9.tar.gz +sha256 a7c48ec58dc1c4a2b9fb5da05637524d5dbb1643a3df7cdc6ed105636909ff79 bsdiff4-1.1.9.tar.gz +# Locally computed sha256 +sha256 e60be11b30cb7f07210e4c2d64246b49d20a25caf48efea5c13995788a425468 PKG-INFO diff --git a/package/python-bsdiff4/python-bsdiff4.mk b/package/python-bsdiff4/python-bsdiff4.mk new file mode 100644 index 0000000000..b213f10d52 --- /dev/null +++ b/package/python-bsdiff4/python-bsdiff4.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-bsdiff4 +# +################################################################################ + +PYTHON_BSDIFF4_VERSION = 1.1.9 +PYTHON_BSDIFF4_SOURCE = bsdiff4-$(PYTHON_BSDIFF4_VERSION).tar.gz +PYTHON_BSDIFF4_SITE = https://files.pythonhosted.org/packages/39/34/bd2ae6cd4b2a5d3af9173a9d7f6ecd2723ea7b0401ad807a0c7e7b50faa3 +PYTHON_BSDIFF4_LICENSE = BSD-2-Clause, BSD-Protection (core.c) +PYTHON_BSDIFF4_LICENSE_FILES = PKG-INFO +PYTHON_BSDIFF4_SETUP_TYPE = distutils + +$(eval $(python-package))