Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99632 - mirrorselect-1.1.3 --output --deep deletes /etc/make.conf
Summary: mirrorselect-1.1.3 --output --deep deletes /etc/make.conf
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Colin Kingsley (RETIRED)
Depends on:
Reported: 2005-07-20 01:30 UTC by Duncan
Modified: 2005-07-25 08:06 UTC (History)
0 users

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

emerge info output (,1.88 KB, text/plain)
2005-07-20 02:05 UTC, Duncan

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2005-07-20 01:30:00 UTC
Marked critical due to loss of critical data -- /etc/make.conf! 
mirrorselect -oD causes deletion of /etc/make.conf, after the download stage  
(presumably when it would write to make.conf if -o wasn't set).  /etc/make.conf  
continues to exist during the download step.  
I'm not sure if shallow causes the deletion or not, since shallow doesn't work,  
here, due to a NAPT based router filtering the ICMP or whatever that netselect  
uses, so shallow always fails and never returns anything to be written.  I DID,  
however, try it, and it doesn't cause the deletion here.  

Reproducible: Always
Steps to Reproduce:
mirrorselect -oD 
Actual Results:  
/etc/make.conf is DELETED! 

Expected Results:  
-o is supposed to be output only.  It shouldn't /touch/ make.conf. to be attached.
Comment 1 Duncan 2005-07-20 02:05:25 UTC
Created attachment 63866 [details]
emerge info output
Comment 2 Colin Kingsley (RETIRED) gentoo-dev 2005-07-20 13:02:37 UTC
Fixed in my local version, will be in a bugfix release within a few hours. Good

By the way, unless there is a second bug at play here, it should have moved your
make.conf to make.conf.backup. The real problem was that forgetting to create
the new make.conf afterwards. You should, therefore, be able to retrieve all
your old settings from /etc/make.conf.backup. If the backup was not made, please
file a bug on that as well.

Comment 3 Duncan 2005-07-21 00:50:59 UTC
(In reply to comment #2) 
> [U]nless there is a second bug at play here, it should have moved your 
> make.conf to make.conf.backup. 
It was, and I had already caught that, only I thought it was one of my backup 
versions.  =8^) 
Anyway, all my make.conf is, is a bunch of "source" lines, including other 
files, which I've splitup in a more manageable way.  
(/etc/portage/make.conf/fs, cflags, features, and similar files.)  I really 
LIKE that feature, having put it to use almost immediately upon seeing it 
mentioned in -dev!  =8^) 
So, nothing serious here, at least once I figured out the reason portage 
suddenly wanted to downgrade everything back to stable wasn't due to the 
freshly merged version of portage, but to my screwing with mirrorselect.  I do 
keep backups, tho mine was a bit older than your automated one, and rewriting 
it from scratch wouldn't have been an issue anyway.  I was more concerned about 
others running into the issue that weren't as well equipped to handle it.  
So... glad it's fixed, now. 
I'm having some strange net connectivity issues ATM and am not going to attempt 
a sync and source d/l until that's fixed, but will set full CLOSED status once 
I get the new version merged and verify (unless I forget =8^(.  Thanks! 
Comment 4 Duncan 2005-07-25 08:06:37 UTC
mirrorselect-1.1.4 verified fixed.  Full-closing as promised.