Hello community,

here is the log from the commit of package ccgfs for openSUSE:Factory checked 
in at 2017-12-05 01:30:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ccgfs (Old)
 and      /work/SRC/openSUSE:Factory/.ccgfs.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ccgfs"

Tue Dec  5 01:30:17 2017 rev:14 rq:548027 version:0.81

Changes:
--------
--- /work/SRC/openSUSE:Factory/ccgfs/ccgfs.changes      2014-09-26 
11:21:16.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ccgfs.new/ccgfs.changes 2017-12-05 
01:30:22.061016097 +0100
@@ -1,0 +2,5 @@
+Mon Dec  4 09:02:40 UTC 2017 - [email protected]
+
+- Add replace-sha0.diff
+
+-------------------------------------------------------------------

New:
----
  replace-sha0.diff

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

Other differences:
------------------
++++++ ccgfs.spec ++++++
--- /var/tmp/diff_new_pack.etNgnw/_old  2017-12-05 01:30:23.216974103 +0100
+++ /var/tmp/diff_new_pack.etNgnw/_new  2017-12-05 01:30:23.220973957 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ccgfs
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,6 +28,7 @@
 Source:         http://downloads.sf.net/ccgfs/%name-%version.tar.xz
 Source2:        http://downloads.sf.net/ccgfs/%name-%version.tar.xz.asc
 Source3:        %name.keyring
+Patch1:         replace-sha0.diff
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  automake
 BuildRequires:  libattr-devel
@@ -48,6 +49,7 @@
 
 %prep
 %setup -q
+%patch -P 1 -p1
 
 %build
 %configure


++++++ replace-sha0.diff ++++++
>From 4b5b69055886073ee95d768443febee94177f59b Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <[email protected]>
Date: Mon, 4 Dec 2017 09:55:13 +0100
Subject: [PATCH] ccgfs: replace SHA0 by SHA1 to fix build error with OpenSSL
 1.1

OpenSSL 1.1.x removed SHA0 support. It was used by ccgfs only to find
duplicate config entries, so any hash function can be substituted.
---
 src/super.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/super.c b/src/super.c
index f406e79..955d6a0 100644
--- a/src/super.c
+++ b/src/super.c
@@ -497,10 +497,10 @@ static bool config_parse_subproc(struct HXclist_head *dq,
        }
 
        /* Calculate checksum and convert to vector */
-       SHA_Init(&ctx);
+       SHA1_Init(&ctx);
        for (node = args->first; node != NULL; node = node->next)
-               SHA_Update(&ctx, node->ptr, strlen(node->ptr) + 1);
-       SHA_Final(subp->checksum, &ctx);
+               SHA1_Update(&ctx, node->ptr, strlen(node->ptr) + 1);
+       SHA1_Final(subp->checksum, &ctx);
        subp->args = reinterpret_cast(char **, HXdeque_to_vec(args, NULL));
        HXdeque_free(args);
 
-- 
2.15.0


Reply via email to