Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586834 - dev-util/google-perftools-2.5 installs duplicate html documentation
Summary: dev-util/google-perftools-2.5 installs duplicate html documentation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (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:
Depends on:
Blocks:
 
Reported: 2016-06-23 18:42 UTC by Chris Mayo
Modified: 2018-10-14 10:18 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 Chris Mayo 2016-06-23 18:42:57 UTC
/usr/share/doc/google-perftools-2.5/index.html
/usr/share/doc/google-perftools-2.5/designstyle.css
....
/usr/share/doc/google-perftools-2.5/html/doc/index.html
/usr/share/doc/google-perftools-2.5/html/doc/designstyle.css
...

google-perftools installs html (the contents of its doc subdirectory) in $docdir

ebuild sets HTML_DOCS="doc" (and --htmldir which doesn't do anything)


A workaround is:

--- google-perftools-2.5.ebuild.orig
+++ google-perftools-2.5.ebuild
@@ -48,7 +48,7 @@
 	append-flags -fno-strict-aliasing -fno-omit-frame-pointer
 
 	local myeconfargs=(
-		--htmldir=/usr/share/doc/${PF}/html
+		--docdir=/usr/share/doc/DUPLICATE_HTML
 		$(use_enable debug debugalloc)
 	)
 
@@ -77,3 +77,7 @@
 multilib_check_headers() {
 	:
 }
+
+pkg_preinst() {
+	rm -r "${D}"/usr/share/doc/DUPLICATE_HTML
+}
Comment 1 Chris Mayo 2016-06-27 06:54:39 UTC
Also HTML_DOCS="doc" creates an extra doc subdirectory:
/usr/share/doc/google-perftools-2.5/html/doc/index.html

Suggest HTML_DOCS="doc/*"
Comment 2 Larry the Git Cow gentoo-dev 2018-10-14 10:18:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fc27cfeeb7b0431db4da300e2b81dfeec90fc0c

commit 0fc27cfeeb7b0431db4da300e2b81dfeec90fc0c
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2018-10-14 09:43:56 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2018-10-14 10:18:09 +0000

    dev-util/google-perftools: Bump to 2.7
    
    Closes: https://bugs.gentoo.org/586834
    Closes: https://bugs.gentoo.org/662590
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-util/google-perftools/Manifest                 |  1 +
 .../google-perftools/google-perftools-2.7.ebuild   | 88 ++++++++++++++++++++++
 2 files changed, 89 insertions(+)