From eeb2d1fbf86bc14548c501b5578f2c2e60867ac0 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Mon, 28 Mar 2022 20:45:30 +0200 Subject: [PATCH] [django] Fixed pyinstaller creation to include neccessary translations. (#7458) --- projects/django/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/django/build.sh b/projects/django/build.sh index 3769279fb..2204e7f8b 100755 --- a/projects/django/build.sh +++ b/projects/django/build.sh @@ -30,7 +30,7 @@ for fuzzer in $(find $SRC -name '*_fuzzer.py'); do # over time on the OSS-Fuzz bots, we use pyinstaller to create a standalone # package. Though not necessarily required for reproducing issues, this is # required to keep fuzzers working properly in OSS-Fuzz. - pyinstaller --distpath $OUT --onefile --name $fuzzer_package $fuzzer + pyinstaller --distpath $OUT --onefile --add-data django/conf/locale/en/LC_MESSAGES:django/conf/locale/en/LC_MESSAGES --name $fuzzer_package $fuzzer # Create execution wrapper. Atheris requires that certain libraries are # preloaded, so this is also done here to ensure compatibility and simplify @@ -45,4 +45,5 @@ this_dir=\$(dirname \"\$0\") ASAN_OPTIONS=\$ASAN_OPTIONS:symbolize=1:external_symbolizer_path=\$this_dir/llvm-symbolizer:detect_leaks=0 \ \$this_dir/$fuzzer_package \$@" > $OUT/$fuzzer_basename chmod +x $OUT/$fuzzer_basename -done \ No newline at end of file +done +