[packages/hplip] - pcardext is still not ready for python3
qboosh
qboosh at pld-linux.org
Fri Dec 26 17:02:21 CET 2025
commit c679d681eca8daa3682e72cad153b2b904c1f8fd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Dec 26 17:02:49 2025 +0100
- pcardext is still not ready for python3
hplip-pcardext-disable.patch | 17 +++++++++++++++++
hplip.spec | 6 +++++-
2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/hplip.spec b/hplip.spec
index 32b45ee..cab92bb 100644
--- a/hplip.spec
+++ b/hplip.spec
@@ -30,6 +30,8 @@ Patch9: hplip-covscan.patch
Patch10: hplip-scan-hpaio-include.patch
Patch11: hplip-hpaio-gcc14.patch
Patch12: hplip-scan-orblite-c99.patch
+# pcardext is not ready for python3 (as of 3.25.8)
+Patch13: hplip-pcardext-disable.patch
URL: http://hplipopensource.com/
BuildRequires: autoconf
BuildRequires: automake
@@ -181,6 +183,7 @@ urządzenia HP AiO.
%patch -P 10 -p1
%patch -P 11 -p1
%patch -P 12 -p1
+%patch -P 13 -p1
%{__sed} -i -e '1s,^#!/usr/bin/env python$,#!%{__python3},' *.py fax/filters/pstotiff prnt/filters/hpps
find base fax installer prnt scan ui ui4 -name '*.py' | xargs \
@@ -349,7 +352,8 @@ fi
%attr(755,root,root) %{_datadir}/hplip/locatedriver
%{py3_sitedir}/cupsext.so
%{py3_sitedir}/hpmudext.so
-%{py3_sitedir}/pcardext.so
+# needs update for python3
+#%{py3_sitedir}/pcardext.so
%{py3_sitedir}/scanext.so
%dir %{_sysconfdir}/hp
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hp/hplip.conf
diff --git a/hplip-pcardext-disable.patch b/hplip-pcardext-disable.patch
new file mode 100644
index 0000000..342c4d3
--- /dev/null
+++ b/hplip-pcardext-disable.patch
@@ -0,0 +1,17 @@
+diff -up hplip-3.25.2/Makefile.am.pcardext-disable hplip-3.25.2/Makefile.am
+--- hplip-3.25.2/Makefile.am.pcardext-disable 2025-04-11 10:23:29.576593786 +0200
++++ hplip-3.25.2/Makefile.am 2025-04-11 10:24:08.259842784 +0200
+@@ -306,13 +306,6 @@ if !HPLIP_CLASS_DRIVER
+ pcarddir = $(hplipdir)/pcard
+ dist_pcard_DATA = pcard/__init__.py pcard/photocard.py
+
+-# pcardext
+-pcardextdir = $(PYTHONEXECDIR)
+-pcardext_LTLIBRARIES = pcardext.la
+-pcardext_la_LDFLAGS = -module -avoid-version
+-pcardext_la_SOURCES = pcard/pcardext/pcardext.c pcard/fat.c pcard/pcardext/pcardext.h
+-pcardext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
+-
+ # prnt
+ prntdir = $(hplipdir)/prnt
+ dist_prnt_DATA = prnt/cups.py prnt/__init__.py prnt/ldl.py prnt/pcl.py prnt/colorcal.py
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hplip.git/commitdiff/c679d681eca8daa3682e72cad153b2b904c1f8fd
More information about the pld-cvs-commit
mailing list