When graphics/gpu-firmware-kmod built on FreeBSD-12 stable from ports' tree, it do not clean subdirs after make clean. It leaves ≈6GiB in work-* subdirectories in /usr/ports/graphics/gpu-firmware-amd-kmod /usr/ports/graphics/gpu-firmware-intel-kmod /usr/ports/graphics/gpu-firmware-radeon-kmod directories. It was reproduced at least once, see https://forums.freebsd.org/threads/graphics-gpu-firmware-kmod-problem.85101/
make clean works perfectly fine here, it cleans all the subport flavors. So I don't know what to say ...
(In reply to Emmanuel Vadot from comment #1) Also on 12 branch? After removing all gpu-firmware-\* ports and drm-fbsd12.0-kmod I install drm-fbsd12.0-kmod, the scrips says that after installation the port ans its dependencies it cleans gpu-firmware-amd gpu-firmware-intel gpu-firmware-radeon, but all work-\* subdirs in them remain. Could be deleted only manually.
(In reply to gja822 from comment #2) I don't have a 12.X branch (and don't care about 12.X TBH). What "scripts" are you talking about ?
(In reply to Emmanuel Vadot from comment #3) 12.3 is a production release, I use 12-STABLE, so it should be supported. I mean "scripts" of a Makefile (and its includes). When I issue command "make ; make install clean" from /usr/ports/graphics/drm-fbsd12.0-kmod directory
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=2701f8e3a2cee6c986c9399702673fa81d2f903e commit 2701f8e3a2cee6c986c9399702673fa81d2f903e Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-05-16 12:06:25 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-05-16 12:08:27 +0000 graphics/gpu-firmware-*-kmod: Remove defualt FLAVOR The default flavor is always the first of the list. Setting one make the port framework always use this one and so things like make clean will never clean all the flavors. This will lead to leave all the work-${FLAVOR} directories except for the default one if one is building graphics/gpu-firmware-kmod. PR: 263899 Sponsored by: Beckhoff Automation GmbH & Co. KG graphics/gpu-firmware-amd-kmod/Makefile | 1 - graphics/gpu-firmware-intel-kmod/Makefile | 1 - graphics/gpu-firmware-radeon-kmod/Makefile | 1 - 3 files changed, 3 deletions(-)
I believe that the issue you're seeing should be fixed now.
(In reply to Emmanuel Vadot from comment #6) Yes, now I see it fixed, thank you.
Confirmed fixed