Merge pull request #291252 from trofi/stellar-core-gcc-13-fix
stellar-core: fix `gcc-13` build
This commit is contained in:
commit
06cdd0e460
1 changed files with 18 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
, automake
|
||||
, bison
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, flex
|
||||
, git
|
||||
, lib
|
||||
|
@ -25,6 +26,23 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix gcc-13 build failure due to missing <stdexcept> include
|
||||
# https://github.com/stellar/medida/pull/34
|
||||
(fetchpatch {
|
||||
name = "gcc-13-p1.patch";
|
||||
url = "https://github.com/stellar/medida/commit/f91354b0055de939779d392999975d611b1b1ad5.patch";
|
||||
stripLen = 1;
|
||||
extraPrefix = "lib/libmedida/";
|
||||
hash = "sha256-iVeSUY5Rcy62apIKJdbcHGgxAxpQCkygf85oSjbTTXU=";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "gcc-13-p2.patch";
|
||||
url = "https://github.com/stellar/stellar-core/commit/477b3135281b629554cabaeacfcdbcdc170aa335.patch";
|
||||
hash = "sha256-UVRcAIA5LEaCn16lWfhg19UU7b/apigzTsfPROLZtYg=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
automake
|
||||
autoconf
|
||||
|
|
Loading…
Reference in a new issue