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

Bug 533324

Summary: dev-libs/libxml2-2.9.2 USE="-examples" installs Python examples
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Mayo 2014-12-22 19:34:50 UTC
$ ls libxml2-python-2.9.2/
examples  TODO.bz2

ebuild expects Python examples in standard /usr/share/doc/${PF}/
workaround:

--- libxml2-2.9.2.ebuild.orig
+++ libxml2-2.9.2.ebuild
@@ -175,7 +175,7 @@
 
 	if ! use examples; then
 		rm -rf "${ED}/usr/share/doc/${PF}/examples"
-		rm -rf "${ED}/usr/share/doc/${PF}/python/examples"
+		rm -rf "${ED}/usr/share/doc/${PN}-python-${PV}"
 	fi
 
 	prune_libtool_files --modules
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-12-23 07:59:18 UTC
Hum, I wonder why this is in a separate directory now.
This fix is fine but there is also the problem that documentation is now spread in two folders which is a QA issue.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-11-09 20:36:48 UTC
This should be fixed in 2.9.2-r2. Please reopen if it is not the case. Also fixed the multiple doc folders problem while at it.