[tlbuild] dvisvgm

Mojca Miklavec mojca.miklavec.lists at gmail.com
Fri Feb 10 11:44:49 CET 2017


On 5 February 2017 at 14:20, Apostolos Syropoulos <asyropoulos at gmail.com> wrote:
> Hello,
>
> Finally I managed to compile dvisvgm. However, I had to do
> two apply two patches:
>
> *** fontforge.h.orig    2017-02-05 13:25:09.904026440 +0200
> --- fontforge.h 2017-02-05 14:27:35.320621195 +0200
> ***************
> *** 33,38 ****
> --- 33,39 ----
>   #include "libffstamp.h"
>   #include <stdio.h>
>   #include <string.h>
> + #define  HAVE_LIBINTL_H 1
>   #include <intl.h>
>   #include "splinefont.h"
>   #include "uiinterface.h"
>
> For some reason the HAVE_LIBINTL_H symbol is mangled so
> the compiler includes wrong things from intl.h

Thank you, that helped. But I was still experiencing the other error:

../../../../../../texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/splinefont.h:2569:39:
error: unknown type name 'locale_t'
 static inline void switch_to_c_locale(locale_t * tmplocale_p,
locale_t * oldlocale_p) {
                                       ^

But then I found

https://github.com/fontforge/fontforge/issues/1983
https://github.com/fontforge/fontforge/pull/1717/files

and got the idea to apply the following patch:

--- texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/splinefont.h
 (revision 43179)
+++ texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/splinefont.h
 (working copy)
@@ -2554,7 +2554,7 @@

 #include "ustring.h"

-#ifdef _WIN32
+#if 1
 #define BAD_LOCALE_HACK
 typedef char* locale_t;
 #define LC_GLOBAL_LOCALE ((locale_t)-1)

and then the compilation was successful from that point on.

Given that it apparently works on Solaris 11, but not on Solaris 10,
having an "or solaris" at this point seems like a bad idea. That's
something that should be solved on the fontforge front.

Mojca


More information about the tlbuild mailing list