From owner-freebsd-ports@FreeBSD.ORG Mon Jan 25 19:49:18 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AA881065670 for ; Mon, 25 Jan 2010 19:49:18 +0000 (UTC) (envelope-from freebsd@bitfreak.org) Received: from baumren.bluerosetech.com (baumren.bluerosetech.com [69.55.234.33]) by mx1.freebsd.org (Postfix) with ESMTP id 455088FC17 for ; Mon, 25 Jan 2010 19:49:17 +0000 (UTC) Received: from vivi.cat.pdx.edu (vivi.cat.pdx.edu [131.252.214.6]) by baumren.bluerosetech.com (Postfix) with ESMTPSA id 9C888CF906 for ; Mon, 25 Jan 2010 11:49:17 -0800 (PST) Received: from [127.0.0.1] (c-76-115-170-205.hsd1.or.comcast.net [76.115.170.205]) by vivi.cat.pdx.edu (Postfix) with ESMTPSA id F3C9924D7F for ; Mon, 25 Jan 2010 11:49:15 -0800 (PST) Message-ID: <4B5DF5BA.5000708@bitfreak.org> Date: Mon, 25 Jan 2010 11:49:14 -0800 From: Darren Pilgrim User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How to determine (in a port Makefile) if KSE is present? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2010 19:49:18 -0000 I have a port which uses a static-linked 5.4 binary. This is broken in 8.0 due to KSE removal. I need to create a test and limit installation to only those versions on which it will run. Looking at the heads-up message for KSE removal from March 2008, I don't see a change to sys/sys/param.h, so I don't think __FreeBSD_version was bumped. Looking at the commit log for param.h and lining up timestamps, I think 800024 would be the last version with KSE support. Is it therefore prudent to allow install only if 504000 <= OSVERSION <= 800024 or should I test for KSE another way?