Bug 223658 - Sunlnk in the ports/distfiles directory will fail during make clean
Summary: Sunlnk in the ports/distfiles directory will fail during make clean
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-14 01:26 UTC by takefu
Modified: 2017-11-14 01:26 UTC (History)
1 user (show)

See Also:


Attachments
patch-Mk_bsd.port.mk.patch (533 bytes, patch)
2017-11-14 01:26 UTC, takefu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description takefu 2017-11-14 01:26:46 UTC
Created attachment 187982 [details]
patch-Mk_bsd.port.mk.patch

Sunlnk in the ports/distfiles directory will fail during make clean
This is a rare case.
Add writing ' '-f nosunlnk ' ' to/usr/ports/mk/bsd.port.mk install_script to settle.

In the case of print/texinfo, it becomes the following.

# env LANG=C ls -ol /usr/ports/distfiles/texinfo/6.5/texi2dvi
-rw-r--r--  1 root  wheel  sunlnk 61668 Jul  5 17:58 /usr/ports/distfiles/texinfo/6.5/texi2dvi

# make clean
===>  Cleaning for texinfo-6.5,1
rm: /usr/ports/print/texinfo/work/texinfo-6.5/util/texi2dvi: Operation not permitted
rm: /usr/ports/print/texinfo/work/texinfo-6.5/util: Directory not empty
rm: /usr/ports/print/texinfo/work/texinfo-6.5: Directory not empty
rm: /usr/ports/print/texinfo/work/stage/usr/local/bin/texi2dvi: Operation not permitted
rm: /usr/ports/print/texinfo/work/stage/usr/local/bin: Directory not empty
rm: /usr/ports/print/texinfo/work/stage/usr/local/share/texinfo/htmlxref.cnf: Operation not permitted
rm: /usr/ports/print/texinfo/work/stage/usr/local/share/texinfo: Directory not empty
rm: /usr/ports/print/texinfo/work/stage/usr/local/share: Directory not empty
rm: /usr/ports/print/texinfo/work/stage/usr/local: Directory not empty
rm: /usr/ports/print/texinfo/work/stage/usr: Directory not empty
rm: /usr/ports/print/texinfo/work/stage: Directory not empty
rm: /usr/ports/print/texinfo/work: Directory not empty
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/print/texinfo
*** Error code 1

Stop.
make: stopped in /usr/ports/print/texinfo