Bug#1029556: espeak-ng: autopkgtest regression

Source: espeak-ng
Version: 1.51+dfsg-9
Severity: serious
tags: patch

Hello, autopkgtests started to fail I presume since llvm-default change.
To fix, you need to depend on clang-rt when you use fsanitize=fuzzer)

clang++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-ffile-prefix-map=/tmp/autopkgtest-lxc.4x6n726o/downtmp/build.8AY/src=. 
-fstack-protector-strong -Wformat -Werror=format-security -c -o tests/dummy.o 
tests/dummy.cpp
/bin/bash ./libtool  --tag=CXX   --mode=link clang++  -g -O2 
-ffile-prefix-map=/tmp/autopkgtest-lxc.4x6n726o/downtmp/build.8AY/src=. 
-fstack-protector-strong -Wformat -Werror=format-security -fsanitize=fuzzer 
-Wl,-z,relro -o tests/ssml-fuzzer.test tests/ssml_fuzzer_test-ssml-fuzzer.o 
tests/dummy.o -lespeak-ng  -lsonic
libtool: link: clang++ -g -O2 
-ffile-prefix-map=/tmp/autopkgtest-lxc.4x6n726o/downtmp/build.8AY/src=. 
-fstack-protector-strong -Wformat -Werror=format-security -fsanitize=fuzzer 
-Wl,-z -Wl,relro -o tests/ssml-fuzzer.test tests/ssml_fuzzer_test-ssml-fuzzer.o 
tests/dummy.o  -lespeak-ng -lsonic
/usr/bin/ld: cannot find 
/usr/lib/llvm-14/lib/clang/14.0.6/lib/linux/libclang_rt.fuzzer-x86_64.a: No 
such file or directory
/usr/bin/ld: cannot find 
/usr/lib/llvm-14/lib/clang/14.0.6/lib/linux/libclang_rt.fuzzer_interceptors-x86_64.a:
 No such file or directory
/usr/bin/ld: cannot find 
/usr/lib/llvm-14/lib/clang/14.0.6/lib/linux/libclang_rt.ubsan_standalone-x86_64.a:
 No such file or directory
/usr/bin/ld: cannot find 
/usr/lib/llvm-14/lib/clang/14.0.6/lib/linux/libclang_rt.ubsan_standalone_cxx-x86_64.a:
 No such file or directory

This untested patch should do the trick:
 Tests: fuzz
 Architecture: amd64 arm64 i386
-Depends: @builddeps@, clang, libespeak-ng-dev
+Depends: @builddeps@, clang, clang-rt, libespeak-ng-dev

thanks

Gianfranco

Attachment:
OpenPGP_signature

Description: OpenPGP digital signature

Read more here: Source link