Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44496 - stage3-i686-20040218.tar.bz2 is broken if you don't have /usr and /etc in same partition
Summary: stage3-i686-20040218.tar.bz2 is broken if you don't have /usr and /etc in sam...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-12 15:38 UTC by Tarmo Äijö
Modified: 2004-05-05 01:24 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 Tarmo Äijö 2004-03-12 15:38:37 UTC
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
Comment 1 david.antliff 2004-03-14 14:09:59 UTC
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.
Comment 2 Tarmo Äijö 2004-03-18 02:51:36 UTC
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'.
Comment 3 John Davis (zhen) (RETIRED) gentoo-dev 2004-03-20 11:30:47 UTC
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.
Comment 4 joe cave 2004-04-15 00:29:38 UTC
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
Comment 5 david.antliff 2004-04-17 15:35:40 UTC
In reply to Tarmo 
Comment 6 david.antliff 2004-04-17 15:35:40 UTC
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?
Comment 7 Martin d'Anjou 2004-05-02 08:28:34 UTC
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.
Comment 8 Sascha Silbe 2004-05-05 01:24:23 UTC
It's a dupe of bug #41886 and it is NOT fixed. I still have to manually tweak my Portage tree before building stage3.