From 3b73c0fc8d50ffb3b929660f62a05cda678c86f2 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Jul 27 2023 10:33:43 +0000 Subject: remove obsolete compiler flags that fail the build with Python 3.12 --- diff --git a/0001-Drop-obsolete-compiler-warnings-to-fix-compiling-aga.patch b/0001-Drop-obsolete-compiler-warnings-to-fix-compiling-aga.patch new file mode 100644 index 0000000..506fe24 --- /dev/null +++ b/0001-Drop-obsolete-compiler-warnings-to-fix-compiling-aga.patch @@ -0,0 +1,28 @@ +From de9115986de00874e7e719e57c1471118148ec89 Mon Sep 17 00:00:00 2001 +From: Fabio Valentini +Date: Thu, 27 Jul 2023 12:26:14 +0200 +Subject: [PATCH] Drop obsolete compiler warnings to fix compiling against + Python 3.12 + +--- + setup.py | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/setup.py b/setup.py +index 27000f3..5bbeb5b 100755 +--- a/setup.py ++++ b/setup.py +@@ -227,10 +227,6 @@ class Extension_osk(Extension): + sources = sources, + depends = depends, + define_macros = defines, +- extra_compile_args = [ +- "-Wsign-compare", +- "-Wdeclaration-after-statement", +- "-Werror=declaration-after-statement"], + + **pkgconfig('gdk-3.0', 'x11', 'xi', 'xtst', 'xkbfile', + 'dconf', 'libcanberra', 'hunspell', +-- +2.41.0 + diff --git a/onboard.spec b/onboard.spec index 1a5a2c1..aefd4a4 100644 --- a/onboard.spec +++ b/onboard.spec @@ -3,7 +3,7 @@ Name: onboard Version: 1.4.1 %global major_version 1.4 -Release: 32%{?dist} +Release: 33%{?dist} Summary: On-screen keyboard for TabletPC and mobility impaired users (Xorg only) # The entire source code is GPLv3 apart from translation strings and @@ -20,6 +20,10 @@ Patch0: onboard-1.4.1-pythonversion.patch # see: https://bugzilla.redhat.com/show_bug.cgi?id=1905661 Patch1: 0001-remove-tweener.patch +# remove obsolete compiler flags that fail the build with Python 3.12 +# (Python 3.12 headers are not compatible with -Werror=declaration-after-statement) +Patch2: 0001-Drop-obsolete-compiler-warnings-to-fix-compiling-aga.patch + BuildRequires: gcc-c++ BuildRequires: python3-devel BuildRequires: python3-distutils-extra @@ -100,6 +104,9 @@ Requires: onboard %{_sysconfdir}/xdg/autostart/onboard-autostart.desktop %changelog +* Thu Jul 27 2023 Fabio Valentini - 1.4.1-33 +- Remove obsolete compiler flags that fail the build with Python 3.12. + * Fri Jul 21 2023 Fabio Valentini - 1.4.1-32 - Bump Release to allow workaround for missing Fedora 38 update.