Blame SOURCES/0200-Makefile-set-install-permission-modes.patch

707f0e
From 73f6d5cdb2a4ce78cec6f49517116a3c7616f393 Mon Sep 17 00:00:00 2001
707f0e
From: Joe Lawrence <joe.lawrence@redhat.com>
707f0e
Date: Thu, 12 Nov 2020 15:15:47 -0500
707f0e
Subject: [PATCH] Makefile: set install permission modes
707f0e
707f0e
By default, the install command will apply rwxr-xr-x permissions (how
707f0e
intuitive).  Give the command expected file modes to avoid rpmbuild
707f0e
complaints like this:
707f0e
707f0e
  *** WARNING: ./usr/lib/python3.9/site-packages/dnf-plugins/kpatch.py is executable but has no shebang, removing executable bit
707f0e
  *** WARNING: ./etc/dnf/plugins/kpatch.conf is executable but has no shebang, removing executable bit
707f0e
707f0e
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
707f0e
---
707f0e
 Makefile | 6 +++---
707f0e
 1 file changed, 3 insertions(+), 3 deletions(-)
707f0e
707f0e
diff --git a/Makefile b/Makefile
707f0e
index fb92d06..77c8eb5 100644
707f0e
--- a/Makefile
707f0e
+++ b/Makefile
707f0e
@@ -23,11 +23,11 @@ all: $(TARGETS)
707f0e
 
707f0e
 install: $(TARGETS)
707f0e
 	install -d $(MANDIR)
707f0e
-	install man/dnf.kpatch.8.gz $(MANDIR)
707f0e
+	install -m 644 man/dnf.kpatch.8.gz $(MANDIR)
707f0e
 	install -d $(CONFDIR)
707f0e
-	install conf/kpatch.conf $(CONFDIR)
707f0e
+	install -m 644 conf/kpatch.conf $(CONFDIR)
707f0e
 	install -d $(DNFPLUGINDIR)
707f0e
-	install kpatch.py $(DNFPLUGINDIR)
707f0e
+	install -m 644 kpatch.py $(DNFPLUGINDIR)
707f0e
 
707f0e
 %.gz: %
707f0e
 	gzip --keep $^
707f0e
-- 
707f0e
2.25.4
707f0e