From 7b0369f49b2214cc63369dca8b79bc6282b7e6ac Mon Sep 17 00:00:00 2001 From: lotherk Date: Sun, 22 Nov 2026 17:50:43 +0100 Subject: [PATCH] etc: /opt/src points at the projects' sources The source set carries the projects Makronix ships under usr/src/ext/src/ (ext/AGENTS.md); an installed system also gets /opt/src there, where the other trees live. /opt is a directory in NetBSD.dist.base, the link is a CONFIGSYMLINKS pair (as /etc/rmt is), and the base set list carries both. The link is dangling until the source set is installed, by design: without the sources there is nothing to point at. --- src/distrib/sets/lists/base/mi | 2 ++ src/etc/Makefile | 3 +++ src/etc/mtree/NetBSD.dist.base | 1 + 3 files changed, 6 insertions(+) diff --git a/src/distrib/sets/lists/base/mi b/src/distrib/sets/lists/base/mi index 4000a04b48..51e90a8793 100644 --- a/src/distrib/sets/lists/base/mi +++ b/src/distrib/sets/lists/base/mi @@ -220,6 +220,8 @@ ./libexec/resolvconf/unbound base-resolvconf-root ./mnt base-sys-root ./netbsd base-sys-root kernel_dir +./opt base-sys-root +./opt/src base-sys-root ./rescue base-sys-root ./root base-sys-root ./sbin base-sys-root diff --git a/src/etc/Makefile b/src/etc/Makefile index 8079b9ac30..c5dabb904c 100644 --- a/src/etc/Makefile +++ b/src/etc/Makefile @@ -275,8 +275,11 @@ FILESDIR_makronix-xsession= /etc/dt/config/Xsession.d FILESNAME_makronix-xsession= 0000makronix FILESMODE_makronix-xsession= 755 +# MCDE: the sources of the projects Makronix ships (ext/src/ in the +# source set) are reachable as /opt/src too, where the other trees live. CONFIGSYMLINKS+= ${TZDIR}/${LOCALTIME} /etc/localtime \ /usr/sbin/rmt /etc/rmt \ + /usr/src/ext/src /opt/src \ /usr/share/doc/makronix/infolib/makronix.dti \ /etc/dt/infolib/en_US.UTF-8/makronix.dti \ en_US.UTF-8 /etc/dt/infolib/C diff --git a/src/etc/mtree/NetBSD.dist.base b/src/etc/mtree/NetBSD.dist.base index f11f598a7c..f6b5cbee4b 100644 --- a/src/etc/mtree/NetBSD.dist.base +++ b/src/etc/mtree/NetBSD.dist.base @@ -182,6 +182,7 @@ ./libexec/resolvconf ./libexec/resolvconf/libc.d ./mnt +./opt ./rescue ./root ./sbin