Re: Linux 2.6.28-rc1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Friday, October 24, 2008 - 8:17 am

On Fri, 24 Oct 2008, Alistair John Strachan wrote:

The problem is ignored files.

Yes, git claims everything is clean, but that's because it has been told 
to ignore certain files, and because it has been told to ignore them, it 
will not remove them (without the -x flag) in "git clean", nor will it 
mention them in "git status".

And yes, one of the ignored file patterns is

	include/asm-*/asm-offsets.h

which means that your "git clean -df" didn't *really* clean everything 
from the old include/asm-x86, and because it didn't clean it all it also 
wouldn't be able to remove the old stale directory - since it wasn't 
empty.

You can use "git clean -dfx" to force git to remove ignored files too. And 
"make distclean" should have done it too.

Now, _another_ part (and arguably the really core reason) of this problem 
is that our Makefile rules for the asm include directory is weak and 
unreliable in the presense of already-existing unexpected entries.

And it has caused problems before. For example, if you somehow made the 
symlink not be a symlink at all (by using "cp -LR" for example), or a 
symlink pointing to another architecture (changing architecture builds in 
the same tree without doing a "make clean" in between), you historically 
got really odd results.

In fact, it's broken in subtle way before to the point where we now have a 
special "check-symlink" target internally that checks that the symlink is 
correctly set up.

Of course, it didn't check that you had some old stuff in include/asm-x86, 
it only checks for the _traditional_ problems we've had. Not some new odd 
one.

		Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux 2.6.28-rc1, Linus Torvalds, (Thu Oct 23, 9:10 pm)
Re: Linux 2.6.28-rc1, Roland Dreier, (Thu Oct 23, 9:14 pm)
Re: Linux 2.6.28-rc1, Alistair John Strachan, (Fri Oct 24, 4:24 am)
Re: Linux 2.6.28-rc1, Rafael J. Wysocki, (Fri Oct 24, 4:45 am)
Re: Linux 2.6.28-rc1, Alistair John Strachan, (Fri Oct 24, 5:52 am)
Re: Linux 2.6.28-rc1, Alexey Dobriyan, (Fri Oct 24, 6:13 am)
git-clean [Was: Linux 2.6.28-rc1], Björn, (Fri Oct 24, 7:56 am)
Re: Linux 2.6.28-rc1, Linus Torvalds, (Fri Oct 24, 8:17 am)
Re: Linux 2.6.28-rc1, Matt Mackall, (Fri Oct 24, 10:09 am)
Re: Linux 2.6.28-rc1, Matt Mackall, (Fri Oct 24, 10:54 am)
Re: Linux 2.6.28-rc1, Randy Dunlap, (Fri Oct 24, 10:57 am)
Re: Linux 2.6.28-rc1, Fenghua Yu, (Fri Oct 24, 11:05 am)
Re: Linux 2.6.28-rc1, Greg KH, (Fri Oct 24, 11:08 am)
Re: Linux 2.6.28-rc1, Matt Mackall, (Fri Oct 24, 11:11 am)
Re: Linux 2.6.28-rc1, Sam Ravnborg, (Fri Oct 24, 12:15 pm)
Re: Linux 2.6.28-rc1, Sam Ravnborg, (Fri Oct 24, 12:22 pm)
nf_conntrack oopes on parisc/smp (was Re: Linux 2.6.28-rc1), Domenico Andreoli, (Fri Oct 24, 3:28 pm)
Re: Linux 2.6.28-rc1, David Miller, (Fri Oct 24, 3:31 pm)
Re: Linux 2.6.28-rc1, Sam Ravnborg, (Fri Oct 24, 3:51 pm)
Re: Linux 2.6.28-rc1, Tony Vroon, (Fri Oct 24, 3:53 pm)
Re: Linux 2.6.28-rc1, Arjan van de Ven, (Fri Oct 24, 4:01 pm)
Re: Linux 2.6.28-rc1, Alistair John Strachan, (Fri Oct 24, 4:44 pm)
Re: Linux 2.6.28-rc1, Tony Vroon, (Sun Oct 26, 6:17 am)
Re: 2.6.28-rc1: NVRAM being corrupted on ppc64 preventing ..., Benjamin Herrenschmidt, (Fri Oct 31, 4:31 am)