Hello community,

here is the log from the commit of package libsignal-protocol-c for 
openSUSE:Factory checked in at 2019-02-27 15:10:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libsignal-protocol-c (Old)
 and      /work/SRC/openSUSE:Factory/.libsignal-protocol-c.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libsignal-protocol-c"

Wed Feb 27 15:10:29 2019 rev:4 rq:679766 version:2.3.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/libsignal-protocol-c/libsignal-protocol-c.changes    
    2019-02-26 22:23:03.986051990 +0100
+++ 
/work/SRC/openSUSE:Factory/.libsignal-protocol-c.new.28833/libsignal-protocol-c.changes
     2019-02-27 15:10:31.026366545 +0100
@@ -1,0 +2,6 @@
+Wed Feb 27 08:47:49 UTC 2019 - Adam Mizerski <[email protected]>
+
+- Added patch fix_bigendian.patch
+  (https://github.com/signalapp/libsignal-protocol-c/issues/124)
+
+-------------------------------------------------------------------

New:
----
  fix_bigendian.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libsignal-protocol-c.spec ++++++
--- /var/tmp/diff_new_pack.EwsmuF/_old  2019-02-27 15:10:32.790365975 +0100
+++ /var/tmp/diff_new_pack.EwsmuF/_new  2019-02-27 15:10:32.822365965 +0100
@@ -25,6 +25,7 @@
 Group:          Development/Libraries/C and C++
 Url:            https://github.com/signalapp/libsignal-protocol-c/
 Source:         
https://github.com/signalapp/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch0:         fix_bigendian.patch
 BuildRequires:  check-devel >= 0.9.10
 BuildRequires:  cmake >= 2.8.4
 BuildRequires:  gcc-c++
@@ -51,6 +52,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %cmake \

++++++ fix_bigendian.patch ++++++
>From 7bd0e5fee0ebde15c45fffcd631b74d188fd5551 Mon Sep 17 00:00:00 2001
From: Derek Konigsberg <[email protected]>
Date: Tue, 26 Feb 2019 21:25:23 -0800
Subject: [PATCH] Test for endianness during CMake setup

Add an endianness test to the CMake configuration, and use the result of
that test to set a variable that tells the protobuf-c code about the
endianness of the target system.

Fixes #124
---
 CMakeLists.txt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b31796d..d95fd3f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,6 +19,7 @@ SET(INSTALL_PKGCONFIG_DIR "${LIB_INSTALL_DIR}/pkgconfig" 
CACHE PATH "Installatio
 
 INCLUDE(CheckSymbolExists)
 INCLUDE(CheckCCompilerFlag)
+INCLUDE(TestBigEndian)
 
 CHECK_SYMBOL_EXISTS(memset_s "string.h" HAVE_MEMSET_S)
 
@@ -50,6 +51,11 @@ IF(HAVE_MEMSET_S)
        SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_MEMSET_S=1")
 ENDIF(HAVE_MEMSET_S)
 
+TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
+IF(WORDS_BIGENDIAN)
+       ADD_DEFINITIONS(-DWORDS_BIGENDIAN)
+ENDIF(WORDS_BIGENDIAN)
+
 IF(COVERAGE)
        SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
        SET(LINK_FLAGS "${LINK_FLAGS} -fprofile-arcs -ftest-coverage")

Reply via email to