diff --git a/0004-Do-not-install-isnsd.socket-in-isnsd.service.patch b/0004-Do-not-install-isnsd.socket-in-isnsd.service.patch new file mode 100644 index 0000000000000000000000000000000000000000..30d32e9fe1cc6705cb6ce9d80665dd05d017fac9 --- /dev/null +++ b/0004-Do-not-install-isnsd.socket-in-isnsd.service.patch @@ -0,0 +1,25 @@ +From 040ee0d91adb8b2f6dd3705e3c193a77b40e69c5 Mon Sep 17 00:00:00 2001 +From: Wenchao Hao +Date: Thu, 29 Apr 2021 16:07:59 +0800 +Subject: [PATCH] Do not install isnsd.socket in isnsd.service + +isnsd.socket is removed from rpm package, so here remove it from isnsd.service +to fix systemd error message + +Signed-off-by: Wenchao Hao +--- + isnsd.service | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/isnsd.service b/isnsd.service +index 76eac6c..3f5fb21 100644 +--- a/isnsd.service ++++ b/isnsd.service +@@ -12,4 +12,3 @@ LimitCORE=infinity + + [Install] + WantedBy=sysinit.target +-Also=isnsd.socket +-- +1.8.3.1 + diff --git a/open-isns.spec b/open-isns.spec index fbfd8166114108d24ae9b5d6313a4c6879c539eb..39b3057651950d173efadf566b28d6d2771ee7e9 100644 --- a/open-isns.spec +++ b/open-isns.spec @@ -1,6 +1,6 @@ Name: open-isns Version: 0.100 -Release: 3 +Release: 4 Summary: The iSNS server and client programs License: LGPLv2+ URL: https://www.github.com/open-iscsi/open-isns @@ -9,6 +9,7 @@ Source0: https://www.github.com/open-iscsi/open-isns/archive/v%{version}. Patch1: 0001-Fix-the-issue-of-ignoring-the-return-value.patch Patch2: 0002-Fix-compiler-issue-when-not-in-security-mode.patch Patch3: 0003-Fix-586-compile-issue-and-remove-Werror.patch +Patch4: 0004-Do-not-install-isnsd.socket-in-isnsd.service.patch BuildRequires: gcc git systemd automake autoconf make BuildRequires: openssl-devel systemd-devel @@ -96,6 +97,9 @@ install -p -m 644 isnsd.service %{buildroot}%{_unitdir}/isnsd.service %{_mandir}/man8/* %changelog +* Thu Apr 4 2021 Wenchao Hao - 0.100-4 +- Do not install isnsd.socket in isnsd.service + * Wed Nov 4 2020 lixiaokeng - 0.100-3 - add make tests