diff --git a/0006-Resolve-multiple-definition-of-swanctl_dir.patch b/0006-Resolve-multiple-definition-of-swanctl_dir.patch new file mode 100644 index 0000000..52773ac --- /dev/null +++ b/0006-Resolve-multiple-definition-of-swanctl_dir.patch @@ -0,0 +1,12 @@ +diff -Naur strongswan-5.8.2.orig/src/swanctl/swanctl.h strongswan-5.8.2/src/swanctl/swanctl.h +--- strongswan-5.8.2.orig/src/swanctl/swanctl.h 2018-12-14 16:48:24.000000000 +0100 ++++ strongswan-5.8.2/src/swanctl/swanctl.h 2020-03-26 07:54:21.876224209 +0100 +@@ -30,7 +30,7 @@ + /** + * Base directory for credentials and config + */ +-char *swanctl_dir; ++extern char *swanctl_dir; + + /** + * Configuration file for connections, etc. diff --git a/strongswan.changes b/strongswan.changes index eb9f853..29d5708 100644 --- a/strongswan.changes +++ b/strongswan.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 31 16:42:23 UTC 2020 - Madhu Mohan Nelemane + +- Fix to resolve multiple definitions for swanctl_dir (bsc#1164493) + [+ 0006-Resolve-multiple-definition-of-swanctl_dir.patch ] + ------------------------------------------------------------------- Mon Feb 17 20:26:37 UTC 2020 - Johannes Kastl diff --git a/strongswan.spec b/strongswan.spec index d2f882a..a215c4b 100644 --- a/strongswan.spec +++ b/strongswan.spec @@ -80,7 +80,7 @@ Patch2: %{name}_ipsec_service.patch Patch3: %{name}_fipscheck.patch %endif Patch5: 0005-ikev1-Don-t-retransmit-Aggressive-Mode-response.patch - +Patch6: 0006-Resolve-multiple-definition-of-swanctl_dir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bison BuildRequires: curl-devel @@ -257,6 +257,7 @@ and the load testing plugin for IKEv2 daemon. %patch3 -p1 %endif %patch5 -p1 +%patch6 -p1 sed -e 's|@libexecdir@|%_libexecdir|g' \ < %{_sourcedir}/strongswan.init.in \ > strongswan.init