Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 679360

Summary: dev-libs/xerces-c-3.2.2-r1[-doc] installs html docs outside /usr/share/doc/${PF}
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal CC: cpp+disabled, tanekliang
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Mayo 2019-03-03 19:51:20 UTC
$ ls /usr/share/doc/xerces-c*
/usr/share/doc/xerces-c:
html

/usr/share/doc/xerces-c-3.2.2-r1:
CREDITS.bz2  KEYS.bz2  NOTICE.bz2  README


1) Changing the ebuild to EAPI 7 sets the correct path, cmake-utils contains this:

	if [[ ${EAPI} != [56] ]]; then
		cat >> "${common_config}" <<- _EOF_ || die
			SET (CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" CACHE PATH "")
			SET (BUILD_SHARED_LIBS ON CACHE BOOLEAN "")
		_EOF_
	fi


2) Doesn't appear to be any way of disabling the installation in CMakeLists.txt. Perhaps optionally remove after cmake-utils_src_install (it is nearly 1200 files).
Comment 1 Chris Mayo 2019-03-04 18:56:19 UTC
(In reply to Chris Mayo from comment #0)
> 2) Doesn't appear to be any way of disabling the installation in
> CMakeLists.txt. Perhaps optionally remove after cmake-utils_src_install (it
> is nearly 1200 files).
This also works:

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -175,7 +175,6 @@
   COMPONENT "development")
 
 # Process subdirectories
-add_subdirectory(doc)
 add_subdirectory(src)
 add_subdirectory(tests)
 add_subdirectory(samples)