Here is a faster way (faster then doing make clean) how to clean /usr/pkgsrc tree in NetBSD.
I assume, that pkgsrc tree is installed in /usr/pkgsrc.
To find all work directories, issue this command:
Code:
find /usr/pkgsrc/ -name "work" -print
To clean them all, issue this one:
Code:
find /usr/pkgsrc/ -name "work" -exec rm -rf {} \;
As a side effect, after each deletion, this command will print message like this:
"find: /usr/pkgsrc/emulators/uae/work: No such file or directory"
indicating that temp directory port has been vanished successfully.