An example poudriere-devel pkgclean failure, multiple issues involved

From: Mark Millard via freebsd-ports <>
Date: Wed, 22 Sep 2021 19:26:59 UTC
When I just tried to pkgclean -a I got:

# poudriere pkgclean -jmain-CA7 -a -y
[00:00:00] Gathering all expected packages
[00:00:00] Creating the reference jail... done
[00:00:03] Mounting system devices for main-CA7-default
[00:00:03] Mounting ports from: /usr/ports
[00:00:03] Mounting packages from: 
[00:00:03] Mounting distfiles from: /usr/ports/distfiles
[00:00:03] Copying /var/db/ports from: /usr/local/etc/poudriere.d/options
[00:00:03] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf
[00:00:03] Appending to make.conf: /usr/local/etc/poudriere.d/main-CA7-make.conf
/etc/resolv.conf -> /usr/local/poudriere/data/.m/main-CA7-default/ref/etc/resolv.conf
[00:00:03] Starting jail main-CA7-default
[00:00:04] Loading MOVED for /usr/local/poudriere/data/.m/main-CA7-default/ref/usr/ports
[00:00:05] Ports supports: FLAVORS SELECTED_OPTIONS
[00:00:05] Gathering ports metadata
[00:02:11] Calculating ports order and dependencies
[00:02:46] Sanity checking the repository
[00:02:46] Unqueueing existing packages
[00:02:50] Sanity checking build queue
[00:02:52] Error: Packages stuck in queue (depended on but not in queue): HPCombi-0.0.6_1
. . .
[: -gt: unexpected operator
[: -gt: unexpected operator
[: -gt: unexpected operator
/usr/local/share/poudriere/ POUDRIERE_BUILD_TYPE: parameter not set
[00:02:52] Cleaning up
[00:02:52] Unmounting file systems

So I ended up doing:

# rm /usr/local/poudriere/data/packages/main-CA7-default/.real_1632249158/All/*

This may have been tied to the relative timing of the last bulk build
(where the final port failed to build) and when the /usr/ports the jail
was bound to was later updated before the pkgclean. The packages were
those form attempting a build of emulators/mame (targeting armv7 on

But it is not clear to me that pkgclean -a -y should avoid the complete
delete in the above context.

There are also the "unexpected operator" syntax errors and the
POUDRIERE_BUILD_TYPE error once "Packages stuck" happened.

For reference:

# poudriere version

Mark Millard
marklmi at
( went
away in early 2018-Mar)