mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
a57702db1d
It is much harder to determine why we get messages like Step #6: Error occured while running fuzz_reg_parse: Step #6: /workspace/out/coverage/fuzz_reg_parse: error while loading shared libraries: libavahi-common.so.3: cannot open shared object file: No such file or directory instead this detects the failure to use RPATH (which is strictly required instead of the modern RUNPATH) otherwise. We do this by creating a new build_samba.sh after renaming build_samba.sh to do_build.sh because this is what oss-fuzz runs, meaning we don't need to coordinate a MR there as well. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
26 lines
727 B
Bash
Executable File
26 lines
727 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# This is not a general-purpose build script, but instead one specific
|
|
# to the Google oss-fuzz compile environment.
|
|
#
|
|
# https://google.github.io/oss-fuzz/getting-started/new-project-guide/#Requirements
|
|
#
|
|
# https://github.com/google/oss-fuzz/blob/master/infra/base-images/base-builder/README.md#provided-environment-variables
|
|
#
|
|
# This file is run by
|
|
# https://github.com/google/oss-fuzz/blob/master/projects/samba/build.sh
|
|
# which does nothing else.
|
|
#
|
|
# Additional arguments are passed to configure, to allow this to be
|
|
# tested in autobuild.py
|
|
#
|
|
|
|
# Ensure we give good trace info, fail right away and fail with unset
|
|
# variables
|
|
set -e
|
|
set -x
|
|
set -u
|
|
|
|
$(dirname $0)/do_build.sh $@
|
|
$(dirname $0)/check_build.sh $OUT
|