Summary: | dev-util/git-1.6.* installs multiple copies of the same binaries | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matt Whitlock <gentoo> |
Component: | New packages | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | ferdy, robbat2 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Matt Whitlock
2008-11-21 12:03:28 UTC
I had that problem too - and I was wrong. Those are not copies of the same binary - those are hardlinks (at least most of those are). What's more those are planned to go away in one of the future releases of git (though it's not told exactly when). Check this with 'du' and 'du -l' on 'duplicates' lists. (In reply to comment #1) > I had that problem too - and I was wrong. > Those are not copies of the same binary - those are hardlinks (at least most of > those are). > What's more those are planned to go away in one of the future releases of git > (though it's not told exactly when). > > Check this with 'du' and 'du -l' on 'duplicates' lists. > $ du -bc $(qlist git) | tail -n1 94778663 total $ du -lbc $(qlist git) | tail -n1 94778663 total They are not hard links in the live file system. However, they *are* hard links in the "image" staging area beneath /var/tmp/portage prior to being merged. Methinks Portage is not preserving the hardlinkedness when merging onto the live file system. So this might not be a git-specific problem but rather a Portage problem. # ebuild /usr/portage/dev-util/git/git-1.6.0.4.ebuild install > /dev/null The following function could be called in the git ebuild to convert the hard links into symbolic links that Portage would preserve when merging: make_symlinks() { md5sum $(find "${D}"/usr/libexec/git-core -type f) | fgrep $(md5sum "${D}"/usr/bin/git | cut -c-32) | cut -c35- | fgrep -v '/usr/bin/git' | while read dup ; do ln -sfv ../../bin/git "${dup}" done } *** This bug has been marked as a duplicate of bug 170066 *** Begging your pardon, but the fix mentioned in bug #170066 is not included in the ebuild for git-1.6.0.4. Thus, the problem persists. Hey, that's odd... This is a Portage "feature". Feel free to reassign the bug to them though. - ferdy . *** This bug has been marked as a duplicate of bug 235642 *** |