commit f8d87157074436ab89e91a2172a5960a5121c21c
Author: Hans de Goede <hdegoede(a)redhat.com>
Date: Sat Feb 6 13:51:45 2021 +0100
Fix FTBFS
frobtads-1.2.3-gcc11-fix.patch | 12 ++++++++++++
frobtads.spec | 6 +++++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/frobtads-1.2.3-gcc11-fix.patch b/frobtads-1.2.3-gcc11-fix.patch
new file mode 100644
index 0000000..6bfa7ba
--- /dev/null
+++ b/frobtads-1.2.3-gcc11-fix.patch
@@ -0,0 +1,12 @@
+diff -up frobtads-1.2.3/tads3/vmtz.cpp~ frobtads-1.2.3/tads3/vmtz.cpp
+--- frobtads-1.2.3/tads3/vmtz.cpp~ 2013-05-17 21:46:51.000000000 +0200
++++ frobtads-1.2.3/tads3/vmtz.cpp 2021-02-06 13:30:16.819008269 +0100
+@@ -1984,7 +1984,7 @@ void CVmTimeZone::query(vmtzquery *resul
+ * the transition in terms of the local time that was in effect
+ * up until that moment
+ */
+- result->set(tcur > 0 ? tcur - 1 : tcur);
++ result->set(cur > 0 ? tcur - 1 : tcur);
+ return;
+ }
+ }
diff --git a/frobtads.spec b/frobtads.spec
index 88afff0..aa11a85 100644
--- a/frobtads.spec
+++ b/frobtads.spec
@@ -1,12 +1,13 @@
Name: frobtads
Version: 1.2.3
-Release: 13%{?dist}
+Release: 14%{?dist}
Summary: Text interpreter for Tads games
License: non-commercial
URL:
http://www.tads.org/frobtads.htm
Source0:
http://www.tads.org/%{name}/%{name}-%{version}.tar.gz
Patch1: frobtads-1.2.3-gcc10-fix.patch
+Patch2: frobtads-1.2.3-gcc11-fix.patch
BuildRequires: gcc-c++
BuildRequires: libcurl-devel
@@ -74,6 +75,9 @@ rm -rf %{buildroot}%{_datadir}/frobtads/tads3/doc
%changelog
+* Sat Feb 06 2021 Hans de Goede <j.w.r.degoede(a)gmail.com> - 1.2.3-14
+- Fix FTBFS
+
* Thu Feb 04 2021 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.2.3-13
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild