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

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