public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libcupsfilters] f45: fix gstoraster error
@ 2026-09-23 14:36 Zdenek Dohnal
0 siblings, 0 replies; only message in thread
From: Zdenek Dohnal @ 2026-09-23 14:36 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libcupsfilters
Branch : f45
Commit : 13c0cf0125f395556d6d77c5ad06fd1c81744cb8
Author : Zdenek Dohnal <zdohnal@redhat.com>
Date : 2026-09-23T16:35:32+02:00
Stats : +169/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libcupsfilters/c/13c0cf0125f395556d6d77c5ad06fd1c81744cb8?branch=f45
Log:
fix gstoraster error
---
diff --git a/0001-ghostscript-serialize-raster-integer-parameters-as-s.patch b/0001-ghostscript-serialize-raster-integer-parameters-as-s.patch
new file mode 100644
index 0000000..0a8dc15
--- /dev/null
+++ b/0001-ghostscript-serialize-raster-integer-parameters-as-s.patch
@@ -0,0 +1,163 @@
+From 318cd5b581d4261700add229ad23513cd30a0275 Mon Sep 17 00:00:00 2001
+From: Victor Trac <victor@cloudkite.io>
+Date: Mon, 31 Aug 2026 14:13:04 -0400
+Subject: [PATCH] ghostscript: serialize raster integer parameters as signed
+
+Signed-off-by: Victor Trac <victor@cloudkite.io>
+---
+ cupsfilters/ghostscript.c | 60 +++++++++++++++++++--------------------
+ 1 file changed, 30 insertions(+), 30 deletions(-)
+
+diff --git a/cupsfilters/ghostscript.c b/cupsfilters/ghostscript.c
+index 9e8fa8fa..72e1c2f1 100644
+--- a/cupsfilters/ghostscript.c
++++ b/cupsfilters/ghostscript.c
+@@ -207,22 +207,22 @@ header_to_gs_args(gs_page_header *h,
+ }
+ if (h->AdvanceDistance)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dAdvanceDistance=%u",
+- (unsigned)(h->AdvanceDistance));
++ snprintf(tmpstr, sizeof(tmpstr), "-dAdvanceDistance=%d",
++ (int)(h->AdvanceDistance));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ if (h->AdvanceMedia)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dAdvanceMedia=%u",
+- (unsigned)(h->AdvanceMedia));
++ snprintf(tmpstr, sizeof(tmpstr), "-dAdvanceMedia=%d",
++ (int)(h->AdvanceMedia));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ if (h->Collate)
+ cupsArrayAdd(gs_args, strdup("-dCollate"));
+ if (h->CutMedia)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dCutMedia=%u",
+- (unsigned)(h->CutMedia));
++ snprintf(tmpstr, sizeof(tmpstr), "-dCutMedia=%d",
++ (int)(h->CutMedia));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ }
+@@ -254,14 +254,14 @@ header_to_gs_args(gs_page_header *h,
+ cupsArrayAdd(gs_args, strdup("-dInsertSheet"));
+ if (h->Jog)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dJog=%u",
+- (unsigned)(h->Jog));
++ snprintf(tmpstr, sizeof(tmpstr), "-dJog=%d",
++ (int)(h->Jog));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ if (h->LeadingEdge)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dLeadingEdge=%u",
+- (unsigned)(h->LeadingEdge));
++ snprintf(tmpstr, sizeof(tmpstr), "-dLeadingEdge=%d",
++ (int)(h->LeadingEdge));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ if (h->ManualFeed)
+@@ -309,8 +309,8 @@ header_to_gs_args(gs_page_header *h,
+ }
+ else
+ mediapos = h->MediaPosition;
+- snprintf(tmpstr, sizeof(tmpstr), "-dMediaPosition=%u",
+- (unsigned)(mediapos));
++ snprintf(tmpstr, sizeof(tmpstr), "-dMediaPosition=%d",
++ (int)(mediapos));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ }
+@@ -320,8 +320,8 @@ header_to_gs_args(gs_page_header *h,
+ {
+ if (h->MediaWeight)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dMediaWeight=%u",
+- (unsigned)(h->MediaWeight));
++ snprintf(tmpstr, sizeof(tmpstr), "-dMediaWeight=%d",
++ (int)(h->MediaWeight));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ if (h->MirrorPrint)
+@@ -330,14 +330,14 @@ header_to_gs_args(gs_page_header *h,
+ cupsArrayAdd(gs_args, strdup("-dNegativePrint"));
+ if (h->NumCopies != 1)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dNumCopies=%u",
+- (unsigned)(h->NumCopies));
++ snprintf(tmpstr, sizeof(tmpstr), "-dNumCopies=%d",
++ (int)(h->NumCopies));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ if (h->Orientation)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dOrientation=%u",
+- (unsigned)(h->Orientation));
++ snprintf(tmpstr, sizeof(tmpstr), "-dOrientation=%d",
++ (int)(h->Orientation));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ if (h->OutputFaceUp)
+@@ -376,8 +376,8 @@ header_to_gs_args(gs_page_header *h,
+ {
+ if (h->cupsMediaType)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dcupsMediaType=%u",
+- (unsigned)(h->cupsMediaType));
++ snprintf(tmpstr, sizeof(tmpstr), "-dcupsMediaType=%d",
++ (int)(h->cupsMediaType));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ snprintf(tmpstr, sizeof(tmpstr), "-dcupsBitsPerColor=%d",
+@@ -412,26 +412,26 @@ header_to_gs_args(gs_page_header *h,
+ {
+ if (h->cupsCompression)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dcupsCompression=%u",
+- (unsigned)(h->cupsCompression));
++ snprintf(tmpstr, sizeof(tmpstr), "-dcupsCompression=%d",
++ (int)(h->cupsCompression));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ if (h->cupsRowCount)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dcupsRowCount=%u",
+- (unsigned)(h->cupsRowCount));
++ snprintf(tmpstr, sizeof(tmpstr), "-dcupsRowCount=%d",
++ (int)(h->cupsRowCount));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ if (h->cupsRowFeed)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dcupsRowFeed=%u",
+- (unsigned)(h->cupsRowFeed));
++ snprintf(tmpstr, sizeof(tmpstr), "-dcupsRowFeed=%d",
++ (int)(h->cupsRowFeed));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ if (h->cupsRowStep)
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dcupsRowStep=%u",
+- (unsigned)(h->cupsRowStep));
++ snprintf(tmpstr, sizeof(tmpstr), "-dcupsRowStep=%d",
++ (int)(h->cupsRowStep));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ }
+@@ -449,8 +449,8 @@ header_to_gs_args(gs_page_header *h,
+ for (i = 0; i <= 15; i ++)
+ if (h->cupsInteger[i])
+ {
+- snprintf(tmpstr, sizeof(tmpstr), "-dcupsInteger%d=%u",
+- i, (unsigned)(h->cupsInteger[i]));
++ snprintf(tmpstr, sizeof(tmpstr), "-dcupsInteger%d=%d",
++ i, (int)(h->cupsInteger[i]));
+ cupsArrayAdd(gs_args, strdup(tmpstr));
+ }
+ for (i = 0; i <= 15; i ++)
+--
+2.55.0
+
diff --git a/libcupsfilters.spec b/libcupsfilters.spec
index 787834d..8c2efed 100644
--- a/libcupsfilters.spec
+++ b/libcupsfilters.spec
@@ -7,7 +7,7 @@
Name: libcupsfilters
Epoch: 1
Version: 2.2.1
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Library for developing printing filters
# the CUPS exception text is the same as LLVM exception, so using that name with
# agreement from legal team
@@ -29,6 +29,8 @@ Patch005: 0001-pdftopdf-assume-print-scaling-auto-by-default.-Fixes.patch
# fix output order and booklet printing
# https://github.com/OpenPrinting/libcupsfilters/commit/cb82339e748b6c1b0509060526dbd52e74968829
Patch006: 0001-Fix-minor-errors-this-caused-issue-239.-240.patch
+# https://github.com/OpenPrinting/libcupsfilters/commit/318cd5b581d4261700add229ad23513cd30a0275
+Patch007: 0001-ghostscript-serialize-raster-integer-parameters-as-s.patch
# for generating configure and Makefile scripts in autogen.h
@@ -214,6 +216,9 @@ rm -f %{buildroot}%{_pkgdocdir}/{LICENSE,COPYING,NOTICE}
%changelog
+* Wed Sep 23 2026 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.1-5
+- fix gstoraster error
+
* Tue Sep 08 2026 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.1-4
- fix scaling, output order and booklet printing
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-23 14:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23 14:36 [rpms/libcupsfilters] f45: fix gstoraster error Zdenek Dohnal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox