Bug 274771 - ports-mgmt/sccache-overlay: Files remain on `make clean`
Summary: ports-mgmt/sccache-overlay: Files remain on `make clean`
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: FreeBSD Rust Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-28 14:02 UTC by Tomoaki AOKI
Modified: 2024-01-02 01:52 UTC (History)
2 users (show)

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


Attachments
v0 (1.13 KB, patch)
2023-12-15 12:44 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoaki AOKI 2023-10-28 14:02:26 UTC
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/
Comment 1 void 2023-11-05 13:32:47 UTC
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.
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2023-12-15 12:44:10 UTC
Created attachment 247057 [details]
v0

Can you try the attached patch?
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-01-01 18:12:49 UTC
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(-)
Comment 4 Tomoaki AOKI 2024-01-02 01:52:58 UTC
(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.