https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290322 is about pkg not building without FreeBSD-jail-dev installed: Makefile has ".if !exists(/usr/include/jail.h)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Oct 2025 15:01:38 UTC
For reference about why there is the ".if !exists(/usr/include/jail.h)"
test:
QUOTE
author John Marino <marino@FreeBSD.org> 2015-04-14 21:32:00 +0000
committer John Marino <marino@FreeBSD.org> 2015-04-14 21:32:00 +0000
commit aadfeb0da60a53972a4071d59396b6e6a6f94e78 (patch)
tree 45f4ff1f2a64c691f1465520054f0299c34bb9a9 /ports-mgmt/pkg/files/extra-patch-docs_pkg.8
parent ea5adfb8f1faf7a8350d21e14c8506d9a834516c (diff)
ports-mgmt/pkg: Regenerate EXTRA_PATCHES (unbreaks DragonFly)
The patch target will fail if EXTRA_PATCHES is defined, but it is
only defined on DragonFly (change is no-op for FreeBSD)
Approved by: Just fix it
. . .
END QUOTE
The pkg Makefile has long had the following to avoid the
patch for FreeBSD:
.if !exists(/usr/include/jail.h)
EXTRA_PATCHES= ${FILESDIR}/extra-patch-docs_pkg.8
.endif
Of course various port makefiles could have a variety of
context checks based on previously known differences
between a downstream and FreeBSD itself. Less is known
in a selective pkgbase install or jail context.
Some sort of exp run based on a poudriere jail that has
some sort of fairly minimal context in order to find
other examples?
===
Mark Millard
marklmi at yahoo.com