RHEL-50774 enlarge array for vendor specific attributtes

Resolves: RHEL-50774
This commit is contained in:
Zdenek Dohnal 2024-07-29 10:43:56 +02:00
parent 50fabbc98d
commit 45adba6139
2 changed files with 20 additions and 1 deletions

13
pappl-max-vendors.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/pappl/printer.h b/pappl/printer.h
index c261f5f..860cae0 100644
--- a/pappl/printer.h
+++ b/pappl/printer.h
@@ -27,7 +27,7 @@ extern "C" {
# define PAPPL_MAX_SOURCE 16 // Maximum number of sources/rolls
# define PAPPL_MAX_SUPPLY 32 // Maximum number of supplies
# define PAPPL_MAX_TYPE 32 // Maximum number of media types
-# define PAPPL_MAX_VENDOR 32 // Maximum number of vendor extension attributes
+# define PAPPL_MAX_VENDOR 256 // Maximum number of vendor extension attributes
//

View File

@ -10,7 +10,7 @@
Summary: Printer Application Framework (PAPPL)
Name: pappl
Version: 1.4.6
Release: 1%{?dist}
Release: 2%{?dist}
License: Apache-2.0 WITH LLVM-exception
Source: https://github.com/michaelrsweet/pappl/releases/download/v%{version}/pappl-%{version}.tar.gz
Url: https://www.msweet.org/pappl
@ -20,6 +20,9 @@ Url: https://www.msweet.org/pappl
Patch001: 0001-List-raw-sockets-during-printers-subcommand-if-avail.patch
# https://github.com/michaelrsweet/pappl/commit/3f1c329fdd
Patch002: 0001-Fix-port-number-user-input-when-adding-a-printer-Iss.patch
# raise MAX_VENDOR https://sourceforge.net/p/gimp-print/mailman/gimp-print-devel/thread/e24b2385-6576-a949-a40d-3786c8067520%40gmail.com/#msg37353830
# downstream only, Mike does not want to merge the change
Patch003: pappl-max-vendors.patch
BuildRequires: avahi-devel
@ -109,6 +112,9 @@ make test
%{_mandir}/man3/pappl-system.3.gz
%changelog
* Mon Jul 29 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1.4.6-2
- RHEL-50774 enlarge array for vendor specific attributtes
* Wed Jul 17 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1.4.6-1
- RHEL-25805 [pappl] rebase pappl to 1.4.6