Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Nov 2022 14:49:50 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Paul Mather <paul@gromit.dlib.vt.edu>
Cc:        Glen Barber <gjb@FreeBSD.org>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: A possible unintended difference in 13.1-RELEASE vs., for example, 13.1-RELEASE-p3
Message-ID:  <BB3A5421-969E-4D2F-8518-88ED97843EEE@yahoo.com>
In-Reply-To: <9D6B1A82-CCB5-44BA-8668-A6BDC291595B@gromit.dlib.vt.edu>
References:  <E952030F-920A-4591-8CDF-F99F68B1988E.ref@yahoo.com> <E952030F-920A-4591-8CDF-F99F68B1988E@yahoo.com> <9D6B1A82-CCB5-44BA-8668-A6BDC291595B@gromit.dlib.vt.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2022-Nov-4, at 11:37, Paul Mather <paul@gromit.dlib.vt.edu> wrote:

> On Nov 3, 2022, at 11:50 PM, Mark Millard <marklmi@yahoo.com> wrote:
>=20
>> I downloaded and looked at:
>>=20
>> FreeBSD-13.1-RELEASE-arm64-aarch64-RPI.img
>>=20
>> # mdconfig -u md0 -f FreeBSD-13.1-RELEASE-arm64-aarch64-RPI.img
>> # mount -onoatime /dev/md0s2a /mnt
>> # strings /mnt/boot/kern*/kernel | grep 13.1-RELEASE
>> @(#)FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC
>> FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC
>> 13.1-RELEASE
>>=20
>> Note the: releng/13.1-n250148-fc952ac2212
>>=20
>> Looking at the live system after the freebsd-update to
>> -p3 :
>>=20
>> # strings /boot/kernel/kernel | grep 13.1-RELEASE
>> @(#)FreeBSD 13.1-RELEASE-p3 GENERIC
>> FreeBSD 13.1-RELEASE-p3 GENERIC
>> 13.1-RELEASE-p3
>>=20
>> No text analogous to: releng/13.1-n250148-fc952ac2212
>=20
>=20
> I'm just wondering, but could this have anything to reproducible =
builds?  It's my understanding that setting is standard for -RELEASE =
branches.  Note this entry in /usr/src/UPDATING:
>=20
> =3D=3D=3D=3D=3D
> 20180913:
>        Reproducible build mode is now on by default, in preparation =
for
>        FreeBSD 12.0.  This eliminates build metadata such as the user,
>        host, and time from the kernel (and uname), unless the working =
tree
>        corresponds to a modified checkout from a version control =
system.
>        The previous behavior can be obtained by setting the =
/etc/src.conf
>        knob WITHOUT_REPRODUCIBLE_BUILD.
> =3D=3D=3D=3D=3D
>=20

Could be, but text like releng/13.1-n250148-fc952ac2212 is reproducible
for use of the same commit to do mulitple builds. Use of different
commits across builds should be detectable even for reproducible build
style activity, or so I would expect.

The releng/13.1-n250148-fc952ac2212 type of text does have an issue
if incremental style builds are sometimes used instead of from-scratch
builds: It is for/from the kernel build and if the kernel is not built
but is left at an older build and, say, only part of world is built,
the identification would then be out of date (inaccurate) overall.

I was not really trying to claim that the =
releng/13.1-n250148-fc952ac2212
text I referenced was the best place to have the identification of the
exact commit used for binary updates. It is just that right now there
is no place and some manual inspection/analysis is required to =
(hopefully)
identify the right commit. (The mismerge-fix being an example of =
something
that would need to be noticed.)

Glen, Warner, etc. may well determine that the current status relative =
to
the build that produced the binary update is sufficient overall. I've
primarily identified related questions for consideration.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BB3A5421-969E-4D2F-8518-88ED97843EEE>