diff options
author | Louis Sautier <sbraz@gentoo.org> | 2023-10-17 01:38:45 +0200 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2023-10-17 01:42:50 +0200 |
commit | a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5 (patch) | |
tree | 2d5d7915a697fbd47994dae04bbf1d84e748d3d0 /sys-process/cronie | |
parent | dev-util/ruff: drop 0.0.292 (diff) | |
download | gentoo-a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5.tar.gz gentoo-a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5.tar.bz2 gentoo-a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5.zip |
sys-process/cronie: fix error message in 0anacron, #915724
Closes: https://bugs.gentoo.org/915724
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'sys-process/cronie')
-rw-r--r-- | sys-process/cronie/cronie-1.7.0-r2.ebuild (renamed from sys-process/cronie/cronie-1.7.0-r1.ebuild) | 1 | ||||
-rw-r--r-- | sys-process/cronie/files/cronie-1.7.0-optional-default-anacron.patch | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/sys-process/cronie/cronie-1.7.0-r1.ebuild b/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 + |