Summary: | app-text/ghostscript-gpl - disable endian check when cross-compiling | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | DaboD <daiderek> |
Component: | New packages | Assignee: | Printing Team <printing> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | vapier |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://bugs.ghostscript.com/show_bug.cgi?id=696498 | ||
See Also: | http://bugs.ghostscript.com/show_bug.cgi?id=696498 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
ghostscript-gpl-9.05-r3.ebuild Remove BIGENDIAN check if cross-compiling |
Description
DaboD
2012-08-02 07:16:34 UTC
Created attachment 320014 [details]
ghostscript-gpl-9.05-r3.ebuild
Created attachment 320016 [details, diff]
Remove BIGENDIAN check if cross-compiling
Check environment variable LCMS_BIGENDIAN instead of checking it when chross-compiling.
Comment on attachment 320014 [details] ghostscript-gpl-9.05-r3.ebuild --- ghostscript-gpl-9.05-r2.ebuild 2012-06-05 15:44:54.000000000 +0200 +++ - 2012-08-02 13:57:41.681642528 +0200 @@ -4,7 +4,7 @@ EAPI=3 -inherit autotools eutils multilib versionator flag-o-matic +inherit autotools eutils multilib versionator flag-o-matic toolchain-funcs DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" HOMEPAGE="http://ghostscript.com/" @@ -90,7 +90,7 @@ EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" EPATCH_SOURCE="${WORKDIR}/patches/" epatch - + if ! use bindist && use djvu ; then unpack gsdjvu-${GSDJVU_PV}.tar.gz cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" @@ -122,6 +122,8 @@ cd "${S}" eautoreconf + + epatch "${FILESDIR}/${P}-bigendian.patch" cd "${S}/ijs" eautoreconf @@ -141,6 +143,14 @@ do FONTPATH="$FONTPATH${FONTPATH:+:}$path" done + + if tc-is-cross-compiler; then + einfo Generating native tools... + CC=$(tc-getBUILD_CC) CFLAGS= ./configure + emake -j1 ./obj/aux/echogs ./obj/aux/genarch ./obj/aux/genconf \ + ./obj/aux/gendev ./obj/aux/genht ./obj/aux/mkromfs || die + mv obj native-obj + fi econf \ --enable-dynamic \ @@ -175,6 +185,15 @@ } src_compile() { + if tc-is-cross-compiler; then + emake -j1 ./obj/aux/echogs ./obj/aux/genarch ./obj/aux/genconf + mv -f native-obj/aux/{echogs,genarch,genconf} obj/aux + emake -j1 ./obj/aux/mkromfs ./obj/aux/genht ./obj/aux/gendev + mv -f native-obj/aux/{mkromfs,genht,gendev} obj/aux + + cp -a obj soobj + fi + emake -j1 so all || die "emake failed" cd "${S}/ijs" I don't know how to modify configure.ac or configure.in, so I modified configure directly instead. If you known how to do it, you are welcome to replace my patch. i fixed the endian check: http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49a99600e96a5db897428d37c7ba88b3120cb596 |