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.lo...@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.lo...@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 +