Hi, Since the update to cronie 1.7.0, I receive emails with: /etc/cron.hourly/0anacron: line 11: /etc/default/anacron: No such file or directory run-parts: /etc/cron.hourly/0anacron exited with return code 1 It seems to be caused by https://github.com/cronie-crond/cronie/commit/b53221ff55cbb4b13520472b75b0fd9028940534 which added the "." statement without creating a default/anacron file. Creating an empty /etc/default/anacron fixes the problem. I am also going to report this upstream.
Created attachment 872779 [details, diff] cronie-1.7.0-optional-default-anacron.patch I've reported this as https://github.com/cronie-crond/cronie/issues/159 and proposed a fix in https://github.com/cronie-crond/cronie/pull/160 (attached here too)
Please do pull it in, thanks
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5 commit a80bf43dee8debe9a7da1519e1e4ebbdb6b588c5 Author: Louis Sautier <sbraz@gentoo.org> AuthorDate: 2023-10-16 23:38:45 +0000 Commit: Louis Sautier <sbraz@gentoo.org> CommitDate: 2023-10-16 23:42:50 +0000 sys-process/cronie: fix error message in 0anacron, #915724 Closes: https://bugs.gentoo.org/915724 Signed-off-by: Louis Sautier <sbraz@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(+)