Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270755AbUJUQCm (ORCPT ); Thu, 21 Oct 2004 12:02:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268496AbUJUPve (ORCPT ); Thu, 21 Oct 2004 11:51:34 -0400 Received: from fw.osdl.org ([65.172.181.6]:9157 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S270768AbUJUPs2 (ORCPT ); Thu, 21 Oct 2004 11:48:28 -0400 Date: Thu, 21 Oct 2004 08:48:22 -0700 (PDT) From: Linus Torvalds To: =?ISO-8859-1?Q?M=E5ns_Rullg=E5rd?= cc: linux-kernel@vger.kernel.org Subject: Re: Versioning of tree In-Reply-To: Message-ID: References: <1098254970.3223.6.camel@gaston> <1098256951.26595.4296.camel@d845pe> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1344 Lines: 39 On Thu, 21 Oct 2004, M?ns Rullg?rd wrote: > > Would it work to somewhere in the Makefile check for the existence of > a BitKeeper directory, and if it exists run bk with the appropriate > arguments and append something to EXTRAVERSION? I'm not quite sure > which information is the best to add, though. That's what I had in mind. But it should also check if the top-of-tree is already tagged, and not do anything for that. And it should also hopefully have a CVS/Subversion equivalent, just so that people don't feel left out. I would _suggest_ just exporting the whole top-of-tree tag to some /sys/kernel/version file (for full bug-reports), but in addition also maybe have a small hash of it (just a few characters of noise) in "uname", to make module versioning work. So "uname -r" might print out "2.6.9-a$Uv", but then a cat /sys/kernel/version/* would print out something like "kernel" file: v2.6.9-a$Uv "bk-key" file: torvalds@ppc970.osdl.org|ChangeSet|20041021004441|21737 "date" file: Wed Oct 20 22:29:23 PDT 2004 or something (one value per file as usual) Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/