IPPRequest.writeIO() tracebacks because PY_SSIZE_T_CLEAN is not defined
This commit is contained in:
parent
96a6e58d6e
commit
33ea1a99fd
13
pycups-pyssizet_clean.patch
Normal file
13
pycups-pyssizet_clean.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/cupsipp.h b/cupsipp.h
|
||||||
|
index 2a15ce6..b890198 100644
|
||||||
|
--- a/cupsipp.h
|
||||||
|
+++ b/cupsipp.h
|
||||||
|
@@ -21,6 +21,8 @@
|
||||||
|
#ifndef HAVE_CUPSIPP_H
|
||||||
|
#define HAVE_CUPSIPP_H
|
||||||
|
|
||||||
|
+#define PY_SSIZE_T_CLEAN
|
||||||
|
+
|
||||||
|
#include <Python.h>
|
||||||
|
#include <cups/ipp.h>
|
||||||
|
|
@ -6,7 +6,7 @@
|
|||||||
Summary: Python bindings for CUPS
|
Summary: Python bindings for CUPS
|
||||||
Name: python-cups
|
Name: python-cups
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
# older URL, but still with useful information about pycups
|
# older URL, but still with useful information about pycups
|
||||||
#URL: http://cyberelk.net/tim/software/pycups/
|
#URL: http://cyberelk.net/tim/software/pycups/
|
||||||
URL: https://github.com/OpenPrinting/pycups/
|
URL: https://github.com/OpenPrinting/pycups/
|
||||||
@ -17,6 +17,7 @@ License: GPLv2+
|
|||||||
Patch01: 0001-examples-cupstree.py-remove-shebang.patch
|
Patch01: 0001-examples-cupstree.py-remove-shebang.patch
|
||||||
Patch02: 0001-postscriptdriver.prov-ignore-driverless-utilities.patch
|
Patch02: 0001-postscriptdriver.prov-ignore-driverless-utilities.patch
|
||||||
Patch03: pycups-invalid-pointer.patch
|
Patch03: pycups-invalid-pointer.patch
|
||||||
|
Patch04: pycups-pyssizet_clean.patch
|
||||||
|
|
||||||
# gcc is no longer in buildroot by default
|
# gcc is no longer in buildroot by default
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -74,6 +75,9 @@ export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
|||||||
%doc examples html
|
%doc examples html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 28 2021 Zdenek Dohnal <zdohnal@redhat.com> - 2.0.1-10
|
||||||
|
- IPPRequest.writeIO() tracebacks because PY_SSIZE_T_CLEAN is not defined
|
||||||
|
|
||||||
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.1-9
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.1-9
|
||||||
- Rebuilt for Python 3.10
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user