Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915724 - sys-process/cronie-1.7.0-r1:"/etc/default/anacron: No such file or directory"
Summary: sys-process/cronie-1.7.0-r1:"/etc/default/anacron: No such file or directory"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://github.com/cronie-crond/croni...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-10-14 13:06 UTC by Louis Sautier (sbraz)
Modified: 2023-10-16 23:45 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cronie-1.7.0-optional-default-anacron.patch (cronie-1.7.0-optional-default-anacron.patch,610 bytes, patch)
2023-10-14 13:19 UTC, Louis Sautier (sbraz)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Sautier (sbraz) gentoo-dev 2023-10-14 13:06:23 UTC
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.
Comment 1 Louis Sautier (sbraz) gentoo-dev 2023-10-14 13:19:38 UTC
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)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-16 08:49:49 UTC
Please do pull it in, thanks
Comment 3 Larry the Git Cow gentoo-dev 2023-10-16 23:45:36 UTC
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(+)