Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274319 - app-text/asciidoc mistakes /etc for /usr/share
Summary: app-text/asciidoc mistakes /etc for /usr/share
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo SGML project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-16 11:54 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-12-12 11:22 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-16 11:54:05 UTC
yamato tinderbox-scripts # qlist asciidoc
/usr/bin/asciidoc.py
/usr/bin/asciidoc
/usr/bin/a2x
/etc/asciidoc/images/icons/next.png
/etc/asciidoc/images/icons/important.png
/etc/asciidoc/images/icons/tip.png
/etc/asciidoc/images/icons/README
/etc/asciidoc/images/icons/prev.png
/etc/asciidoc/images/icons/caution.png
/etc/asciidoc/images/icons/callouts/14.png
/etc/asciidoc/images/icons/callouts/15.png
/etc/asciidoc/images/icons/callouts/7.png
/etc/asciidoc/images/icons/callouts/10.png
/etc/asciidoc/images/icons/callouts/8.png
/etc/asciidoc/images/icons/callouts/12.png
/etc/asciidoc/images/icons/callouts/6.png
/etc/asciidoc/images/icons/callouts/5.png
/etc/asciidoc/images/icons/callouts/2.png
/etc/asciidoc/images/icons/callouts/1.png
/etc/asciidoc/images/icons/callouts/9.png
/etc/asciidoc/images/icons/callouts/11.png
/etc/asciidoc/images/icons/callouts/13.png
/etc/asciidoc/images/icons/callouts/3.png
/etc/asciidoc/images/icons/callouts/4.png
/etc/asciidoc/images/icons/warning.png
/etc/asciidoc/images/icons/example.png
/etc/asciidoc/images/icons/home.png
/etc/asciidoc/images/icons/note.png
/etc/asciidoc/images/icons/up.png
/etc/asciidoc/asciidoc.conf
/etc/asciidoc/stylesheets/xhtml11-manpage.css
/etc/asciidoc/stylesheets/xhtml11.css
/etc/asciidoc/stylesheets/docbook-xsl.css
/etc/asciidoc/stylesheets/xhtml11-quirks.css
/etc/asciidoc/xhtml11-quirks.conf
/etc/asciidoc/xhtml11.conf
/etc/asciidoc/html4.conf
/etc/asciidoc/dblatex/asciidoc-dblatex.sty
/etc/asciidoc/dblatex/asciidoc-dblatex.xsl
/etc/asciidoc/docbook.conf
/etc/asciidoc/latex.conf
/etc/asciidoc/javascripts/LaTeXMathML.js
/etc/asciidoc/javascripts/toc.js
/etc/asciidoc/javascripts/ASCIIMathML.js
/etc/asciidoc/filters/code/code-filter.py
/etc/asciidoc/filters/code/code-filter.conf
/etc/asciidoc/filters/source/source-highlight-filter.conf
/etc/asciidoc/filters/graphviz/graphviz-filter.conf
/etc/asciidoc/filters/graphviz/graphviz2png.py
/etc/asciidoc/filters/music/music-filter.conf
/etc/asciidoc/filters/music/music2png.py
/etc/asciidoc/docbook-xsl/fo.xsl
/etc/asciidoc/docbook-xsl/manpage.xsl
/etc/asciidoc/docbook-xsl/xhtml.xsl
/etc/asciidoc/docbook-xsl/chunked.xsl
/etc/asciidoc/docbook-xsl/text.xsl
/etc/asciidoc/docbook-xsl/common.xsl
/etc/asciidoc/docbook-xsl/htmlhelp.xsl
/etc/asciidoc/wordpress.conf
/etc/asciidoc/text.conf
/etc/asciidoc/help.conf
/etc/asciidoc/lang-es.conf

also note that after an update of asciidoc etc-update required me to pass *twenty* files.

This needs to be addressed; soon.
Comment 1 sf 2009-11-26 16:29:02 UTC
An idea: In the ebuild install all files now in /etc/asciidoc under /usr/share/asciidoc and symlink from /etc/asciidoc to /usr/share/asciidoc.

Disclaimer: I have no idea if this works.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-11-26 16:50:08 UTC
That's an hack and not even one that's going to solve much.

The fix is to change the code to access /usr/share/asciidoc rather than /etc/asciidoc.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-04 16:55:58 UTC
Finally, this is fixed with 8.5.1. It wasn't difficult at all, since you just need to override --sysconfdir.
Comment 4 Nils Kneuper 2009-12-12 11:22:49 UTC
(In reply to comment #3)
> Finally, this is fixed with 8.5.1. It wasn't difficult at all, since you just
> need to override --sysconfdir.
> 

This is not a real fix. The *default* for asciidoc is to end in /etc, so all the scripts out there relying on asciidoc that directly reference the config files (that are probably many, at least we do so in wesnoth for the manual generation!) directly reference to those.
Making the whole setup differ between eg Gentoo and Debian is a bad idea since this way the whole scripts of other programs will end distribution specifig, IMO a really bad things to do. You should at least add a symlink /etc/asciidoc pointing to /usr/share/asciidoc so that the scripts are usable for all distributions out there.

With other words:
IMO this is *NOT* fixed but creating a new bug!