From 6ea8e4de48cca8af1494907f81afbfde79dd35b9 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Mon, 22 Aug 2016 22:50:58 +0000 Subject: [PATCH] Fix building on read-only source trees. This partially reverts r296702 and reworks the original check to only look in .CURDIR. This avoids ever trying to rebuild a .src file that is already in the source tree as an override. PR: 211952 MFC after: 3 days Sponsored by: EMC / Isilon Storage Division --- share/i18n/esdb/Makefile.part | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/i18n/esdb/Makefile.part b/share/i18n/esdb/Makefile.part index 8de40456580..68bd40d5dc4 100644 --- a/share/i18n/esdb/Makefile.part +++ b/share/i18n/esdb/Makefile.part @@ -67,9 +67,11 @@ codesets: ${ESDB} .if !defined(NO_PREPROC) .for i in ${PART} +.if !exists(${.CURDIR}/${EPREFIX}${i:S/:/@/}.src) ${EPREFIX}${i:S/:/@/}.src: ${CODE}.src sed ${SED_EXP:S@%%PART%%@${i}@} ${.ALLSRC} > ${.TARGET} @echo ${.TARGET} >>.tmpfiles +.endif .endfor .endif