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...

Warner Losh imp at bsdimp.com
Sun Aug 2 19:37:43 UTC 2015


> On Aug 1, 2015, at 8:34 PM, Simon J. Gerraty <sjg at juniper.net> wrote:
> 
> 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.

Yea, I wanted to roll in your comments first, but my week has been quite busy
since then…

Wanrer

>> 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>
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20150802/6c701228/attachment.bin>


More information about the svn-src-head mailing list