When installing grub-2 with multislot enabled and having installed grub-legacy before, the man-page for grub-install (then grub2-install) is not renamed and thus the collision protection gets sad. Reproducible: Always Steps to Reproduce: 1. Install grub-legacy 2. Try to install grub-2 with USE=multislot Actual Results: >>> Installing (1 of 1) sys-boot/grub-1.97.1 * QA Notice: Expected SLOT='0', got '2' * checking 173 files for package collisions * This package will overwrite one or more files that may belong to other * packages (see list below). You can use a command such as `portageq * owners / <filename>` to identify the installed package that owns a * file. If portageq reports that only one package owns a file then do * NOT file a bug report. A bug report is only useful if it identifies at * least two or more packages that are known to install the same file(s). * If a collision occurs and you can not explain where the file came from * then you should simply ignore the collision since there is not enough * information to determine if a real problem exists. Please do NOT file * a bug report at http://bugs.gentoo.org unless you report exactly which * two packages install the same file(s). Once again, please do NOT file * a bug report unless you have completely understood the above message. * * Detected file collision(s): * * /usr/share/man/man8/grub-install.8.bz2 * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * sys-boot/grub-0.97-r9 * /usr/share/man/man8/grub-install.8.bz2 * * Package 'sys-boot/grub-1.97.1' NOT merged due to file collisions. If * necessary, refer to your elog messages for the whole content of the * above message. >>> Failed to install sys-boot/grub-1.97.1, Log file: >>> '/var/tmp/portage/sys-boot/grub-1.97.1/temp/build.log'
Created attachment 211128 [details, diff] Patch for the ebuild The patch for the ebuild adds lines to move the manual page where it belongs.
post a full build log as an attachment. i see no grub-install(8) man page in grub-1.97+.
Hmm, now it works ... Sorry for the noise.
I was able to reproduce this. Steps to reproduce: 1) Install =sys-boot/grub-0.97-r9 2) Install =sys-boot/grub-1.98 with USE="multislot" Alternate similar steps to reproduce: 1) If =sys-boot/grub-0.97-r9 is installed, unmerge it 2) Install =sys-boot/grub-1.98 with USE="multislot" 3) Install =sys-boot/grub-0.97-r9 * package sys-boot/grub-0.97-r9 NOT merged * * Detected file collision(s): * * /usr/share/man/man8/grub-install.8.bz2 * /sbin/grub-set-default * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * sys-boot/grub-1.98 * /sbin/grub-set-default * /usr/share/man/man8/grub-install.8.bz2 * * Package 'sys-boot/grub-0.97-r9' NOT merged due to file collisions. If * necessary, refer to your elog messages for the whole content of the * above message. And I currently only have grub-1.98 installed and there IS a grub-install(8) man page and portageq shows that grub-1.98 is the owner of both of the files mentioned.
*** Bug 322009 has been marked as a duplicate of this bug. ***
Created attachment 233815 [details] Build log for the failure.