gcc12 patch to add includes needed for GCC 12 (Jerry James)

fixes FTBFS
This commit is contained in:
Jens Petersen 2023-01-31 21:20:37 +08:00
parent 51b8501360
commit 4efcf2022c
2 changed files with 25 additions and 1 deletions

20
gcc12.patch Normal file
View File

@ -0,0 +1,20 @@
--- a/llvm-11.1.0.src/include/llvm/Support/Base64.h 2021-02-03 14:51:10.000000000 -0700
+++ b/llvm-11.1.0.src/include/llvm/Support/Base64.h 2023-01-30 10:58:39.424270016 -0700
@@ -13,6 +13,7 @@
#ifndef LLVM_SUPPORT_BASE64_H
#define LLVM_SUPPORT_BASE64_H
+#include <cstdint>
#include <string>
namespace llvm {
--- a/llvm-11.1.0.src/include/llvm/Support/Signals.h 2021-02-03 14:51:10.000000000 -0700
+++ b/llvm-11.1.0.src/include/llvm/Support/Signals.h 2023-01-30 09:51:35.823901524 -0700
@@ -14,6 +14,7 @@
#ifndef LLVM_SUPPORT_SIGNALS_H
#define LLVM_SUPPORT_SIGNALS_H
+#include <cstdint>
#include <string>
namespace llvm {

View File

@ -69,7 +69,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 3%{?dist}
Release: 4%{?dist}
Summary: The Low Level Virtual Machine
License: NCSA
@ -88,6 +88,7 @@ Patch0: 0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch
%endif
Patch1: 0001-XFAIL-missing-abstract-variable.ll-test-on-ppc64le.patch
Patch2: 0001-Disable-CrashRecoveryTest.DumpStackCleanup-test-on-a.patch
Patch3: gcc12.patch
BuildRequires: gcc
BuildRequires: gcc-c++
@ -544,6 +545,9 @@ fi
%endif
%changelog
* Tue Jan 31 2023 Jens Petersen <petersen@redhat.com> - 13.0.1-4
- Add gcc12 patch to add includes needed for GCC 12 (Jerry James)
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 13.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild