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