public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/cronie/, sys-process/cronie/files/
Date: Fri, 13 Oct 2023 23:11:08 +0000 (UTC)	[thread overview]
Message-ID: <1697238638.4b27c5fc01548928042ad09f4983ffb563163dba.sam@gentoo> (raw)

commit:     4b27c5fc01548928042ad09f4983ffb563163dba
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 13 23:10:21 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 13 23:10:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b27c5fc

sys-process/cronie: fix systemd unit file

Closes: https://bugs.gentoo.org/915699
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{cronie-1.7.0.ebuild => cronie-1.7.0-r1.ebuild} |  4 ++++
 .../files/cronie-1.7.0-optional-envionment.patch    | 21 +++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/sys-process/cronie/cronie-1.7.0.ebuild b/sys-process/cronie/cronie-1.7.0-r1.ebuild
similarity index 97%
rename from sys-process/cronie/cronie-1.7.0.ebuild
rename to sys-process/cronie/cronie-1.7.0-r1.ebuild
index 8dfc21e17ea9..7df18878c8a5 100644
--- a/sys-process/cronie/cronie-1.7.0.ebuild
+++ b/sys-process/cronie/cronie-1.7.0-r1.ebuild
@@ -33,6 +33,10 @@ RDEPEND="
 	sys-apps/debianutils
 "
 
+PATCHES=(
+	"${FILESDIR}"/${P}-optional-envionment.patch
+)
+
 src_configure() {
 	local myeconfargs=(
 		$(use_with inotify)

diff --git a/sys-process/cronie/files/cronie-1.7.0-optional-envionment.patch b/sys-process/cronie/files/cronie-1.7.0-optional-envionment.patch
new file mode 100644
index 000000000000..b3032fe982e8
--- /dev/null
+++ b/sys-process/cronie/files/cronie-1.7.0-optional-envionment.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/915699
+https://github.com/cronie-crond/cronie/commit/1a6bed1dcf1871c47fdc6d5957f00eae5a854cc7
+
+From 1a6bed1dcf1871c47fdc6d5957f00eae5a854cc7 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail@eworm.de>
+Date: Fri, 13 Oct 2023 11:17:12 +0200
+Subject: [PATCH] make the environment file optional
+
+Starting the daemon works without additional environment variables, so
+make the file optional.
+--- a/contrib/cronie.systemd
++++ b/contrib/cronie.systemd
+@@ -3,7 +3,7 @@ Description=Command Scheduler
+ After=auditd.service nss-user-lookup.target systemd-user-sessions.service time-sync.target ypbind.service autofs.service
+ 
+ [Service]
+-EnvironmentFile=/etc/sysconfig/crond
++EnvironmentFile=-/etc/sysconfig/crond
+ ExecStart=/usr/sbin/crond -n $CRONDARGS
+ ExecReload=/bin/kill -URG $MAINPID
+ KillMode=process


             reply	other threads:[~2023-10-13 23:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-13 23:11 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-19 10:28 [gentoo-commits] repo/gentoo:master commit in: sys-process/cronie/, sys-process/cronie/files/ Sam James
2023-12-28  4:23 Sam James
2023-10-16 23:45 Louis Sautier
2022-03-22 18:13 Lars Wendler
2021-07-15 20:13 Lars Wendler
2019-06-06 10:07 Lars Wendler
2019-03-16 20:03 Lars Wendler
2018-02-14 10:21 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1697238638.4b27c5fc01548928042ad09f4983ffb563163dba.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox