Re: Building a ported kernel module, where the Project-provided package is inferior (was: Error report on FreeBSD-14.2-BETA2 - graphics problem)

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Mon, 18 Nov 2024 02:10:08 UTC

> On Nov 17, 2024, at 4:38 PM, Graham Perrin <grahamperrin@gmail.com> wrote:
> 
> On 14/11/2024 11:09, Hans Ottevanger wrote:
>> … rebuilding the drm-61-kmod package …. I still wonder what we have to tell an unsuspecting (possibly beginning) end user …
> 
> The need to build modules such as drm-61-kmod is:
> 
> * very frequently encountered
> 
> * not mentioned at <https://docs.freebsd.org/en/books/faq/>.
> 
> When the announcement for BETA3 is posted to Reddit:
> 
> * I'll add a hint that FreeBSD-src-sys can be added with pkg
> 
> – for the benefit of people who might not want the relative complexity of things such as git, gitup, and got.
> 
> 

Fernando made enhancement [1] to freebsd-update(8) so that end users will be warned / hinted. So maybe it is time to MFC that to stable branches ?

The serial of related commits are [2] [3] and [4].

1. https://reviews.freebsd.org/D39695 <https://reviews.freebsd.org/D39695>
2. bc0c6c9cf3a9 freebsd-update: Add check for kernel modules
3. d3b6d70e0dfa freebsd-update(8): Use kern.module_path
4. d76ef58d566c freebsd-update: Correctly check if pkg(8) is present

Best regards,
Zhenlei