All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Kang Kai <kai.kang@windriver.com>
Cc: poky@yoctoproject.org
Subject: Re: [PATCH 1/1] ghostscript: fix run failure on mpc8315e
Date: Fri, 20 May 2011 17:18:41 +0100	[thread overview]
Message-ID: <1305908321.3424.658.camel@rex> (raw)
In-Reply-To: <2a1f54c36d74702b453845dcba5564ac6d357aa7.1305891945.git.kai.kang@windriver.com>

Hi,

On Fri, 2011-05-20 at 20:19 +0800, Kang Kai wrote:
> From: Kang Kai <kai.kang@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@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



  reply	other threads:[~2011-05-20 16:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-20 12:19 [PATCH 0/1] ghostscript: add patches to make it run cross compile platform Kang Kai
2011-05-20 12:19 ` [PATCH 1/1] ghostscript: fix run failure on mpc8315e Kang Kai
2011-05-20 16:18   ` Richard Purdie [this message]
2011-05-21  1:36     ` Kang Kai
  -- strict thread matches above, loose matches on Subject: below --
2011-05-21  8:24 [PATCH 0/1]ghostscript: add patches to make it run cross compile platform V2 Kang Kai
2011-05-21  8:24 ` [PATCH 1/1] ghostscript: fix run failure on mpc8315e Kang Kai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305908321.3424.658.camel@rex \
    --to=richard.purdie@linuxfoundation.org \
    --cc=kai.kang@windriver.com \
    --cc=poky@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.