Skip to contentSkip to conversation

Cope with Ghostscript 10.00.0 and later

PATCH Applied Akira Yokosawa 2 participants 2 messages Sep 22, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cope with Ghostscript 10.00.0 and later

Ghostscript 10.00.0 has graduated from its RC stages recently [1]. Expand regular expressions for detecting modern versions of Ghostscript.

---
Hi,

Despite the increment of major version to 10, there seems to be no outstanding backward-incompatible changes like the early days of 9.5x releases.

One notable change mentioned in the release note is the switch of the default PDF interpreter to the brand new implementation in the C language (appeared in 9.56) from the one written in PostScript.

If we encounter any behavior change, we are supposed to file a bug report :-)

Ubuntu's and Fedora's distro packages will wait the upgrade until next spring, I guess, but who knows.

Thanks Akira
--

 a2ping-rule.mk   | 4 ++--
 epstopdf-rule.mk | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
a2ping-rule.mk +2 -2
index 5260ec92e7f2..6db633deed24 100644
@@ -7,10 +7,10 @@
 A2PING := $(shell which a2ping 2>/dev/null)
 
 ifdef A2PING
-  GS_950_OR_LATER := $(shell gs --version | grep -c -E "9\.[5-9].?")
+  GS_950_OR_LATER := $(shell gs --version | grep -c -E "^(9\.[5-9]|10\.[0-9]).?")
   A2PING_277P := $(shell a2ping --help 2>&1 | grep -c "2.77p,")
   A2PING_283P := $(shell a2ping --help 2>&1 | grep -c "2.83p,")
-  GS_953_OR_LATER := $(shell gs --version | grep -c -E "9\.5[3-9].?")
+  GS_953_OR_LATER := $(shell gs --version | grep -c -E "^(9\.5[3-9]|10\.[0-9]).?")
   ifeq ($(A2PING_277P),1)
     A2PING_GSCNFL = 1
   else
epstopdf-rule.mk +1 -1
index d248ce750d68..e33e476c2c74 100644
@@ -5,7 +5,7 @@
 # Authors: Akira Yokosawa <[email protected]>
 
 EPSTOPDF := $(shell which epstopdf 2>/dev/null)
-GS_953_OR_LATER := $(shell gs --version | grep -c -E "9\.5[3-9].?")
+GS_953_OR_LATER := $(shell gs --version | grep -c -E "^(9\.5[3-9]|10\.[0-9]).?")
 GS_OPT=--gsopt=-dPDFSETTINGS=/ebook
 
 $(PDFTARGETS_OF_GNUPLOT_NEEDFIXFONTS): $(FIXFONTS)

base-commit: 36e0babae953969d16bc5254b79412bc873cf8c0

Signature · 1 line
2.25.1
#1 lore raw
Quoted 17 lines · Akira Yokosawa

Ghostscript 10.00.0 has graduated from its RC stages recently [1]. Expand regular expressions for detecting modern versions of Ghostscript.

---
Hi,

Despite the increment of major version to 10, there seems to be no outstanding backward-incompatible changes like the early days of 9.5x releases.

One notable change mentioned in the release note is the switch of the default PDF interpreter to the brand new implementation in the C language (appeared in 9.56) from the one written in PostScript.

Quoted 5 lines

If we encounter any behavior change, we are supposed to file a bug report :-)

Ubuntu's and Fedora's distro packages will wait the upgrade until next spring, I guess, but who knows.

Queued and pushed, thank you!

Thanx, Paul

Quoted 41 lines

Thanks Akira
--

 a2ping-rule.mk   | 4 ++--
 epstopdf-rule.mk | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
a2ping-rule.mk +2 -2
index 5260ec92e7f2..6db633deed24 100644
@@ -7,10 +7,10 @@
 A2PING := $(shell which a2ping 2>/dev/null)
 
 ifdef A2PING
-  GS_950_OR_LATER := $(shell gs --version | grep -c -E "9\.[5-9].?")
+  GS_950_OR_LATER := $(shell gs --version | grep -c -E "^(9\.[5-9]|10\.[0-9]).?")
   A2PING_277P := $(shell a2ping --help 2>&1 | grep -c "2.77p,")
   A2PING_283P := $(shell a2ping --help 2>&1 | grep -c "2.83p,")
-  GS_953_OR_LATER := $(shell gs --version | grep -c -E "9\.5[3-9].?")
+  GS_953_OR_LATER := $(shell gs --version | grep -c -E "^(9\.5[3-9]|10\.[0-9]).?")
   ifeq ($(A2PING_277P),1)
     A2PING_GSCNFL = 1
   else
epstopdf-rule.mk +1 -1
index d248ce750d68..e33e476c2c74 100644
@@ -5,7 +5,7 @@
 # Authors: Akira Yokosawa <[email protected]>
 
 EPSTOPDF := $(shell which epstopdf 2>/dev/null)
-GS_953_OR_LATER := $(shell gs --version | grep -c -E "9\.5[3-9].?")
+GS_953_OR_LATER := $(shell gs --version | grep -c -E "^(9\.5[3-9]|10\.[0-9]).?")
 GS_OPT=--gsopt=-dPDFSETTINGS=/ebook
 
 $(PDFTARGETS_OF_GNUPLOT_NEEDFIXFONTS): $(FIXFONTS)

base-commit: 36e0babae953969d16bc5254b79412bc873cf8c0

Signature · 1 line
2.25.1