From owner-freebsd-questions@FreeBSD.ORG Fri May 4 17:40:12 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56DCB106566C for ; Fri, 4 May 2012 17:40:12 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D4F068FC0C for ; Fri, 4 May 2012 17:40:11 +0000 (UTC) Received: by weyt57 with SMTP id t57so2552473wey.13 for ; Fri, 04 May 2012 10:40:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to :x-gm-message-state; bh=7aaOy+gxmRp/lJNGPPPfpAM0A1r/z+k5mQC3HFEDOxg=; b=SJ4g90W4IjKIXfIILO+DD4+yAN17CPHpdW6m5n5udtQaGyia98+hC9b0SL4j4qgzb9 zgul5kUtG8QoSXhFhyHTSrD5URQFznH2kKIx2GQHuYoaD9gyukHEjeLS9ESrQD6Kgo61 x/c40CrzLMvVY0fAbpC9mhXE4yhYks1fjOfplWhMZKBdI2zbEGqNVGv2Vto1YW8RYUmi KkI3GUCke1Z5EPAR0Nr9YTeyCsKKWTamlxPZjInUS+7mEKSwacvXE5a6voenbJS6mK5T wbkSZna7raCQRMoyHxbIAWf7Tf9hC3pUbf2Z9lUTk5YqfeFuGfo31L43bSo7MdpatYvR b70g== Received: by 10.180.78.164 with SMTP id c4mr15010720wix.10.1336153210980; Fri, 04 May 2012 10:40:10 -0700 (PDT) Received: from [192.168.0.2] (gut75-1-82-67-177-56.fbx.proxad.net. [82.67.177.56]) by mx.google.com with ESMTPS id ca3sm2579323wib.6.2012.05.04.10.40.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 May 2012 10:40:09 -0700 (PDT) References: <4FA38AB8.7010806@infracaninophile.co.uk> <201205040914.q449E5iZ037677@mail.r-bonomi.com> <20120504164519.d04ba910.freebsd@edvax.de> In-Reply-To: <20120504164519.d04ba910.freebsd@edvax.de> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (9A405) From: Damien Fleuriot Date: Fri, 4 May 2012 19:40:05 +0200 To: Polytropon X-Gm-Message-State: ALoCoQnKm830cvf3pWLUqegcTKvKzLooDSwP4tTb1u9g8Br+GMMzMwT0l11vKTrCT/6tDFeaU+6A Cc: "freebsd-questions@freebsd.org" , Robert Bonomi Subject: Re: freebsd-update not updating reported patchlevel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 17:40:12 -0000 On 4 May 2012, at 16:45, Polytropon wrote: > On Fri, 4 May 2012 04:14:05 -0500 (CDT), Robert Bonomi wrote: >> What is required is a differentation between the _kernel_ revision level,= >> and the patchlevel of the entire base system. >>=20 >> Store the kernel revision level -in- the kernel. Use the 'standard' >> THREE-level version numbering {Major}.{Minor}.{revision} for the kernel.= >> Bump 'revision' for each set fo kernel patches. >>=20 >> The patchlevel info for the base system can be a simple data file. >> I'd suggest a dotfile' in /etc, mode 644, with the followig flags >> set: 'system append only', 'system undlink'. >>=20 >> Bump 'patchlevel' every time -anything- in the base system changes, >> regardless of whether it is part of the kernel or the 'world'. >=20 > Interesting approach. Both files could also be header files > in /usr/include to store this information per #define. But > in fact, I like the /etc idea better. >=20 > Allow me to extent the approach: For -STABLE versions (e. g. if > updated per CVS), those files could contain the "build number" > and the date of the currently installed -STABLE "snapshot". I have massive love for this idea, having to check the kern build date to ha= ve a rough idea of what 8-STABLE I'm running is too prone to errors.