>>> Completed installing heimdal-0.7.2-r3 into /var/tmp/portage/app-crypt/heimdal-0.7.2-r3/image/ ecompressdir: bzip2 -9 /usr/share/man/man1 bzip2: Input file /var/tmp/portage/app-crypt/heimdal-0.7.2-r3/image//usr/share/man/man1/kinit.1 has 1 other link. bzip2: Input file /var/tmp/portage/app-crypt/heimdal-0.7.2-r3/image//usr/share/man/man1/kauth.1 has 1 other link. ecompressdir: bzip2 -9 /usr/share/man/man3 bzip2: Input file /var/tmp/portage/app-crypt/heimdal-0.7.2-r3/image//usr/share/man/man3/getarg.3 has 1 other link. As shown, ecompressdir with bzip2 doesn't handle directories in which contains hardlinks.
If we don't consider this a bug in the ebuild for creating the hardlinks in the first place, I think we should simply use bzip2's --force option to break the hardlinks. Anything else seems little more than extra complication with questionable gain.
In svn r6089 I've added --force to the default PORTAGE_COMPRESS_FLAGS so that hardlinks are automatically broken.
This has been released in 2.1.2-r12.
thanks, i think this is the correct fix too ... people should be using softlinks, not hardlinks ...