[packages/hplip] - added prototype fix

qboosh qboosh at pld-linux.org
Sat Dec 27 16:30:02 CET 2025


commit 89dace342bbc74104a220b14cb2626cdbcb420c1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 27 16:30:29 2025 +0100

    - added prototype fix

 hplip-build.patch | 11 +++++++++++
 hplip.spec        |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/hplip.spec b/hplip.spec
index cab92bb..bee64c6 100644
--- a/hplip.spec
+++ b/hplip.spec
@@ -22,6 +22,7 @@ Source0:	https://downloads.sourceforge.net/hplip/%{name}-%{version}.tar.gz
 Patch0:		%{name}-desktop.patch
 Patch1:		unresolved.patch
 Patch2:		pld-distro.patch
+Patch3:		%{name}-build.patch
 Patch4:		%{name}-destdir.patch
 Patch5:		%{name}-udev-rules.patch
 Patch7:		remove-all-ImageProcessor-functionality.patch
@@ -171,10 +172,11 @@ urządzenia HP AiO.
 
 %prep
 %setup -q
-%undos Makefile.am installer/distros.dat
+%undos installer/distros.dat
 %patch -P 0 -p1
 %patch -P 1 -p1
 %patch -P 2 -p1
+%patch -P 3 -p1
 %patch -P 4 -p1
 %patch -P 5 -p1
 %patch -P 7 -p1
diff --git a/hplip-build.patch b/hplip-build.patch
new file mode 100644
index 0000000..ec7601e
--- /dev/null
+++ b/hplip-build.patch
@@ -0,0 +1,11 @@
+--- hplip-3.25.2/scan/sane/ledmi.h.orig	2025-02-27 13:12:29.000000000 +0100
++++ hplip-3.25.2/scan/sane/ledmi.h	2025-12-27 12:47:20.026875381 +0100
+@@ -162,7 +162,7 @@ struct ledm_session
+ int bb_open(struct ledm_session*);
+ int bb_close(struct ledm_session*);
+ int bb_get_parameters(struct ledm_session*, SANE_Parameters*, int);
+-int bb_is_paper_in_adf();         /* 0 = no paper in adf, 1 = paper in adf, -1 = error */
++int bb_is_paper_in_adf(struct ledm_session *);         /* 0 = no paper in adf, 1 = paper in adf, -1 = error */
+ SANE_Status bb_start_scan(struct ledm_session*);
+ int bb_get_image_data(struct ledm_session*, int); 
+ int bb_end_page(struct ledm_session*, int);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hplip.git/commitdiff/89dace342bbc74104a220b14cb2626cdbcb420c1



More information about the pld-cvs-commit mailing list