diff --git a/gcc13-fix.patch b/gcc13-fix.patch new file mode 100644 index 0000000..a5b3f01 --- /dev/null +++ b/gcc13-fix.patch @@ -0,0 +1,12 @@ +diff --git a/src/args.cc b/src/args.cc +index 7ac8c2f..0a7e8c6 100644 +--- a/src/args.cc ++++ b/src/args.cc +@@ -14,6 +14,7 @@ + #include + #include + #include ++#include + + namespace fasttext { + diff --git a/python-fasttext.changes b/python-fasttext.changes index f922e11..50fdc92 100644 --- a/python-fasttext.changes +++ b/python-fasttext.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 6 12:30:34 UTC 2023 - Martin Liška + +- Add gcc13-fix.patch that fixes upstream issue: + https://github.com/facebookresearch/fastText/issues/1281 + ------------------------------------------------------------------- Wed Jun 1 09:51:33 UTC 2022 - Bernhard Wiedemann diff --git a/python-fasttext.spec b/python-fasttext.spec index a9fde74..7c34d1a 100644 --- a/python-fasttext.spec +++ b/python-fasttext.spec @@ -1,7 +1,7 @@ # # spec file for package python-fasttext # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,7 @@ License: MIT URL: https://github.com/facebookresearch/fastText Source: https://github.com/facebookresearch/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz Patch0: reproducible.patch +Patch1: gcc13-fix.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module pybind11-devel}