public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pappl-retrofit] f45: Backport pappl functions from pappl1-private.h into the pappl-retrofit-private.h
@ 2026-10-02  8:02 pdancak
  0 siblings, 0 replies; only message in thread
From: pdancak @ 2026-10-02  8:02 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/pappl-retrofit
Branch : f45
Commit : 712f098f77f59c3b3ef25ddedc7341e8d57253ba
Author : pdancak <pdancak@redhat.com>
Date   : 2026-09-25T11:16:00+02:00
Stats  : +27/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/pappl-retrofit/c/712f098f77f59c3b3ef25ddedc7341e8d57253ba?branch=f45

Log:
Backport pappl functions from pappl1-private.h into the pappl-retrofit-private.h

---
diff --git a/0001-Add-PAPPL-1.4.x-compatibility-shims.patch b/0001-Add-PAPPL-1.4.x-compatibility-shims.patch
new file mode 100644
index 0000000..0a4a692
--- /dev/null
+++ b/0001-Add-PAPPL-1.4.x-compatibility-shims.patch
@@ -0,0 +1,22 @@
+diff --git a/pappl-retrofit/pappl-retrofit-private.h b/pappl-retrofit/pappl-retrofit-private.h
+index efa8311..a88ef82 100644
+--- a/pappl-retrofit/pappl-retrofit-private.h
++++ b/pappl-retrofit/pappl-retrofit-private.h
+@@ -29,6 +29,17 @@
+ #include <pappl/pappl.h>
+ #include <ppd/ppd.h>
+ #include <cupsfilters/ieee1284.h>
++
++//
++// PAPPL 1.4.x compatibility shims: the single-document job accessors
++// became document-indexed in PAPPL 2.x; map them back onto the
++// PAPPL 1.4.x single-document accessors.
++//
++
++#ifndef papplJobGetDocumentFilename
++#  define papplJobGetDocumentFilename(job, doc) papplJobGetFilename(job)
++#endif
++
+ #include <cups/cups.h>
+ #include <cups/dir.h>
+ #include <cups/sidechannel.h>

diff --git a/pappl-retrofit.spec b/pappl-retrofit.spec
index e76016c..88f2ded 100644
--- a/pappl-retrofit.spec
+++ b/pappl-retrofit.spec
@@ -42,9 +42,12 @@ Patch007: 0001-Protect-_prASCII-from-negative-lengths.patch
 Patch008: 0001-Fix-potential-memory-leaks.patch
 # https://github.com/OpenPrinting/pappl-retrofit/pull/31
 Patch009: 0001-Fix-memory-leaks-from-compiled_re_list.patch
+# PAPPL 1.4.x compatibility shims for backported patches using PAPPL 2.x API
+# https://github.com/OpenPrinting/pappl-retrofit/blob/master/pappl-retrofit/pappl1-private.h
+Patch010: 0001-Add-PAPPL-1.4.x-compatibility-shims.patch
 # https://github.com/OpenPrinting/pappl-retrofit/pull/58
 # Implement prPrintFile() for raw printing (INFRASERV-1240)
-Patch010: 0001-Implement-prPrintFile-for-raw-printing.patch
+Patch011: 0001-Implement-prPrintFile-for-raw-printing.patch
 
 
 # for autogen.sh - generating configure scripts
@@ -201,6 +204,7 @@ make check
 %changelog
 * Thu Sep 24 2026 Petr Dancak <pdancak@redhat.com> - 1.0b2-13
 - Implement prPrintFile() for raw printing (INFRASERV-1240)
+- Add PAPPL 1.4.x compatibility shims for PAPPL 2.x API
 - Upstream: https://github.com/OpenPrinting/pappl-retrofit/pull/58
 
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0b2-12

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-02  8:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-02  8:02 [rpms/pappl-retrofit] f45: Backport pappl functions from pappl1-private.h into the pappl-retrofit-private.h pdancak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox