Invoke install -d for each directory in the /usr/lib/clang hierarchy
authorjsg <jsg@openbsd.org>
Wed, 12 Apr 2017 07:57:06 +0000 (07:57 +0000)
committerjsg <jsg@openbsd.org>
Wed, 12 Apr 2017 07:57:06 +0000 (07:57 +0000)
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

index 4d84bfd..f299a1e 100644 (file)
@@ -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 <bsd.own.mk>
 
@@ -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}