[Bug 275482] ports-mgmt/pkg: incorrectly complains about outdated os version

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 02 Dec 2023 11:02:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275482

            Bug ID: 275482
           Summary: ports-mgmt/pkg: incorrectly complains about outdated
                    os version
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: d8zNeCFG@aon.at
             Flags: maintainer-feedback?(pkg@FreeBSD.org)
          Assignee: pkg@FreeBSD.org

Scenario:
- FreeBSD stable/14 @ c9ceff3c1fa6
- Using portmaster to upgrade ports and maintain a local package repository
- Using pkg to deinstall old versions of ports and install new versions from
the local package repository

Result:
- Since a few days, when installing a new package, pkg always complains:

[0]# cd <packagedir>
[0]# pkg add py39-rasterio-1.3.9.pkg 
Installing py39-rasterio-1.3.9...
Newer FreeBSD version for package py39-rasterio:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1400501
- running kernel: 1400500
Ignore the mismatch and continue? [y/N]: y
Extracting py39-rasterio-1.3.9: 100%
[0]# sysctl kern.osreldate
kern.osreldate: 1400501
[0]# grep -r 14005 /usr/include
/usr/include/sys/param.h:#define __FreeBSD_version 1400501
/usr/include/osreldate.h:#define __FreeBSD_version 1400501
[0]# 

- As can be seen, the osreldate is actually o.k. In fact, all machines are
running the same kernel.

-- 
You are receiving this mail because:
You are the assignee for the bug.