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

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