Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2023 20:07:30 +0100
From:      Jessica Clarke <jrtc27@freebsd.org>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: /usr/sbin/etcupdate -D/usr/obj/DESTDIRs/main-CA7-chroot -s /usr/main-src -M TARGET_ARCH=armv7 ends up building dtc !
Message-ID:  <ZNkp8vTqtYvBW/aS@Jessicas-MacBook-Pro>
In-Reply-To: <058C6DE2-BB5B-46CA-A9C0-D50293137A8D@yahoo.com>
References:  <3EF7CF20-BFC6-4A25-8806-633CB2A3C4D2.ref@yahoo.com> <3EF7CF20-BFC6-4A25-8806-633CB2A3C4D2@yahoo.com> <mpae5o2w0UkqcZ62zyrSH_Ckp7bg8kWE7Is1rr-zB57Bfa7cEFA4E4uro_ulEdC01-1El9XM5kc-FG2W4ON0KNdE6Dq5alS8iCD3pmln7Rg=@igalic.co> <058C6DE2-BB5B-46CA-A9C0-D50293137A8D@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 13, 2023 at 02:23:54AM -0700, Mark Millard wrote:
> On Aug 13, 2023, at 01:06, Mina Gali=C4=87 <freebsd@igalic.co> wrote:
>=20
> > from IRC, i have learned this is working as designed:
> > etcupdate without -B does a build.
>=20
> My interpretation of what "build" referred to for
> etcupate was way off. I've added the -B's that I
> was not using before.
>=20
> Thanks for the note!
>=20
> > Also, jrtc27 recently made it so bootstrapping, because otherwise BUILD=
_WITH_STRICT_TMPPATH doesn't work: https://github.com/freebsd/freebsd-src/c=
ommit/d81da4c98328d4ee3fe4c0a85f6874a3c69a1afd
>=20
> Yep: that added what leads to the dtc build.
>=20
> I still wonder if etcupdate builds more than it needs to
> for its specific pruposes when it does do a build:
> building dtc in order to complete an etcupdate just seems
> time/resource wasting.

It does, but teasing apart what's needed for buildworld/buildkernel and
just buildetc is a bunch of work, and better to have something that
works inefficiently than something that doesn't work. Patches more than
welcome to make it more efficient. However, I will note that 99% of the
time -B is what people should be using, so it's not all that important
(it's rare that you want to produce an etcupdate tree from sources that
haven't just been built).

Jess

> But, at least I'm using -B in the future.
>=20
> > Kind regards,=20
> > Mina Gali=C4=87
> >=20
> >=20
> >=20
> >=20
> > -------- Original Message --------
> > On 13 Aug 2023, 08:32, Mark Millard < marklmi@yahoo.com> wrote:
> > I'd noticed that the etcupdate part of my build procedure has been taki=
ng much time. So I looked with a ps -axldww while it was going on. An examp=
le was: `-- /bin/sh /usr/sbin/etcupdate -D/usr/obj/DESTDIRs/main-CA7-chroot=
 -s /usr/main-src -M TARGET_ARCH=3Darmv7 `-- make TARGET_ARCH=3Darmv7 -DNO_=
FILEMON buildetc `-- make -m /usr/main-src/share/mk -f Makefile.inc1 TARGET=
=3Darm TARGET_ARCH=3Darmv7 buildetc `-- make -f Makefile.inc1 _bootstrap-to=
ols MK_CROSS_COMPILER=3Dno MK_TOOLCHAIN=3Dno . . . `-- /bin/sh -e -c echo "=
=3D=3D=3D> usr.bin/dtc (obj,all,install)"; cd /usr/main-src/usr.bin/dtc;. .=
 . install `-- make DIRPRFX=3Dusr.bin/dtc/ all `-- c++ -O2 -pipe -fno-commo=
n -DNDEBUG . . . -c /usr/main-src/usr.bin/dtc/fdt.cc -o fdt.o More may buil=
d. This is just what was present when I happened to look. Seems an odd thin=
g to be happening for an etcupdate . I'll note that aarch64 targeting aarch=
64 (self hosted build) also spends notable time and is likely doing similar=
ly. =3D=3D=3D Mark Millard marklmi at yahoo.com=20
> >=20
>=20
>=20
> =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?ZNkp8vTqtYvBW/aS>