Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2022 13:42:01 -0800
From:      David Christensen <dpchrist@holgerdanske.com>
To:        questions@freebsd.org
Subject:   Re: FreeBSD 12.3-R and environment variables
Message-ID:  <fb4a3b16-93dc-98b9-c33f-9243866e815c@holgerdanske.com>
In-Reply-To: <20220214.060421.2204344428991538671.yasu@utahime.org>
References:  <c5c7d9c5-d0bd-6697-8e47-365246af2fdd@holgerdanske.com> <20220214.060421.2204344428991538671.yasu@utahime.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/13/22 13:04, Yasuhiro Kimura wrote:
> From: David Christensen <dpchrist@holgerdanske.com>
> Subject: FreeBSD 12.3-R and environment variables
> Date: Sun, 13 Feb 2022 12:45:20 -0800
> 
>> freebsd-questions:
>>
>> I recently installed FreeBSD 12.3-R:
>>
>> 2022-02-13 12:42:03 toor@f4 ~
>> # freebsd-version ; uname -a
>> 12.3-RELEASE
>> FreeBSD f4.tracy.holgerdanske.com 12.3-RELEASE FreeBSD 12.3-RELEASE
>> r371126 GENERIC amd64
>>
>>
>> Why do these environment variables say 12.2, and not 12.3?
>>
>> 2022-02-13 12:42:07 toor@f4 ~
>> # set | grep -i freebsd
>> BASH_VERSINFO=([0]="5" [1]="1" [2]="12" [3]="0" [4]="release"
>> [5]="amd64-portbld-freebsd12.2")
>> MACHTYPE=amd64-portbld-freebsd12.2
>> OSTYPE=freebsd12.2
>>
>>
>> David
>> 	
>>
> 
> You seems to install bash by using official package and use it as
> login shell. Right? 


Thank you for the reply.


I believe so:

February 13, 2022
<snip>
root@f4:~ # pkg install bash bash-completion
<snip>


> If so the answer is that official packages for
> 12.x are built on 12.2-RELEASE. 


That is unexpected.  I would expect the packages for 12.3-RELEASE to be 
built on 12.3-RELEASE.


> If you build and install bash on
> 12.3-RELEASE or after 12.2-RELEASE reachs its EoL, the result will
> change such as following.
> 
> # set | grep -i freebsd
> BASH_VERSINFO=([0]="5" [1]="1" [2]="12" [3]="0" [4]="release" [5]="amd64-portbld-freebsd12.3")
> MACHTYPE=amd64-portbld-freebsd12.3
> OSTYPE=freebsd12.3
> 
> ---
> Yasuhiro Kimura


David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fb4a3b16-93dc-98b9-c33f-9243866e815c>