For reference about why there is the ".if !exists(/usr/include/jail.h)" test:
QUOTE author John Marino <[email protected]> 2015-04-14 21:32:00 +0000 committer John Marino <[email protected]> 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
