Patched kernel workflow

From: Микола Микола <nikolaytihonov2022_at_gmail.com>
Date: Wed, 11 Mar 2026 15:55:03 UTC
Hi

I am the user of FreeBSD 15-STABLE with pkgbase. I have found myself
recently in quick need to modify the sources of kernel in order to
debug/fix issue I was having trouble with.

I found myself in unpleasant situation where make installkernel complains
about overriding pkgbase kernel and modules, noting that pkg will get out
of sync.

So I have few questions. First is what exactly happens when pkg gets out of
sync? Second, what is streamlined workflow to build custom kernel and
integrate it into system.

I have heard that you should use Poudriere to build packages, and in my
case it this would mean having custom src git tree and every time new
package needs to be build - a merge should happen in that git tree.

Currently Im viewing options to convert my 15-STABLE from pkgbase to
source-based, i.e. building world and kernel from sources.

I would like to hear your opinions on this matter.

Sincerely,
Mykola