Blame kexec-tools-2.0.20-eppic-Remove-duplicated-variable-declaration.patch

Petr Šabata f5bf49
From 2837fb1f5f8362976c188b30ebe50dc8b0377f64 Mon Sep 17 00:00:00 2001
Petr Šabata f5bf49
From: Kairui Song <kasong@redhat.com>
Petr Šabata f5bf49
Date: Wed, 29 Jan 2020 11:33:18 +0800
Petr Šabata f5bf49
Subject: [PATCH] Remove duplicated variable declaration
Petr Šabata f5bf49
Petr Šabata f5bf49
When building on Fedora 32, following error is observed:
Petr Šabata f5bf49
Petr Šabata f5bf49
...
Petr Šabata f5bf49
/usr/bin/ld: ../eppic/libeppic/libeppic.a(eppic_stat.o):/builddir/build/BUILD/kexec-tools-2.0.20/eppic/libeppic/eppic.h:474: multiple definition of `lastv';
Petr Šabata f5bf49
../eppic/libeppic/libeppic.a(eppic_func.o):/builddir/build/BUILD/kexec-tools-2.0.20/eppic/libeppic/eppic.h:474: first defined here
Petr Šabata f5bf49
...
Petr Šabata f5bf49
Petr Šabata f5bf49
And apparently, the variable is wrongly declared multiple times. So
Petr Šabata f5bf49
remove duplicated declaration.
Petr Šabata f5bf49
Petr Šabata f5bf49
Signed-off-by: Kairui Song <kasong@redhat.com>
Petr Šabata f5bf49
---
Petr Šabata f5bf49
 libeppic/eppic.h | 2 +-
Petr Šabata f5bf49
 1 file changed, 1 insertion(+), 1 deletion(-)
Petr Šabata f5bf49
Petr Šabata f5bf49
diff --git a/libeppic/eppic.h b/libeppic/eppic.h
Petr Šabata f5bf49
index 5664583..836b475 100644
Petr Šabata f5bf49
--- a/eppic-d84c3541035d95077aa8571f5d5c3e07c6ef510b/libeppic/eppic.h
Petr Šabata f5bf49
+++ b/eppic-d84c3541035d95077aa8571f5d5c3e07c6ef510b/libeppic/eppic.h
Petr Šabata f5bf49
@@ -471,7 +471,7 @@ type_t  *eppic_addstorage(type_t *t1, type_t *t2);
Petr Šabata f5bf49
 type_t  *eppic_getvoidstruct(int ctype);
Petr Šabata f5bf49
 
Petr Šabata f5bf49
 extern int lineno, needvar, instruct, nomacs, eppic_legacy;
Petr Šabata f5bf49
-node_t *lastv;
Petr Šabata f5bf49
+extern node_t *lastv;
Petr Šabata f5bf49
 
Petr Šabata f5bf49
 #define NULLNODE ((node_t*)0)
Petr Šabata f5bf49
 
Petr Šabata f5bf49
-- 
Petr Šabata f5bf49
2.24.1
Petr Šabata f5bf49