Accepting request 571486 from home:oertel:branches:security
- add sha1collisiondetection-endian_detection.patch fix detection of endianness at compile time OBS-URL: https://build.opensuse.org/request/show/571486 OBS-URL: https://build.opensuse.org/package/show/security/sha1collisiondetection?expand=0&rev=11
This commit is contained in:
parent
c361cd7323
commit
109b7cfb37
10
sha1collisiondetection-endian_detection.patch
Normal file
10
sha1collisiondetection-endian_detection.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- lib/sha1.c
|
||||
+++ lib/sha1.c
|
||||
@@ -28,6 +28,7 @@
|
||||
#if (!defined SHA1DC_FORCE_LITTLEENDIAN) && \
|
||||
((defined(__BYTE_ORDER) && (__BYTE_ORDER == __BIG_ENDIAN)) || \
|
||||
(defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __BIG_ENDIAN__)) || \
|
||||
+ (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)) || \
|
||||
defined(__BIG_ENDIAN__) || defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || \
|
||||
defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__) || defined(SHA1DC_FORCE_BIGENDIAN))
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 31 17:33:48 CET 2018 - ro@suse.de
|
||||
|
||||
- add sha1collisiondetection-endian_detection.patch
|
||||
fix detection of endianness at compile time
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 4 15:18:33 CEST 2017 - tiwai@suse.de
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package sha1collisiondetection
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 Andreas Stieger <astieger@suse.com>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@ -26,6 +26,7 @@ Group: Productivity/Security
|
||||
Url: https://github.com/cr-marcstevens/sha1collisiondetection
|
||||
Source: https://github.com/cr-marcstevens/sha1collisiondetection/archive/stable-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Patch0: sha1collisiondetection-1.0.3-io-fixes.patch
|
||||
Patch1: sha1collisiondetection-endian_detection.patch
|
||||
BuildRequires: libtool
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
@ -59,6 +60,7 @@ It is very fast and takes less than twice the amount of time as regular SHA-1.
|
||||
%prep
|
||||
%setup -q -n %{name}-stable-v%{version}
|
||||
%patch0 -p1
|
||||
%patch1
|
||||
|
||||
%build
|
||||
export TARGETCFLAGS="%{optflags}"
|
||||
|
Loading…
Reference in New Issue
Block a user