Bug 14728 - Add --without-cron option to disable installing the cron job
Summary: Add --without-cron option to disable installing the cron job
Status: MODIFIED
Alias: None
Product: Location Database
Classification: Unclassified
Component: libloc (show other bugs)
Version: unspecified
Hardware: unspecified Linux
: - Unknown - Minor Usability
Assignee: Michael Tremer
QA Contact: Peter Müller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-10-27 13:14 UTC by Petr Pisar
Modified: 2026-10-28 10:34 UTC (History)
0 users

See Also:


Attachments
Proposed fix (1.88 KB, patch)
2026-10-27 13:14 UTC, Petr Pisar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.