15
0

Accepting request 822555 from openSUSE:Factory:zSystems

use s390intrin.h instead of x86intrin.h on s390

OBS-URL: https://build.opensuse.org/request/show/822555
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autobahn?expand=0&rev=37
This commit is contained in:
Tomáš Chvátal
2020-07-24 06:24:39 +00:00
committed by Git OBS Bridge
parent fb17e1252d
commit 069be53a63
4 changed files with 29 additions and 4 deletions

17
intrin-arch.patch Normal file
View File

@@ -0,0 +1,17 @@
Index: autobahn-20.7.1/autobahn/nvx/_utf8validator.c
===================================================================
--- autobahn-20.7.1.orig/autobahn/nvx/_utf8validator.c
+++ autobahn-20.7.1/autobahn/nvx/_utf8validator.c
@@ -27,8 +27,12 @@
#include <stdlib.h>
#include <stdint.h>
+#ifdef __s390__
+#include <s390intrin.h>
+#else
// http://stackoverflow.com/questions/11228855/header-files-for-simd-intrinsics
#include <x86intrin.h>
+#endif
#define UTF8_ACCEPT 0

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 23 14:42:38 UTC 2020 - Berthold Gunreben <azouhr@opensuse.org>
- Add patch to include correct <arch>intrin.h for s390
- Minor patch refresh for respect-cflags.patch
-------------------------------------------------------------------
Tue Jul 21 05:51:09 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -26,6 +26,7 @@ License: MIT
URL: https://github.com/crossbario/autobahn-python
Source: https://files.pythonhosted.org/packages/source/a/autobahn/autobahn-%{version}.tar.gz
Patch0: respect-cflags.patch
Patch1: intrin-arch.patch
BuildRequires: %{python_module PyNaCl >= 1.0.1}
BuildRequires: %{python_module PyQRCode >= 1.1}
BuildRequires: %{python_module Twisted >= 20.3.0}
@@ -85,6 +86,7 @@ asynchronous Remote Procedure Calls and Publish & Subscribe on top of WebSocket.
%prep
%setup -q -n autobahn-%{version}
%patch0 -p1
%patch1 -p1
# this test relies too much on rng that can behave randomly in obs
rm autobahn/test/test_rng.py

View File

@@ -9,11 +9,11 @@ This could cause 'invalid instruction' faults on older user machines.
https://bugzilla.opensuse.org/show_bug.cgi?id=1100677
Index: autobahn-19.3.3/autobahn/nvx/_utf8validator.py
Index: autobahn-20.7.1/autobahn/nvx/_utf8validator.py
===================================================================
--- autobahn-19.3.3.orig/autobahn/nvx/_utf8validator.py
+++ autobahn-19.3.3/autobahn/nvx/_utf8validator.py
@@ -52,7 +52,7 @@ with open(os.path.join(os.path.dirname(_
--- autobahn-20.7.1.orig/autobahn/nvx/_utf8validator.py
+++ autobahn-20.7.1/autobahn/nvx/_utf8validator.py
@@ -50,7 +50,7 @@ with open(os.path.join(os.path.dirname(_
"_nvx_utf8validator",
c_source,
libraries=[],