From owner-svn-src-head@freebsd.org Fri Oct 23 21:21:38 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BEBABA1C0C0; Fri, 23 Oct 2015 21:21:38 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-qg0-x232.google.com (mail-qg0-x232.google.com [IPv6:2607:f8b0:400d:c04::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A1A7E5C; Fri, 23 Oct 2015 21:21:38 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by qgbb65 with SMTP id b65so77128453qgb.2; Fri, 23 Oct 2015 14:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rjDBBckcSaeXmEf2O23aEReRQpFn5rT+IrcLld0TrD8=; b=Y5WcX4gD35EOu6YbJbXi9CEyuyBuhE3wMRwIo38oy1Lav0rYa5Y2T1X8cWWru/dLqO TgZAoiil2qQQdRIYW2tKSK5+BNaCBGD173mQK2CbgA9chzrd0/ikk9l3hN7n51OFRrPZ h1YRkSeUsOZzwhZcYBVhNYPoApmFUIvFK5cXQKqmTko4NZDtb28IZjFpMtB0Vk3Yv5GS Zri1RKyAakoWofT168JSj9x4bili8aIkH36z4ycXDkP4c5LndfkDTJQOnl1Ngoer93Ue xJDNLbrmkWMfFY5OZbhEm+2YlXdB1Nr1AEhyOKQ/lAzV8HGWAE5l7d1IWgn+U6fXOUlN qWjg== MIME-Version: 1.0 X-Received: by 10.140.216.211 with SMTP id m202mr29629212qhb.80.1445635297559; Fri, 23 Oct 2015 14:21:37 -0700 (PDT) Received: by 10.140.88.209 with HTTP; Fri, 23 Oct 2015 14:21:37 -0700 (PDT) In-Reply-To: <20151023210604.GA12348@lonesome.com> References: <201510222303.t9MN37D2093845@repo.freebsd.org> <20151023210604.GA12348@lonesome.com> Date: Fri, 23 Oct 2015 14:21:37 -0700 Message-ID: Subject: Re: svn commit: r289773 - in head: sbin/sysctl sys/kern sys/sys From: NGie Cooper To: Mark Linimon Cc: Conrad Meyer , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2015 21:21:38 -0000 On Fri, Oct 23, 2015 at 2:06 PM, Mark Linimon wrote: > On Fri, Oct 23, 2015 at 08:09:35AM -0700, Conrad Meyer wrote: >> What is __FreeBSD_version and why would it be bumped? > > __FreeBSD_version was introduced in the following commit: > > https://svnweb.freebsd.org/base/head/sys/sys/param.h?r1=34924&r2=36260 > > where it has been ever since: > > https://svnweb.freebsd.org/base/head/sys/sys/param.h?view=log > > This variable exists to tell the Ports Collection, among others, > that "something has changed that may require you to patch and/or > recompile." > > The historical values are documented in > > https://www.freebsd.org/doc/en/books/porters-handbook/versions.html#freebsd-versions-table > > Your mentor should have shown you this information. It's also really handy if you know that a KPI exists after `#if __FreeBSD_version > XYZ`. It doesn't work for folks who cherry-pick (like we do at $work, iXsystems with "NextBSD"/"TrueOS", etc), but it works for some upstream folks -- especially when you have something that uses a KPI in flux on a CURRENT branch for instance... *cough* see open-vm-tools and breakage due to vm(4) APIs being in flux ( :/..).