Probably only affects very few people with unusual setups, but I encountered this root@tarbsd-homelab:/ # appjail fetch pkgbase [00:00:00] [ error ] pkg(8) is not present on the host. Cannot continue ... root@tarbsd-homelab:/ # Portlint doesn't understand that ${PKG_ORIGIN} there and it triggers a false positive.
Created attachment 265279 [details] 0001-sysutils-appjail-depend-on-pkg.patch
Created attachment 265280 [details] 0001-sysutils-appjaili-devel-depend-on-pkg.patch
Hi, Thanks for reporting this. I'll add pkg as an optional dependency, but enabled by default. See for example the other dependencies, such as debootstrap or doas.
Created attachment 265283 [details] 0001-sysutils-appjail-add-pkg-as-a-dependency.patch
Created attachment 265284 [details] 0001-sysutils-appjail-devel-add-pkg-as-a-dependency.patch
Interesting, portlint doesn't get offended if pkg is an optional dependency. And thanks for this app. I've been thinking about replacing iocage for several years. Finding this finally triggered me to do that.
> And thanks for this app. I've been thinking about replacing iocage for several years. Finding this finally triggered me to do that. And thanks for that! Be welcome!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=cbbef72ee0a593611661f89ee30963eb95efbbb0 commit cbbef72ee0a593611661f89ee30963eb95efbbb0 Author: Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org> AuthorDate: 2025-11-09 18:45:41 +0000 Commit: Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org> CommitDate: 2025-11-09 19:06:28 +0000 sysutils/appjail{,-devel}: Add PKG option AppJail optionally depends on ${PKG_ORIGIN} to create a base directory using pkgbase. We enable the PKG option by default, as it will become the preferred method. PR: 290907 Reported by: pkaipila@gmail.com sysutils/appjail-devel/Makefile | 12 ++++++++---- sysutils/appjail/Makefile | 6 +++++- 2 files changed, 13 insertions(+), 5 deletions(-)
Committed, thanks!