svn commit: r284345 - in head: . bin/cat bin/chflags bin/chio bin/chmod bin/cp bin/csh bin/date bin/dd bin/df bin/domainname bin/echo bin/ed bin/expr bin/freebsd-version bin/getfacl bin/hostname bi...

Simon J. Gerraty sjg at juniper.net
Sun Aug 2 03:09:22 UTC 2015


Baptiste Daroussin <bapt at FreeBSD.org> wrote:
> This breaks using fmake from ports because of usage of :U in sys.mk

Oops - sorry.
I saw Warner posted a patch for this which looked ok, but doesn't appear
to have been committed.

> is compatible with FreeBSD 9 (not that I'm just speaking about sys.mk not other
> parts)

Understood.

AFAICT the following allows fmake to consume sys.mk

Index: share/mk/sys.mk
===================================================================
--- share/mk/sys.mk	(revision 286177)
+++ share/mk/sys.mk	(working copy)
@@ -33,8 +33,10 @@
 
 # early include for customization
 # see local.sys.mk below
-.-include <local.sys.env.mk>
+.sinclude <local.sys.env.mk>
 
+.if defined(.PARSEDIR)
+# none of this is relevant without bmake
 .if ${MK_META_MODE} == "yes"
 .-include <meta.sys.mk>
 .elif ${MK_META_FILES} == "yes" && ${.MAKEFLAGS:U:M-B} == ""
@@ -44,6 +46,7 @@
 # This needs to be done early - before .PATH is computed
 .-include <auto.obj.mk>
 .endif
+.endif
 
 # If the special target .POSIX appears (without prerequisites or
 # commands) before the first noncomment line in the makefile, make shall
@@ -361,7 +364,7 @@
 .endif
 
 # late include for customization
-.-include <local.sys.mk>
+.sinclude <local.sys.mk>
 
 .if defined(__MAKE_SHELL) && !empty(__MAKE_SHELL)
 SHELL=	${__MAKE_SHELL}
@@ -378,11 +381,12 @@
 # when running target scripts, this is a problem for many makefiles here.
 # So define a shell that will do what FreeBSD expects.
 .ifndef WITHOUT_SHELL_ERRCTL
+___MAKE_SHELL?= /bin/sh
 .SHELL: name=sh \
 	quiet="set -" echo="set -v" filter="set -" \
 	hasErrCtl=yes check="set -e" ignore="set +e" \
 	echoFlag=v errFlag=e \
-	path=${__MAKE_SHELL:U/bin/sh}
+	path=${__MAKE_SHELL}
 .endif
 
 .include <bsd.cpu.mk>


More information about the svn-src-all mailing list