Backport fix to build with GCC 13

Resolves: rhbz#2171435
This commit is contained in:
Marek Blaha 2023-05-02 09:12:22 +02:00
commit 2fbcb005ef
2 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,30 @@
From e8f45ff6f02d2e1e09c12f3aa708e87548d4f2bd Mon Sep 17 00:00:00 2001
From: Sam James <sam@cmpct.info>
Date: Tue, 18 Apr 2023 11:38:22 +0100
Subject: [PATCH] Fix build with GCC 13 (#330)
GCC 13 (as usual for new compiler releases) shuffles around some internal includes so some
are no longer transitively included.
See https://gnu.org/software/gcc/gcc-13/porting_to.html.
Bug: https://bugs.gentoo.org/894788
---
mtp/types.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/mtp/types.h b/mtp/types.h
index 32024e4..676e180 100644
--- a/mtp/types.h
+++ b/mtp/types.h
@@ -27,6 +27,7 @@
#include <memory>
#include <mutex>
#include <exception>
+#include <stdexcept>
#include <string>
namespace mtp
--
2.40.0

View file

@ -3,13 +3,15 @@
Name: android-file-transfer
Version: 4.2
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Reliable Android MTP client with minimalist UI
License: LGPL-2.1-only
URL: https://github.com/whoozle/android-file-transfer-linux
Source0: %{url}/archive/v%{version}/%{name}-linux-%{version}.tar.gz
Patch0001: 0001-Fix-build-with-GCC-13-330.patch
Requires: hicolor-icon-theme
BuildRequires: cmake
BuildRequires: gcc-c++
@ -70,6 +72,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdat
%{_datadir}/metainfo/%{name}.appdata.xml
%changelog
* Tue May 2 2023 Marek Blaha <mblaha@redhat.com> - 4.2-8
- Backport fix to build with GCC 13
* Thu Mar 30 2023 Marek Blaha <mblaha@redhat.com> - 4.2-7
- migrated to SPDX license