Bug 241974 - dev-util/oprofile: documentation installed outside /usr/share/doc/${PF}
Bug#: 241974 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: spock@gentoo.org Reported By: flameeyes@gentoo.org
Component: Ebuilds
URL: 
Summary: dev-util/oprofile: documentation installed outside /usr/share/doc/${PF}
Keywords:  
Status Whiteboard: 
Opened: 2008-10-14 13:10 0000
Description:   Opened: 2008-10-14 13:10 0000
./usr/share/doc/oprofile/
./usr/share/doc/oprofile/oprofile.html
./usr/share/doc/oprofile/internals.html
./usr/share/doc/oprofile/opreport.xsd
./usr/share/doc/oprofile/op-jit-devel.html
./dev-util/oprofile-0.9.4.tbz2

You're getting this bug because the package in summary installs its
documentation (or at least part of it) outside the usual /usr/share/doc/${PF}
directory.

First, please keep in mind that this bug might not be noticeable for -r0
ebuilds, but it might be for -r1 and later, since if the ebuild has same name
and version of the package, for -r0 it might correspond properly.

To fix this, if the package uses autotools, recent version (autoconf 2.61+)
have two ./configure switches: --docdir and --htmldir to decide where to put
the documentation. Older versions might require you override docdir/htmldir or
other custom variables during make install.

For non-autotooled build systems, good luck, since I cannot tell you how to
achieve the proper results, the same holds true with totally broken
buildsystems even when based on autotools.

Thanks,
Diego

------- Comment #1 From Michal Januszewski 2008-10-14 19:24:08 0000 -------
Fixed -- thanks for reporting the problem.

------- Comment #2 From gentoo@42productions.org 2009-03-14 22:20:44 0000 -------
The pkg_postinst message should be modified as well.

elog "Then read manpages and this html doc:"
elog "  /usr/share/doc/oprofile/oprofile.html"

------- Comment #3 From Michal Januszewski 2009-03-22 07:52:15 0000 -------
Fixed, thanks.