Bug 208375

Summary: devel/llvm38: EPIC - latest port deletes system files!
Product: Ports & Packages Reporter: Aleksander Alekseev <afiskon>
Component: Individual Port(s)Assignee: Brooks Davis <brooks>
Status: Closed FIXED    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (brooks)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Aleksander Alekseev 2016-03-29 08:30:31 UTC
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 $@
```
Comment 1 commit-hook freebsd_committer 2016-03-29 09:27:20 UTC
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