I don't have /usr and /etc in same partition, and when i try to extract stage3 package tar gives me error, because package has hard links. package's md5sum is correct. livecd gentoo # tar -xjpf /root/stage3-i686-20040218.tar.bz2 . tar: ./usr/share/terminfo/s/sun1: Cannot hard link to `./etc/terminfo/s/sun': No such file or directory tar: ./usr/share/terminfo/s/sun2: Cannot hard link to `./etc/terminfo/s/sun': No such file or directory tar: ./usr/share/terminfo/v/vt200: Cannot hard link to `./etc/terminfo/v/vt220': No such file or directory tar: ./usr/share/terminfo/v/vt100-am: Cannot hard link to `./etc/terminfo/v/vt100': No such file or directory tar: Error exit delayed from previous errors Reproducible: Always Steps to Reproduce: 1. started gentoo install and followed handbook 2. fetched stage3 and checked md5sum 3. extracted stage3 Actual Results: tar gave error Expected Results: tar should have extracted files without any error
Rather than this "Expected Results: tar should have extracted files without any error" I would suggest that Expected Result is that the tarball shouldn't contain any hard links to files in other directories at all, since there's no way to tell if that directory is on a different filesystem or not. Use symlinks instead.
That would resolve this, but anyway expected result would be that tar wouldn't give any error while extracting stage. My native language isn't english so maybe I have just misunderstud words 'expected results'.
i always have /usr on a diff partition that /etc and have had no problems. The problem it seems does not lie with Gentoo, but perhaps with ncurses. Contact the upstream developer.
I also ran into this problem the other day but with the stage3-pentium3-20040218.tar.bz2 file as well as the i686. I asked Thomas Dickey, the ncurses maintainer, what he thought; and his response was that hard/soft links are a configure option and that the gentoo package is making the choice. It seems many people must be experiencing this problem no? - j
In reply to Tarmo
In reply to Tarmo Äijö: You simply cannot create hard links across file systems. Changing 'tar' to not report such an error is wrong. There is an error and it must be reported. The problem is that the tarball contains hard links across directories that are not guaranteed to be on the same file system. This is clearly incorrect. The resolution is simple - make sure the staging area that is used to create the stage tarball(s) is free of all hard links across directories. If this means changing the way some base package like ncurses is built, then that's the solution. What stage/version is this resolved in please?
I have the same problem, I tried both 2004.0 and 2004.1. What is the status for this bug, i.e. what does resolved upstream really mean? Thanks.
It's a dupe of bug #41886 and it is NOT fixed. I still have to manually tweak my Portage tree before building stage3.