[Buildroot] [git commit branch/2018.02.x] ghostscript: set correct font path on target

Peter Korsgaard peter at korsgaard.com
Thu Aug 23 20:12:09 UTC 2018


commit: https://git.buildroot.net/buildroot/commit/?id=54d2e39bcaaf4706215d8db8403c9e45baec6a36
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2018.02.x

GHOSTSCRIPT_FONTS_TARGET_DIR is set to $(TARGET_DIR)/usr/share/fonts/gs
in ghostscript-fonts.mk. If we pass this full path to ghostscript, it
will look for fonts in $(TARGET_DIR), which doesn't exist on the
target.

Instead of /usr/share/fonts/gs, use /usr/share/fonts so ghostscript can
also access other fonts than the ones installed by ghostscript-fonts.

Signed-off-by: Thomas Ehrhardt <tehrhardt at innovaphone.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
(cherry picked from commit a76eab228f0bde8597bb6431733e3e1a8d25f806)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/ghostscript/ghostscript.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/ghostscript/ghostscript.mk b/package/ghostscript/ghostscript.mk
index aa3f63b26e..daf5bdad09 100644
--- a/package/ghostscript/ghostscript.mk
+++ b/package/ghostscript/ghostscript.mk
@@ -39,7 +39,7 @@ GHOSTSCRIPT_CONF_OPTS = \
 	--disable-compile-inits \
 	--disable-cups \
 	--enable-fontconfig \
-	--with-fontpath=$(GHOSTSCRIPT_FONTS_TARGET_DIR) \
+	--with-fontpath=/usr/share/fonts \
 	--enable-freetype \
 	--disable-gtk \
 	--without-jbig2dec \


More information about the buildroot mailing list