Version of FreeBSD 2.0 or later have /usr/bin/gcore. File collision occurs because gcore script was added to the gdb-7.7. FYI, * FreeBSD Man page. http://www.freebsd.org/cgi/man.cgi?query=gcore&apropos=0&sektion=0&manpath=FreeBSD+9.0-RELEASE&arch=default&format=html * GDB 7.7 ANNOUNCEMENT http://www.sourceware.org/gdb/download/ANNOUNCEMENT * New script gcore, installed in $prefix/bin Reproducible: Always Steps to Reproduce: 1. emerge sys-devel/gdb 2. 3. Actual Results: * 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). See * http://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how to * solve the problem. And once again, please do NOT file a bug report * unless you have completely understood the above message. * * Detected file collision(s): * * /usr/bin/gcore * /usr/share/man/man1/gcore.1.bz2 * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * sys-freebsd/freebsd-ubin-10.0:0::amd64-fbsd * /usr/bin/gcore * /usr/share/man/man1/gcore.1.bz2 * * Package 'sys-devel/gdb-7.7-r1' 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-devel/gdb-7.7-r1, Log file: >>> '/var/tmp/portage/sys-devel/gdb-7.7-r1/temp/build.log'
i'm assuming FreeBSD's gcore is more extensive than the minor gdb wrapper script. if so, we could change gdb to simply not install gcore stuff. wdyt ?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29264a5d156fc35c99c3cfa863ac6992d083f1e2 commit 29264a5d156fc35c99c3cfa863ac6992d083f1e2 Author: Stephan Hartmann <stha09@googlemail.com> AuthorDate: 2018-02-17 18:38:52 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-02-18 12:08:46 +0000 sys-devel/gdb: fix gcore collision on freebsd Closes: https://bugs.gentoo.org/507456 Package-Manager: Portage-2.3.19, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/7216 sys-devel/gdb/gdb-8.1.ebuild | 5 +++++ sys-devel/gdb/gdb-9999.ebuild | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-)