From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 92B5C158089 for ; Fri, 13 Oct 2023 23:11:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC9F52BC02C; Fri, 13 Oct 2023 23:11:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6D2F82BC02C for ; Fri, 13 Oct 2023 23:11:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 93602335C34 for ; Fri, 13 Oct 2023 23:11:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED711ECB for ; Fri, 13 Oct 2023 23:11:08 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1697238638.4b27c5fc01548928042ad09f4983ffb563163dba.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/cronie/, sys-process/cronie/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/cronie/cronie-1.7.0-r1.ebuild sys-process/cronie/cronie-1.7.0.ebuild sys-process/cronie/files/cronie-1.7.0-optional-envionment.patch X-VCS-Directories: sys-process/cronie/ sys-process/cronie/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4b27c5fc01548928042ad09f4983ffb563163dba X-VCS-Branch: master Date: Fri, 13 Oct 2023 23:11:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ef2a2ace-02cd-4510-b545-857fc648f5d2 X-Archives-Hash: 756da6a9543a85d3102ef9fd32654275 commit: 4b27c5fc01548928042ad09f4983ffb563163dba Author: Sam James gentoo org> AuthorDate: Fri Oct 13 23:10:21 2023 +0000 Commit: Sam James gentoo 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 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 +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