Ports Collection support for your FreeBSD version has ended ? it's false.

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Mon, 11 Dec 2023 09:50:28 UTC
Hello.

This is what happens when I try to upgrade my ports :


# portupgrade -a

[Reading data from pkg(8) ... - 1352 packages found - done]
[Updating the portsdb <format:bdb_btree> in /usr/ports ... -
34881 port entries found .........1000.
........2000.........3000.........4000.........5000.........600
0.........7000.........8000.........9
000.........10000.........11000.........12000.........13000....
.....14000.........15000.........1600
0.........17000.........18000.........19000.........20000......
...21000.........22000.........23000.
........24000.........25000.........26000.........27000........
.28000.........29000.........30000...
......31000.........32000.........33000.........34000........
..... done]

make: "/usr/ports/Mk/bsd.port.mk" line 1194: warning: duplicate
script for target "show-unsupported-system-error" ignored
make: "/usr/ports/Mk/bsd.port.mk" line 1200: warning: using
previous script for "show-unsupported-system-error" defined
here

** Port marked as IGNORE: ftp/curl:
        You are using OpenSSL from ports and have selected
GSSAPI from base, please select another GSSAPI value
** Port marked as IGNORE: mail/fetchmail:
        You are using OpenSSL from ports and have selected
GSSAPI from base, please select another GSSAPI value
** Port deleted on 2023-04-25: x11/libdmx
        Upstream removed support for Xdmx server
** Port deleted on 2023-03-12: devel/libpthread-stubs
        No consumers left and never supported pthread stubs in
libc on FreeBSD
** Port marked as IGNORE: security/p5-GSSAPI:
        You are using OpenSSL from ports and have selected GSSAPI from
base, please select another GSSAPI value
** Port marked as IGNORE: net-im/telegram-desktop:
        is marked as broken: does not build with
DEFAULT_VERSIONS+=ssl=openssl: undefined symbol: ERR_load_BIO_strings
** Port marked as IGNORE: devel/wasi-libcxx:
        is a meta port; there is nothing to build
--->  Upgrading 'bastille-0.10.20231013' to 'bastille-0.10.20231125'
(sysutils/bastille)
--->  Building '/usr/ports/sysutils/bastille'
===>  Cleaning for bastille-0.10.20231125
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended,
and no ports are guaranteed to build on this system. Please
upgrade to a supported release.

No support will be provided if you silence this message by
defining ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/bastille
egrep: empty (sub)expression
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20231211-7863-qu8701 env
UPGRADE_TOOL=portupgrade UPGRADE_PORT=bastille-0.10.20231013
UPGRADE_PORT_VER=0.10.20231013 make

** Fix the problem and try again.

--->  Upgrading 'go120-1.20.8' to 'go120-1.20.12' (lang/go120)
--->  Building '/usr/ports/lang/go120'
===>  Cleaning for go120-1.20.12
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended,
and no ports are guaranteed to build on this system. Please
upgrade to a supported release.

No support will be provided if you silence this message by
defining ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.

and so on.


I don't understand the reason,since I'm using a version of FreeBSD that's
enough recent :


# freebsd-version -kru ; uname -aKU

13.2-RELEASE-p4
13.2-RELEASE-p4
13.2-RELEASE-p7

FreeBSD marietto 13.2-RELEASE-p4 FreeBSD 13.2-RELEASE-p4
GENERIC amd64 1302001 1302001

# pkg -vv | grep -e url -e enabled -e priority

url             : "pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64
/latest",
enabled         : yes,
priority        : 0,


it seems that I do respect the parameters configured to understand if one
uses a recent version of FreeBSD :


# nano bsd.port.mk

. if ${OPSYS} == FreeBSD && (${OSVERSION} < 1204000 ||
 (${OSVERSION} >= 1300000 && ${OSVERSION} < 1302000))
_UNSUPPORTED_SYSTEM_MESSAGE= Ports Collection support for your
${OPSYS} version has ended, and no ports\
are guaranteed to build on this system.
Please upgrade to a supported version.

OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/
{print $$3}' < ${CROSS_SYSROOT}/usr/include/sys/param.h


so :


{OSVERSION} < 1204000 : no
{OSVERSION} >= 1300000 : yes
{OSVERSION} < 1302000 : no


MY OSVERSION = 1302001

so I'm ok. There should be another reason that fools the script...
-- 
Mario.