[poky] [PATCH 1/1] ghostscript: fix run failure on mpc8315e
Richard Purdie
richard.purdie at linuxfoundation.org
Fri May 20 09:18:41 PDT 2011
Hi,
On Fri, 2011-05-20 at 20:19 +0800, Kang Kai wrote:
> From: Kang Kai <kai.kang at windriver.com>
>
> When run gs on mpc8315, it fails with:
> GPL Ghostscript 9.02: ./psi/interp.c(291): Fatal error -20 in gs_interp_init!
> It is caused by cross compile.
>
> Accoding to the ghostscript document on:
> http://pages.cs.wisc.edu/~ghost/doc/cvs/Make.htm#Cross-compiling
> it needs some manual work, so import patches from WindRiver Linux.
>
> Signed-off-by: Kang Kai <kai.kang at windriver.com>
There is a way to do this more neatly within OE. You can create a
directory structure of:
recipes-extended/ghostscriptghostscript-9.02/powerpc/objarch.h
recipes-extended/ghostscriptghostscript-9.02/powerpc/soobjarch.h
recipes-extended/ghostscriptghostscript-9.02/i586/objarch.h
recipes-extended/ghostscriptghostscript-9.02/i586/soobjarch.h
recipes-extended/ghostscriptghostscript-9.02/mips/objarch.h
recipes-extended/ghostscriptghostscript-9.02/mips/soobjarch.h
recipes-extended/ghostscriptghostscript-9.02/x86_64/objarch.h
recipes-extended/ghostscriptghostscript-9.02/x86_64/soobjarch.h
recipes-extended/ghostscriptghostscript-9.02/arm/objarch.h
recipes-extended/ghostscriptghostscript-9.02/arm/soobjarch.h
Then just add file://objarch.h and file://soobjarch.h to SRC_URI and a
do_configure_prepend () {
cp ${WORKDIR}/objarch.h ${S}/obj/arch.h
cp ${WORKDIR}/soobjarch.h ${S}/soobj/arch.h
}
and the rest will happen automatically (you'll still need the lib.mak
bit of the patch applied unconditionally).
Cheers,
Richard
More information about the poky
mailing list