Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Sep 2022 12:20:03 +0200
From:      Milan Obuch <freebsd-ports@dino.sk>
To:        ports@freebsd.org
Subject:   Re: Ports Collection support for your FreeBSD version has ended...
Message-ID:  <20220902122003.3ff6bc17@zeta.dino.sk>
In-Reply-To: <sfla-6qnt-wny@FreeBSD.org>
References:  <20220902080913.3049eb0e@zeta.dino.sk> <8rn2-cii8-wny@FreeBSD.org> <20220902102510.562724ee@zeta.dino.sk> <sfla-6qnt-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 02 Sep 2022 12:01:42 +0200
Jan Beich <jbeich@FreeBSD.org> wrote:

> Milan Obuch <freebsd-ports@dino.sk> writes:
> 
> > On Fri, 02 Sep 2022 10:01:19 +0200
> > And what about 12.3-STABLE?  
> 
> # 12.3-RELEASE
> $ git show release/12.3.0:sys/sys/param.h | grep define.\*_version
> #define __FreeBSD_version 1203000       /* Master, propagated to
> newvers */
> 
> # 12.3-STABLE
> $ git show origin/stable/12:sys/sys/param.h | grep define.\*_version
> #define __FreeBSD_version 1203507       /* Master, propagated to
> newvers */
> 
> > Where is this version constant defined in ports tree?  
> 
> From Mk/bsd.port.mk
> 
> .    if ${OPSYS} == FreeBSD && (${OSVERSION} < 1203000 ||
> (${OSVERSION} >= 1300000 && ${OSVERSION} < 1301000))
> _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 release. .      if
> defined(ALLOW_UNSUPPORTED_SYSTEM) WARNING+=
> "${_UNSUPPORTED_SYSTEM_MESSAGE}" .      else
> show-unsupported-system-error: @${ECHO_MSG} "/!\\ ERROR: /!\\"
> 	@${ECHO_MSG}
> 	@${ECHO_MSG} "${_UNSUPPORTED_SYSTEM_MESSAGE}" | ${FMT_80}
> 	@${ECHO_MSG}
> 	@${ECHO_MSG} "No support will be provided if you silence this
> message by defining ALLOW_UNSUPPORTED_SYSTEM." | ${FMT_80}
> @${ECHO_MSG} @${FALSE}
> .      endif
> .    endif
> 
> > How can this version be inspected using just binaries installed?  
> 
> "sysctl kern.osreldate". It's not used by ports/ since 2014-09-30
> (9576bda6137e).
> 
> If you want to build ports/ then /usr/include must exist, and
> kern.osreldate must not be older than <sys/param.h> or <osreldate.h>.
> Otherwise, freshly built binaries may not be able to run.
> 
> poudriere records kern.osreldate as "Host OSVERSION" and
> <sys/param.h> as "Jail OSVERSION". For example, package cluster build
> logs often have "Host OSVERSION" matching -CURRENT kernel around the
> time.
> 

Thanks for great explanation. It really helps. Ports collection is
really a monster, so some hints are really needed at times. Even if can
find it myself, experience could be gained this way, still, it would
require much more time... having some support is often invaluable.

Regards,
Milan



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