svaba: fix gcc-13 build failure

Without the change build fails on `master` as
https://hydra.nixos.org/build/249164637:

    In file included from Histogram.cpp:1:
    Histogram.h:104:61: error: 'uint32_t' does not name a type
      104 |   Histogram(const int32_t& start, const int32_t& end, const uint32_t& width);
          |                                                             ^~~~~~~~
This commit is contained in:
Sergei Trofimovich 2024-02-11 09:55:14 +00:00
parent ef6206934d
commit a59d5e3028

View File

@ -14,6 +14,13 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib bzip2 xz ];
postPatch = ''
# Fix gcc-13 build failure due to missing includes
sed -e '1i #include <cstdint>' -i \
SeqLib/src/non_api/Histogram.h \
src/svaba/Histogram.h
'';
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: ./libfml.a(rle.o):/build/source/SeqLib/fermi-lite/rle.h:33: multiple definition of