Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555400 - =app-text/asciidoc-8.6.9-r1[-examples]: attempts to compress the non-existing examples directory
Summary: =app-text/asciidoc-8.6.9-r1[-examples]: attempts to compress the non-existing...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marc Joliet
URL:
Whiteboard:
Keywords:
: 577310 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-19 23:59 UTC by Coacher
Modified: 2016-03-13 16:36 UTC (History)
4 users (show)

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


Attachments
emerge --info asciidoc (info,6.26 KB, text/plain)
2015-07-19 23:59 UTC, Coacher
Details
build.log (build.log,21.88 KB, text/plain)
2015-07-20 00:00 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2015-07-19 23:59:08 UTC
Hello.

asciidoc-8.6.9-r1 ebuild has the following snippet of code inside src_install():

if use examples; then
    cp -rL examples/website "${D}"/usr/share/doc/${PF}/examples || die
fi
docompress -x /usr/share/doc/${PF}/examples

As you can see 'docompress' is called against the non-existing directory when 'examples' USE is disabled. This can easily be fixed by moving the 'docompress' call inside the if-clause.

Otherwise emerge prints the following error during build:

 * prepcompress: ignoring nonexistent path '/usr/share/doc/asciidoc-8.6.9-r1/examples'

Please fix.

Reproducible: Always
Comment 1 Coacher 2015-07-19 23:59:45 UTC
Created attachment 407194 [details]
emerge --info asciidoc
Comment 2 Coacher 2015-07-20 00:00:05 UTC
Created attachment 407196 [details]
build.log
Comment 3 Coacher 2015-07-20 00:02:19 UTC
After the asciidoc-8.6.9-r1 installation:

$ ls -lA /usr/share/doc/asciidoc-8.6.9-r1/
total 64
-rw-r--r-- 1 root root  1148 Jul 20 02:47 asciidoc-docbook-xsl.txt.bz2
-rw-r--r-- 1 root root   609 Jul 20 02:47 BUGS.bz2
-rw-r--r-- 1 root root 41083 Jul 20 02:47 CHANGELOG.bz2
-rw-r--r-- 1 root root   486 Jul 20 02:47 code-filter-readme.txt.bz2
-rw-r--r-- 1 root root   720 Jul 20 02:47 dblatex-readme.txt.bz2
-rw-r--r-- 1 root root   686 Jul 20 02:47 README.bz2
Comment 4 Marc Joliet 2015-11-20 20:24:15 UTC
See https://github.com/gentoo/gentoo/pull/382.
Comment 5 Patrice Clement gentoo-dev 2015-11-23 15:02:16 UTC
commit 0e1fc3f (HEAD, master)
Merge: ecfc032 bcd5220
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Mon Nov 23 14:59:27 2015 +0000

    Merge remote-tracking branch 'github/pr/382'. Fixes bug 555400.
Comment 6 Marc Joliet 2016-03-13 16:36:28 UTC
*** Bug 577310 has been marked as a duplicate of this bug. ***