Skip to Content.
Sympa Menu

sm-grimoire-bugs - [SM-Grimoire-Bugs] [Bug 10940] get_kernel_version isn't flexible enough

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 10940] get_kernel_version isn't flexible enough
  • Date: 17 Oct 2006 15:27:36 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=10940





------- Additional Comments From dmlb2000 AT gmail.com 2006-10-17 10:27 -------
I'd like to mention a few things when checking files in the source tree for
version information:

1) they move

You can't count on a version string from a grep in a file in the linux source
tree to come up with the result you want for every version of the kernel. For
example include/linux/version.h used to have the UTSRELEASE variable contained
in it, but with the current kernel (2.6.18) it doesn't contain that string
define anymore. So what you did by grepping the CONFIG file for the version
doesn't work completely, adding a file in the base of the linux source tree
called localversion-blah then adding '-blah' to the first line in the file
breaks the config grep implemented in test.

I would suggest doing it the way dkowis suggested:
1) check for a user controlled var
2) check for sorcery version (something we know will work)
3) check for linux source file in some generic way that it should work 80% of
the time

just my thoughts




--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page