Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344289 - www-apache/passenger-3.0.0[doc] should depend on app-text/asciidoc[highlight]
Summary: www-apache/passenger-3.0.0[doc] should depend on app-text/asciidoc[highlight]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-05 17:19 UTC by onip
Modified: 2011-02-23 20:16 UTC (History)
3 users (show)

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


Attachments
failed build.log (build.log,29.83 KB, text/plain)
2010-11-05 17:19 UTC, onip
Details

Note You need to log in before you can comment on or make changes to this bug.
Description onip 2010-11-05 17:19:20 UTC
Emerge of latest www-apache/passenger fails (log to follow) if dev-util/source-highlight is not installed. This, probably (I don't have time to check now, sorry) depends on the USE flag "doc" being enabled.

emerging source-highlight lets passenger emerge and install fine.

Reproducible: Always

Steps to Reproduce:
Comment 1 onip 2010-11-05 17:19:44 UTC
Created attachment 253307 [details]
failed build.log
Comment 2 Hans de Graaff gentoo-dev Security 2010-11-06 10:50:27 UTC
There are two issues here:

1) passenger was missing a dependency on asciidoc which I've now added in CVS.

2) newer asciidoc versions now require dev-util/source-highlight when generating HTML output. I did not notice because I was still using 8.2.6. With asciidoc-8.5.3 this is now mandatory (from ./filters/source/source-highlight-filter.conf)

# HTML outputs require GNU source-highlight
# http://www.gnu.org/software/src-highlite/source-highlight.html

Re-assigning to the asciidoc maintainers.
Comment 3 onip 2011-01-11 08:29:38 UTC
http://www.methods.co.nz/asciidoc/source-highlight-filter.html

They state that both source-highlight or pygments would fit, but I have pygments installed on my own and asciidoc doesn't recognize it.
Comment 4 Sebastian Pipping gentoo-dev 2011-02-22 21:40:50 UTC
(In reply to comment #2)
> 2) newer asciidoc versions now require dev-util/source-highlight when
> generating HTML output. I did not notice because I was still using 8.2.6. With
> asciidoc-8.5.3 this is now mandatory (from
> ./filters/source/source-highlight-filter.conf)

Both dev-util/source-highlight and dev-python/pygments seems to be a "soft dependency" of asciidoc: for instance, the complete docs of git build fine without it.  We could add

  doc? ( dev-util/source-highlight )

to passenger instead.  What do you think?
Comment 5 Hans de Graaff gentoo-dev Security 2011-02-23 07:22:16 UTC
(In reply to comment #4)

> Both dev-util/source-highlight and dev-python/pygments seems to be a "soft
> dependency" of asciidoc: for instance, the complete docs of git build fine
> without it.  We could add
> 
>   doc? ( dev-util/source-highlight )
> 
> to passenger instead.  What do you think?

In that case I'd much rather add 

  doc? ( app-text/asciidoc[highlight] )

to passenger. That leaves the responsibility for what that actually means with asciidoc where it belongs, and allows the asciidoc maintainer to handle things like required versions, alternative highlight implementations if any, etc. instead of scattering these throughout the tree.
Comment 6 Sebastian Pipping gentoo-dev 2011-02-23 08:37:45 UTC
(In reply to comment #5)
>   doc? ( app-text/asciidoc[highlight] )

That's a neat idea.  I'll add that use flag and come back to you.
Comment 7 Sebastian Pipping gentoo-dev 2011-02-23 09:00:59 UTC
(In reply to comment #5)
> In that case I'd much rather add 
> 
>   doc? ( app-text/asciidoc[highlight] )
> 
> to passenger.

Go ahead, use flag "highlight" just added to asciidoc.
Comment 8 Hans de Graaff gentoo-dev Security 2011-02-23 20:16:25 UTC
Fixed for www-apache/passenger-3.0.2 in CVS. Thanks!