From 3541343f0028dfd22b8969185bedd520f257a399adc5afe4c44475fe2729027e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 6 Mar 2023 14:19:19 +0000 Subject: [PATCH] Accepting request 1069631 from home:marxin:branches:devel:languages:python - Add gcc13-fix.patch that fixes upstream issue: https://github.com/facebookresearch/fastText/issues/1281 OBS-URL: https://build.opensuse.org/request/show/1069631 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fasttext?expand=0&rev=7 --- gcc13-fix.patch | 12 ++++++++++++ python-fasttext.changes | 6 ++++++ python-fasttext.spec | 3 ++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 gcc13-fix.patch 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}