ports-mgmt/sccache-overlay sets schg flags to files in stage directory, thus fail to `make clean`. Remaining files are as follows. % ls -al /usr/ports/ports-mgmt/sccache-overlay/work/stage/usr/local/share/sccache/overlay/lib/ total 1351 drwxr-xr-x 2 root wheel 5 10月 28 22:24 . drwxr-xr-x 3 root wheel 3 10月 28 22:24 .. -r-xr-xr-x 1 root wheel 117520 10月 28 22:13 ld-elf.so.1 -rw-r--r-- 1 root wheel 2008976 10月 28 22:13 libc.so.7 -rw-r--r-- 1 root wheel 128320 10月 28 22:13 libthr.so.3 Note that ld-elf.so.1 are colorlized red on actual output. Can be cleaned up after invoking the command below as root. # chflags -R noschg /usr/ports/ports-mgmt/sccache-overlay/work/
I think this schg flags problem may be the root cause of seemingly random lib-depends failures in my poudriere.instance, with any port using sccache-overlay, or anything depending on it or updating it. My workaround is to deinstall and not use sccache-overlay with poudriere.
Created attachment 247057 [details] v0 Can you try the attached patch?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=2fd2a8a49774c008f259b30c664db05f4c535b41 commit 2fd2a8a49774c008f259b30c664db05f4c535b41 Author: Mikael Urankar <mikael@FreeBSD.org> AuthorDate: 2023-12-15 12:37:50 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2024-01-01 18:12:32 +0000 ports-mgmt/sccache-overlay: Remove the schg flag on libraries It allows "make clean" to succeed. PR: 274771 ports-mgmt/sccache-overlay/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
(In reply to Mikael Urankar from comment #2) Thanks! Worked fine both on stable/14(poudriere) and main(bare metal with pkg_replace). Sorry for looong delay.