With ports as of r512417, it seems that testport -P is useless because on several ports I get "@dir /prefix" flagged as leftover, which it isn't - the prefix is normally outside of a port's scope, and flagging a root directory seems pointless to me. One other port is graphics/rawtherapee, but I've not bothered beyond two ports. [00:00:28] [120amd64-svn] [1/1] Deinstalling bogofilter-1.2.5.r1_1... [00:00:28] [120amd64-svn] [1/1] Deleting files for bogofilter-1.2.5.r1_1: .......... done [00:00:28] =========================================================================== [00:00:28] =>> Checking for extra files and directories [00:00:28] =>> Error: Files or directories left over: [00:00:28] @dir /prefix [00:00:28] =>> This test was done with PREFIX!=LOCALBASE which may show failures if the port does not respect PREFIX.
this issue persists.
MARKED AS SPAM
(In reply to Marc from comment #2) This comment #2 is utter nonsense.
This needs to be fixed in FreeBSD proper, not in upstream poudriere, per the comments in https://github.com/freebsd/poudriere/issues/787
For simplicity, I'll quote Bryan's comments from Github: "The script that checks for leftovers is in ports too. Mk/Scripts/check_leftovers.sh." "src/share/poudriere/testport.sh:[ ${NOPREFIX} -ne 1 ] && PREFIX="${BUILDROOT:-/prefix}/`echo ${PKGNAME} | tr '[,+]' _`" I suppose it is a problem that we really have PREFIX=/prefix/$PKGNAME so check_leftovers.sh doesn't know it should deal with the parent directory of /prefix. I'm not sure what the right fix is here but I still think it's a Ports problem. We should probably ignore parent directories in check_leftovers.sh when PREFIX!=LOCALBASE."