Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364857 - media-libs/libwpg:0.1 and media-libs/libwpg:0.2 file collisions when USE="doc" on both slots
Summary: media-libs/libwpg:0.1 and media-libs/libwpg:0.2 file collisions when USE="doc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 365795 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-25 21:16 UTC by James Ausmus
Modified: 2011-05-14 15:42 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Add --docdir to configure call (bug364857a.patch,809 bytes, patch)
2011-05-10 15:22 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Ausmus 2011-04-25 21:16:40 UTC
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.
Comment 1 Erik Zeek 2011-04-28 04:57:53 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 Andrey Grozin gentoo-dev 2011-05-02 20:51:20 UTC
Any progress here? emerge -u @world failed again because of this bug :-(
Comment 3 Ian Abbott 2011-05-03 11:04:17 UTC
*** Bug 365795 has been marked as a duplicate of this bug. ***
Comment 4 Martin von Gagern 2011-05-10 15:12:08 UTC
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.
Comment 5 Martin von Gagern 2011-05-10 15:22:43 UTC
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.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2011-05-14 15:42:12 UTC
Fixed, thanks!