RPM: Added elfutils-libelf-devel for build with eBPF (#14552)
Find issue with x86_64 mock build ```bash + /builddir/build/BUILD/netdata-v1.38.1/packaging/bundle-libbpf.sh /builddir/build/BUILD/netdata-v1.38.1 centos8 cp: cannot stat '/builddir/build/BUILD/netdata-v1.38.1/packaging/current_libbpf.checksums': No such file or directory cp: cannot stat '/builddir/build/BUILD/netdata-v1.38.1/packaging/current_libbpf.version': No such file or directory v1.1_netdata.tar.gz: OK make: Entering directory '/builddir/build/BUILD/netdata-v1.38.1/externaldeps/libbpf/libbpf-1.1_netdata/src' Package libelf was not found in the pkg-config search path. Perhaps you should add the directory containing `libelf.pc' to the PKG_CONFIG_PATH environment variable Package 'libelf', required by 'virtual:world', not found MKDIR build//staticobjs CC build//staticobjs/bpf.o CC build//staticobjs/btf.o btf.c:18:10: fatal error: gelf.h: No such file or directory #include <gelf.h> ^~~~~~~~ compilation terminated. make: *** [Makefile:131: build//staticobjs/btf .o] Error 1 make: Leaving directory '/builddir/build/BUILD/netdata-v1.38.1/externaldeps/libbpf/libbpf-1.1_netdata/src' error: Bad exit status from /var/tmp/rpm-tmp.2itZZI (%prep) RPM build errors: bogus date in %changelog: Wed Feb 03 2022 Austin Hemmelgarn <austin@netdata.cloud> 0.0.0-16 Bad exit status from /var/tmp/rpm-tmp.2itZZI (%prep) Child return code was: 1 ``` The conditional BuildDeps fixed this issue