Bug 1218377 - cronie-anacron-1.7.0: missing /etc/default/anacron
Summary: cronie-anacron-1.7.0: missing /etc/default/anacron
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Danilo Spinella
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on: 1218756
Blocks:
  Show dependency treegraph
 
Reported: 2023-12-24 08:08 UTC by Oliver Schwabedissen
Modified: 2024-01-17 08:31 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Schwabedissen 2023-12-24 08:08:03 UTC
Hello,

the new cronie-anacron-1.7.0 (part of snapshot 20231222) installs a modified /etc/cron.hourly/0anacron.

Upon execution cron aborts because 0anacron now tries to execute /etc/default/anacron which doesn't exist:

[...]
# Check whether run on battery should be allowed
. /etc/default/anacron

if [ "$ANACRON_RUN_ON_BATTERY_POWER" != "yes" ]; then

    # Do not run jobs when on battery power
[...]

Error message:
/etc/cron.hourly/0anacron: Zeile 11: /etc/default/anacron: Datei oder Verzeichnis nicht gefunden
run-parts: /etc/cron.hourly/0anacron exited with return code 1
Comment 1 ulfbart 2023-12-28 20:38:57 UTC
Am Donnerstag, 28. Dezember 2023, 19:52:50 CET schrieb Andrei Borzenkov:
> This is fixed upstream
> 
> https://github.com/cronie-crond/cronie/commit/7700b1465d32ddb1d3988e9af852af6f0f5cd66e
Comment 2 Kristyna Streitova 2024-01-02 09:08:14 UTC
Reassigning to the cronie maintainer
Comment 3 Manfred Hollstein 2024-01-11 17:36:27 UTC
Come on guys, it's almost 3 weeks after the report - why is there no update available? Do you really want to drive cron users to use systemd timers?
The solution is *so* easy: touch /etc/default/anacron
then release a new package!
Comment 4 Danilo Spinella 2024-01-11 17:57:50 UTC
Hello Manfred, just pushed the fix to Factory:

https://build.opensuse.org/request/show/1138167
Comment 5 Manfred Hollstein 2024-01-11 18:37:03 UTC
Hi Danilo,

(In reply to Danilo Spinella from comment #4)
> Hello Manfred, just pushed the fix to Factory:
> 
> https://build.opensuse.org/request/show/1138167

great, thanks a lot!
Comment 6 Danilo Spinella 2024-01-17 08:31:54 UTC
The request has been accepted, I am closing this bug as fixed.