<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>120888</bug_id>
          
          <creation_ts>2006-01-29 17:04 0000</creation_ts>
          <short_desc>ghostscript-esp-7.07.1-r8 doesn&apos;t build if cjk useflag is unset</short_desc>
          <delta_ts>2006-01-29 17:20:00 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Printing</component>
          <version>2005.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P1</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoobugs@farcaster.org</reporter>
          <assigned_to>printing@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>gentoobugs@farcaster.org</who>
            <bug_when>2006-01-29 17:04:01 0000</bug_when>
            <thetext>ghostscript-esp-7.07.1-r8 doesn&apos;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&apos;t downloaded, it&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoobugs@farcaster.org</who>
            <bug_when>2006-01-29 17:05:10 0000</bug_when>
            <thetext>Created an attachment (id=78484)
Only apply cjk patch if cjk useflag is set

A trivial little patch to implement the correct behavior.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vanquirius@gentoo.org</who>
            <bug_when>2006-01-29 17:20:00 0000</bug_when>
            <thetext>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!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>78484</attachid>
            <date>2006-01-29 17:05 0000</date>
            <desc>cjk-useflag.patch</desc>
            <filename>ghostscript-esp-7.07.1-r8-cjk.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdob3N0c2NyaXB0LWVzcC03LjA3LjEtcjguZWJ1aWxkLm9yaWcJMjAwNi0wMS0yOSAxODow
MDo1NS4wMDAwMDAwMDAgLTA3MDAKKysrIGdob3N0c2NyaXB0LWVzcC03LjA3LjEtcjguZWJ1aWxk
CTIwMDYtMDEtMjkgMTg6MDA6MzIuMDAwMDAwMDAwIC0wNzAwCkBAIC00Niw3ICs0Niw5IEBACiAK
IHNyY191bnBhY2soKSB7CiAJdW5wYWNrIGVzcGdzLSR7UFZ9LXNvdXJjZS50YXIuYnoyCi0JdW5w
YWNrIGdzNy4wNy4xLWNqay5kaWZmLmJ6MgorCWlmIHVzZSBjams7IHRoZW4KKwkJdW5wYWNrIGdz
Ny4wNy4xLWNqay5kaWZmLmJ6MgorCWZpCiAKIAljZCAke1N9CiAK
</data>        

          </attachment>
    </bug>

</bugzilla>