Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931742 - sys-devel/gcc: Duplicated g++ and c++ binaries
Summary: sys-devel/gcc: Duplicated g++ and c++ binaries
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-11 13:38 UTC by tgyt
Modified: 2024-05-13 21:47 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tgyt 2024-05-11 13:38:22 UTC
Maybe this was fixed in newer portage tree, but for me there are two binaries with same md5 hash that are not symlinks:
6bb4ccfc949a7f48fba2fd3f67739113  /usr/x86_64-pc-linux-gnu/gcc-bin/13/x86_64-pc-linux-gnu-g++
6bb4ccfc949a7f48fba2fd3f67739113  /usr/x86_64-pc-linux-gnu/gcc-bin/13/x86_64-pc-linux-gnu-c++
Same goes for gcc 12.

There is also possibility g++ is linked or even compiled twice.
Comment 1 tgyt 2024-05-11 13:38:49 UTC
Same on armv7
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-12 05:58:41 UTC
It would help to know which date/commit you're at of ::gentoo.
Comment 3 Arsen Arsenović gentoo-dev 2024-05-12 08:04:40 UTC
~$ ls --inode /usr/x86_64-pc-linux-gnu/gcc-bin/13/x86_64-pc-linux-gnu-?++
5476725 /usr/x86_64-pc-linux-gnu/gcc-bin/13/x86_64-pc-linux-gnu-c++
5476725 /usr/x86_64-pc-linux-gnu/gcc-bin/13/x86_64-pc-linux-gnu-g++
Comment 4 tgyt 2024-05-13 21:47:06 UTC
Huh. Hardlinks indeed. Didn't expect them.