From owner-freebsd-ports@FreeBSD.ORG Wed Jun 17 12:41:22 2015 Return-Path: Delivered-To: ports@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9340E2A0D for ; Wed, 17 Jun 2015 12:41:22 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from slim.berklix.org (slim.berklix.org [94.185.90.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE06B7C4 for ; Wed, 17 Jun 2015 12:41:21 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p5DCBF276.dip0.t-ipconnect.de [93.203.242.118]) (authenticated bits=128) by slim.berklix.org (8.14.5/8.14.5) with ESMTP id t5H9tFWr083760; Wed, 17 Jun 2015 11:55:16 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id t5H9qEbU002409; Wed, 17 Jun 2015 11:52:27 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id t5GF6M2D038930; Tue, 16 Jun 2015 17:08:30 +0200 (CEST) (envelope-from jhs@berklix.com) Message-Id: <201506161508.t5GF6M2D038930@fire.js.berklix.net> To: ports@freebsd.org Subject: bsd.port.mk reduce error to warning for UNAME_r OSVERSION mismatch From: "Julian H. Stacey" Organization: http://berklix.com BSD Linux Unix Consultants, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com/~jhs/cv/ Date: Tue, 16 Jun 2015 17:06:22 +0200 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2015 12:41:22 -0000 bsd.port.mk test below is too agressive, let's have it just Warn, not Fail. Also prefix text "Error: " or "Warning: " make it obvious which is happening. It seems likely people may have different opinions if it should just Warn or Error, so kets add an environent switch to stear that decision. Which way the default setting of switch should be, I won't suggest (in hope of enhancing chance of agreement to add the switch :-) Whoever adds the switch could decide ? Background: current fails to make my /usr/ports/graphics/libspiro I contacted cc'd MAINTAINER= who wrote me "my poudriere is running on 10" I dont run poudriere, but have a native 10 partition so simply did a chroot ... I ran: cd /s2; head -1 /etc/motd # FreeBSD 10.1-RELEASE (LAPR.small) #0: Sat Feb 28 16:29:20 CET 2015 cd /usr/ports/graphics/libspiro make clean make: "/usr/ports/Mk/bsd.port.mk" line 1214: UNAME_r (11.0-CURRENT) and OSVERSION (1001000) do not agree on major version number. make make: "/usr/ports/Mk/bsd.port.mk" line 1214: UNAME_r (11.0-CURRENT) and OSVERSION (1001000) do not agree on major version number. Same forced error can be seen on current lines 1197 & 1199. After I patched out the failing bsd.port.mk error I could continue my test of the port & see the port build with 10 src & ports on an 11 kernel. Cheers, Julian -- Julian Stacey, BSD Linux Unix C Sys Eng Consultant Munich http://berklix.com Indent previous with "> ". Reply Below as a play script. Send plain text, Not quoted-printable, HTML, or base64.