From 109b7cfb3701f94e955d472d0d794ebd3e5e8cf7fa8c9bc1904a2f61442dbe1e Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Wed, 31 Jan 2018 16:46:55 +0000 Subject: [PATCH] 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 --- sha1collisiondetection-endian_detection.patch | 10 ++++++++++ sha1collisiondetection.changes | 6 ++++++ sha1collisiondetection.spec | 4 +++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 sha1collisiondetection-endian_detection.patch diff --git a/sha1collisiondetection-endian_detection.patch b/sha1collisiondetection-endian_detection.patch new file mode 100644 index 0000000..ec3dc14 --- /dev/null +++ b/sha1collisiondetection-endian_detection.patch @@ -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)) + diff --git a/sha1collisiondetection.changes b/sha1collisiondetection.changes index 1567d69..a894c14 100644 --- a/sha1collisiondetection.changes +++ b/sha1collisiondetection.changes @@ -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 diff --git a/sha1collisiondetection.spec b/sha1collisiondetection.spec index f4d4500..6c6177a 100644 --- a/sha1collisiondetection.spec +++ b/sha1collisiondetection.spec @@ -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 # # 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}"