From c2a6c579511a2491240463dc3ea6b901d4f3d032 Mon Sep 17 00:00:00 2001 From: sinjuginas Date: Wed, 13 Nov 2024 13:06:44 +0300 Subject: [PATCH] Delete -g flag from install section of Makefile. We cannot change group to cron or to root in install --- .gear/systemd-crontab-generator.spec | 2 ++ makefile_install_fix.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 makefile_install_fix.patch diff --git a/.gear/systemd-crontab-generator.spec b/.gear/systemd-crontab-generator.spec index 5113eee..6b96991 100644 --- a/.gear/systemd-crontab-generator.spec +++ b/.gear/systemd-crontab-generator.spec @@ -14,6 +14,7 @@ BuildArch: x86_64 Source0: %name-%version.tar Patch0: %name-%version-%release.patch Patch1: allow_deprecated_rustc-serialize.patch +Patch2: makefile_install_fix.patch BuildRequires: /proc BuildRequires: rust-cargo @@ -32,6 +33,7 @@ It's intended to be a drop-in replacement for all cron implementations. %setup %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build ./configure diff --git a/makefile_install_fix.patch b/makefile_install_fix.patch new file mode 100644 index 0000000..b29a3dd --- /dev/null +++ b/makefile_install_fix.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.in b/Makefile.in +index ac1ed07..c0177a5 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -73,7 +73,7 @@ build: all + --features "$(foreach schedule,$(schedules),sched-$(schedule)) $(persistent) $(randomized_delay)" + + install: build +- install -m2755 -g `getent group cron || echo root` $(strip) -D $(builddir)/bin/crontab $(DESTDIR)$(bindir)/crontab ++ install -m2755 -D $(builddir)/bin/crontab $(DESTDIR)$(bindir)/crontab + install -m755 $(strip) -D $(builddir)/bin/systemd-crontab-generator $(DESTDIR)$(libdir)/systemd/system-generators/systemd-crontab-generator + install -m755 $(strip) -D $(builddir)/bin/remove-stale-stamps $(DESTDIR)$(libdir)/$(packagedir)/remove-stale-stamps + install -m755 $(strip) -D $(builddir)/bin/mail-on-failure $(DESTDIR)$(libdir)/$(packagedir)/mail-on-failure