Blame SOURCES/sharutils-4.15.2-Do-not-include-lib-md5.c-into-src-shar.c.patch

80e372
From 4c47a36fb6e2e4349995376cee063bb37d4e68e3 Mon Sep 17 00:00:00 2001
80e372
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
80e372
Date: Thu, 23 Jan 2020 15:57:05 +0100
80e372
Subject: [PATCH 2/2] Do not include lib/md5.c into src/shar.c
80e372
MIME-Version: 1.0
80e372
Content-Type: text/plain; charset=UTF-8
80e372
Content-Transfer-Encoding: 8bit
80e372
80e372
lib/md5.o is part of libgnu.a that is linked to shar. There is no
80e372
point in linking md5.o twice into shar executable. Moreover SuSE
80e372
reports that this triggers a linking error with GCC 10:
80e372
80e372
/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld:
80e372
../lib/libgnu.a(md5.o): in function `md5_stream':
80e372
[   30s] md5.c:(.text+0x15d): multiple definition of `md5_stream';
80e372
shar.o:shar.c:(.text+0x28): first defined here
80e372
80e372
<https://lists.gnu.org/archive/html/bug-gnu-utils/2020-01/msg00001.html>
80e372
80e372
Signed-off-by: Petr Písař <ppisar@redhat.com>
80e372
---
80e372
 src/shar.c | 1 -
80e372
 1 file changed, 1 deletion(-)
80e372
80e372
diff --git a/src/shar.c b/src/shar.c
80e372
index 11cbada..6d7ed1d 100644
80e372
--- a/src/shar.c
80e372
+++ b/src/shar.c
80e372
@@ -53,7 +53,6 @@ static const char cright_years_z[] =
80e372
 
80e372
 #include "inttostr.h"
80e372
 #include "liballoca.h"
80e372
-#include "md5.c"
80e372
 #include "md5.h"
80e372
 #include "quotearg.h"
80e372
 #include "xalloc.h"
80e372
-- 
80e372
2.21.1
80e372