From patchwork Mon Feb 17 14:23:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Titouan Christophe X-Patchwork-Id: 1239263 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=railnova.eu Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=railnova-eu.20150623.gappssmtp.com header.i=@railnova-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=v6gVjyff; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48LmRy5WVtz9sRN for ; Tue, 18 Feb 2020 01:23:26 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 732A820451; Mon, 17 Feb 2020 14:23:23 +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 JONqJInno6RR; Mon, 17 Feb 2020 14:23:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AC6B620410; Mon, 17 Feb 2020 14:23:20 +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 F0E091BF33B for ; Mon, 17 Feb 2020 14:23:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EB43F85F9B for ; Mon, 17 Feb 2020 14:23:18 +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 L6QVzv-xUejU for ; Mon, 17 Feb 2020 14:23:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id EEE6C85D57 for ; Mon, 17 Feb 2020 14:23:16 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id g1so17318810wmh.4 for ; Mon, 17 Feb 2020 06:23:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=railnova-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WGxJaBsxSTB2ps2SkgIch9CTYug3yH82kv+R1ygVhlU=; b=v6gVjyffAsWlB1X7RXhD45M9N0wopJtCVdcgXXikQ76wxKLmaOfNBKBY6Kqz7isZ7p +i7g8R+jj8Arau8vueFUyD7RZxntndNAzan24WhZvl/P8IVAUQK3E9Ans9rANUN1UAAR GeC74uT/krX2rP+lQr042OsUGQ3DDTBqpJnXQncH3q9XTWTuFIZZ4XBgTy8HNNnltf4d wWfUuf2jj5H08txrStUY7l+Rr8Q7PyWndoAUn1BF/CCYZtNEKzRum6pA+kJ7jP1VCWnU BqGw2Q/rhbxUueSW61/tMVW5Owp9PHaQfqhX50LNPfOJy1im+gjxMXPZQcVPg9GwwT6V KyGg== 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=WGxJaBsxSTB2ps2SkgIch9CTYug3yH82kv+R1ygVhlU=; b=F2IFCvTZUt9RBq1CKE0Hq2lTVZqNzmjQ9iNNIO5zr3XDwMg53vvuH9qvuhCJvNlaS1 stx+QRJh59uKjIeUgIo3zkodQyB16OG34RU72z7Fli5FC+57fVi+EBFiTqnPmGxYEe9r Q36MR8JTgFML1eVDpcYR0U5JX4Rs8HTDJXjoisVvp3i73BJI7kb5YEcTVpqUGK0veQBY 941u1Q5TW7zl1itytybXfAvxz4wUYPQm7oQP4DpgaYK3kJfQizzlk17sb1o0YjTpessW 1Eht734caoKfs1/eaMfgTZSxFQ6EyYA4EPCPa2QTAMDR8O5ABc55HfFUrjPAaZtQC4NG 8l5Q== X-Gm-Message-State: APjAAAXzdeuIR+doI1EAYH7G/ofIUfus8Dtx5kivdAPMJzzDExbD7m5B pVil1BxNJHVwpA9Cf1+aGXAixJ500Qi6zQ== X-Google-Smtp-Source: APXvYqxvPMNE4naaJdrFz8t90ZbdWz07MNaWruTJvrbAd76fS7ehKw5CNIfLABlFj6/mI1YM5NXgHQ== X-Received: by 2002:a1c:1f51:: with SMTP id f78mr22337919wmf.60.1581949394431; Mon, 17 Feb 2020 06:23:14 -0800 (PST) Received: from localhost.localdomain ([188.66.12.154]) by smtp.gmail.com with ESMTPSA id w13sm1190969wru.38.2020.02.17.06.23.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 06:23:13 -0800 (PST) From: Titouan Christophe To: buildroot@buildroot.org Date: Mon, 17 Feb 2020 15:23:07 +0100 Message-Id: <20200217142307.53693-1-titouan.christophe@railnova.eu> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/{avro-c, python-avro}: bump to version 1.9.2 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 , Titouan Christophe Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" - Drop patch for avro-c that was applied upstream - Fix inconsistency in PYTHON_AVRO_SITE - Adopt new spacing convention in .hash files - Add upstream patch for python-avro - Add patch to remove installation-time linting in python-avro Signed-off-by: Titouan Christophe --- ...-C-to-be-built-on-musl-based-systems.patch | 45 ------------------ package/avro-c/avro-c.hash | 6 +-- package/avro-c/avro-c.mk | 2 +- .../0001-fix-pycodestyle-regression.patch | 28 +++++++++++ ...all-time-linting-and-imports-sorting.patch | 46 +++++++++++++++++++ package/python-avro/python-avro.hash | 6 +-- package/python-avro/python-avro.mk | 2 +- 7 files changed, 82 insertions(+), 53 deletions(-) delete mode 100644 package/avro-c/0001-Allow-avro-C-to-be-built-on-musl-based-systems.patch create mode 100644 package/python-avro/0001-fix-pycodestyle-regression.patch create mode 100644 package/python-avro/0002-drop-install-time-linting-and-imports-sorting.patch diff --git a/package/avro-c/0001-Allow-avro-C-to-be-built-on-musl-based-systems.patch b/package/avro-c/0001-Allow-avro-C-to-be-built-on-musl-based-systems.patch deleted file mode 100644 index bfa7e8a60e..0000000000 --- a/package/avro-c/0001-Allow-avro-C-to-be-built-on-musl-based-systems.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 9b39a985bcd6cd34f0820f3680f145d46c0e56bd Mon Sep 17 00:00:00 2001 -From: Titouan Christophe -Date: Sun, 8 Dec 2019 01:55:59 +0100 -Subject: [PATCH] Allow avro C to be built on musl based systems. -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -The type `ssize_t` is defined in sys/types.h, and nowhere else -in the musl standard C library, so it should be included for the -compilation to succeed. - -This fixes several errors like: - - In file included from src/generic.c:29:0: - src/generic.c: In function ‘avro_generic_value_new’: - src/avro_generic_internal.h:63:39: - error: ‘ssize_t’ undeclared (first use in this function); - did you mean ‘size_t’? - -Signed-off-by: Titouan Christophe -[yann.morin.1998@free.fr: - - backported from upstream 9b39a98, adapted to the release tarball -] -Signed-off-by: Yann E. MORIN ---- - src/avro_generic_internal.h | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/src/avro_generic_internal.h b/src/avro_generic_internal.h -index 709403c0..9843ed65 100644 ---- a/src/avro_generic_internal.h -+++ b/src/avro_generic_internal.h -@@ -24,6 +24,8 @@ extern "C" { - #define CLOSE_EXTERN - #endif - -+#include -+ - #include "avro/generic.h" - #include "avro/schema.h" - #include "avro/value.h" --- -2.20.1 - diff --git a/package/avro-c/avro-c.hash b/package/avro-c/avro-c.hash index da74f3c052..fdddf0bd80 100644 --- a/package/avro-c/avro-c.hash +++ b/package/avro-c/avro-c.hash @@ -1,5 +1,5 @@ -# From https://www-eu.apache.org/dist/avro/avro-1.9.1/c/avro-c-1.9.1.tar.gz.sha512 -sha512 68b1f44f870c9b6f0b2380da9e34d91148ff4398cb300f4bdd4e3e1ad00820acd9084b73232b00d4cd4935fb992b41dc65afdafcbea14a3d87259608688df904 avro-c-1.9.1.tar.gz +# From https://www-eu.apache.org/dist/avro/avro-1.9.2/c/avro-c-1.9.2.tar.gz.sha512 +sha512 1bc4bb22c88b70235e8e0280dbb7aeee7aa3f6cb7ff78a1aa5a7a6a1aca5522e8cfc89064096eace1c07a50e98f2397abd3620de1a29f9e5103b6f4c84316927 avro-c-1.9.2.tar.gz # License files -sha256 d62488d6ba17132e92c23c03c80bfedc848267f96ab36489fec860f76cf6819a LICENSE +sha256 d62488d6ba17132e92c23c03c80bfedc848267f96ab36489fec860f76cf6819a LICENSE diff --git a/package/avro-c/avro-c.mk b/package/avro-c/avro-c.mk index a1b1931bf0..5cdbe362d8 100644 --- a/package/avro-c/avro-c.mk +++ b/package/avro-c/avro-c.mk @@ -4,7 +4,7 @@ # ################################################################################ -AVRO_C_VERSION = 1.9.1 +AVRO_C_VERSION = 1.9.2 AVRO_C_SITE = https://www-eu.apache.org/dist/avro/avro-$(AVRO_C_VERSION)/c AVRO_C_LICENSE = Apache-2.0 AVRO_C_LICENSE_FILES = LICENSE diff --git a/package/python-avro/0001-fix-pycodestyle-regression.patch b/package/python-avro/0001-fix-pycodestyle-regression.patch new file mode 100644 index 0000000000..63cb5da294 --- /dev/null +++ b/package/python-avro/0001-fix-pycodestyle-regression.patch @@ -0,0 +1,28 @@ +From a66459dd654489bf2c17e2828d5c314a4048be70 Mon Sep 17 00:00:00 2001 +From: Ryan Skraba +Date: Thu, 13 Feb 2020 09:57:02 +0100 +Subject: [PATCH] AVRO-2737: Fix pycodestyle regression. + +An erroneous import was added in the Avro 1.9.2 Python3 package. +The issue has been fixed and released on pypi as version 1.9.2.1, but has +not been published on the Apache download website, hence this patch. + +[Titouan: add detailed commit message] +Signed-off-by: Titouan Christophe +--- + setup.py | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 20dd4e240..f6297bb1b 100755 +--- a/setup.py ++++ b/setup.py +@@ -38,8 +38,6 @@ + + import setuptools + +-import pycodestyle +- + _HERE = os.path.dirname(os.path.abspath(__file__)) + _AVRO_DIR = os.path.join(_HERE, 'avro') + _VERSION_FILE_NAME = 'VERSION.txt' diff --git a/package/python-avro/0002-drop-install-time-linting-and-imports-sorting.patch b/package/python-avro/0002-drop-install-time-linting-and-imports-sorting.patch new file mode 100644 index 0000000000..41231e923d --- /dev/null +++ b/package/python-avro/0002-drop-install-time-linting-and-imports-sorting.patch @@ -0,0 +1,46 @@ +From 3446a4af8474cd863efddeae7f3e5dd3f9b8e25e Mon Sep 17 00:00:00 2001 +From: Titouan Christophe +Date: Mon, 17 Feb 2020 15:12:13 +0100 +Subject: [PATCH] drop install time linting and imports sorting + +Since the 1.9.2 release, the setup script is also performing code linting +tasks, which require additional python libraries. + +These linting tasks are not needed anyway, since they are intended to prepare +the code for distribution, but the Buildroot package is already using a +distributed version. We therefore simply remove them. + +Signed-off-by: Titouan Christophe +--- + setup.cfg | 2 -- + setup.py | 1 - + 2 files changed, 3 deletions(-) + +diff --git a/setup.cfg b/setup.cfg +index 7b5de18..d46a36e 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -25,8 +25,6 @@ package_dir = + include_package_data = true + packages = avro + setup_requires = +- isort +- pycodestyle + install_requires = + zip_safe = true + scripts = +diff --git a/setup.py b/setup.py +index f6297bb..91d3287 100755 +--- a/setup.py ++++ b/setup.py +@@ -164,7 +164,6 @@ def main(): + setuptools.setup(cmdclass={ + "clean": CleanCommand, + "generate_interop_data": GenerateInteropDataCommand, +- "lint": LintCommand, + }) + + +-- +2.24.1 + diff --git a/package/python-avro/python-avro.hash b/package/python-avro/python-avro.hash index f63b37ee0a..fbc466a94f 100644 --- a/package/python-avro/python-avro.hash +++ b/package/python-avro/python-avro.hash @@ -1,5 +1,5 @@ -# From https://www-eu.apache.org/dist/avro/avro-1.9.1/py3/avro-python3-1.9.1.tar.gz.sha512 -sha512 771ce6e5ca6315f5b9108cb4f5dd9488575cc3433ffdd744f96ce7989763728259c89475319fd9c411ed6b65c996b762548c50a697eb1fba9ab024112ca17daa avro-python3-1.9.1.tar.gz +# From https://www-eu.apache.org/dist/avro/avro-1.9.2/py3/avro-python3-1.9.2.tar.gz.sha512 +sha512 f981fd72bc64eb71e6c132c551700e89a8ebdd6cd9d7e6fa7559831cee69749fc255a49ee0859afd106e0d913c36327b27ca4c7b36efbf740515881b92076cb6 avro-python3-1.9.2.tar.gz # License files -sha256 c79a7fea0e3cac04cd43f20e7b648e5a0ff8fa5344e644b0ee09ca1162b62747 avro/LICENSE +sha256 c79a7fea0e3cac04cd43f20e7b648e5a0ff8fa5344e644b0ee09ca1162b62747 avro/LICENSE diff --git a/package/python-avro/python-avro.mk b/package/python-avro/python-avro.mk index 3f9140e946..dd6008b1ba 100644 --- a/package/python-avro/python-avro.mk +++ b/package/python-avro/python-avro.mk @@ -5,7 +5,7 @@ ################################################################################ PYTHON_AVRO_VERSION = $(AVRO_C_VERSION) -PYTHON_AVRO_SITE = https://www-eu.apache.org/dist/avro/avro-1.9.1/py3 +PYTHON_AVRO_SITE = https://www-eu.apache.org/dist/avro/avro-$(PYTHON_AVRO_VERSION)/py3 PYTHON_AVRO_SOURCE = avro-python3-$(PYTHON_AVRO_VERSION).tar.gz PYTHON_AVRO_LICENSE = Apache-2.0 PYTHON_AVRO_LICENSE_FILES = avro/LICENSE