public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: pdancak <pdancak@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/pappl-retrofit] f44: Backport pappl functions from pappl1-private.h into the pappl-retrofit-private.h
Date: Fri, 02 Oct 2026 11:16:41 GMT [thread overview]
Message-ID: <179093980199.1.14830522282883633277.rpms-pappl-retrofit-712f098f77f5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pappl-retrofit
Branch : f44
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=f44
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
reply other threads:[~2026-10-02 11:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179093980199.1.14830522282883633277.rpms-pappl-retrofit-712f098f77f5@fedoraproject.org \
--to=pdancak@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox