Unverified Commit f6ab9624 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #287974 from trofi/stenc-gcc-13-fix

stenc: fix `gcc-13` build failure
parents 38afef50 6810156f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,13 @@ stdenv.mkDerivation rec {
    sha256 = "GcCRVkv+1mREq3MhMRn5fICthwI4WRQJSP6InuzxP1Q=";
  };

  postPatch = ''
    # Fix gcc-13 build by pulling missing header. UPstream also fixed it
    # in next major version, but there are many other patch dependencies.
    # TODO: remove on next major version update
    sed -e '1i #include <cstdint>' -i src/scsiencrypt.h
  '';

  nativeBuildInputs = [ autoreconfHook ];

  passthru.updateScript = gitUpdater { };