If you attempt to emerge both media-libs/libwpg:0.1 and media-libs/libwpg:0.2 with USE="doc", you will get file collisions in /usr/share/doc/libwpg/html: * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * media-libs/libwpg-0.1.3 * /usr/share/doc/libwpg/html/WPG1Parser_8cpp.html * /usr/share/doc/libwpg/html/WPGBitmap_8cpp.html * /usr/share/doc/libwpg/html/WPGHeader_8cpp.html * /usr/share/doc/libwpg/html/WPGInternalStream_8cpp.html * /usr/share/doc/libwpg/html/WPGInternalStream_8h_source.html * /usr/share/doc/libwpg/html/WPGPaintInterface_8h_source.html * /usr/share/doc/libwpg/html/WPGraphics_8h.html * /usr/share/doc/libwpg/html/classWPGBitmapContext.html * /usr/share/doc/libwpg/html/classWPGGroupContext.html * /usr/share/doc/libwpg/html/classlibwpg_1_1WPGBitmap_1_1Private-members.html * /usr/share/doc/libwpg/html/classlibwpg_1_1WPGColor.html * /usr/share/doc/libwpg/html/ftv2lastnode.png * /usr/share/doc/libwpg/html/ftv2link.png * /usr/share/doc/libwpg/html/functions_0x62.html * /usr/share/doc/libwpg/html/functions_0x64.html * /usr/share/doc/libwpg/html/functions_0x79.html * /usr/share/doc/libwpg/html/functions_func_0x7e.html * /usr/share/doc/libwpg/html/functions_vars.html * /usr/share/doc/libwpg/html/libwpg_8h.html * /usr/share/doc/libwpg/html/libwpg_8h_source.html * * Package 'media-libs/libwpg-0.2.0' NOT merged due to file collisions. * If necessary, refer to your elog messages for the whole content of the * above message. Reproducible: Always Steps to Reproduce: 1. USE="doc" emerge media-libs/libwpg:0.1 2. USE="doc" emerge media-libs/libwpg:0.2 3.
*** This bug has been confirmed by popular vote. ***
Any progress here? emerge -u @world failed again because of this bug :-(
*** Bug 365795 has been marked as a duplicate of this bug. ***
A first workaround would be taking the collision into account in the dependencies, i.e. have libwpg:0.2 include RDEPEND="doc? ( !libwpg:0.1[doc] )". That way, portage would prevent the conflicting packages from being emerged, instead of relying on the collision protection feature. The easiest solution for users is of course to disable the doc USE flag for one of the slots, e.g. echo media-libs/libwpg:0.1 -doc >> /etc/portage/package.use A proper solution to allow for parallel installation of both slots would be using the --docdir=DIR argument to configure, and have it include the slot. Preferably one would set it to /usr/share/doc/${P}, as that would allow install_symlink_html_docs from /usr/lib/portage/bin/misc-functions.sh to catch that html directory and add an appropriate symlink for it.
Created attachment 272743 [details, diff] Add --docdir to configure call This patch adds --docdir to the configure call, avoiding the collision and enabling automatic symlinks in DOC_SYMLINKS_DIR. As the change affects the runtime layout of the packages, a revbump would be advisable.
Fixed, thanks!