Add zstd-1.4.9-Avoid-SIGBUS-on-armv6.patch

to fix crashes when running armv6 userspace on armv8 64-bit kernels

OBS-URL: https://build.opensuse.org/package/show/Archiving/zstd?expand=0&rev=60
This commit is contained in:
Bernhard M. Wiedemann 2021-05-11 18:29:41 +00:00 committed by Git OBS Bridge
parent 5e904cc946
commit 95a5bb4d78
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 11 18:28:45 UTC 2021 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add zstd-1.4.9-Avoid-SIGBUS-on-armv6.patch
to fix crashes when running armv6 userspace on armv8 64-bit kernels
-------------------------------------------------------------------
Thu Mar 4 01:36:14 UTC 2021 - Bernhard Wiedemann <bwiedemann@suse.com>

View File

@ -28,6 +28,8 @@ URL: https://github.com/facebook/zstd
Source0: https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: baselibs.conf
Patch1: pzstd.1.patch
# PATCH-FIX-UPSTREAM https://github.com/facebook/zstd/pull/2633
Patch2: zstd-1.4.9-Avoid-SIGBUS-on-armv6.patch
BuildRequires: gcc
# C++ is needed for pzstd only
BuildRequires: gcc-c++
@ -82,8 +84,7 @@ targeting faster compression than zlib at comparable ratios.
Needed for compiling programs that link with the library.
%prep
%setup -q
%patch1 -p1
%autosetup -p1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects