summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-11-10 10:50:20 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-11-19 09:42:13 +0900
commitb9cc5eede9d3e707412608ced7368390fe131623 (patch)
treee2ca75748afcae4fddab85dc59041700f1e40dd0
parent411a383b63cee1a72cfc1c02978fc006770d05cd (diff)
gnu: pstoedit: Update to 4.02.
* gnu/packages/graphics.scm (pstoedit): Update to 4.0.2. [source]: Remove pstoedit-fix-plainC.patch. * gnu/packages/patches/pstoedit-fix-plainC.patch: Delete file. * gnu/local.mk (dist_patch_DATA): De-register it. Change-Id: I885722d147b40742feffd134eb9c17d9ea54a791
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/graphics.scm7
-rw-r--r--gnu/packages/patches/pstoedit-fix-plainC.patch47
3 files changed, 2 insertions, 53 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index cd3f1a1e2a6..384176e9381 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2140,7 +2140,6 @@ dist_patch_DATA = \
2140 %D%/packages/patches/psm-ldflags.patch \ 2140 %D%/packages/patches/psm-ldflags.patch \
2141 %D%/packages/patches/psm-repro.patch \ 2141 %D%/packages/patches/psm-repro.patch \
2142 %D%/packages/patches/pstoedit-fix-gcc12.patch \ 2142 %D%/packages/patches/pstoedit-fix-gcc12.patch \
2143 %D%/packages/patches/pstoedit-fix-plainC.patch \
2144 %D%/packages/patches/pstoedit-pkglibdir.patch \ 2143 %D%/packages/patches/pstoedit-pkglibdir.patch \
2145 %D%/packages/patches/pulseaudio-fix-mult-test.patch \ 2144 %D%/packages/patches/pulseaudio-fix-mult-test.patch \
2146 %D%/packages/patches/pulseaudio-longer-test-timeout.patch \ 2145 %D%/packages/patches/pulseaudio-longer-test-timeout.patch \
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 872008eb2a5..5c94406aeeb 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -1318,19 +1318,16 @@ Angus Johnson}.")
1318(define-public pstoedit 1318(define-public pstoedit
1319 (package 1319 (package
1320 (name "pstoedit") 1320 (name "pstoedit")
1321 ;; Do not yet upgrade to 4.0.0, as its include file fails to compile for C 1321 (version "4.02")
1322 ;; project (see: https://github.com/reviczky/pstoedit/issues/2).
1323 (version "4.00")
1324 (source (origin 1322 (source (origin
1325 (method url-fetch) 1323 (method url-fetch)
1326 (uri (string-append "mirror://sourceforge/pstoedit/pstoedit/" 1324 (uri (string-append "mirror://sourceforge/pstoedit/pstoedit/"
1327 version "/pstoedit-" version ".tar.gz")) 1325 version "/pstoedit-" version ".tar.gz"))
1328 (sha256 1326 (sha256
1329 (base32 1327 (base32
1330 "1sk2mhrjgnlz4a1650p3qxrv6av6qc66ibmy48ckspx7mfp7snh7")) 1328 "0bzpknndsf2cvsh1z90j6cx9mzqkb3m1ajdl52cavcn6s8rb922m"))
1331 (patches 1329 (patches
1332 (search-patches "pstoedit-fix-gcc12.patch" 1330 (search-patches "pstoedit-fix-gcc12.patch"
1333 "pstoedit-fix-plainC.patch"
1334 "pstoedit-pkglibdir.patch")))) 1331 "pstoedit-pkglibdir.patch"))))
1335 (build-system gnu-build-system) 1332 (build-system gnu-build-system)
1336 (arguments 1333 (arguments
diff --git a/gnu/packages/patches/pstoedit-fix-plainC.patch b/gnu/packages/patches/pstoedit-fix-plainC.patch
deleted file mode 100644
index 684c5043bec..00000000000
--- a/gnu/packages/patches/pstoedit-fix-plainC.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1Retrieved from Fedora: https://src.fedoraproject.org/rpms/pstoedit/tree
2
3diff --git a/src/pstoedit.cpp b/src/pstoedit.cpp
4index a718f37..ac0df37 100755
5--- a/src/pstoedit.cpp
6+++ b/src/pstoedit.cpp
7@@ -327,6 +327,11 @@ extern FILE *yyin; // used by lexer
8 // otherwise we could declare it locally where it is used
9
10
11+extern "C" DLLEXPORT void loadpstoeditplugins_plainC(const char *progname, int verbose)
12+{
13+ return loadpstoeditplugins(progname, cerr, (bool) verbose);
14+}
15+
16 static void usage(ostream & outstream, bool forTeX, bool withdetails, bool withcategories )
17 {
18 if (withcategories) {
19diff --git a/src/pstoedit.h b/src/pstoedit.h
20index 294b3c2..74ebf2a 100755
21--- a/src/pstoedit.h
22+++ b/src/pstoedit.h
23@@ -100,8 +100,13 @@ void clearPstoeditDriverInfo_plainC(struct DriverDescription_S * ptr);
24
25 #ifdef __cplusplus
26 extern "C" DLLEXPORT
27-#endif
28 void loadpstoeditplugins(const char* progname, std::ostream & errstream, bool verbose);
29+#endif
30+
31+#ifdef __cplusplus
32+extern "C" DLLEXPORT
33+#endif
34+void loadpstoeditplugins_plainC(const char* progname, int verbose);
35
36 #ifdef __cplusplus
37 extern "C" DLLEXPORT
38--- a/src/pstoedit.orig.h 2023-07-22 19:27:43.691166652 +0200
39+++ b/src/pstoedit.h 2023-07-22 19:31:18.897952130 +0200
40@@ -37,6 +37,7 @@
41 #endif
42
43 #include "pstoedll.h"
44+#include <stdbool.h>
45
46 typedef int (*execute_interpreter_function)(int argc, const char * const argv[]);
47