Page MenuHomeFreeBSD

sjg (Simon Gerraty)
User

Projects

User Details

User Since
Apr 9 2015, 9:27 PM (564 w, 1 d)

Recent Activity

Thu, Jan 29

sjg added a comment to D30990: src.sys.obj.mk: Export OBJTOP like OBJROOT.

FWIW this simple .export OBJTOP works ok for buildworld but not for targets like universe where multiple arches try to use the same OBJTOP which quickly ends in tears.
The more elaborate patch in https://reviews.freebsd.org/D54819 blows up in buildworld due to being incompatible with assumptions made by all the *compat* bits, but once that compat stuff is fixed, probably has a hope of working for universe too.

Thu, Jan 29, 12:26 AM

Thu, Jan 22

sjg added a comment to D54819: src.sys.obj.mk export OBJTOP.

Do we need to worry about $s in OBJROOT?

Thu, Jan 22, 4:00 PM
sjg updated the diff for D54819: src.sys.obj.mk export OBJTOP.

Remove all but the last := for OBJTOP

Thu, Jan 22, 1:09 AM
sjg added a comment to D30990: src.sys.obj.mk: Export OBJTOP like OBJROOT.

Please see https://reviews.freebsd.org/D54819

Thu, Jan 22, 1:04 AM
sjg requested review of D54819: src.sys.obj.mk export OBJTOP.
Thu, Jan 22, 1:03 AM

Wed, Jan 21

sjg added a comment to D30990: src.sys.obj.mk: Export OBJTOP like OBJROOT.

The patch below, builds buildworld ok, avoids these warnings (due to OBJTOP being empty when evaluatinng MAKEOBJDIR which is set to ${.CURDIR:S,${SRCTOP},${OBJTOP},}

diff --git a/share/mk/src.sys.obj.mk b/share/mk/src.sys.obj.mk
index e4fe3fa9a2aa..67af0b833faa 100644
--- a/share/mk/src.sys.obj.mk
+++ b/share/mk/src.sys.obj.mk
@@ -88,18 +88,22 @@ SB_OBJROOT:= ${OBJROOT}
 # in the source tree.
 .if ${MK_UNIFIED_OBJDIR} == "yes" && ${SRCTOP} != ${OBJROOT:tA}
 .if defined(TARGET) && defined(TARGET_ARCH)
-OBJTOP:=       ${OBJROOT}${TARGET}.${TARGET_ARCH}
+OBJTOP:=       ${OBJROOT}$${TARGET}.$${TARGET_ARCH}
 .elif defined(TARGET) && ${.CURDIR} == ${SRCTOP}
 # Not enough information, just use basic OBJDIR.  This can happen with some
 # 'make universe' targets or if TARGET is not being used as expected.
 OBJTOP:=       ${OBJROOT:H}
 .else
-OBJTOP:=       ${OBJROOT}${MACHINE}.${MACHINE_ARCH}
+OBJTOP:=       ${OBJROOT}$${MACHINE}.$${MACHINE_ARCH}
 .endif
 .else
 # TARGET.TARGET_ARCH handled in OBJROOT already.
 OBJTOP:=       ${OBJROOT:H}
 .endif # ${MK_UNIFIED_OBJDIR} == "yes"
+# export but do not track
+.export-env OBJTOP
+# resolve if needed
+OBJTOP:= ${OBJTOP}
 .endif # empty(OBJTOP)
Wed, Jan 21, 7:39 AM

Thu, Jan 15

sjg committed rG32dd4b31dd9d: bsd.man.mk fix and simplify staging (authored by sjg).
bsd.man.mk fix and simplify staging
Thu, Jan 15, 6:35 PM

Sun, Jan 11

sjg committed rG9fed072b4422: bsd.man.mk simplify staging (authored by sjg).
bsd.man.mk simplify staging
Sun, Jan 11, 3:00 AM
sjg committed rG9cd89fc5aa3c: bsd.man.mk fix staging (authored by sjg).
bsd.man.mk fix staging
Sun, Jan 11, 2:45 AM

Sat, Jan 10

sjg committed rGc95f96dea30a: Update to bmake-20251111 (authored by sjg).
Update to bmake-20251111
Sat, Jan 10, 9:35 PM
sjg committed rG06366a2188a1: Merge bmake-20250804 (authored by sjg).
Merge bmake-20250804
Sat, Jan 10, 9:35 PM
sjg committed rGa9319c35e816: Merge bmake-20250308 (authored by sjg).
Merge bmake-20250308
Sat, Jan 10, 9:35 PM
sjg committed rGeb560911563f: Merge bmake-20250618 (authored by sjg).
Merge bmake-20250618
Sat, Jan 10, 9:35 PM
sjg committed rG44ad87f77a84: Merge bmake-20250707 (authored by sjg).
Merge bmake-20250707
Sat, Jan 10, 9:35 PM
sjg committed rG8a4277b9667c: Merge bmake-20250414 (authored by sjg).
Merge bmake-20250414
Sat, Jan 10, 9:35 PM
sjg committed rG812d0cb17de0: Merge bmake-20250125 (authored by sjg).
Merge bmake-20250125
Sat, Jan 10, 9:35 PM
sjg committed rGfa86ef7f23ae: Merge bmake-20240711 (authored by sjg).
Merge bmake-20240711
Sat, Jan 10, 9:34 PM
sjg committed rGba508f1da16d: Merge bmake-20240625 (authored by sjg).
Merge bmake-20240625
Sat, Jan 10, 9:34 PM
sjg committed rG5d3c3f73b69c: Merge bmake-20240520 (authored by sjg).
Merge bmake-20240520
Sat, Jan 10, 9:34 PM
sjg committed rG1d00ba4aaacf: Merge bmake-20240508 (authored by sjg).
Merge bmake-20240508
Sat, Jan 10, 9:34 PM
sjg committed rG1166b90143da: Merge bmake-20240430 (authored by sjg).
Merge bmake-20240430
Sat, Jan 10, 9:34 PM
sjg committed rG72f01a763131: Merge bmake-20240309 (authored by sjg).
Merge bmake-20240309
Sat, Jan 10, 9:34 PM
sjg committed rGf580ef8a75c1: Merge bmake-20230909 (authored by sjg).
Merge bmake-20230909
Sat, Jan 10, 9:34 PM
sjg committed rG4b2e33e48152: Update to bmake-20240108 (authored by sjg).
Update to bmake-20240108
Sat, Jan 10, 9:34 PM
sjg committed rG11aa32794394: Update to bmake-20251111 (authored by sjg).
Update to bmake-20251111
Sat, Jan 10, 9:14 PM

Dec 19 2025

sjg added inline comments to D54291: Makefile.inc1: Make NO_INSTALLKERNEL less of a hack.
Dec 19 2025, 12:56 AM

Dec 18 2025

sjg added inline comments to D54291: Makefile.inc1: Make NO_INSTALLKERNEL less of a hack.
Dec 18 2025, 9:29 PM

Dec 10 2025

sjg closed D54150: Update share/mk files from bmake.
Dec 10 2025, 5:07 AM
sjg committed rG9bbb08f9055d: Update share/mk files from bmake (authored by sjg).
Update share/mk files from bmake
Dec 10 2025, 5:07 AM

Dec 9 2025

sjg updated the diff for D54150: Update share/mk files from bmake.

Fix CVS Ids

Dec 9 2025, 6:31 PM
sjg requested review of D54150: Update share/mk files from bmake.
Dec 9 2025, 7:53 AM

Dec 7 2025

sjg accepted D54106: libsysdecode: Use consistent include path.

Looks fine

Dec 7 2025, 6:10 AM

Dec 3 2025

sjg committed rGc60f6422ffae: Update to bmake-20251111 (authored by sjg).
Update to bmake-20251111
Dec 3 2025, 6:18 PM
sjg committed rG638c66de4a0f: Import bmake-20251111 (authored by sjg).
Import bmake-20251111
Dec 3 2025, 5:59 PM

Nov 30 2025

sjg committed R9:fdba6c245b12: Mention bmake update (authored by sjg).
Mention bmake update
Nov 30 2025, 3:16 AM

Nov 26 2025

sjg accepted D53940: libsecureboot: do further checks on files without manifests.
Nov 26 2025, 8:29 PM

Nov 24 2025

sjg accepted D53790: Centralize definition of ZFSTOP.
Nov 24 2025, 1:32 AM

Nov 18 2025

sjg added inline comments to D53790: Centralize definition of ZFSTOP.
Nov 18 2025, 6:35 AM

Nov 1 2025

sjg added a comment to D53429: style.Makefile: document the style for lists.
In D53429#1221417, @jhb wrote:

Eh, I'm not sure this is actually the style we want? Lots of places in the tree fix the diff problem by just using multiple += statements, e.g.:

FOO= foo
FOO+= bar
FOO+= baz
Nov 1 2025, 7:42 PM

Oct 30 2025

sjg committed rGa797702be077: rc.subr set dot_dir and dot_file in dot (authored by sjg).
rc.subr set dot_dir and dot_file in dot
Oct 30 2025, 6:10 PM
sjg closed D53476: rc.subr set dot_dir and dot_file in dot.
Oct 30 2025, 6:09 PM
sjg requested review of D53476: rc.subr set dot_dir and dot_file in dot.
Oct 30 2025, 4:10 PM
sjg accepted D53429: style.Makefile: document the style for lists.
Oct 30 2025, 3:13 AM

Oct 29 2025

sjg added inline comments to D53429: style.Makefile: document the style for lists.
Oct 29 2025, 3:17 PM

Sep 18 2025

sjg added a comment to D52563: bmake: Fix -Wunterminated-string-initialization.

Perfect, thank you. Should I wait for this to find it's way to FreeBSD or apply the change locally?

Sep 18 2025, 8:17 PM

Sep 16 2025

sjg added a comment to D52563: bmake: Fix -Wunterminated-string-initialization.

No need for a comment, I committed the following upstream:

Index: var.c
===================================================================
RCS file: /cvsroot/src/usr.bin/make/var.c,v
retrieving revision 1.1171
diff -u -p -r1.1171 var.c
--- var.c       29 Jun 2025 11:02:17 -0000      1.1171
+++ var.c       16 Sep 2025 15:13:28 -0000
@@ -1850,7 +1850,7 @@ QuoteShell(const char *str, bool quoteDo
 static char *
 Hash(const char *str)
 {
-       static const char hexdigits[16] = "0123456789abcdef";
+       static const char hexdigits[] = "0123456789abcdef";
        const unsigned char *ustr = (const unsigned char *)str;
Sep 16 2025, 3:22 PM

Sep 15 2025

sjg accepted D52420: crypto/openssl: apply polish to new vendor import process.
Sep 15 2025, 10:09 PM

Sep 8 2025

sjg added inline comments to D52420: crypto/openssl: apply polish to new vendor import process.
Sep 8 2025, 5:02 AM

Aug 21 2025

sjg committed rG027be99b1f33: Stub is_tftp when LOADER_NET_SUPPORT is not enabled (authored by sjg).
Stub is_tftp when LOADER_NET_SUPPORT is not enabled
Aug 21 2025, 3:11 PM
sjg closed D52060: Stub is_tftp when LOADER_NET_SUPPORT is not enabled.
Aug 21 2025, 3:11 PM
sjg added a comment to D52060: Stub is_tftp when LOADER_NET_SUPPORT is not enabled.

In case it isn't obvious, we can't stub or #ifdef this in libsa since that is presumably shared by all loaders for a given arch, thus a non-optional src from loader.mk would seem to make sense - misc.c seemed as good as any?

Aug 21 2025, 6:52 AM
sjg requested review of D52060: Stub is_tftp when LOADER_NET_SUPPORT is not enabled.
Aug 21 2025, 6:40 AM

Aug 20 2025

sjg committed rG5bfb3045d25b: Allow secure-netboot (authored by sjg).
Allow secure-netboot
Aug 20 2025, 10:57 PM
sjg closed D51187: Allow secure-netboot.
Aug 20 2025, 10:56 PM
sjg committed rGb44cc1b479fe: loader: do not try to open directories with TFTP (authored by sjg).
loader: do not try to open directories with TFTP
Aug 20 2025, 10:49 PM
sjg closed D51447: loader: do not try to mount currdev for TFTP.
Aug 20 2025, 10:48 PM
sjg committed rGaaf65a13c06a: stand: add fs_ops.fs_flag (authored by sjg).
stand: add fs_ops.fs_flag
Aug 20 2025, 10:47 PM
sjg closed D51684: stand: add fs_ops.fs_flag.
Aug 20 2025, 10:47 PM

Aug 8 2025

sjg accepted D51824: mk: Mark buildenv .NOTMAIN.

Good move

Aug 8 2025, 4:58 PM

Aug 7 2025

sjg committed rG5c4d1c85847d: Replace license with just SPDX BSD-2-Clause (authored by sjg).
Replace license with just SPDX BSD-2-Clause
Aug 7 2025, 10:20 PM

Aug 5 2025

sjg committed rGb4894eca1ade: Merge bmake-20250804 (authored by sjg).
Merge bmake-20250804
Aug 5 2025, 10:59 PM
sjg committed rG787302bde4d8: Import bmake-20250804 (authored by sjg).
Import bmake-20250804
Aug 5 2025, 10:33 PM

Aug 1 2025

sjg updated the diff for D51187: Allow secure-netboot.

Split out fs_ops.fs_flag to D51684

Aug 1 2025, 5:39 PM
sjg requested review of D51684: stand: add fs_ops.fs_flag.
Aug 1 2025, 5:35 PM

Jul 30 2025

sjg added a comment to D51443: release/Makefile should not use the host /usr/bin/install command, but the freshly built one.

To make this work in cheribuild I passed INSTALL="sh /path/to/src/tools/install.sh". Doing something automatically here that works would be good, though I'd want confirmation from someone like @sjg that ${.OBJDIR}/.. is definitely going to always be world's ${OBJTOP}.

Jul 30 2025, 5:50 PM · releng

Jul 25 2025

sjg accepted D50149: do not commit - bmake: add a package for bmake and share/mk.

works for me, just one nit above

Jul 25 2025, 10:20 PM
sjg added a comment to D50149: do not commit - bmake: add a package for bmake and share/mk.

Note I would disagree that make isn't needed in a minimal install, I use make and makefiles for all sorts of use-cases that have nothing to do with building src/

Jul 25 2025, 9:45 PM

Jul 24 2025

sjg accepted D51490: bsd.man.mk: add MANGROUPS.

Looks reasonable

Jul 24 2025, 7:09 PM
sjg added inline comments to D51490: bsd.man.mk: add MANGROUPS.
Jul 24 2025, 4:35 PM
sjg added a comment to D51447: loader: do not try to mount currdev for TFTP.
In D51447#1175667, @imp wrote:

I do like this better...

But what we're trying to avoid is setting currdir to tftp://1.2.3.4/mumble and having lots of tftp traffic go as we try to open it a bunch of times to see if each of the filesystems can cope... Can you confirm that's the top of this rabbit hole?

Jul 24 2025, 12:53 AM

Jul 23 2025

sjg updated the diff for D51447: loader: do not try to mount currdev for TFTP.

Rework to avoid opening dirs via TFTP while not breaking diskless
boot with nfs.

Jul 23 2025, 10:57 PM
sjg accepted D51467: security/ossec-hids-local: fix makefile warnings: Invalid character " " in variable name.

I can't approved, but looks sane - I assume it works ;-)

Jul 23 2025, 5:53 AM

Jul 22 2025

sjg added inline comments to D51447: loader: do not try to mount currdev for TFTP.
Jul 22 2025, 10:56 PM

Jul 21 2025

sjg committed rGcae98cf683dd: install: allow ENV in metatags (authored by sjg).
install: allow ENV in metatags
Jul 21 2025, 5:15 PM
sjg closed D51446: install: allow ENV in metatags.
Jul 21 2025, 5:15 PM
sjg committed rG3717484168ee: bsd.subdir.mk skip _SUBDIR for DIRDEPS_BUILD (authored by sjg).
bsd.subdir.mk skip _SUBDIR for DIRDEPS_BUILD
Jul 21 2025, 4:13 PM
sjg closed D51454: bsd.subdir.mk skip _SUBDIR for DIRDEPS_BUILD.
Jul 21 2025, 4:12 PM
sjg requested review of D51454: bsd.subdir.mk skip _SUBDIR for DIRDEPS_BUILD.
Jul 21 2025, 3:58 PM

Jul 20 2025

sjg updated the diff for D51187: Allow secure-netboot.

Move install.c change to D51446
Move misc.c change to D51447

Jul 20 2025, 11:11 PM
sjg requested review of D51447: loader: do not try to mount currdev for TFTP.
Jul 20 2025, 11:06 PM
sjg requested review of D51446: install: allow ENV in metatags.
Jul 20 2025, 10:35 PM

Jul 19 2025

sjg updated the diff for D51187: Allow secure-netboot.

Mention pkgfs_fsops in libsa.3

Jul 19 2025, 8:58 PM
sjg committed rGa8c56be47166: Merge bmake-20250707 (authored by sjg).
Merge bmake-20250707
Jul 19 2025, 5:43 PM
sjg committed rG3d772e596c1a: Import bmake-20250707 (authored by sjg).
Import bmake-20250707
Jul 19 2025, 5:10 PM

Jul 18 2025

sjg updated the diff for D51187: Allow secure-netboot.

Add flag to fs_ops for skipping devopen

Jul 18 2025, 10:32 PM
sjg added inline comments to D51187: Allow secure-netboot.
Jul 18 2025, 10:12 PM
sjg abandoned D51094: Fix secure netboot with UEFI.

This review has been broken up and the open review is D51187

Jul 18 2025, 4:21 PM
sjg updated the diff for D51187: Allow secure-netboot.

Make the code in open() neater

Jul 18 2025, 4:09 PM
sjg updated the diff for D51187: Allow secure-netboot.

Alternative means of skipping devopen for pkgfs

Jul 18 2025, 12:58 AM
sjg added inline comments to D51187: Allow secure-netboot.
Jul 18 2025, 12:17 AM

Jul 17 2025

sjg updated the diff for D51187: Allow secure-netboot.

Rebase after commit DEBUG_PRINTF

Jul 17 2025, 11:54 PM
sjg committed rGe67aef419093: Add DEBUG_PRINTF to stand.h (authored by sjg).
Add DEBUG_PRINTF to stand.h
Jul 17 2025, 11:38 PM
sjg closed D51269: Add DEBUG_PRINTF to stand.h.
Jul 17 2025, 11:37 PM
sjg added a comment to D51269: Add DEBUG_PRINTF to stand.h.
In D51269#1173596, @imp wrote:

This looks good.

It would be nice if there was a loader command to set the debug level, but that's a separate thing and isn't universally useful since a lot of this code runs before the OK prompt.

Jul 17 2025, 11:36 PM
sjg added a comment to D51094: Fix secure netboot with UEFI.
In D51094#1172979, @imp wrote:

I had a note to follow up on this in a "little while"
Where are we? Is this review done? Or have I overlooked some sub-review that split off?

Jul 17 2025, 12:15 AM

Jul 16 2025

sjg updated the diff for D51269: Add DEBUG_PRINTF to stand.h.

Tweak the #ifdef in stand.h

Jul 16 2025, 12:22 AM

Jul 11 2025

sjg added a comment to D51187: Allow secure-netboot.
In D51187#1170063, @imp wrote:

Can you do the debug level stuff first so we get that out of the way? There's also a lot of different fixes bundled together which makes me super nervous for future bisecting...

Jul 11 2025, 10:38 PM
sjg requested review of D51269: Add DEBUG_PRINTF to stand.h.
Jul 11 2025, 10:36 PM

Jul 10 2025

sjg committed rGd1f0ee548c73: Allow net_cleanup for loader.efi (authored by sjg).
Allow net_cleanup for loader.efi
Jul 10 2025, 6:18 PM
sjg closed D51186: Allow net_cleanup for loader.efi.
Jul 10 2025, 6:17 PM