Bug 14728

Summary: Add --without-cron option to disable installing the cron job
Product: Location Database Reporter: Petr Pisar <ppisar>
Component: liblocAssignee: Michael Tremer <michael.tremer>
Status: MODIFIED --- QA Contact: Peter Müller <peter.mueller>
Severity: Minor Usability    
Priority: - Unknown -    
Version: unspecified   
Hardware: unspecified   
OS: Linux   
Attachments: Proposed fix

Description Petr Pisar 2026-10-27 13:14:34 UTC
Created attachment 1799 [details]
Proposed fix

On operating systems which only support systemd installing the cron job is pointless.

An attached patch adds --without-cron configure option to disable installing the job.
Comment 1 Michael Tremer 2026-10-27 14:17:19 UTC
https://git.ipfire.org/?p=location/libloc.git;a=commit;h=872580a981dcd7aa8b58ea52b4602e8c8d7bf3a6

Author: Michael Tremer <michael.tremer@ipfire.org>

Makefile: Only install the cron job if there is no systemd timer

On systems with systemd the timer updates the database, so that the
cron job is pointless there.

Fixes: #14728 - Add --without-cron option to disable installing the cron job
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Comment 2 Michael Tremer 2026-10-27 14:22:09 UTC
Hello Petr,

thanks for opening this, I missed your proposed fix, but I thought we should not install the crontab if systemd (timer) is supported. Would my proposed change be acceptable for you, or do you require the configure switch?
Comment 3 Petr Pisar 2026-10-27 16:23:07 UTC
I don't need the option (Fedora has only systemd).

My patch made systemd timer and cron table independend because of the original comment in the Makefile.am. I suppose that Debian supports systems without systemd and that means that Debian maintainers need to package both the systemd timer and the cron table.
Comment 4 Michael Tremer 2026-10-28 10:34:39 UTC
Okay, I will leave it as is then. The Debian people sadly didn't want an account on here, so I cannot easily Cc them to find out what they would prefer.