Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/acpica/bin/iasl Make aslcompilerparse.y generat...



details:   https://anonhg.NetBSD.org/src/rev/367de0e7eb55
branches:  trunk
changeset: 838276:367de0e7eb55
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jan 09 09:27:29 2019 +0000

description:
Make aslcompilerparse.y generation atomic to avoid parallel build races.
Solution suggested by mrg.

diffstat:

 external/bsd/acpica/bin/iasl/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 9aa52672fba3 -r 367de0e7eb55 external/bsd/acpica/bin/iasl/Makefile
--- a/external/bsd/acpica/bin/iasl/Makefile     Wed Jan 09 08:28:22 2019 +0000
+++ b/external/bsd/acpica/bin/iasl/Makefile     Wed Jan 09 09:27:29 2019 +0000
@@ -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 @@
 
 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}



Home | Main Index | Thread Index | Old Index