Accepting request 980475 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/980475 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fasttext?expand=0&rev=2
This commit is contained in:
commit
98cbd0001c
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 1 09:51:33 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
- Add reproducible.patch to not depend on build machine CPU (boo#1100677)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 24 18:16:16 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
Tue May 24 18:16:16 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ Summary: Library for fast text representation and classification
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/facebookresearch/fastText
|
URL: https://github.com/facebookresearch/fastText
|
||||||
Source: https://github.com/facebookresearch/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
Source: https://github.com/facebookresearch/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
||||||
|
Patch0: reproducible.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pybind11-devel}
|
BuildRequires: %{python_module pybind11-devel}
|
||||||
|
45
reproducible.patch
Normal file
45
reproducible.patch
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
Date: 2022-06-01
|
||||||
|
Author: Bernhard M. Wiedemann
|
||||||
|
|
||||||
|
disable march=native to avoid
|
||||||
|
https://bugzilla.opensuse.org/show_bug.cgi?id=1100677 packages do not build reproducibly from compile-time CPU-detection
|
||||||
|
|
||||||
|
Index: fastText-0.9.2/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- fastText-0.9.2.orig/CMakeLists.txt
|
||||||
|
+++ fastText-0.9.2/CMakeLists.txt
|
||||||
|
@@ -15,7 +15,7 @@ set (fasttext_VERSION_MINOR 1)
|
||||||
|
|
||||||
|
include_directories(fasttext)
|
||||||
|
|
||||||
|
-set(CMAKE_CXX_FLAGS " -pthread -std=c++11 -funroll-loops -O3 -march=native")
|
||||||
|
+set(CMAKE_CXX_FLAGS " -pthread -std=c++11 -funroll-loops -O3")
|
||||||
|
|
||||||
|
set(HEADER_FILES
|
||||||
|
src/args.h
|
||||||
|
Index: fastText-0.9.2/setup.py
|
||||||
|
===================================================================
|
||||||
|
--- fastText-0.9.2.orig/setup.py
|
||||||
|
+++ fastText-0.9.2/setup.py
|
||||||
|
@@ -76,7 +76,7 @@ ext_modules = [
|
||||||
|
],
|
||||||
|
language='c++',
|
||||||
|
extra_compile_args=["-O0 -fno-inline -fprofile-arcs -pthread -march=native" if coverage else
|
||||||
|
- "-O3 -funroll-loops -pthread -march=native"],
|
||||||
|
+ "-O3 -funroll-loops -pthread"],
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
Index: fastText-0.9.2/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- fastText-0.9.2.orig/Makefile
|
||||||
|
+++ fastText-0.9.2/Makefile
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
#
|
||||||
|
|
||||||
|
CXX = c++
|
||||||
|
-CXXFLAGS = -pthread -std=c++11 -march=native
|
||||||
|
+CXXFLAGS = -pthread -std=c++11
|
||||||
|
OBJS = args.o autotune.o matrix.o dictionary.o loss.o productquantizer.o densematrix.o quantmatrix.o vector.o model.o utils.o meter.o fasttext.o
|
||||||
|
INCLUDES = -I.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user