Skip to contentSkip to conversation

ghostscript: wrong fonts path set in target application

Buildroot Thomas Ehrhardt 4 participants 5 messages Jul 25, 2018 – Jul 28, 2018

lore
Share & tools
lore
#0 lore raw

Without this patch the fonts path of ghostscript is wrong.

package/ghostscript/ghostscript.mk +1 -1
@@ -40,7 +40,7 @@
        --disable-compile-inits \
        --disable-cups \
        --enable-fontconfig \
-       --with-fontpath=$(GHOSTSCRIPT_FONTS_TARGET_DIR) \
+       --with-fontpath=/usr/share/fonts \
        --enable-freetype \
        --disable-gtk \
        --without-jbig2dec \

--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/

#1 lore raw

Hello,

Quoted 1 line · Thomas Ehrhardt

Without this patch the fonts path of ghostscript is wrong.

This probably looks good, but could you describe a bit more how the problem manifests itself in practice ?

Also, could you resend with your Signed-off-by line added ?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

Hi Thomas,

in the ghostscript-fonts package the variable is set too:
GHOSTSCRIPT_FONTS_TARGET_DIR = $(TARGET_DIR)/usr/share/fonts/gs

On the target system the call ghostscript -h shows something like this:
Search path:
[..]
/[..]/output/target/usr/share/fonts/gs

This is a wrong fonts search directory compiled within ghostscript, I think correct is /usr/share/fonts

Regards
Thomas

--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/

#4 lore raw

package/ghostscript/ghostscript.mk line 43

Quoted 10 lines · Thomas Ehrhardt

---

package/ghostscript/ghostscript.mk +1 -1
@@ -40,7 +40,7 @@
        --disable-compile-inits \
        --disable-cups \
        --enable-fontconfig \
-       --with-fontpath=$(GHOSTSCRIPT_FONTS_TARGET_DIR) \
+       --with-fontpath=/usr/share/fonts \

This diff was containing spaces instead of tabs, so it didn't apply. Please
send patches using git send-email in the future, as explained in the manual.

I've made this change manually and applied. I've also improved the commit
message with the information you gave in your earlier mail:

ghostscript: set correct font path on target

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.

Can you double-check that commit a76eab228f0bde8597bb6431733e3e1a8d25f806 works
for you?

Regards,
Arnout

Quoted 15 lines
package/ghostscript/ghostscript.mk +0 -1
        --enable-freetype \
        --disable-gtk \
        --without-jbig2dec \
 
 
 
 
 
--

Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF