Bug 208375 - devel/llvm38: EPIC - latest port deletes system files!
Summary: devel/llvm38: EPIC - latest port deletes system files!
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-29 08:30 UTC by Aleksander Alekseev
Modified: 2016-03-29 09:30 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brooks)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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