View previous topic :: View next topic |
Author |
Message |
stiletto n00b
Joined: 25 Feb 2003 Posts: 3
|
Posted: Tue Feb 25, 2003 4:49 pm Post subject: make.conf gets blown away! how to recover? |
|
|
Sorry if this is a FAQ, but I couldn't find it anyway, and I'm a gentoo newbie...
The whole point of building everything is so you can go through and tweak the CFLAGS and USE settings before building everything. Unfortunately, somwhere during installation, before stage 3, make.conf gets blown away and replaced with the default. This has happened to me twice, and the result is a box with everything compiled using the default settings!
Questions:
1. What causes make.conf to get blown away like this, and how can I avoid it?
2. What is the effect of changing the USE setting after you get to stage 3? Do I need to go back and redo "emerge system", or should I be okay? Is there a way to go back and rebuild my libc, binutils, gcc, etc. with the new CFLAGS?
It seems to me that the documentation should suggest you set make.conf to READ ONLY to keep it from being overwritten! |
|
Back to top |
|
|
rtn Guru
Joined: 15 Nov 2002 Posts: 427
|
Posted: Tue Feb 25, 2003 5:05 pm Post subject: |
|
|
I believe that if your bootstrap doesn't complete successfully, your make.conf
will have been changed. Your old make.conf is in /etc, but renamed to something
that I can't remember offhand.
If you want, you could rebuild the whole system with 'emerge -e world', but
whenever you emerge a new application, it will use your new settings. Eventually,
you will likely rebuild your entire system, but it might take a loong time.
--rtn |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Tue Feb 25, 2003 6:42 pm Post subject: Re: make.conf gets blown away! how to recover? |
|
|
stiletto wrote: | Sorry if this is a FAQ, but I couldn't find it anyway, and I'm a gentoo newbie... | You shouldn't have to apologize for being new.
Quote: | ... Unfortunately, somwhere during installation, before stage 3, make.conf gets blown away and replaced with the default. This has happened to me twice, and the result is a box with everything compiled using the default settings! | This shouldn't happen at all. You should have a file called /etc/make.globals with a line that reads something like: Code: | CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config ..." | This is a file you should never edit. The file is overridden when you make entires in /etc/make.conf. The line CONFIG_PROTECT specifies directories that you don't want portage to automatically blow away files in. You can mask these with a CONFIG_PROTECT_MASK variable in your make.conf. (i.e. if you want to just let portage replace config files in /etc/cups without telling you or something..)
Quote: | Questions:
1. What causes make.conf to get blown away like this, and how can I avoid it? | See above.
Quote: | 2. What is the effect of changing the USE setting after you get to stage 3? Do I need to go back and redo "emerge system", or should I be okay? Is there a way to go back and rebuild my libc, binutils, gcc, etc. with the new CFLAGS? | You don't need to go back and rebuild everything unless you really want to. If you want the extra umph of your new CFLAGS then you can rebuild things with emerge --emptytree system.
HTH.. _________________ if i never try anything, i never learn anything..
if i never take a risk, i stay where i am.. |
|
Back to top |
|
|
stiletto n00b
Joined: 25 Feb 2003 Posts: 3
|
Posted: Tue Feb 25, 2003 6:54 pm Post subject: Re: make.conf gets blown away! how to recover? |
|
|
Quote: | This is a file you should never edit. The file is overridden when you make entires in /etc/make.conf. The line CONFIG_PROTECT specifies directories that you don't want portage to automatically blow away files in. You can mask these with a CONFIG_PROTECT_MASK variable in your make.conf. (i.e. if you want to just let portage replace config files in /etc/cups without telling you or something..) |
Aha! At one point, the instructions direct you to set
Code: | CONFIG_PROTECT="-*" |
but I don't think it ever tells you to un-set this. Does this sound like it may be part of the problem? |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Tue Feb 25, 2003 7:07 pm Post subject: |
|
|
That's an excellent question. I would imagine so, but the thing that is confusing is that a few steps later they say you should setup your /etc/make.conf. I don't remember exactly what happened since I haven't installed in a while. Regardless, your next emerge command should use the modified make.conf settings. You could simply back them up before you do that and then replace them when you are done with it, but that's a little clunky. I'll look into that. _________________ if i never try anything, i never learn anything..
if i never take a risk, i stay where i am.. |
|
Back to top |
|
|
Skraut Tux's lil' helper
Joined: 23 Feb 2003 Posts: 142 Location: Norwalk, OH, USA, Earth, Solar System, Milky Way, Virgo Supercluster, Known Universe
|
Posted: Fri Feb 28, 2003 12:42 am Post subject: |
|
|
I Just had the same problem with this.
after messing up my kernel I just decided it'd be easier to start over.
I made quite a few changes to my make.conf one of which was to use a different mirror to dramatically speed up the bootstrap process.
I noticed immediately when I started the bootstrap that I wasn't downloading from that mirror and that my make.conf had been overwritten.
I tried a couple different CONFIG_PROTECT strings, and each time bootstrap blew away my make.conf and all my settings.
I finally ended up editing my make.globals. I know I probably shouldn't have, but it seemed the only way to get many of my settings to stick. Copying my cflags isn't enough, as there is more to the make.conf than just the cflags |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Fri Feb 28, 2003 5:45 am Post subject: |
|
|
Skraut, I think it has to be happening in the bootstrap process. I just ran through a stage2 (pre-bootstrapped) install and found that at no point was my make.conf corrupted. I also remember thinking that my make.conf settings were reset during my last stage1 install, but I would very much like to confirm this prior to stating it as fact. _________________ if i never try anything, i never learn anything..
if i never take a risk, i stay where i am.. |
|
Back to top |
|
|
Skraut Tux's lil' helper
Joined: 23 Feb 2003 Posts: 142 Location: Norwalk, OH, USA, Earth, Solar System, Milky Way, Virgo Supercluster, Known Universe
|
Posted: Fri Feb 28, 2003 4:43 pm Post subject: |
|
|
Yes, it only happened durring bootstrap. I've passed stages 2 and 3 and am emerging xfree right now, and the only time my make.conf was overwritten was durring the bootstrap.
It was just frustrating thath I kept loosing my other settings from my make.conf such as my GENTOO_MIRRORS and USE statements.
At least I learned a valuable lesson. Always back up your make.conf |
|
Back to top |
|
|
ScubaStreb Tux's lil' helper
Joined: 01 Jul 2002 Posts: 118
|
Posted: Fri Feb 28, 2003 8:37 pm Post subject: I think it happens... |
|
|
when you "emerge portage" in step 9. That was when I noticed a new make.conf. I think that Portage writes a default file there. _________________ "Without question, the greatest invention in the history of mankind is beer. Oh, I grant you that the wheel was also a fine invention, but the wheel does not go nearly as well with pizza." --Dave Barry |
|
Back to top |
|
|
hmiller68 Tux's lil' helper
Joined: 21 Dec 2002 Posts: 77
|
Posted: Fri Feb 28, 2003 9:47 pm Post subject: |
|
|
Yes it happens during the bootstrap of a stage1 I kept getting kernel errors after a reboot on a new install. I finally just editted the /etc/make.globals file (I know you should never touch it but if you cant get the /etc/make.conf to actualy work ???? whats left but that..) I also did a copy of the /etc/make.conf to my tmp and then after bootstrap I just copied it back into /etc that way I didnt have to edit the file for the 100th time. I just left the /etc/make .globals edit I made in there . It works so Im not going to argue with it if it like the edited file Im hapy that its happy.
All I putin the file was CFLAGS="-mcpu=athlon -O3 -pipe" anyway no biggie. |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Sat Mar 01, 2003 5:49 am Post subject: |
|
|
Ok, here's the way that it should work as I understand it after chatting with people far smarter than I am. make.conf settings are pulled from the file before anything it placed there and it's backed up to /etc/make.conf.build before anything is clobbered. After the bootstrap, the settings should be replaced and make.conf should be as you left it. If you abort the bootstrap process or do anything that's abnormal this won't happn.
Thus, you should try to reproduce this problem, and submit a bug report. This is absolutely something that the developers will want to fix if it's broken, but be sure that your settings are being clobbered and that it's reproducable. I would like them to be just as productive as possible. _________________ if i never try anything, i never learn anything..
if i never take a risk, i stay where i am.. |
|
Back to top |
|
|
DarkJedi9 Apprentice
Joined: 28 Oct 2002 Posts: 204
|
Posted: Mon Mar 03, 2003 1:40 am Post subject: Re: make.conf gets blown away! how to recover? |
|
|
stiletto wrote: |
Aha! At one point, the instructions direct you to set
Code: | CONFIG_PROTECT="-*" |
but I don't think it ever tells you to un-set this. Does this sound like it may be part of the problem? |
I also noticed this. I assumed that it wouldn't be a problem but I just realized somewhere in my emerges (I edited make.conf after bootstrap, so it wasn't there), that my make.conf got clobbered. I now have CONFIG_PROTECT="/etc/make.conf" in my /etc/make.conf, so I think it will be okay from now on, but shouldn't something in the install doc help people avoid this? |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Mon Mar 03, 2003 1:56 am Post subject: |
|
|
I think there are 2 progams that can get your make.conf. 1 portage 2. baselayout. ANyway for those pass bootstarp emerge "gentoolkit" that will give you etc-update. Its nice to have when xfree about 23 config updates or gnome again 20+. Oh and you just might want to change or add the
" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config ""
to your make.conf file now, but hell maybe Buffy is on and I'll do it later
hiel |
|
Back to top |
|
|
Grandpa n00b
Joined: 01 Mar 2003 Posts: 53 Location: Kansas City
|
Posted: Mon Mar 03, 2003 8:27 pm Post subject: |
|
|
This sounds like this might just be part of my problem in sage1. I posted a question about this titled Emerge portage problem.
Code listing 9.1: Updating Using sync
# emerge sync
# export CONFIG_PROTECT="-*"
# export USE="-* bootstrap build"
# emerge portage <here is the problem>
# unset USE
I get the following errors.
Configure Error: C++ preprocessor "/lib/cpp" fails security check
!!! Error: sys-libs /ncurses-5.3-r1: failed
!!! Function Econf, line 353, Exite code 1
!!! Econf failed
Maybe some her can help? I was wondering is the make.conf file suppose to be edited before this step or after? If I remeber correctly in the install docs it was after. Just wondering if this is error is caused from my 1.2 Ghz AMD Duron Processor not being recognized correctly? Any help would be apprecited.
Thanks, _________________ Never too old to learn! |
|
Back to top |
|
|
Sykus Tux's lil' helper
Joined: 19 Jul 2002 Posts: 131 Location: Santa Barbara, CA
|
Posted: Mon Mar 03, 2003 9:51 pm Post subject: |
|
|
this problem is getting rather annoying. i've set make.conf to be protected, but everytime i rebuild portage, it blows it away, the only reason i really give a damn, is that i'm trying to "emerge -e world", but everytime it rebuilds portage, the rest of the emerge gets zero tweaks. is there some way to eliminate portage from "emerge -e world" ? |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Tue Mar 04, 2003 12:04 am Post subject: |
|
|
Whoa... when they tell you to 'export CONFIG_PROTECT=".*"', that doesn't involve changing your make.conf. You're just supposed to set it at the command line for the subsequent commands. Right? |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Tue Mar 04, 2003 12:39 am Post subject: |
|
|
Ok, last night I was checking out 1.4-rc3 cd. If you "export CONFIG_PROTECT="/etc/make.conf" that will protect your make.conf file. When you botstrap the first progaram it emerges is portage and will wipe your make.config makeing it hard to build with your CFLAGS I tried and it works. The other new config files are best updated at this point.
BradN question about setting CONFIG_PROTECT="-*" means nothing is protected from being updated, ergo goodby make.conf with MY dadgun CFLAGS . I filed this and several other mistakes/different way of doing it, that I came across in the install.txt doc on the cd.
You can add to the "bug" or review it by looking up bug# 16718. TO add just go the install doc online, html and or the install.txt on the cd and follow and read it line by line. It would be best if you were actual doing the install. It is easy enough to set up a test dir in your home dir Thinking about it if you use the html install doc might be best to start a new bug# as that would be less confiusing for the doc maintainers.
hiel
Last edited by hielvc on Tue Mar 04, 2003 1:03 am; edited 1 time in total |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Tue Mar 04, 2003 1:01 am Post subject: |
|
|
I mean the instructions aren't telling you to modify a setting in make.conf - I thought maybe some people had gotten confused by that. Yeah, if you bootstrap without protecting make.conf, you're gonna lose it... lol |
|
Back to top |
|
|
Sykus Tux's lil' helper
Joined: 19 Jul 2002 Posts: 131 Location: Santa Barbara, CA
|
Posted: Tue Mar 04, 2003 5:29 am Post subject: |
|
|
but see, on my system, it doesn't care that i protect make.conf. it over writes it and everything after portage in a 'emerge -e world' will be compiled with a vanilla make.conf. this makes baby jesus cry. |
|
Back to top |
|
|
|