diff --git a/0001-Fix-build-with-GCC-13-330.patch b/0001-Fix-build-with-GCC-13-330.patch new file mode 100644 index 0000000..6d55607 --- /dev/null +++ b/0001-Fix-build-with-GCC-13-330.patch @@ -0,0 +1,30 @@ +From e8f45ff6f02d2e1e09c12f3aa708e87548d4f2bd Mon Sep 17 00:00:00 2001 +From: Sam James +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 + #include + #include ++#include + #include + + namespace mtp +-- +2.40.0 + diff --git a/android-file-transfer.spec b/android-file-transfer.spec index 32c0045..4b86aa4 100644 --- a/android-file-transfer.spec +++ b/android-file-transfer.spec @@ -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 - 4.2-8 +- Backport fix to build with GCC 13 + * Thu Mar 30 2023 Marek Blaha - 4.2-7 - migrated to SPDX license