Delete -g flag from install section of Makefile. We cannot change group to cron or to root in install
This commit is contained in:
parent
eef10f8535
commit
c2a6c57951
@ -14,6 +14,7 @@ BuildArch: x86_64
|
|||||||
Source0: %name-%version.tar
|
Source0: %name-%version.tar
|
||||||
Patch0: %name-%version-%release.patch
|
Patch0: %name-%version-%release.patch
|
||||||
Patch1: allow_deprecated_rustc-serialize.patch
|
Patch1: allow_deprecated_rustc-serialize.patch
|
||||||
|
Patch2: makefile_install_fix.patch
|
||||||
|
|
||||||
BuildRequires: /proc
|
BuildRequires: /proc
|
||||||
BuildRequires: rust-cargo
|
BuildRequires: rust-cargo
|
||||||
@ -32,6 +33,7 @@ It's intended to be a drop-in replacement for all cron implementations.
|
|||||||
%setup
|
%setup
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure
|
./configure
|
||||||
|
13
makefile_install_fix.patch
Normal file
13
makefile_install_fix.patch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user