From nobody Mon Aug 11 09:45:30 2025 X-Original-To: freebsd-pkgbase@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4c0qWS6Pr9z64fSZ for ; Mon, 11 Aug 2025 09:45:40 +0000 (UTC) (envelope-from vermaden@interia.pl) Received: from smtpo49.interia.pl (smtpo49.interia.pl [217.74.67.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4c0qWS1QV3z3r8l for ; Mon, 11 Aug 2025 09:45:40 +0000 (UTC) (envelope-from vermaden@interia.pl) Authentication-Results: mx1.freebsd.org; none Date: Mon, 11 Aug 2025 11:45:30 +0200 From: vermaden Subject: Re: How to build kmods packages? To: Lukas Engelhardt , "freebsd-pkgbase@freebsd.org" X-Mailer: interia.pl/pf09 In-Reply-To: References: X-Originating-IP: 45.148.42.1 Message-Id: List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1754905531; bh=tJdb0PM9OY5EBQpNuOu3KIbbWS/IAi+HyFRiojD+QCY=; h=Date:From:Subject:To:Message-Id:MIME-Version:Content-Type; b=uEF0VMqUHJnb9cLy+gyLUypKc7oVjaAVdA7rkPIbhiQj+4jrkMjX5r7fEkMBabaX8 q2JcTKqkQ9aMrHTjXHtjLVS3Gh8X28pqeR9BoNseLzJ1MFIJoLlUSRGwJZrFK1hsmG GC0c5Os51c2CohqbVRw5/FaSggAVvT6aGlrD6LYM= X-Rspamd-Queue-Id: 4c0qWS1QV3z3r8l X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16138, ipnet:217.74.64.0/22, country:PL] Hi. Details here: - https://vermaden.wordpress.com/2025/06/22/freebsd-kernel-modules-pkg8-rep= ositories/ In short (taken from the link): This problem does not exists with x.0 FreeBSD releases - they have all thei= r packages built against proper FreeBSD x.0 version. The problem arises whe= n x.1 release is made, or x.2 =E2=80=A6 or any OTHER then x.0 to be precise= =E2=80=A6 but why? The main problem is that pkg(8) packages are built against the currently su= pported oldest FreeBSD version in the tree. For example when 14.3-RELEASE i= s announced =E2=80=93 the packages for 14.x tree are still built on 14.2-RE= LEASE for next 3 months since 14.3-RELEASE availability. This usually does not break any =E2=80=98userspace=E2=80=99 applications bu= t kernel modules related packages often are broken and cause kernel panics = even on module load =E2=80=93 and there are about 70 of them. While FreeBSD= team fights really hard to keep ABI and kernel interfaces stable across = =E2=80=98point=E2=80=99 releases =E2=80=93 its sometimes not possible due t= o the nature of Linux DRM graphics drivers being imported and improved to s= upport more modern GPUs on FreeBSD. The problem mostly arises in the desktop/laptop area of FreeBSD UNIX usage = =E2=80=93 as with broken ABI the drm-kmod related kernel modules just panic= and reboot each such system instantly =E2=80=A6 and this problem persists = for whole 3 months within which the older release is still in support. Afte= r these 3 painful months =E2=80=93 and after older =E2=80=98point=E2=80=99 = release is out of support =E2=80=93 the pkg(8) packages are finally started= to built against PROPER latest FreeBSD version =E2=80=93 and problem disap= pears =E2=80=A6 up to next =E2=80=98point=E2=80=99 release and painful 3 mo= nths. The damage of this policy can be limited with ZFS Boot Environments using t= ools like beadm(8) or bectl(8) but its just workaround solution. ... but I do not have a 'howto' build them. Hope that helps. Regards, vermaden Temat: How to build kmods packages? Data: 2025-08-11 11:42 Nadawca: "Lukas Engelhardt" <lukas.engelhardt@gmx.de> Adresat: freebsd-pkgbase@freebsd.org;=20 >=20 > Hey pkgbase people, >=20 > I am building pkgbase packets for my hosts locally using "make buildworld= && make buildkernel && make packages". >=20 > I am not too sure on what these kmods listed in the wiki are used for (i = am using only servers, no desktop setup. I don't recall using them) maybe s= omeone could try explaining that to me. >=20 > But back to my main question: how to build kmods packages like the reposi= tories documented in the wiki is providing. >=20 > I am happy to hear back from you >=20 > Have a nice day >=20 > Lukas >=20