<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/release/packages/kernel.ucl, branch stable/14</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F14</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F14'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-03-27T08:31:47Z</updated>
<entry>
<title>pkgbase: rework certctl package to only run rehash on the main package</title>
<updated>2024-03-27T08:31:47Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2024-01-31T12:42:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=099bd9e6ab8fd563587ccff84f33349a193f208e'/>
<id>urn:sha1:099bd9e6ab8fd563587ccff84f33349a193f208e</id>
<content type='text'>
Rework how ucl manifest are generated leveraging ucl features and flua

now the ucl generation is done via a lua script which uses libucl to
ingest the template and use variables as defined in its command line.

the template will include only if it exist a ucl file named after the
package name which will complement the template or overwrite what was
defined in the template if defined in this specific ucl file

this allows to overwrite license, but add script only to the packages
who actually needs them.

As a results the post install scripts are now only added to the right
package and not also added to the subpackages like -man or -dev

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D44374

(cherry picked from commit f8e46fd61e055fcc767c2038d867f58c38e43ec3)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>pkgbase: Add PKG_NAME_PREFIX, PKG_MAINTAINER and PKG_WWW</title>
<updated>2020-08-11T08:42:24Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2020-08-11T08:42:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=82087d4b689e2478d2dcc00408d4c7f471cd88f1'/>
<id>urn:sha1:82087d4b689e2478d2dcc00408d4c7f471cd88f1</id>
<content type='text'>
This is useful for downstream users to customize the packages.
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D26019
</content>
</entry>
<entry>
<title>pkgbase: Remove vcs revision from kernel and runtime comment</title>
<updated>2020-08-06T16:11:30Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2020-08-06T16:11:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1931aa942f90a34dbb4518f9f97f0a17ab880735'/>
<id>urn:sha1:1931aa942f90a34dbb4518f9f97f0a17ab880735</id>
<content type='text'>
This is not needed and we don't do that for other packages.
</content>
</entry>
<entry>
<title>pkgbase: Fix post-install script for kernel packages</title>
<updated>2018-03-14T14:45:57Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2018-03-14T14:45:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb6d3be5db866009b5a1b5e438203521328b7219'/>
<id>urn:sha1:fb6d3be5db866009b5a1b5e438203521328b7219</id>
<content type='text'>
kernel.ucl uses a hardcoded boot/kernel for kldxref, which is the incorrect
directory when we're installing extra kernels that aren't the "default"
kernel (placed at boot/kernel).

Fix this by instead using a new %KERNELDIR% that we now replace in
Makefile.inc1 with "kernel" for the default kernel and "kernel.${_kernel}"
for these extra kernels so that, e.g. /boot/kernel.SHIVA, will get properly
kldxref'd upon update and avoid outdated linker.hints.

Reviewed by:	gjb
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D14689
</content>
</entry>
<entry>
<title>Revert r322327, r322352, r322358:</title>
<updated>2017-08-15T15:13:33Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2017-08-15T15:13:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=53d1eddd44d1b7d350a9f6974d0f5a8de148a9fb'/>
<id>urn:sha1:53d1eddd44d1b7d350a9f6974d0f5a8de148a9fb</id>
<content type='text'>
Disconnect the dependency on the kernel package from the runtime
package.  There are a number of problems here:

 1) The runtime package installed into a chroot or a jail would
    include the kernel package, changing the behavior of how jails
    work now [1];

 2) As result of (1), it is possible a binary may incorrectly
    resolve kernel symbols [2]; in addition, it is possible there
    will be unexpected fallout with 32-bit jails on a 64-bit host
    kernel [2].

Noticed by:	brd [1]
Discussed with:	kib [2]
MFC after:	3 days
MFC note:	record-only to wipe from the merge tracker
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Add SVNVERSION_CMD to bsd.own.mk, adding the capability to include</title>
<updated>2017-08-11T19:21:40Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2017-08-11T19:21:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ebd2eeb3f84b9a1885b904e1ddd70470b45687e0'/>
<id>urn:sha1:ebd2eeb3f84b9a1885b904e1ddd70470b45687e0</id>
<content type='text'>
svnversion metadata to the runtime and kernel packages.

Instead of traversing src/sys, as is done by newvers.sh for uname(1),
a full tree walk is done to prevent userland and/or modifications
from not being reflected in a modified tree (M).

MFC after:	5 days
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Further revise r322327 and r322352 in release/packages/kernel.ucl.</title>
<updated>2017-08-10T13:32:04Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2017-08-10T13:32:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=268db560d58918e5287f01aa929a9e26a275ce05'/>
<id>urn:sha1:268db560d58918e5287f01aa929a9e26a275ce05</id>
<content type='text'>
Use PPID and PID to kill off the pre-install and parent pkg(8)
processes unless 'Y' or 'y' are entered at the prompt if the user
wants to proceed with upgrading the kernel and userland at the same
time.

This restores some of the logic and intent of r322327, with the
caveat of printing "child process terminated unexpectedly."

MFC after:	5 days
MFC with:	r322327, r322352
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Revise part of r322327 in release/packages/kernel.ucl.</title>
<updated>2017-08-10T12:30:34Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2017-08-10T12:30:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=65fbf6644d387e01e81ba5ad8484d12be359969a'/>
<id>urn:sha1:65fbf6644d387e01e81ba5ad8484d12be359969a</id>
<content type='text'>
It appears I misunderstand process forking and signal handling in
how the pre-/post-install scripts are executed internally by pkg(8).
In some cases (not all), ^C when prompted to cancel the kernel
package update will stop the pre-install script from executing, but
allow pkg(8) to continue extracting the package when it is not the
intent.

In order to keep somewhat of an anti-footshooting measure in place,
print the recommendation to install the kernel package first if
ASSUME_ALWAYS_YES is false and TERM is set, then sleep for 5 seconds
to allow the user to see the message.

MFC after:	5 days
MFC with:	r322327
X-MFC-Note:	Maybe not until I am happy with this..
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Add a dependency on the kernel package for the runtime package.</title>
<updated>2017-08-09T19:16:54Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2017-08-09T19:16:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=16398a1141de7696775b88cba9d14c780faf1d42'/>
<id>urn:sha1:16398a1141de7696775b88cba9d14c780faf1d42</id>
<content type='text'>
The idea here is that, provided upstream pkg(8) maintainers accept
the proposed change, the kernel.ucl will contain a post-install
script causing pkg(8) to emit a message informing to reboot the
system after the kernel is upgraded using 'pkg upgrade', so the
new userland is installed on the running new kernel.  At present,
this functionality does not exist in pkg(8), but will help ensure
the upgrade path follows that from UPDATING.  To work around this
for now, evaluate ASSUME_ALWAYS_YES, and prompt the user if they
wish to proceed if not set to true.

Since there is a kernel dependency, and a non-GENERIC kernel may
be in use, update Makefile.inc1 to replace '%KERNCONF%' in the
runtime.ucl with the first-built kernel set either via command line
or in make.conf(5).

MFC after:	5 days
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
</feed>
