Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241282 - dev-util/qmtest: documentation installed outside /usr/share/doc/${PF}
Summary: dev-util/qmtest: documentation installed outside /usr/share/doc/${PF}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 295207 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-11 10:46 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-05-12 00:21 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-10-11 10:46:04 UTC
[snip]
./usr/share/doc/qmtest/html/tutorial/extending-test-classes.html
./usr/share/doc/qmtest/html/tutorial/reference-config-file.html
./usr/share/doc/qmtest/html/tutorial/extending-database-classes.html
./usr/share/doc/qmtest/html/tutorial/concepts-context.html
./usr/share/doc/qmtest/html/tutorial/command-run.html
./usr/share/doc/qmtest/html/tutorial/command-create.html
./usr/share/doc/qmtest/html/tutorial/command-report.html
./usr/share/doc/qmtest/print/
./usr/share/doc/qmtest/print/tutorial.pdf
./usr/share/doc/qmtest/examples/
./usr/share/doc/qmtest/examples/xml_tdb/
./usr/share/doc/qmtest/examples/xml_tdb/suite.qms
./usr/share/doc/qmtest/examples/xml_tdb/exec2.qmt
./usr/share/doc/qmtest/examples/xml_tdb/exec0.qmt
./usr/share/doc/qmtest/examples/xml_tdb/exec1.qmt
./usr/share/doc/qmtest/examples/xml_tdb/QMTest/
./usr/share/doc/qmtest/examples/xml_tdb/QMTest/configuration
./usr/share/doc/qmtest/examples/compilation_tdb/
./usr/share/doc/qmtest/examples/compilation_tdb/first.cc
./usr/share/doc/qmtest/examples/compilation_tdb/third.cxx
./usr/share/doc/qmtest/examples/compilation_tdb/context
./usr/share/doc/qmtest/examples/compilation_tdb/second.c
./usr/share/doc/qmtest/examples/compilation_tdb/expectations.qme
./usr/share/doc/qmtest/examples/compilation_tdb/subdir/
./usr/share/doc/qmtest/examples/compilation_tdb/subdir/test.cc
./usr/share/doc/qmtest/examples/compilation_tdb/QMTest/
./usr/share/doc/qmtest/examples/compilation_tdb/QMTest/configuration
dev-util/qmtest-2.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 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-02-13 20:28:20 UTC
*** Bug 295207 has been marked as a duplicate of this bug. ***
Comment 2 Michael Weber (RETIRED) gentoo-dev 2011-05-12 00:20:58 UTC
Index: qmtest-2.4.1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/qmtest/qmtest-2.4.1.ebuild,v
retrieving revision 1.4
diff -u -B -r1.4 qmtest-2.4.1.ebuild
--- qmtest-2.4.1.ebuild 7 Apr 2011 19:34:23 -0000       1.4
+++ qmtest-2.4.1.ebuild 12 May 2011 00:19:57 -0000
@@ -29,4 +29,8 @@
 src_install() {
        distutils_src_install
        find "${D}" -name config.py -print0 | xargs -0 sed -i "s:${D}:/usr:"
+       dodir /usr/share/doc/${PF}
+       rm -r "${D}"/usr/share/doc/${PN}/{COPYING,LICENSE.OPL} || die
+       mv "${D}"/usr/share/doc/${PN}/* "${D}"/usr/share/doc/${PF} || die
+       rm -r "${D}"/usr/share/doc/${PN} || die
 }

+  12 May 2011; Michael Weber <xmw@gentoo.org> qmtest-2.4.1.ebuild:
+  fixing /usr/share/doc/, bug 241282
+