Sure.

> > $ tar tvzf comp61.tgz |grep ^d.*lib.clang
> > drwxrwx---  2 build    wheel            0 Apr 10 13:01 ./usr/lib/clang
> > drwxrwx---  2 build    wheel            0 Apr 10 13:01 ./usr/lib/clang/4.0.0
> > drwxr-xr-x  2 root     bin              0 Apr 10 13:01 
> > ./usr/lib/clang/4.0.0/include
> > 
> > Is this the way to fix it, or do we need something different as it's only
> > on some arch?
> 
> The equivalent for gcc /usr/lib/gcc-lib/amd64-unknown-openbsd6.1/4.2.1/
> isn't in mtree.  Here is a way to handle it like the gcc4 build
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/src/gnu/usr.bin/clang/include/clang/intrin/Makefile,v
> retrieving revision 1.7
> diff -u -p -r1.7 Makefile
> --- Makefile  10 Apr 2017 13:36:04 -0000      1.7
> +++ Makefile  11 Apr 2017 10:56:59 -0000
> @@ -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}
>  
> 

Reply via email to