From owner-svn-ports-head@FreeBSD.ORG Tue Jun 2 21:17:01 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 65EFB3FD; Tue, 2 Jun 2015 21:17:01 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (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 3AAA810D2; Tue, 2 Jun 2015 21:17:01 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t52LH1aq057542; Tue, 2 Jun 2015 21:17:01 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t52LH1Mk057541; Tue, 2 Jun 2015 21:17:01 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201506022117.t52LH1Mk057541@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Tue, 2 Jun 2015 21:17:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r388391 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2015 21:17:01 -0000 Author: marino Date: Tue Jun 2 21:17:00 2015 New Revision: 388391 URL: https://svnweb.freebsd.org/changeset/ports/388391 Log: bsd.port.mk: Implement BROKEN_${OPSYS} and BROKEN_${OPSYS}_${OSREL:R} Examples of use: * BROKEN_FreeBSD= does not link * BROKEN_DragonFly= requires later jail * BROKEN_FreeBSD_8= long type-name is invalid The latter example could replace something like: .include .if ${OPSYS} == FreeBSD && ${OSVERSION} <= 900000 BROKEN= long type-name is invalid .endif Differential Revision: https://reviews.freebsd.org/D2207 Reviewed by: portmgr Approved by: portmgr (mat) Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Tue Jun 2 21:06:08 2015 (r388390) +++ head/Mk/bsd.port.mk Tue Jun 2 21:17:00 2015 (r388391) @@ -175,9 +175,16 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # BROKEN - Port is believed to be broken. Package builds can # still be attempted using TRYBROKEN to test this # assumption. -# BROKEN_${ARCH} Port is believed to be broken on ${ARCH}. Package builds -# can still be attempted using TRYBROKEN to test this -# assumption. +# BROKEN_${ARCH} - Port is believed to be broken on ${ARCH}. Package builds +# can still be attempted using TRYBROKEN to +# test this assumption. +# BROKEN_${OPSYS} - Port is believed to be broken on ${OPSYS}. Package builds +# can still be attempted using TRYBROKEN to +# test this assumption. +# BROKEN_${OPSYS}_${OSREL:R} - Port is believed to be broken on a single +# release of ${OPSYS}, e.g BROKEN_FreeBSD_8 +# would affect all point releases of FreeBSD 8 +# unless TRYBROKEN is also set. # DEPRECATED - Port is deprecated to install. Advisory only. # EXPIRATION_DATE # - If DEPRECATED is set, determines a date when @@ -2820,6 +2827,14 @@ IGNORE= is marked as broken: ${BROKEN} .if !defined(TRYBROKEN) IGNORE= is marked as broken on ${ARCH}: ${BROKEN_${ARCH}} .endif +.elif defined(BROKEN_${OPSYS}_${OSREL:R}) +.if !defined(TRYBROKEN) +IGNORE= is marked as broken on ${OPSYS} ${OSREL}: ${BROKEN_${OPSYS}_${OSREL:R}} +.endif +.elif defined(BROKEN_${OPSYS}) +.if !defined(TRYBROKEN) +IGNORE= is marked as broken on ${OPSYS}: ${BROKEN_${OPSYS}} +.endif .elif defined(FORBIDDEN) IGNORE= is forbidden: ${FORBIDDEN} .endif