zbar: rebuild for Python 3.12

This commit is contained in:
Andrew J. Hesford 2023-09-23 21:02:02 -04:00
parent c9833acbbb
commit 04b4a1df3a
2 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,20 @@
--- ./python/enum.c.orig 2023-09-29 09:38:04.452239909 -0400
+++ ./python/enum.c 2023-09-29 09:38:26.194365475 -0400
@@ -57,7 +57,7 @@
#else
Py_SIZE(&self->val) = Py_SIZE(longval);
#endif
- self->val.ob_digit[0] = longval->ob_digit[0];
+ self->val.long_value.ob_digit[0] = longval->long_value.ob_digit[0];
Py_DECREF(longval);
#else
self->val.ob_ival = val;
@@ -152,7 +152,7 @@
#else
Py_SIZE(&self->val) = Py_SIZE(longval);
#endif
- self->val.ob_digit[0] = longval->ob_digit[0];
+ self->val.long_value.ob_digit[0] = longval->long_value.ob_digit[0];
Py_DECREF(longval);
self->name = PyUnicode_FromString(name);

View File

@ -1,11 +1,11 @@
# Template file for 'zbar'
pkgname=zbar
version=0.23.1
revision=6
revision=7
build_style=gnu-configure
build_helper=gir
configure_args="$(vopt_with qt) --with-gir --with-python=python3"
hostmakedepends="pkg-config python3 glib-devel
hostmakedepends="pkg-config python3-setuptools glib-devel
$(vopt_if qt 'qt5-qmake qt5-host-tools')"
makedepends="libmagick-devel libXv-devel python3-devel v4l-utils-devel
gtk+3-devel $(vopt_if qt qt5-x11extras-devel)"