* [Buildroot] [PATCH 1/1] package/zbar: bump to version 0.23.93
@ 2024-01-09 19:07 James Hilliard
2024-01-13 21:22 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2024-01-09 19:07 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Volkov Viacheslav
Drop patch which is now upstream.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
...ython-enum-fix-build-for-Python-3.11.patch | 62 -------------------
package/zbar/zbar.hash | 2 +-
package/zbar/zbar.mk | 2 +-
3 files changed, 2 insertions(+), 64 deletions(-)
delete mode 100644 package/zbar/0001-python-enum-fix-build-for-Python-3.11.patch
diff --git a/package/zbar/0001-python-enum-fix-build-for-Python-3.11.patch b/package/zbar/0001-python-enum-fix-build-for-Python-3.11.patch
deleted file mode 100644
index f525b62184..0000000000
--- a/package/zbar/0001-python-enum-fix-build-for-Python-3.11.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From fbaec4b4e6fe735efe6916fe5b92805a0d96bf8a Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
- <congdanhqx@gmail.com>
-Date: Wed, 21 Sep 2022 10:32:11 +0700
-Subject: [PATCH] python: enum: fix build for Python 3.11
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Python 3.9 introduced Py_SET_SIZE function to set size instead of
-relying on Py_SIZE() as a macro [3.9].
-
-Python 3.10 started to encourage to use Py_SET_SIZE instead of
-assigning into return value of Py_SIZE [3.10].
-
-Python 3.11 flips the switch, turn Py_SIZE into a function [3.11],
-thus Py_SIZE(obj) will be a rvalue. We need to use Py_SET_SIZE
-to set size now.
-
-[3.9]: https://docs.python.org/3.9/c-api/structures.html#c.Py_SET_SIZE
-[3.10]: https://docs.python.org/3.10/c-api/structures.html#c.Py_SIZE
-[3.11]: https://docs.python.org/3.11/c-api/structures.html#c.Py_SIZE
-
-Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
-Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
-[Upstream status:
-https://github.com/mchehab/zbar/pull/231]
----
- python/enum.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/python/enum.c b/python/enum.c
-index dfe1b1e..946344f 100644
---- a/python/enum.c
-+++ b/python/enum.c
-@@ -52,7 +52,11 @@ enumitem_new (PyTypeObject *type,
-
- /* we assume the "fast path" for a single-digit ints (see longobject.c) */
- /* this also holds if we get a small_int preallocated long */
-+#if PY_VERSION_HEX >= 0x03090000
-+ Py_SET_SIZE(&self->val, Py_SIZE(longval));
-+#else
- Py_SIZE(&self->val) = Py_SIZE(longval);
-+#endif
- self->val.ob_digit[0] = longval->ob_digit[0];
- Py_DECREF(longval);
- #else
-@@ -143,7 +147,11 @@ zbarEnumItem_New (PyObject *byname,
-
- /* we assume the "fast path" for a single-digit ints (see longobject.c) */
- /* this also holds if we get a small_int preallocated long */
-+#if PY_VERSION_HEX >= 0x03090000
-+ Py_SET_SIZE(&self->val, Py_SIZE(longval));
-+#else
- Py_SIZE(&self->val) = Py_SIZE(longval);
-+#endif
- self->val.ob_digit[0] = longval->ob_digit[0];
- Py_DECREF(longval);
-
---
-2.34.1
-
diff --git a/package/zbar/zbar.hash b/package/zbar/zbar.hash
index a4303266db..0136b1d1f3 100644
--- a/package/zbar/zbar.hash
+++ b/package/zbar/zbar.hash
@@ -1,3 +1,3 @@
# Locally computed:
-sha256 9152c8fb302b3891e1cb9cc719883d2f4ccd2483e3430783a2cf2d93bd5901ad zbar-0.23.90.tar.bz2
+sha256 83be8f85fc7c288fd91f98d52fc55db7eedbddcf10a83d9221d7034636683fa0 zbar-0.23.93.tar.bz2
sha256 44260f9252c7fe38ba8dfb645330504f4a375e3a5e9dd7d5d6b9f04adb4952f1 LICENSE.md
diff --git a/package/zbar/zbar.mk b/package/zbar/zbar.mk
index 2c933929cf..1a1e4eb24b 100644
--- a/package/zbar/zbar.mk
+++ b/package/zbar/zbar.mk
@@ -4,7 +4,7 @@
#
################################################################################
-ZBAR_VERSION = 0.23.90
+ZBAR_VERSION = 0.23.93
ZBAR_SOURCE = zbar-$(ZBAR_VERSION).tar.bz2
ZBAR_SITE = https://www.linuxtv.org/downloads/zbar
ZBAR_LICENSE = LGPL-2.1+
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-13 21:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-09 19:07 [Buildroot] [PATCH 1/1] package/zbar: bump to version 0.23.93 James Hilliard
2024-01-13 21:22 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox