Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 235642

Summary: portage fails to merge hardlinks as hardlinks
Product: Portage Development Reporter: Robin Johnson <robbat2>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo
Priority: High Keywords: InVCS
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 216231    

Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-25 01:07:21 UTC
Maybe a known bug, but I couldn't find anything else in the tree for it.
When the install phase creates hardlinks and the package have preserves them into the tarball correctly, the qmerge phase does not seem to preserve them when copying onto the filesystem.

dev-util/git shows it up for /usr/bin/git-* (in 1.5) or /usr/libexec/git-core/git-* (in 1.6).
Comment 1 Zac Medico gentoo-dev 2008-08-25 02:44:31 UTC
It will work just fine if $PORTAGE_TMPDIR is on the the same file system as $ROOT. Otherwise, yes, it's a known issue that needs fixing.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-25 03:00:03 UTC
Yeah, I have $PORTAGE_TMPDIR as tmpfs.

For dev-util/git, this hardlink bug costs 70MiB of disk. I'm going to look and see if I can convert the package to symlinks instead for now.
Comment 3 Zac Medico gentoo-dev 2008-11-26 20:35:47 UTC
*** Bug 247922 has been marked as a duplicate of this bug. ***
Comment 4 Zac Medico gentoo-dev 2008-11-27 04:12:47 UTC
This is fixed in 2.1.6_rc2.