devel/llvm38/Makefile: ``` .if ${PORT_OPTIONS:MCLANG} post-install-DOCS-off: ${RM} -f ${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/share/man/man1/scan-build.1 ${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/share/man/man1/ ${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/share/man/ .endif ``` It should be actually: ``` .if ${PORT_OPTIONS:MCLANG} post-install-DOCS-off: ${RM} -f ${STAGEDIR}${LLVM_PREFIX}/share/man/man1/scan-build.1 ${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/share/man/man1/ ${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/share/man/ .endif ``` If someone lose /bin/rmdir because of this port it could be replaced by script like this: ``` #!/bin/sh /bin/rm -r $@ ```
A commit references this bug: Author: tijl Date: Tue Mar 29 09:26:52 UTC 2016 New revision: 412098 URL: https://svnweb.freebsd.org/changeset/ports/412098 Log: Don't delete /bin/rmdir. PR: 208375 Submitted by: Aleksander Alekseev <afiskon@devzen.ru> Changes: head/devel/llvm38/Makefile