Disable pcard support, breaks with python3 and clang 15

Apparently this is about pre-USB "Photo Card" hardware, nobody seems to
care.  ok aja@ (maintainer)
This commit is contained in:
jca 2023-01-30 17:53:34 +00:00
parent c891e82cda
commit af147f2f36
3 changed files with 23 additions and 2 deletions

View File

@ -14,7 +14,7 @@ SUBST_VARS= V
REVISION-common= 0
REVISION-gui= 0
REVISION-hpaio= 0
REVISION-main= 0
REVISION-main= 1
# https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1745383
MASTER_SITES0= https://src.fedoraproject.org/rpms/hplip/raw/rawhide/f/

View File

@ -0,0 +1,21 @@
Force-disable outdated python module which doesn't build with python3 and
clang 15.
Index: pcard/pcardext/pcardext.c
--- pcard/pcardext/pcardext.c.orig
+++ pcard/pcardext/pcardext.c
@@ -24,6 +24,8 @@ Author: Don Welch
\*****************************************************************************/
+#if 0
+
#define PY_SSIZE_T_CLEAN
@@ -246,4 +248,4 @@ void initpcardext( void )
return;
}
-
+#endif

View File

@ -24,7 +24,7 @@ bin/hp-unload
bin/hp-upgrade
@so lib/python${MODPY_VERSION}/site-packages/cupsext.so
@so lib/python${MODPY_VERSION}/site-packages/hpmudext.so
@so lib/python${MODPY_VERSION}/site-packages/pcardext.so
@comment @so lib/python${MODPY_VERSION}/site-packages/pcardext.so
share/doc/hplip/
share/doc/hplip/COPYING
share/doc/hplip/README_LIBJPG