Bug 120888 - ghostscript-esp-7.07.1-r8 doesn't build if cjk useflag is unset
Bug#: 120888 Product:  Gentoo Linux Version: 2005.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P1
Resolution: FIXED Assigned To: printing@gentoo.org Reported By: gentoobugs@farcaster.org
Component: Printing
URL: 
Summary: ghostscript-esp-7.07.1-r8 doesn't build if cjk useflag is unset
Keywords:  
Status Whiteboard: 
Opened: 2006-01-29 17:04 0000
Description:   Opened: 2006-01-29 17:04 0000
ghostscript-esp-7.07.1-r8 doesn't build when cjk is unset.  This is because it
only downloads the patch gs7.07.1-cjk.diff.bz2 when cjk is set, but then it
tries to unconditionally apply it in src_unpack.  Since it wasn't downloaded,
it's a little difficult to apply.

Changing the ebuild to conditionally apply the patch appears to solve the
problem and will allow ghostscript-esp to build and install.

------- Comment #1 From Robert Trace 2006-01-29 17:05:10 0000 -------
Created an attachment (id=78484) [details]
Only apply cjk patch if cjk useflag is set

A trivial little patch to implement the correct behavior.

------- Comment #2 From Marcelo Goes 2006-01-29 17:20:00 0000 -------
Fixed in cvs. I did this instead, seems easiers:

 src_unpack() {
        unpack espgs-${PV}-source.tar.bz2
-       unpack gs7.07.1-cjk.diff.bz2

        cd ${S}

@@ -59,6 +58,7 @@
        fi

        if use cjk ; then
+               unpack gs7.07.1-cjk.diff.bz2
                epatch ${WORKDIR}/gs7.07.1-cjk.diff
                epatch ${FILESDIR}/gs7.05.6-kochi-substitute.patch
        fi

Thanks for reporting!