fix FTBFS with GCC 14

This commit is contained in:
Zdenek Dohnal 2024-01-09 17:37:44 +01:00
parent 8f4de15336
commit 76228f9946
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From eb770edd1c4dd9bf6c561f15564e4b8e10cc54b9 Mon Sep 17 00:00:00 2001
From: Chris Liddell <chris.liddell@artifex.com>
Date: Fri, 16 Mar 2018 10:19:43 +0000
Subject: [PATCH] Squash compiler warning in ijs code.
---
ijs/ijs_exec_unix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ijs/ijs_exec_unix.c b/ijs/ijs_exec_unix.c
index 862961913..622569416 100644
--- a/ijs/ijs_exec_unix.c
+++ b/ijs/ijs_exec_unix.c
@@ -75,7 +75,7 @@ ijs_exec_server(const char *server_cmd, int *pfd_to, int *pfd_from,
argv[i++] = (char *)server_cmd;
argv[i++] = NULL;
- status = execvp (argv[0], argv);
+ status = execvp (argv[0], (char * const *)argv);
if (status < 0)
exit (1);
}
--
2.43.0

View File

@ -13,7 +13,7 @@
Name: libijs
Summary: IJS Raster Image Transport Protocol Library
Version: 0.35
Release: 19%{?dist}
Release: 20%{?dist}
License: AGPL-3.0-or-later
@ -36,6 +36,8 @@ BuildRequires: libtool
# Upstream patches -- official upstream patches released by upstream since the
# ---------------- last rebase that are necessary for any reason:
#Patch000: example000.patch
# https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=eb770edd1c
Patch: 0001-Squash-compiler-warning-in-ijs-code.patch
# Downstream patches -- these should be always included when doing rebase:
@ -133,6 +135,9 @@ install -m 0644 -p ijs_spec.pdf %{buildroot}%{_docdir}/%{name}
# =============================================================================
%changelog
* Tue Jan 09 2024 Zdenek Dohnal <zdohnal@redhat.com> - 0.35-20
- fix FTBFS with GCC 14
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.35-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild