diff --git a/srcpkgs/zbar/patches/python-3.12.patch b/srcpkgs/zbar/patches/python-3.12.patch new file mode 100644 index 00000000000..29a5c89b725 --- /dev/null +++ b/srcpkgs/zbar/patches/python-3.12.patch @@ -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); diff --git a/srcpkgs/zbar/template b/srcpkgs/zbar/template index 76e922883c4..baf0c766b33 100644 --- a/srcpkgs/zbar/template +++ b/srcpkgs/zbar/template @@ -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)"