[Bug 277345] [nanoBSD] fix parameter expansion for ${NANO_OBJ} to also unbreak ${PATH}

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 27 Feb 2024 06:10:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277345

            Bug ID: 277345
           Summary: [nanoBSD] fix parameter expansion for ${NANO_OBJ} to
                    also unbreak ${PATH}
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: embhd@posteo.de

Created attachment 248779
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=248779&action=edit
Patch

Besides not actually expanding, the current line in defaults.sh

${NANO_OBJ:=/usr/obj/nanobsd.${NANO_NAME}${NANO_LAYOUT}:+.${NANO_LAYOUT}}

adds a colon to ${PATH} during the buildworld, which leads to make not finding
clang-tblgen (and possible others as well). Instead, the line should read

${NANO_OBJ:=/usr/obj/nanobsd.${NANO_NAME}${NANO_LAYOUT:+.${NANO_LAYOUT}}}

see patch attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.