Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25134 - xfree-4.3.0-r3 or r2 fails at the install stage
Summary: xfree-4.3.0-r3 or r2 fails at the install stage
Status: RESOLVED DUPLICATE of bug 19395
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-23 14:13 UTC by Dmitri G. Brengauz
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Install log. (xinstall.log,49.73 KB, text/plain)
2003-07-23 14:16 UTC, Dmitri G. Brengauz
Details
xfree-4.3.0-r3 build log of reproduced bug (xfree-4.3.0-r3.log,19.62 KB, text/plain)
2003-11-14 11:23 UTC, gatto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitri G. Brengauz 2003-07-23 14:13:57 UTC
Every time I try to emerge xfree-4.3.0-r3 or r2, the ebuild fails at the install stage.  I 
went tinto the xc directory, and tried to install manually, but I get the same faliure that 
way as well.
Comment 1 Dmitri G. Brengauz 2003-07-23 14:16:20 UTC
Created attachment 14937 [details]
Install log.
Comment 2 Dmitri G. Brengauz 2003-07-23 14:19:54 UTC
My system has plenty of hard disk space, so that is not an issue.  I am using the 3dfx USE 
flag, and -03 -march athlon-xp compiler flags.  X builds just fine. 
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-09-23 09:50:43 UTC
ran out of diskspace
Comment 4 Dmitri G. Brengauz 2003-09-23 17:45:13 UTC
The hard disk partition where I was trying to build and install X had 97 Gigs. 
of free storage.  I also had 480 megs of free RAM and 3 Gigs of free swap. 
 
The only way I found to resolve this issue is to emerge -e xfree, which is not 
really an elegant solution. 
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-18 01:07:52 UTC
Which filesystem?
Comment 6 Dmitri G. Brengauz 2003-10-18 05:15:38 UTC
Reiser.  That's what you're asking?
Comment 7 gatto 2003-10-18 10:00:52 UTC
I was having this exact same problem a couple weeks ago when
trying to upgrade to xfree-4.3.0-r3. It was because of a build
error way in the begining of compilation due to bad permissions
on /usr/bin/{cc,cpp}, and it didn't show up until the src_install
of the ebuild. I traced the error down to an incorrect
gcc-config installation error where having a umask 077 in
/etc/profile caused /usr/bin/{cc,cpp,gcc,g++,c++,etc} to be 
installed -rwx------

That might explain why emerge --emptytree xfree fixed the problem
for Dmitri (reinstalled gcc-config), though that approach didn't
work for me. I had to change back to gentoo default umask 022 in
/etc/profile, and reinstall gcc-config. Then emerge xfree worked
fine. Maybe I should file a bug about that.

Maybe if Dmitri still had the full build log of the original 
failure he could check for a bunch of "permission denied" errors
in it.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2003-11-13 20:24:54 UTC
Is this reproduceable?
Comment 9 gatto 2003-11-14 11:20:03 UTC
I can reproduce it as follows:

1) have voodoo3/3dfx/etc. set in USE flags
2) substitute all occurences of "umask XXX" in /etc/profile with "umask 077"
3) emerge gcc-config (after this permissions are -rwx------ on /usr/bin/{gcc,cpp,cc,etc.)
4) emerge xfree

Attaching begining and end portions of resulting xfree build log.
Comment 10 gatto 2003-11-14 11:23:23 UTC
Created attachment 20744 [details]
xfree-4.3.0-r3 build log of reproduced bug
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2003-11-14 12:38:42 UTC
OK, so the problem is that gcc-config doesn't check for bad permissions. Correct?
Comment 12 gatto 2003-11-14 14:07:48 UTC
Yeah the gcc-config ebuild should probably be fixed to make sure
permissions are setup correctly upon installation. Didn't get fixed in
bug 19395
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2003-11-14 14:24:33 UTC
After reading that discussion, I'm gonna mark this duplicate. You can continue arguing for the change there if you wish.

*** This bug has been marked as a duplicate of 19395 ***
Comment 14 gatto 2003-11-14 14:31:18 UTC
Sorry, I re-read that bug and I think it involves a different issue.
The reporter of that bug was saying that gcc-config should override
the users umask when being run manually from the command-line. But
when gcc-config runs from the gcc-config ebuild it should probably
being manually setting the correct permissions.

Should I file a new bug?
Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2003-11-14 14:36:11 UTC
I think the issue's close enough that is a good place for talking about it.