mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #287867 from trofi/gcc-13-fix
p4c: fix `gcc-13` build failure
This commit is contained in:
commit
dc5fbb8838
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, boehmgc
|
||||
, bison
|
||||
@ -37,6 +38,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix gcc-13 build:
|
||||
# https://github.com/p4lang/p4c/pull/4084
|
||||
(fetchpatch {
|
||||
name = "gcc-13.patch";
|
||||
url = "https://github.com/p4lang/p4c/commit/6756816100b7c51e3bf717ec55114a8e8575ba1d.patch";
|
||||
hash = "sha256-wWM1qjgQCNMPdrhQF38jzFgODUsAcaHTajdbV7L3y8o=";
|
||||
})
|
||||
];
|
||||
|
||||
postFetch = ''
|
||||
rm -rf backends/ebpf/runtime/contrib/libbpf
|
||||
rm -rf control-plane/p4runtime
|
||||
|
Loading…
Reference in New Issue
Block a user