Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package cronie for openSUSE:Factory checked in at 2021-09-03 21:25:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cronie (Old) and /work/SRC/openSUSE:Factory/.cronie.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cronie" Fri Sep 3 21:25:57 2021 rev:82 rq:914974 version:unknown Changes: -------- --- /work/SRC/openSUSE:Factory/cronie/cronie.changes 2021-03-18 22:54:13.135484059 +0100 +++ /work/SRC/openSUSE:Factory/.cronie.new.1899/cronie.changes 2021-09-03 21:26:45.554213511 +0200 @@ -1,0 +2,20 @@ +Mon Aug 30 07:18:09 UTC 2021 - Danilo Spinella <danilo.spine...@suse.com> + +- Change default configuration to use run-parts from debianutils + instead of run-crons +- Remove cronie-anacron-1.4.7-run-crons.patch to make anacron use + run-parts + +------------------------------------------------------------------- +Sat May 8 20:33:29 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- update to 1.5.7: + * anacron: Fix problem of anacron not being started on some desktops + * crontab: switch off colors if NO_COLOR is set + * crontab: crontab without arguments now works if stdin is not a TTY + * crond: Fix various issues on loading the crontab databases on startup + * anacron: Expand MAILTO and MAILFROM environment variables + * crontab: New option to test crontab file syntax without installing it +- cronie-nheader_lines.diff: refresh against 1.5.7 + +------------------------------------------------------------------- Old: ---- cronie-1.5.5.tar.gz cronie-anacron-1.4.7-run-crons.patch New: ---- cronie-1.5.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cronie.spec ++++++ --- /var/tmp/diff_new_pack.Rkbj3r/_old 2021-09-03 21:26:46.154214137 +0200 +++ /var/tmp/diff_new_pack.Rkbj3r/_new 2021-09-03 21:26:46.158214141 +0200 @@ -22,7 +22,7 @@ %define _fillupdir %{_localstatedir}/adm/fillup-templates %endif Name: cronie -Version: 1.5.5 +Version: 1.5.7 Release: 0 Summary: Cron Daemon License: BSD-3-Clause AND GPL-2.0-only AND MIT @@ -44,8 +44,6 @@ Patch4: cronie-nheader_lines.diff # we use cron.pid instead of crond.pid Patch5: cronie-crond_pid.diff -# PATCH-FIX-UPSTREAM use run-crons instead of run-parts for anacron (bnc#689494) -Patch8: cronie-anacron-1.4.7-run-crons.patch Patch12: cronie-piddir.patch # PATCH-FIX-SUSE the first occurance of "/etc/anacrontab" was replaced by "/etc/crontab" # in manpage file because the /etc/crontab is still used in SUSE. @@ -60,6 +58,7 @@ Requires: mail Requires(post): %fillup_prereq Requires(post): permissions +Requires(post): debianutils Requires(pre): cron Suggests: mailx Conflicts: cron <= 4.1 @@ -105,7 +104,6 @@ %patch3 -p1 %patch4 %patch5 -p1 -%patch8 -p1 cp %{SOURCE7} ./cron_to_cronie.README %patch12 -p1 %patch13 -p1 ++++++ cronie-1.5.5.tar.gz -> cronie-1.5.7.tar.gz ++++++ ++++ 3422 lines of diff (skipped) ++++++ cronie-nheader_lines.diff ++++++ --- /var/tmp/diff_new_pack.Rkbj3r/_old 2021-09-03 21:26:46.290214279 +0200 +++ /var/tmp/diff_new_pack.Rkbj3r/_new 2021-09-03 21:26:46.290214279 +0200 @@ -9,27 +9,23 @@ -#define NHEADER_LINES 0 +#define NHEADER_LINES 3 - #define COMMENT_COLOR "\x1B[34m" - #define RESET_COLOR "\033[0m" -@@ -394,7 +394,7 @@ static void parse_args(int argc, char *a + #define COMMENT_COLOR "\x1B[34m" + #define ERROR_COLOR "\x1B[31m" +@@ -418,7 +418,7 @@ static void parse_args(int argc, char *a static void list_cmd(void) { char n[MAX_FNAME]; FILE *f; - int ch; + int ch, x; - const int is_tty = isatty(STDOUT); + const int colorize = isatty(STDOUT) && getenv("NO_COLOR") == NULL; int new_line = 1; - -@@ -411,9 +411,25 @@ static void list_cmd(void) { - exit(ERROR_EXIT); - } - -- /* file is open. copy to stdout, close. -- */ - Set_LineNum(1) -+ -+ /* ignore the top few comments since we probably put them there. -+ */ + int in_comment = 0; +@@ -439,6 +439,22 @@ static void list_cmd(void) { + /* file is open. copy to stdout, close. + */ + Set_LineNum(1); ++ /* ignore the top few comments since we probably put them there. ++ */ + x = 0; + while (EOF != (ch = get_char(f))) { + if ('#' != ch) { @@ -37,18 +33,17 @@ + break; + } + while (EOF != (ch = get_char(f))) -+ if (ch == '\n') -+ break; ++ if (ch == '\n') ++ break; + if (++x >= NHEADER_LINES) + break; + } -+ + /* copy the rest of the crontab (if any) to the stdout. + */ while (EOF != (ch = get_char(f))) { - if (is_tty && new_line) { - if (ch == '#') { -@@ -500,7 +516,7 @@ static void edit_cmd(void) { + if (colorize) { + if (!in_comment && new_line && ch == '#') { +@@ -533,7 +549,7 @@ static void edit_cmd(void) { char n[MAX_FNAME], q[MAX_TEMPSTR]; const char *editor; FILE *f; @@ -57,20 +52,15 @@ struct stat statbuf; struct utimbuf utimebuf; WAIT_T waiter; -@@ -552,13 +568,25 @@ static void edit_cmd(void) { +@@ -585,10 +601,20 @@ static void edit_cmd(void) { } - Set_LineNum(1) -- /* -- * NHEADER_LINES processing removed for clarity -- * (NHEADER_LINES == 0 in all Red Hat crontabs) -- */ -- /* copy the rest of the crontab (if any) to the temp file. -- */ -- if (EOF != ch) -+ + Set_LineNum(1); +- /* +- * NHEADER_LINES processing removed for clarity +- * (NHEADER_LINES == 0 in all Red Hat crontabs) + /* ignore the top few comments since we probably put them there. -+ */ + */ + x = 0; + while (EOF != (ch = get_char(f))) { + if ('#' != ch) { @@ -79,26 +69,22 @@ + } + while (EOF != (ch = get_char(f))) + if (ch == '\n') -+ break; -+ if (++x >= NHEADER_LINES) -+ break; ++ break; ++ if (++x >= NHEADER_LINES) ++ break; + } -+ -+ /* copy the rest of the crontab (if any) to the temp file. -+ */ -+ if (EOF != ch) - while (EOF != (ch = get_char(f))) - putc(ch, NewCrontab); - -@@ -766,6 +794,7 @@ static int replace_cmd(void) { + /* copy the rest of the crontab (if any) to the temp file. + */ + if (EOF != ch) +@@ -812,6 +838,7 @@ static int replace_cmd(void) { + int ch, fd; int error = 0; - entry *e; uid_t file_owner; + time_t now = time(NULL); - char **envp; char *safename; - int envs = 0, entries = 0; -@@ -796,10 +825,10 @@ static int replace_cmd(void) { + + safename = host_specific_filename("#tmp", "XXXXXXXXXX"); +@@ -839,10 +866,10 @@ static int replace_cmd(void) { * * VERY IMPORTANT: make sure NHEADER_LINES agrees with this code. */ ++++++ sample.root ++++++ --- /var/tmp/diff_new_pack.Rkbj3r/_old 2021-09-03 21:26:46.346214337 +0200 +++ /var/tmp/diff_new_pack.Rkbj3r/_new 2021-09-03 21:26:46.346214337 +0200 @@ -12,5 +12,8 @@ # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed --*/15 * * * * root test -x /usr/libexec/cron/run-crons && /usr/libexec/cron/run-crons >/dev/null 2>&1 +@hourly root run-parts /etc/cron.hourly +@daily root run-parts /etc/cron.daily +@weekly root run-parts /etc/cron.weekly +@monthly root run-parts /etc/cron.monthly