Date: Tue, 25 Mar 1997 21:13:12 -0700 From: Warner Losh <imp@village.org> To: ports@freebsd.org Subject: Diffs for ${OPSYS}_BROKEN Message-ID: <E0w9k5I-0004Tm-00@rover.village.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0w9k5I-0004Tm-00>