Name: uke-additional Version: 1.0.0 Release: 0.20261021.1%{?dist} Summary: Isolated native acceptance test for Mesa's vendored BLAKE3 License: (Apache-2.0 OR CC0-1.0) AND MIT URL: https://gitlab.freedesktop.org/mesa/mesa Source0: blake3-native-20261021.tar.xz ExclusiveArch: aarch64 BuildRequires: gcc = 16.2.1-2.fc46.1 BuildRequires: gcc-c++ = 16.2.1-2.fc46.1 BuildRequires: libasan BuildRequires: libubsan %global debug_package %{nil} %description Build-only known-answer and memory sanitizer gate for the exact BLAKE3 1.8.2 files vendored by Mesa 26.2.5. This side repository test is not a runtime package and must not be installed on Uke. No algorithms or production warning flags change. %prep %autosetup -n blake3-native-20261021 sha256sum --check SHA256SUMS %build set -eu for variant in neon portable; do mkdir "$variant" neon=1 files='blake3.c blake3_dispatch.c blake3_portable.c blake3_neon.c' if [ "$variant" = portable ]; then neon=0; files='blake3.c blake3_dispatch.c blake3_portable.c'; fi for sanitizer in optimized sanitized; do flags='' if [ "$sanitizer" = sanitized ]; then flags='-fsanitize=address,undefined -fno-sanitize-recover=all'; fi for file in $files; do gcc %{optflags} -DNDEBUG -fPIC -DBLAKE3_USE_NEON="$neon" $flags -I. -c "$file" -o "$variant/${file%.c}.o" done g++ %{optflags} %{build_ldflags} -DNDEBUG -DBLAKE3_USE_NEON="$neon" $flags -I. vectors.cpp "$variant/"*.o -o "$variant/$sanitizer" done done %check set -eu for variant in neon portable; do for sanitizer in optimized sanitized; do echo "RUN $variant $sanitizer" ASAN_OPTIONS=detect_leaks=1 UBSAN_OPTIONS=halt_on_error=1 "$variant/$sanitizer" done done > gate-result.txt 2>&1 cat gate-result.txt %install mkdir -p %{buildroot}%{_datadir}/doc/uke-additional-blake3-gate cp gate-result.txt PROVENANCE SHA256SUMS %{buildroot}%{_datadir}/doc/uke-additional-blake3-gate/ %files %license LICENSE_A2 LICENSE_A2LLVM LICENSE_CC0 %{_datadir}/doc/uke-additional-blake3-gate/