From: "Louis Sautier" <sbraz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/cronie/, sys-process/cronie/files/
Date: Mon, 16 Oct 2023 23:45:36 +0000 (UTC) [thread overview]
Message-ID: <1697499770.a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5.sbraz@gentoo> (raw)
commit: a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 16 23:38:45 2023 +0000
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Mon Oct 16 23:42:50 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a80bf43d
sys-process/cronie: fix error message in 0anacron, #915724
Closes: https://bugs.gentoo.org/915724
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
...cronie-1.7.0-r1.ebuild => cronie-1.7.0-r2.ebuild} | 1 +
.../cronie-1.7.0-optional-default-anacron.patch | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/sys-process/cronie/cronie-1.7.0-r1.ebuild b/sys-process/cronie/cronie-1.7.0-r2.ebuild
similarity index 98%
rename from sys-process/cronie/cronie-1.7.0-r1.ebuild
rename to sys-process/cronie/cronie-1.7.0-r2.ebuild
index 7df18878c8a5..f546d36ecbbd 100644
--- a/sys-process/cronie/cronie-1.7.0-r1.ebuild
+++ b/sys-process/cronie/cronie-1.7.0-r2.ebuild
@@ -35,6 +35,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${P}-optional-envionment.patch
+ "${FILESDIR}"/${P}-optional-default-anacron.patch
)
src_configure() {
diff --git a/sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch b/sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch
new file mode 100644
index 000000000000..33cd1c79a72d
--- /dev/null
+++ b/sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch
@@ -0,0 +1,20 @@
+From ca1b98aaa79975376b729d7f4cc2e8bb2e5939b8 Mon Sep 17 00:00:00 2001
+From: Louis Sautier <sautier.louis@gmail.com>
+Date: Sat, 14 Oct 2023 15:13:22 +0200
+Subject: [PATCH] anacron: only source /etc/default/anacron if it is readable,
+ fixes #159
+
+Signed-off-by: Louis Sautier <sautier.louis@gmail.com>
+--- a/contrib/0anacron
++++ b/contrib/0anacron
+@@ -8,7 +8,9 @@ if [ `date +%Y%m%d` = "$day" ]; then
+ fi
+
+ # Check whether run on battery should be allowed
+-. /etc/default/anacron
++if test -r /etc/default/anacron; then
++ . /etc/default/anacron
++fi
+
+ if [ "$ANACRON_RUN_ON_BATTERY_POWER" != "yes" ]; then
+
next reply other threads:[~2023-10-16 23:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-16 23:45 Louis Sautier [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-13 23:11 Sam James
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=1697499770.a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5.sbraz@gentoo \
--to=sbraz@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