Note thatI always build Ports SU:ed to ROOT so I avoid the permission issues.
su -
( root password )
cd /usr/ports/x11/sddm
rm -r work; make reinstall
rm -r work wouldn't work as intended on flavorized ports.For example, on x11/nvidia-driver, work-xorg is created for default flavor (
xorg), while work-xlibre would be created instead for xlibre flavor.This behavior is defined in Mk/bsd.port.mk.
And I believe
make clean instead of rm -r work would work.Another note would be that if there are any files having
schg flag set (as far as I know, happened on ports-mgmt/sccache-overlay before, now already fixed), you'll need to chflags -R noschg for ${WRKDIR}.