FS#40636 - [fcron] 3.1.3-1 update overwrites systab

Attached to Project: Community Packages
Opened by Martin Nyolt (PapaNappa) - Sunday, 01 June 2014, 20:04 GMT
Last edited by Thorsten Töpper (Atsutane) - Saturday, 14 June 2014, 11:13 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thorsten Töpper (Atsutane)
Sébastien Luttringer (seblu)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

When fcron gets updated, it replaces the current systab with the default one.
All changes are lost.
This applies for instance to fcron version 3.1.3-1, where it hit me last.
Other user-specific crontabs are not affected.

The package ships a default systab.orig file, which is overwritten on each update.
The .orig file is the user-friendly version, which is compiled into binary format by fcrontab. This is also forced for the systab on each install/update by the fcron.install script.
I suppose adding var/spool/fcron/systab.orig to the backup array in the PKGBUILD solves the problem.


Steps to reproduce:

1. Modify the systab, e.g.
# fcrontab -e -u systab
2. Update fcron
3. Modify the systab again, notice the changes are reverted.
This task depends upon

Closed by  Thorsten Töpper (Atsutane)
Saturday, 14 June 2014, 11:13 GMT
Reason for closing:  Implemented
Additional comments about closing:  3.1.3-2
Comment by Sébastien Luttringer (seblu) - Monday, 02 June 2014, 21:31 GMT
Why are you customizing systab file? Using root crontab is not a suitable solution?
Comment by Martin Nyolt (PapaNappa) - Tuesday, 03 June 2014, 07:38 GMT
Using root's crontab is just a work-around. :)
Upstream provides this functionality of having a "system crontab", and the current package breaks this.

Furthermore, if I would like to change the interval or dates when the scripts in /etc/cron.*/ are executed, I would have to modify the systab nonetheless.
This is because these are the default entries in the systab.
Having them in the root crontab would make them execute twice after updates.

Best regards,
Martin
Comment by Xavion (Xavion) - Saturday, 14 June 2014, 00:12 GMT
Yes, please stop the "/var/spool/fcron/systab.orig" file from being overwritten when upgrading this package.

Loading...