[Bug 277096] WITHOUT_CLANG does not exclude SANITIZER_SHAREDIR from package file list

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 16 Feb 2024 17:45:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277096

            Bug ID: 277096
           Summary: WITHOUT_CLANG does not exclude SANITIZER_SHAREDIR from
                    package file list
           Product: Base System
           Version: 14.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: me@svmhdvn.name

When building a Pkgbase repository using WITHOUT_CROSS_COMPILER and
WITHOUT_TOOLCHAIN (which sets WITHOUT_CLANG), the following residual files are
left over:

/usr/lib/clang/17/lib/freebsd/libclang_rt.asan-x86_64.so
/usr/lib/clang/17/share/asan_ignore_list.txt
/usr/lib/clang/17/share/cfi_ignore_list.txt
/usr/lib/clang/17/share/msan_ignore_list.txt

This breaks a Pkgbase system installation using `pkg install -r base -g
'FreeBSD-*'` because the resulting FreeBSD-clang pkg is broken; it erroneously
depends on FreeBSD-lld, which doesn't exist due to WITHOUT_TOOLCHAIN being set.

The above files need to be excluded from the install phase to avoid building a
FreeBSD-clang Pkgbase package.

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