[packages/audit] fix build with gcc 10

atler atler at pld-linux.org
Sun Nov 15 12:47:05 CET 2020


commit 5f5ab86506089ecc6e1f98eaea95b5b27798a051
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Nov 15 12:45:53 2020 +0100

    fix build with gcc 10

 audit.spec  |  2 ++
 gcc10.patch | 23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+)
---
diff --git a/audit.spec b/audit.spec
index 1ddd1ac..0499bb7 100644
--- a/audit.spec
+++ b/audit.spec
@@ -34,6 +34,7 @@ Patch4:		%{name}-am.patch
 Patch5:		%{name}-no-refusemanualstop.patch
 Patch6:		%{name}-cronjob.patch
 Patch7:		golang-paths.patch
+Patch8:		gcc10.patch
 URL:		http://people.redhat.com/sgrubb/audit/
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake >= 1:1.12.6
@@ -200,6 +201,7 @@ Interfejs Pythona 3.x do biblioteki libaudit.
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 %if %{without python}
 sed 's#[^ ]*swig/[^ ]*/Makefile ##g' -i configure.ac
diff --git a/gcc10.patch b/gcc10.patch
new file mode 100644
index 0000000..b73ae27
--- /dev/null
+++ b/gcc10.patch
@@ -0,0 +1,23 @@
+From 017e6c6ab95df55f34e339d2139def83e5dada1f Mon Sep 17 00:00:00 2001
+From: Steve Grubb <sgrubb at redhat.com>
+Date: Fri, 10 Jan 2020 21:13:50 -0500
+Subject: [PATCH] Header definitions need to be external when building with
+ -fno-common (which is default in GCC 10) - Tony Jones
+
+---
+ src/ausearch-common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/ausearch-common.h b/src/ausearch-common.h
+index 6669203..3040547 100644
+--- a/src/ausearch-common.h
++++ b/src/ausearch-common.h
+@@ -50,7 +50,7 @@ extern pid_t event_pid;
+ extern int event_exact_match;
+ extern uid_t event_uid, event_euid, event_loginuid;
+ extern const char *event_tuid, *event_teuid, *event_tauid;
+-slist *event_node_list;
++extern slist *event_node_list;
+ extern const char *event_comm;
+ extern const char *event_filename;
+ extern const char *event_hostname;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/audit.git/commitdiff/5f5ab86506089ecc6e1f98eaea95b5b27798a051



More information about the pld-cvs-commit mailing list