LOCALVERSION_AUTO considered harmful

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Machek
Date: Sunday, April 11, 2010 - 9:47 am

LOCALVERSION_AUTO has nasty interaction with modules, warn about it.

Signed-off-by: Pavel Machek <pavel@ucw.cz>

diff --git a/init/Kconfig b/init/Kconfig
index eb77e8c..5d33072 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -88,7 +88,6 @@ config LOCALVERSION
 
 config LOCALVERSION_AUTO
 	bool "Automatically append version information to the version string"
-	default y
 	help
 	  This will try to automatically determine if the current tree is a
 	  release tree by looking for git tags that belong to the current
@@ -99,6 +98,11 @@ config LOCALVERSION_AUTO
 	  appended after any matching localversion* files, and after the value
 	  set in CONFIG_LOCALVERSION.
 
+	  Unfortunately, such finegrained versioning will mean that you will
+	  not be able to use modules for development; even "make modules"
+	  will change module versions, making recompiled modules impossible
+	  to insert into old kernel. 
+
 	  (The actual string used here is the first eight characters produced
 	  by running the command:
 

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
LOCALVERSION_AUTO considered harmful, Pavel Machek, (Sun Apr 11, 9:47 am)
Re: LOCALVERSION_AUTO considered harmful, Geert Uytterhoeven, (Sun Apr 11, 11:58 am)
Re: LOCALVERSION_AUTO considered harmful, Pavel Machek, (Sun Apr 11, 1:14 pm)
Re: LOCALVERSION_AUTO considered harmful, Thomas Gleixner, (Sun Apr 11, 3:24 pm)
Re: LOCALVERSION_AUTO considered harmful, rdunlap, (Sun Apr 11, 6:20 pm)
Re: LOCALVERSION_AUTO considered harmful, rdunlap, (Sun Apr 11, 7:56 pm)
Re: LOCALVERSION_AUTO considered harmful, Randy Dunlap, (Sun Apr 11, 8:49 pm)
Re: LOCALVERSION_AUTO considered harmful, Theodore Tso, (Mon Apr 12, 5:48 am)
Re: LOCALVERSION_AUTO considered harmful, Pavel Machek, (Mon Apr 12, 6:14 am)
Re: LOCALVERSION_AUTO considered harmful, Linus Torvalds, (Mon Apr 12, 10:03 am)
Re: LOCALVERSION_AUTO considered harmful, Alexey Dobriyan, (Mon Apr 12, 11:51 am)