Module Name: src Committed By: martin Date: Wed Jan 9 09:27:29 UTC 2019
Modified Files: src/external/bsd/acpica/bin/iasl: Makefile Log Message: Make aslcompilerparse.y generation atomic to avoid parallel build races. Solution suggested by mrg. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/external/bsd/acpica/bin/iasl/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/acpica/bin/iasl/Makefile diff -u src/external/bsd/acpica/bin/iasl/Makefile:1.22 src/external/bsd/acpica/bin/iasl/Makefile:1.23 --- src/external/bsd/acpica/bin/iasl/Makefile:1.22 Sun Oct 14 13:36:33 2018 +++ src/external/bsd/acpica/bin/iasl/Makefile Wed Jan 9 09:27:29 2019 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2018/10/14 13:36:33 jmcneill Exp $ +# $NetBSD: Makefile,v 1.23 2019/01/09 09:27:29 martin Exp $ .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "aarch64") PROG= iasl @@ -277,7 +277,8 @@ aslparser.y: asltokens.y asltypes.y aslr YPREFIX.aslcompilerparse.y=AslCompiler aslcompilerparse.y: aslparser.y - ${TOOL_M4} -P -I${TOPDIR} ${.ALLSRC} > ${.TARGET} + ${TOOL_M4} -P -I${TOPDIR} ${.ALLSRC} > ${.TARGET}.tmp \ + && mv ${.TARGET}.tmp ${.TARGET} aslcompiler.y.h: aslcompilerparse.h ln -sf ${.ALLSRC} ${.TARGET}