From owner-freebsd-ports@freebsd.org Sat Aug 13 22:27:58 2016 Return-Path: Delivered-To: freebsd-ports@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 C04D6BB8143 for ; Sat, 13 Aug 2016 22:27:58 +0000 (UTC) (envelope-from qjail1@a1poweruser.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id A5FD614DD for ; Sat, 13 Aug 2016 22:27:58 +0000 (UTC) (envelope-from qjail1@a1poweruser.com) Received: by mailman.ysv.freebsd.org (Postfix) id A5559BB8142; Sat, 13 Aug 2016 22:27:58 +0000 (UTC) Delivered-To: ports@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 A4F82BB8141 for ; Sat, 13 Aug 2016 22:27:58 +0000 (UTC) (envelope-from qjail1@a1poweruser.com) Received: from s119.web-hosting.com (s119.web-hosting.com [199.188.206.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 87A1214DC for ; Sat, 13 Aug 2016 22:27:58 +0000 (UTC) (envelope-from qjail1@a1poweruser.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=a1poweruser.com; s=default; h=Content-Transfer-Encoding:Content-Type: Subject:To:MIME-Version:From:Date:Message-ID; bh=QUAM6RB+Wvn4bH2z0QX5x5pQijDu498Fe7NBuGsXZts=; b=Z3G49lZ1cU9n/TzZdxYOh2APBf mNjQSZKsS1N0jIrd8X2TnFHXp3uWm3KQkj+zUyrbMMU1RWWzbypdbR1/efL/qB0eRzny9MYbd2kP4 jGGicf5jbAwMGhQEvLAUGwJ/rpWLOG2RS7MEIjSIlIUnI7JAUVe4SjPATnhkEzA9VNK0=; Received: from cpe-24-165-196-54.neo.res.rr.com ([24.165.196.54]:1595 helo=[10.0.10.3]) by server119.web-hosting.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.86_1) (envelope-from ) id 1bYhPH-003JG0-AR for ports@freebsd.org; Sat, 13 Aug 2016 18:27:56 -0400 Message-ID: <57AF9F07.9020208@a1poweruser.com> Date: Sat, 13 Aug 2016 18:28:23 -0400 From: qjail1 User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "ports@FreeBSD.org" Subject: Re: requesting help with Variable OSREL in port Makefile Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server119.web-hosting.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - a1poweruser.com X-Get-Message-Sender-Via: server119.web-hosting.com: authenticated_id: qjail1@a1poweruser.com X-Authenticated-Sender: server119.web-hosting.com: qjail1@a1poweruser.com X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2016 22:27:58 -0000 >> .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 >> IGNORE= builds only on 10 or greater than 10 >> .endif > > That's OSVERSION. The OP asked about OSREL. > > (however, OSVERSION is more useful as one can test it numerically; it > is documented in Chapter 16 of the Porter's Handbook, if the OP wants > to know more) I read Chapter 16 of the Porter's Handbook before posting. It doesn't say how you got to a "1000000" value for OSVERSION. Why so many zeros? A 10.0 value is what I interpret to be the value for OSREL. Is that correct? The IGNORE= keyword is confusing also. The port will build/install on all versions. Its just that some things in 10.0 changed that caused the port source to be modified to work on 10.0 and newer systems. It will not work correctly on 9.3 and older systems. So I want the port/pkg to check the host version and refuse to install if installing on 9.3 or older systems. This has no impact on the auto building of pkgs. The Porter's Handbook section containing the OSREL Variable talks about the placement of the OSREL Variable is critical and based on where bsd.port.pre.mk statement is located in the Makefile. I don't have a existing bsd.port.pre.mk statement in the Makefile. Do I need to add one?