Blame SOURCES/0001-contrib-disable-upstart-kpatch.conf-install.patch

685deb
From f056d60fb309896a52882fd3fc10fb5305f5a47e Mon Sep 17 00:00:00 2001
685deb
From: Joe Lawrence <joe.lawrence@redhat.com>
685deb
Date: Thu, 21 Jun 2018 15:40:20 -0400
685deb
Subject: [PATCH] contrib: disable upstart kpatch.conf install
685deb
685deb
Do not install the upstart configuration file to avoid this rhpkg
685deb
build complaint:
685deb
685deb
  Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/kpatch-0.6.1-1.el7.noarch
685deb
  error: Installed (but unpackaged) file(s) found:
685deb
     /etc/init/kpatch.conf
685deb
      Installed (but unpackaged) file(s) found:
685deb
     /etc/init/kpatch.conf
685deb
685deb
We'll need to think of a better way to do this upstream, but for now,
685deb
just skip the unneeded file on RHEL.
685deb
685deb
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
685deb
---
685deb
 contrib/Makefile | 8 ++++----
685deb
 1 file changed, 4 insertions(+), 4 deletions(-)
685deb
685deb
diff --git a/contrib/Makefile b/contrib/Makefile
685deb
index 0b0eeeb23a56..e873f27d6eae 100644
685deb
--- a/contrib/Makefile
685deb
+++ b/contrib/Makefile
685deb
@@ -6,12 +6,12 @@ install: all
685deb
 	$(INSTALL) -d $(SYSTEMDDIR)
685deb
 	$(INSTALL) -m 0644 kpatch.service $(SYSTEMDDIR)
685deb
 	sed -i 's~PREFIX~$(PREFIX)~' $(SYSTEMDDIR)/kpatch.service
685deb
-	$(INSTALL) -d $(UPSTARTDIR)
685deb
-	$(INSTALL) -m 0644 kpatch.conf $(UPSTARTDIR)
685deb
-	sed -i 's~PREFIX~$(PREFIX)~' $(UPSTARTDIR)/kpatch.conf
685deb
+#	$(INSTALL) -d $(UPSTARTDIR)
685deb
+#	$(INSTALL) -m 0644 kpatch.conf $(UPSTARTDIR)
685deb
+#	sed -i 's~PREFIX~$(PREFIX)~' $(UPSTARTDIR)/kpatch.conf
685deb
 
685deb
 uninstall:
685deb
 	$(RM) $(SYSTEMDDIR)/kpatch.service
685deb
-	$(RM) $(UPSTARTDIR)/kpatch.conf
685deb
+#	$(RM) $(UPSTARTDIR)/kpatch.conf
685deb
 
685deb
 clean:
685deb
-- 
685deb
1.8.3.1
685deb