[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [craft-blueprints-kde] win32libs/ghostscript: Add another patch for ghostscript to fix its API heade
From:       Gleb Popov <null () kde ! org>
Date:       2017-08-31 18:47:01
Message-ID: E1dnUUX-0007on-MD () code ! kde ! org
[Download RAW message or body]

Git commit b7fbb5ac64ae3d193e4719b8405d777665bb55be by Gleb Popov.
Committed on 31/08/2017 at 18:45.
Pushed by arrowdodger into branch 'master'.

Add another patch for ghostscript to fix its API header.

A  +12   -0    win32libs/ghostscript/ghostscript-exports-fix.diff
M  +3    -0    win32libs/ghostscript/ghostscript.py

https://commits.kde.org/craft-blueprints-kde/b7fbb5ac64ae3d193e4719b8405d777665bb55be

diff --git a/win32libs/ghostscript/ghostscript-exports-fix.diff \
b/win32libs/ghostscript/ghostscript-exports-fix.diff new file mode 100644
index 0000000..69c7ef4
--- /dev/null
+++ b/win32libs/ghostscript/ghostscript-exports-fix.diff
@@ -0,0 +1,12 @@
+diff -Nrub -x '*~' -x '*\.orig' -x'*\.o' ghostscript-9.19/psi/iapi.h.orig \
ghostscript-9.19/psi/iapi.h +--- ghostscript-9.19/psi/iapi.h.orig    2016-03-23 \
11:22:48.000000000 +0300 ++++ ghostscript-9.19/psi/iapi.h 2017-08-31 \
21:12:46.699912800 +0300 +@@ -50,7 +50,7 @@
+ extern "C" {
+ #endif
+
+-#if defined(_WINDOWS_) || defined(__WINDOWS__)
++#if defined(_WIN32) || defined(__WINDOWS__)
+ # ifndef _Windows
+ #  define _Windows
+ # endif
diff --git a/win32libs/ghostscript/ghostscript.py \
b/win32libs/ghostscript/ghostscript.py index 883bd61..8282740 100644
--- a/win32libs/ghostscript/ghostscript.py
+++ b/win32libs/ghostscript/ghostscript.py
@@ -30,9 +30,12 @@ class subinfo(info.infoclass):
                 # ("mingw-build.patch", 1),# origin: \
                https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-ghostscript
                
                 # ("ghostscript-sys-zlib.patch", 1),# origin: \
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-ghostscript  \
("ghostscript-9.18-20151217.diff", 1), +                \
("ghostscript-exports-fix.diff", 1),  ("libspectre.patch", 1)
                 # origin: \
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-ghostscript  ]
+        else:
+            self.patchToApply['9.19'] = [("ghostscript-exports-fix.diff", 1)]
         self.defaultTarget = '9.19'
 
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic