pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cross compile - CROSS_OPSYS_VERSION usage / syntax ?



On Wed, Dec 25, 2024 at 11:54:17AM -0500, vom513 wrote:
> Hello all,
> 
> I;m doing some cross compiles, and was wondering about the CROSS_OPSYS_VERSION variable ?  I have:
> 
> CROSS_OS_VERSION= 10.1
> CROSS_OPSYS_VERSION= 100100
> 
> In mk.conf.  Those two variables seem a bit redundant maybe ?  
> 
> What does CROSS_OPSYS_VERSION do as opposed to the OS_VERSION ?
> 
> Also is the syntax xxyyzz - so for 10.1 it’s 100100 ?
> 
> Thanks.
> 

Hi, these mirror the regular pkgsrc variables
OS_VERSION and OPSYS_VERSION.

OS_VERSION is the original variable and is used with
string comparison.

OPSYS_VERSION is much newer and is used in integer comparisons.

In most cases integer comparison is more flexible, but there's
some old stuff hanging around that hasn't been touched in years
using OS_VERSION.


Home | Main Index | Thread Index | Old Index