Bug 15897

Summary: dvisvgm not correctly opening ghostscript library
Product: Mageia Reporter: Giuseppe Ghibò <ghibomgx>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: luigiwalser
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: texlive-20130530-19.mga5.src.rpm CVE:
Status comment:

Description Giuseppe Ghibò 2015-05-10 00:12:47 CEST
Description of problem:

dvisvgm (used also by moodle) of the texlive package is not able to process EPS file due to misopening of ghostscript library.


How reproducible:

dvisvgm -E mio.eps -o mio.svg

gives ERROR.

this because it tries to dlopen() the library libgs.so, while there is only libgs.so.9. This patch should fix.

diff -up texlive-20130530-source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.cpp.ghost texlive-20130530-source/
texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.cpp
--- texlive-20130530-source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.cpp.ghost        2013-01-30 14:10:27.00
0000000 +0100
+++ texlive-20130530-source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.cpp      2015-05-09 00:26:28.998619843 
+0200
@@ -39,7 +39,7 @@ using namespace std;
 #elif defined(__WIN32__)
        #define GS_DL_NAME "gsdll32.dll"
 #else
-       #define GS_DL_NAME "libgs.so"
+       #define GS_DL_NAME "libgs.so.9"
 #endif


Reproducible: 

Steps to Reproduce:
Comment 1 David Walser 2015-05-10 21:30:26 CEST
Fixed in texlive-20130530-20.mga5.  Thanks Giuseppe!

Status: NEW => RESOLVED
CC: (none) => luigiwalser
Resolution: (none) => FIXED