Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2025 08:01:38 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        FreeBSD-pkgbase@freebsd.org, Baptiste Daroussin <bapt@FreeBSD.org>, Lexi Winter <ivy@freebsd.org>
Cc:        Colin Percival <cperciva@tarsnap.com>, FreeBSD-pkg@freebsd.org
Subject:   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)"
Message-ID:  <E61D440D-37F8-40C4-995E-6E880C16D65B@yahoo.com>
References:  <E61D440D-37F8-40C4-995E-6E880C16D65B.ref@yahoo.com>

index | next in thread | previous in thread | raw e-mail

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



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E61D440D-37F8-40C4-995E-6E880C16D65B>