Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120888 - ghostscript-esp-7.07.1-r8 doesn't build if cjk useflag is unset
Summary: ghostscript-esp-7.07.1-r8 doesn't build if cjk useflag is unset
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-29 17:04 UTC by Robert Trace
Modified: 2006-01-29 17:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
cjk-useflag.patch (ghostscript-esp-7.07.1-r8-cjk.patch,324 bytes, patch)
2006-01-29 17:05 UTC, Robert Trace
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Trace 2006-01-29 17:04:01 UTC
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 Robert Trace 2006-01-29 17:05:10 UTC
Created attachment 78484 [details, diff]
cjk-useflag.patch

A trivial little patch to implement the correct behavior.
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2006-01-29 17:20:00 UTC
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!