Fix FTBFS with python 3.11 and gcc 13

This commit is contained in:
Guido Aulisi 2023-01-31 22:36:46 +01:00
parent 46d3a5fab2
commit 223fc9b487
3 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/LV2/DSP/gx_common.h b/trunk/src/LV2/DSP/gx_common.h
index 71108442..132a6839 100644
--- a/src/LV2/DSP/gx_common.h
+++ b/src/LV2/DSP/gx_common.h
@@ -22,7 +22,7 @@
#ifndef SRC_HEADERS_GX_COMMON_H_
#define SRC_HEADERS_GX_COMMON_H_
-
+#include <cstdint>
#include <cstdlib>
#include <cmath>
#include <iostream>

View File

@ -0,0 +1,13 @@
diff --git a/wscript b/trunk/wscript
index b915199a..f3e4d129 100644
--- a/wscript
+++ b/wscript
@@ -534,7 +534,7 @@ def sub_file(task):
dst_fname = task.outputs[0].abspath()
lst = task.generator.sub_list
- with open(src_fname, 'rU') as f:
+ with open(src_fname, 'r') as f:
txt = f.read()
for (key, val) in lst:
re_pat = re.compile(key, re.M)

View File

@ -5,12 +5,14 @@
Name: guitarix
Version: 0.44.1
Release: 3%{?dist}
Release: 4%{?dist}
Summary: A virtual guitar amplifier
License: GPLv2+
URL: http://guitarix.sourceforge.net/
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{altname2}-%{version}.tar.xz
Patch0: %{name}-mismatched-delete.patch
Patch1: %{name}-python-3.11-ftbfs.patch
Patch2: %{name}-cstdint-include.patch
BuildRequires: gcc-c++
BuildRequires: python3
@ -209,6 +211,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.%{name}.%{
%{_libdir}/lv2/*
%changelog
* Tue Jan 31 2023 Guido Aulisi <guido.aulisi@gmail.com> - 0.44.1-4
- Fix FTBFS with python 3.11 and gcc 13
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.44.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild