Patch for GCC 13

This commit is contained in:
Benjamin A. Beasley 2023-01-26 08:32:47 -05:00
parent 2b126f50aa
commit 7fc2c5ee70
2 changed files with 31 additions and 2 deletions

21
332.patch Normal file
View File

@ -0,0 +1,21 @@
From 7611debaa6459e66b95e03937a2573316e42b69e Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Thu, 26 Jan 2023 08:25:54 -0500
Subject: [PATCH] Add missing #include needed on GCC13
---
tests/fuzz_driver.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/fuzz_driver.cc b/tests/fuzz_driver.cc
index 4980317..3f0ce70 100644
--- a/tests/fuzz_driver.cc
+++ b/tests/fuzz_driver.cc
@@ -13,6 +13,7 @@
// limitations under the License.
#include <cassert>
+#include <cstdint>
#include <iostream>
#include <fstream>
#include <vector>

View File

@ -1,6 +1,6 @@
Name: bloaty
Version: 1.1
Release: 18%{?dist}
Release: 19%{?dist}
Summary: A size profiler for binaries
@ -11,6 +11,9 @@ Source0: https://github.com/google/bloaty/archive/v%{version}/%{name}-%{v
Patch0: bloaty-1.1-absl.patch
# Patch to fix size detection function to use 64 bit types on 32bit architectures
Patch1: bloaty-1.1-longlong.patch
# Add missing #include needed on GCC13
# https://github.com/google/bloaty/pull/332
Patch2: %{url}/pull/332.patch
BuildRequires: abseil-cpp-devel
BuildRequires: capstone-devel
@ -32,7 +35,9 @@ libraries. Bloaty supports the ELF and Mach-O formats, and has experimental
support for WebAssembly.
%prep
%autosetup -p0 -S gendiff
%autosetup -S gendiff -N
%autopatch -p0 -M 1
%patch2 -p1
%build
@ -56,6 +61,9 @@ support for WebAssembly.
%changelog
* Thu Jan 26 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1-19
- Patch for GCC 13
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild