From patchwork Sun Jul 19 18:11:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asaf Kahlon X-Patchwork-Id: 1331880 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=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=DHq34/rk; 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 4B8tGh3jCjz9sQt for ; Mon, 20 Jul 2020 04:11:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 589F186D63; Sun, 19 Jul 2020 18:11:38 +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 e8MrcxIR6+ex; Sun, 19 Jul 2020 18:11:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id AE27086DA5; Sun, 19 Jul 2020 18:11:37 +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 52E2D1BF95D for ; Sun, 19 Jul 2020 18:11:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4FB9286DA5 for ; Sun, 19 Jul 2020 18:11:36 +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 iRulVG0dPdsV for ; Sun, 19 Jul 2020 18:11:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id 7CCC386D63 for ; Sun, 19 Jul 2020 18:11:35 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id a6so10451942wmm.0 for ; Sun, 19 Jul 2020 11:11:35 -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=DcqB4erH7o2ZT5GRKsrKNN1gT7LC9FFXVfszqi0dQ7o=; b=DHq34/rkettq6j7xg8BWwJu5KESuB9Aehe3XPHLjIdcBrWhOw2mDMigACIVUy0yyvZ v4+0rAvdyTcYbTE4W7qRU3PnDIShnwU4fuSgTTTsFvUnChEquC6z0v7rFiJlm33r7v0I U6uM45YQ+58qUfEFl8LFssIauaYdD97smZjuSocXwLMYZL7cp1MsQBDTo+NoeelC4ycr lyrYruSbVfSPYw6qi/yxxOJHeqor5HYJTFJ7T4wO3nJTQVQzc24zELPPH65cMZ9+IFkZ kTJop4fg1mqSaSacPxOZ41TYQh8YwRa7Zslq4v+aAqLCz/wlAmPR0P2R7peVw4DfitpQ 5yZA== 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=DcqB4erH7o2ZT5GRKsrKNN1gT7LC9FFXVfszqi0dQ7o=; b=drPDKdETz+CPnqzuBKrIXlJAe/XUelDQ9T3AEH+aTuj1lHySaF8qqtes7hVrsVQK9a RXqe7nIVgpvm/t1Z8DvcBblgVUP1JNuH7YUJQka2nnsQFVNTooRgdsRPLtBEWW+E0FuN 5T2SddZx5F/Cf2nrRXJyXXMQJLAwEczftKZjjXIaS0pK7gUdaM7JaC+8JTzTNAR5nQYx XYpi0MvN2nu/cSZKm4eTNgZBxOxu408lj+eGBVnOTwjFeUPDE1fCMT0Timbq4zxVb2pU 5MzeBJSACHMLZ3wfR7zOtsMPyo36uDDqcm48qnu6PZqYMnnQpBxuADePcjaK5GpwqUwH H51w== X-Gm-Message-State: AOAM5339zF/C81IPpnP3C4BwVdgO6XRpsFp8k/402mFIi1SNB67EyzV7 CKze3iUWn4gQJHjrIH/qRgFjSa7Sd0Y= X-Google-Smtp-Source: ABdhPJzyXiX44dmavv5hT2ewPNVEnY/CaTz8+KIYMPgXirGlEFwIoKHD9aFO/F3TxJHYyxr92MV9LA== X-Received: by 2002:a7b:cb98:: with SMTP id m24mr18165452wmi.98.1595182293664; Sun, 19 Jul 2020 11:11:33 -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 y11sm10493943wrs.80.2020.07.19.11.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2020 11:11:33 -0700 (PDT) From: Asaf Kahlon To: buildroot@buildroot.org Date: Sun, 19 Jul 2020 21:11:28 +0300 Message-Id: <20200719181128.78893-1-asafka7@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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. Signed-off-by: Asaf Kahlon --- v2->v3: use a higher version, license is now shipped with the version --- 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 22531d4fb5..cdb4c0d4bb 100644 --- a/package/Config.in +++ b/package/Config.in @@ -895,6 +895,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..e64e817f9c --- /dev/null +++ b/package/python-bsdiff4/python-bsdiff4.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/bsdiff4/json +md5 a0d047e91429ce67a3b0231facf41169 bsdiff4-1.2.0.tar.gz +sha256 3c2f7f5504f41a54d238b54b00b4544d0eb4276179edabf02b9d00415a03cc9d bsdiff4-1.2.0.tar.gz +# Locally computed sha256 +sha256 c6c921c90383f1c43beb53c49a652d28309a410a7c394c729fd8870271451cf0 LICENSE diff --git a/package/python-bsdiff4/python-bsdiff4.mk b/package/python-bsdiff4/python-bsdiff4.mk new file mode 100644 index 0000000000..7bc607b2d6 --- /dev/null +++ b/package/python-bsdiff4/python-bsdiff4.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-bsdiff4 +# +################################################################################ + +PYTHON_BSDIFF4_VERSION = 1.2.0 +PYTHON_BSDIFF4_SOURCE = bsdiff4-$(PYTHON_BSDIFF4_VERSION).tar.gz +PYTHON_BSDIFF4_SITE = https://files.pythonhosted.org/packages/9b/ca/06cd939630ca78125c36489f92b52918980cbcfee2dcc0969411eb5ae8a8 +PYTHON_BSDIFF4_LICENSE = BSD-2-Clause, BSD-Protection (core.c) +PYTHON_BSDIFF4_LICENSE_FILES = LICENSE +PYTHON_BSDIFF4_SETUP_TYPE = distutils + +$(eval $(python-package))