From owner-freebsd-ports Tue Mar 25 20:13:23 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA12587 for ports-outgoing; Tue, 25 Mar 1997 20:13:23 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id UAA12582 for ; Tue, 25 Mar 1997 20:13:18 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 1.60 #1) id 0w9k5I-0004Tm-00; Tue, 25 Mar 1997 21:13:12 -0700 To: ports@freebsd.org Subject: Diffs for ${OPSYS}_BROKEN Date: Tue, 25 Mar 1997 21:13:12 -0700 From: Warner Losh Message-Id: Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Here are some diffs that allow you to mark a port as broken on a given OS by defining, say OpenBSD_BROKEN=Don't have gerbils in your makefile. Note, I had to use := rather than = so that the nested ${${x}_b} would evaluate correctly. In addition, if you tell it to use Imake or X11, it won't compile if it can't find X11 (this is a repeat for some people). This has come in very handy for when I'm working on getting a whole ports tree to build, but I don't have the time to investigate failures at the moment, or when ports aren't needed for OpenBSD, but not FreeBSD (eg sudo is part of OpenBSD, but not FreeBSD). Comments? --- bsd.port.mk Tue Mar 25 21:01:54 1997 +++ /usr/share/mk/bsd.port.mk Mon Feb 17 03:26:58 1997 @@ -674,10 +674,6 @@ IGNORE= "is restricted: ${RESTRICTED}" .elif defined(BROKEN) IGNORE= "is marked as broken: ${BROKEN}" +.elif defined(${OPSYS}_BROKEN) +IGNORE:= "is marked as broken on ${OPSYS}: ${${OPSYS}_BROKEN}" +.elif ((defined(USE_IMAKE) || defined(USE_X11)) && !exists(${X11BASE})) +IGNORE="uses X11, but no ${X11BASE} found" .endif .if defined(IGNORE)