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

Bug 596030

Summary: portage install with doc use flag tries to add files outside the prefix
Product: Portage Development Reporter: Gábor VIDA <vidagabor>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal CC: vidagabor
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 640656    
Attachments: emerge --info
build.log

Description Gábor VIDA 2016-10-03 11:57:45 UTC
Created attachment 448962 [details]
emerge --info

Hi!

I'm trying to install portage with doc use flag in prefixed (non-root) env, which works fine except at the QA error at the very end:

$ emerge -v portage

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies  .... done!
[ebuild   R    ] sys-apps/portage-2.3.1::gentoo  USE="doc* (ipc) -build -epydoc (-selinux) -xattr" LINGUAS="-ru" PYTHON_TARGETS="python2_7 python3_5 -pypy (-python3_3) -python3_4" 0 KiB

[...]

>>> Completed installing portage-2.3.1 into /home/evidgbo/usr/roots/gentoo/var/tmp/portage/sys-apps/portage-2.3.1/image/

 * Final size of build directory: 18948 KiB
 * Final size of installed tree: 33564 KiB

 * QA Notice: the following files are outside of the prefix:

 * /usr
 * /usr/share
 * /usr/share/doc
 * /usr/share/doc/portage-2.3.1
 * /usr/share/doc/portage-2.3.1/html
[...mentioning a log of html files like:]
 * /usr/share/doc/portage-2.3.1/html/ch05s04.html
[...]
 * ERROR: sys-apps/portage-2.3.1::gentoo failed:
 *   Aborting due to QA concerns: there are files installed outside the prefix
 * 
 * Call stack:
 *   misc-functions.sh, line 603:  Called install_qa_check
 *   misc-functions.sh, line 217:  Called source 'install_symlink_html_docs'
 *            05prefix, line 114:  Called install_qa_check_prefix
 *            05prefix, line  27:  Called die
 * The specific snippet of code:
 *   			die "Aborting due to QA concerns: there are files installed outside the prefix"


My prefix is /home/evidgbo/usr/roots/gentoo.

There could a bug in setup.py.
Comment 1 Gábor VIDA 2016-10-03 12:02:27 UTC
Created attachment 448966 [details]
build.log
Comment 2 Zac Medico gentoo-dev 2017-12-11 18:11:55 UTC

*** This bug has been marked as a duplicate of bug 638046 ***
Comment 3 Zac Medico gentoo-dev 2017-12-12 05:48:44 UTC
The --htmldir argument from bug 638046 includes ${EPREFIX}:

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