Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223863 - dev-libs/xerces-c - documentation path inconsistency
Summary: dev-libs/xerces-c - documentation path inconsistency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-27 16:42 UTC by Sven Wehner
Modified: 2008-06-07 14:36 UTC (History)
0 users

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 Sven Wehner 2008-05-27 16:42:33 UTC
Hi,

this is a really trivial bug concerning xerces-c-2.7.0-r1, but it's annoying anyway:
If you use the "doc" use flag for dev-libs/xerces-c, the ebuild installs some html files (doxygen results) to /usr/share/doc/xerces-c-2.7.0-r1/ (with the revision) but the samples gets to /usr/share/doc/xerces-c-2.7.0/ (without the revision). Which is a little bit annoying, because you need the version.incl file to compile the samples and because of this you need to (first bunzip2 version.incl) move it to the samples folder and then to "export XERCESCROOT=/usr/share/doc/xerces-c-2.7.0/" and compile.

In the ebuild...
----- snip -----
src_install () {
    export XERCESCROOT="${S}"
    cd "${S}"/src/xercesc
    emake DESTDIR="${D}" MLIBDIR=$(get_libdir) install || die "emake failed"

    if use doc; then
        dodir /usr/share/doc/${P}
        cp -pPR "${S}"/samples "${D}"/usr/share/doc/${P}
        cd "${S}"/doc; doxygen
        dohtml -r html
    fi

    cd "${S}"
    dodoc STATUS credits.txt version.incl
    dohtml Readme.html

    unset XERCESCROOT
}
----- snap -----
... you could change "cp -pPR "${S}"/samples "${D}"/usr/share/doc/${P}" to "cp -pPR "${S}"/samples "${D}"/usr/share/doc/${PF}" and (even better) compile the samples directly...

Reproducible: Always

Steps to Reproduce:



Expected Results:  
It would be great, if the whole documentation is within a single folder and version.incl is usable from the beginning.
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2008-06-07 14:36:06 UTC
Fully agree with the install path.
But I won't compile the stuff...