Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hashdeep for openSUSE:Factory 
checked in at 2021-06-02 22:11:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hashdeep (Old)
 and      /work/SRC/openSUSE:Factory/.hashdeep.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hashdeep"

Wed Jun  2 22:11:41 2021 rev:4 rq:896685 version:4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/hashdeep/hashdeep.changes        2020-03-30 
23:08:10.880339828 +0200
+++ /work/SRC/openSUSE:Factory/.hashdeep.new.1898/hashdeep.changes      
2021-06-02 22:12:06.552172530 +0200
@@ -1,0 +2,6 @@
+Mon May 31 20:39:08 UTC 2021 - Christophe Giboudeaux <[email protected]>
+
+- Add patch to fix build with GCC 11:
+  * 0001-Fix-errors-found-by-clang.patch
+
+-------------------------------------------------------------------

New:
----
  0001-Fix-errors-found-by-clang.patch

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

Other differences:
------------------
++++++ hashdeep.spec ++++++
--- /var/tmp/diff_new_pack.eeM4yf/_old  2021-06-02 22:12:06.984171462 +0200
+++ /var/tmp/diff_new_pack.eeM4yf/_new  2021-06-02 22:12:06.984171462 +0200
@@ -24,6 +24,8 @@
 Group:          System/Base
 URL:            http://md5deep.sourceforge.net/
 Source0:        
https://github.com/jessek/hashdeep/archive/release-%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM
+Patch0:         0001-Fix-errors-found-by-clang.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  fdupes
@@ -39,7 +41,7 @@
 hashes in a variety of formats.
 
 %prep
-%setup -q -n %{name}-release-%{version}
+%autosetup -p1 -n %{name}-release-%{version}
 
 %build
 autoreconf -fiv

++++++ 0001-Fix-errors-found-by-clang.patch ++++++
>From f255af90dbb815524429e4cd9b3fdc2947bd4864 Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Tue, 15 Nov 2016 02:46:55 +0000
Subject: [PATCH] Fix errors found by clang

Fixes errors like

../../git/src/hash.cpp:282:19: error: ordered comparison between pointer and 
zero ('const unsigned char *' and 'int')
            if(fdht->base>0){
               ~~~~~~~~~~^~

Signed-off-by: Khem Raj <[email protected]>
---
 src/hash.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hash.cpp b/src/hash.cpp
index 4216157..52f419b 100644
--- a/src/hash.cpp
+++ b/src/hash.cpp
@@ -279,7 +279,7 @@ void file_data_hasher_t::hash()
                MAP_FILE|
 #endif
                MAP_SHARED,fd,0);
-           if(fdht->base>0){           
+           if(fdht->base != (void *) -1){
                /* mmap is successful, so set the bounds.
                 * if it is not successful, we default to reading the fd
                 */
-- 
2.31.1

Reply via email to