Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679374 - dev-util/catalyst: Make the 'app-text/asciidoc' dependency optional
Summary: dev-util/catalyst: Make the 'app-text/asciidoc' dependency optional
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-03 23:30 UTC by Joshua Kinard
Modified: 2021-06-14 22:07 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Kinard gentoo-dev 2019-03-03 23:30:31 UTC
Catalyst currently has a hard dependency on app-text/asciidoc.  Unfortunately, the current asciidoc packages in Gentoo only work with Pythono-2.7, which is going to be EOL'ed in 2020, thus you have to set PYTHON_SINGLE_TARGET="python2_7".

This becomes a problem if you have to install dev-util/glib-utils (which usually happens if you ever have to install dev-libs/glib), which only supports Python-3.x now, as far as I can tell.  In order to avoid a block loop, you have to set PYTHON_SINGLE_TARGET to a supported python3_X value.  This will of course then break asciidoc.

Bug #661662 is open to request addition of a Python-3.x-compatible version of asciidoc, via a new asciidoc-py3 package, but not much of an ETA on when that will be complete.

It looks like asciidoc has no use after catalyst is installed, so I think the easiest way to resolve this for now is to make asciidoc an optional dependency in catalyst behind a USE flag, as well as the corresponding build logic in catalyst's compile phase.
Comment 1 Matt Turner gentoo-dev 2019-07-29 04:18:23 UTC
asciidoc with python3 support is stable everywhere. There's also a Ruby implementation (dev-ruby/asciidoctor). I don't know that it makes sense to make asciidoc optional at this point.
Comment 2 Joshua Kinard gentoo-dev 2021-06-14 22:07:37 UTC
Self-closing, as the last set of stages I built at the end of 2020 (unreleased) did not encounter this issue.  Next batch of stages will support only Python-3.9.x, making this corner case moot.