Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2024 08:17:05 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a5fc087131e6 - main - kmod: append osversion to the portversion
Message-ID:  <202412100817.4BA8H5CD007352@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a5fc087131e66513d1c74f8427c924afff580a15

commit a5fc087131e66513d1c74f8427c924afff580a15
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-12-09 08:57:35 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-12-10 08:17:02 +0000

    kmod: append osversion to the portversion
    
    The version is now
    
    kmodpackagename-<kmodpackageversion>.<osversion>_<revision>,<epoch>
    
    This is necessary to make sure that the same packages built on a newer
    version of FreeBSD on a given branch is considered as an upgrade of the
    default provided one.
    
    In the current model of support, all packages are built on the lowest
    supported version of a given branch, which means right now all packages
    are built on 14.1, this results as since 14.2 has been released and up
    to the time 14.1 is EOLed we do not provide working binary packages for
    kernel modules and related for 14.2.
    
    With this we will be able to provide a dedicated repo built against 14.2
    that will be usable by users and pkg upgrade will simply update to the
    right version.
    
    https://reviews.freebsd.org/D47997
---
 Mk/Uses/kmod.mk | 2 ++
 Mk/bsd.port.mk  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Mk/Uses/kmod.mk b/Mk/Uses/kmod.mk
index a28077e67697..36bc49462fdf 100644
--- a/Mk/Uses/kmod.mk
+++ b/Mk/Uses/kmod.mk
@@ -25,6 +25,8 @@ IGNORE=	requires kernel source files in SRC_BASE=${SRC_BASE}
 
 CATEGORIES+=	kld
 
+_OS_SUFX?=	.${OSVERSION}
+
 PIE_UNSAFE=	kernel modules are not executable
 SSP_UNSAFE=	kernel module supports SSP natively
 
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 360fff6fc4cd..01dc08c265f5 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1386,7 +1386,7 @@ PORTEPOCH?=		0
 _SUF2=	,${PORTEPOCH}
 .    endif
 
-PKGVERSION=	${PORTVERSION:C/[-_,]/./g}${_SUF1}${_SUF2}
+PKGVERSION=	${PORTVERSION:C/[-_,]/./g}${_OS_SUFX}${_SUF1}${_SUF2}
 PKGNAME=	${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-${PKGVERSION}
 DISTVERSIONFULL=	${DISTVERSIONPREFIX}${DISTVERSION:C/:(.)/\1/g}${DISTVERSIONSUFFIX}
 DISTNAME?=	${PORTNAME}-${DISTVERSIONFULL}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412100817.4BA8H5CD007352>