emerge ktexmaker2 -p These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild R ] sys-libs/ncurses-5.2-r5 to / [ebuild N ] app-text/tetex-1.0.7-r9 to / [ebuild N ] app-editors/ktexmaker2-1.7 to / # pkgsearch ncurses /usr/portage/sys-libs/ncurses/ncurses-5.2.20020112a-r1.ebuild /usr/portage/sys-libs/ncurses/ncurses-5.2-r5.ebuild (installed) /usr/portage/sys-libs/ncurses/ncurses-5.2-r4.ebuild /usr/portage/sys-libs/ncurses/ncurses-5.2.20020112a.ebuild /usr/portage/sys-libs/ncurses/ncurses-5.2-r3.ebuild Why is it trying to REmerge ncurses-5.2-r5 if I already have it?
are you sure you have it, and not ncurses-5.2.20020112a-r1 over it?
Yes. Did you noticew the [ R] for ncurses?
Well, the R would appear even if the ncurses5.2 package had been overwritten by the one with the 20020112a in it, unless you unmerge it explicitly, no? in other words, the records for both would exist in /var/db/pkg... If you compare mtimes, that'll tell you who owns the files, really.
I guess in this case it would appear as "(installed)" on the "pkgsearch ncurses" output which I inluded too ;) If you still think you neeed more: # find /var/db/pkg/ -type d | grep curses /var/db/pkg/sys-libs/ncurses-5.2-r5
the ncurses you have installed is masked, so it wants to go back to the latest unmasked version. Known and correct behavior, so I'm closing the bug.