From b8e06e2a83eba1faf015f1d99d9aaf5a7ecd24a3 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 12 Apr 2017 07:57:06 +0000 Subject: [PATCH] Invoke install -d for each directory in the /usr/lib/clang hierarchy as they aren't in mtree. Problem with wrong ownership and permission of directories reported by sthen@. ok deraadt@ sthen@ tb@ --- gnu/usr.bin/clang/include/clang/intrin/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gnu/usr.bin/clang/include/clang/intrin/Makefile b/gnu/usr.bin/clang/include/clang/intrin/Makefile index 4d84bfd463b..f299a1e266b 100644 --- a/gnu/usr.bin/clang/include/clang/intrin/Makefile +++ b/gnu/usr.bin/clang/include/clang/intrin/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.7 2017/04/10 13:36:04 kettenis Exp $ +# $OpenBSD: Makefile,v 1.8 2017/04/12 07:57:06 jsg Exp $ .include @@ -86,8 +86,10 @@ clean cleandir: rm -f ${GEN} install includes: ${HEADERS} - ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${DIRMODE} \ - ${DESTDIR}${CLANG_INTR_INCDIR} +.for dir in /usr/lib/clang /usr/lib/clang/${LLVM_V} ${CLANG_INTR_INCDIR} + ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${DIRMODE} \ + ${DESTDIR}${dir} +.endfor ${INSTALL} ${INSTALL_COPY} -m 444 ${.ALLSRC} \ ${DESTDIR}${CLANG_INTR_INCDIR} -- 2.20.1