Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 217931

Summary: sci-visualization/gnuplot-4.2.2-r1 USE=doc depends on ghostscript
Product: Gentoo Linux Reporter: D.Allain
Component: New packagesAssignee: Christian Faulhammer (RETIRED) <fauli>
Status: RESOLVED FIXED    
Severity: normal CC: sci
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description D.Allain 2008-04-16 11:01:04 UTC
Emerging gnuplot-4.2.2-r1 with "doc" enabled in USE fails
 unless ghostscript is installed
 complaining about a failure of "emake pdf".

Reproducible: Didn't try

Steps to Reproduce:
1. un-emerge ghostscript
2. try and emerge gnuplot with doc enabled in USE
Actual Results:  
ghostscript is not emerged as a dependency.
but emerging the doc of gnuplot calls a ghostscript command (eps2pdf or something)
and fails unless ghostscript is emerged

Expected Results:  
ghostscript should be emerged as a dependency of gnuplot when doc is enabled in USE

relevant lines of the ebuild :
#gnuplot-4.2.2-r1.ebuild:l.25
    doc? ( virtual/latex-base )
#gnuplot-4.2.2-r1.ebuild:l.67
src_compile() {
# (...)
#gnuplot-4.2.2-r1.ebuild:l.116-122
    if use doc ; then
        cd docs
        emake pdf || die "pdf doc creation failed"
        cd ../tutorial
        emake pdf || die "pdf tutorial failed"
    fi
}
# --- end of extracts ---

FIX ?
Would replacing l.25 with :
    doc? ( virtual/latex-base virtual/ghostscript )
fix it ?
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2008-04-24 12:10:43 UTC
Sorry for the delay, I am currently moving.  Ghostscript is now pulled in by doc USE flag.  Thanks for the report.