Hello community, here is the log from the commit of package logrotate for openSUSE:Factory checked in at 2013-07-27 15:47:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/logrotate (Old) and /work/SRC/openSUSE:Factory/.logrotate.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "logrotate" Changes: -------- --- /work/SRC/openSUSE:Factory/logrotate/logrotate.changes 2013-04-17 23:06:10.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.logrotate.new/logrotate.changes 2013-07-27 15:48:01.000000000 +0200 @@ -1,0 +2,59 @@ +Thu Jul 25 14:19:48 UTC 2013 - [email protected] + +- update to 3.8.5 + * dropped logrotate-3.7.9-compressoptions.patch (upstream) + * refreshed other patches + Changelog: + - Improved rotation during daylight saving time and between timezone + changes. + - Fixed ACL setting problem caused by ext3 erroneously reporting ENOSYS + instead of ENOSUP. + - Do not continue with rotation if state file is corrupted. + - Make logrotate.status creation atomic. + - Allow "hourly" rotation. See manpage for more information. + - Use "/bin/echo" in tests. Fixes tests execution in Dash. + - Do no try to parse config files bigger than 16MB. + - Improved manpage consistency and formatting. + - Fix race condition between acl_set_fd() and fchmod(). + - Added --version command line option + - Disable ACL tests if logrotate is not compiled WITH_ACL support or if + ACLs are not supported by the system running tests + - Disable SELinux tests if logrotate is not compiled WITH_SELINUX support + or if SELinux is not supported by the system running tests + - Fixed bug which prevented skipping particular log file config + if the config contained errors. + - Fixed skipping of configs containing firstaction/lastaction scripts + with '}' character in case of error before these scripts. + - Support also 'K' unit for *size directives. + - Added preremove option to let admin to do something with the old logs + before they are removed by logrotate. + - Fixed possible loop in tabooext parsing. + - Move code to set SELinux context before compressLogFile calls to create + compressed log files with the proper context. + - Call prerotate/postrotate script only for really rotated files in + nosharedscripts mode (as stated in man page). + - Fixed setting "size" bigger than 4GB on 32bit architectures + - Do not overwrite mode set by "create" option when using ACL. "create" + directive is now not mixed up with ACLs. If you use "create" in config + file and log file has some ACLs set, ACLs are not kept and are + overwritten by the mode set in "create" directive. + - Mode argument in "create" directive can be omitted. Only owner and group + is set in this case. Check man page for more info. + - show error and ignore config if '{' is not present after log files + declaration + - support whitespaces in compressoptions directive + - support for tilde expansion in config files + - 'su' directive does not affect script execution - scripts + are executed as a root if 'su' directive is present + - fixed mail sending for 'mailfirst', 'dateext' and 'delaycompress' + combination + - do not use gzip/gunzip from /usr/local on Solaris + - add O_NOFOLLOW when opening files as safeguard against symlink tricks. + Symlinks rotation is now officially unsupported. It didn't work + as expected in the past anyway. + - do not run external programs with uid != euid + - fixed potential bad-free when ACL is used + - Do not include alloca.h on NetBSD, since alloca() is declared in + stdlib.h there + +------------------------------------------------------------------- Old: ---- logrotate-3.7.9-compressoptions.patch logrotate-3.8.1.tar.gz New: ---- logrotate-3.8.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ logrotate.spec ++++++ --- /var/tmp/diff_new_pack.iTnZMl/_old 2013-07-27 15:48:02.000000000 +0200 +++ /var/tmp/diff_new_pack.iTnZMl/_new 2013-07-27 15:48:02.000000000 +0200 @@ -19,7 +19,7 @@ Url: https://fedorahosted.org/releases/l/o/logrotate Name: logrotate -Version: 3.8.1 +Version: 3.8.5 Release: 0 Summary: Rotate, compress, remove, and mail system log files License: GPL-2.0+ @@ -31,8 +31,6 @@ Patch2: logrotate-3.7.8-autoext.patch Patch3: logrotate-3.7.8-addextension.patch Patch4: logrotate-3.7.8-mess_err.patch -# PATCH-FIX-UPSTREAM allow separated compressoptions (bnc#711780) -Patch8: logrotate-3.7.9-compressoptions.patch BuildRequires: libselinux-devel BuildRequires: popt-devel PreReq: %fillup_prereq @@ -57,7 +55,6 @@ %patch2 %patch3 %patch4 -%patch8 -p1 %build make %{?_smp_mflags} CC="%__cc" RPM_OPT_FLAGS="%{optflags}" WITH_SELINUX=yes ++++++ logrotate-3.7.8-addextension.patch ++++++ --- /var/tmp/diff_new_pack.iTnZMl/_old 2013-07-27 15:48:02.000000000 +0200 +++ /var/tmp/diff_new_pack.iTnZMl/_new 2013-07-27 15:48:02.000000000 +0200 @@ -1,16 +1,16 @@ Index: test/test =================================================================== ---- test/test.orig -+++ test/test -@@ -427,4 +427,26 @@ test.log 0 - test.log.1 0 zero - EOF +--- test/test.orig 2013-07-25 14:13:04.195582354 +0200 ++++ test/test 2013-07-25 14:14:27.468464841 +0200 +@@ -1285,6 +1285,28 @@ echo "Does not have GNU Date, skipping p + fi + +# check rotation with extension appended to the filename -+cleanup 17 ++cleanup 100 + -+preptest test.log 17 1 0 -+$RLR test-config.17 --force ++preptest test.log 100 1 0 ++$RLR test-config.100 --force + +checkoutput <<EOF +test.log 0 @@ -18,30 +18,32 @@ +EOF + +# check rotation with extension moved after the number -+cleanup 18 ++cleanup 101 + -+preptest test.log 18 1 0 -+$RLR test-config.18 --force ++preptest test.log 101 1 0 ++$RLR test-config.101 --force + +checkoutput <<EOF +test.log 0 +test.1.log 0 zero +EOF + - # cleanup + + + cleanup Index: config.c =================================================================== ---- config.c.orig -+++ config.c -@@ -519,6 +519,7 @@ int readAllConfigPaths(const char **path - .last = NULL, +--- config.c.orig 2013-07-25 14:13:02.780567373 +0200 ++++ config.c 2013-07-25 14:13:04.196582364 +0200 +@@ -530,6 +530,7 @@ int readAllConfigPaths(const char **path + .preremove = NULL, .logAddress = NULL, .extension = NULL, + .addextension = NULL, .compress_prog = NULL, .uncompress_prog = NULL, .compress_ext = NULL, -@@ -1177,6 +1178,19 @@ static int readConfigFile(const char *co +@@ -1217,6 +1218,19 @@ static int readConfigFile(const char *co message(MESS_DEBUG, "extension is now %s\n", newlog->extension); @@ -63,10 +65,10 @@ Index: logrotate.8 =================================================================== ---- logrotate.8.orig -+++ logrotate.8 -@@ -248,6 +248,15 @@ appears after \fIext\fR. For example you - and want to rotate it to mylog.1.foo.gz instead of mylog.foo.1.gz. +--- logrotate.8.orig 2013-07-25 14:13:02.780567373 +0200 ++++ logrotate.8 2013-07-25 14:13:04.196582364 +0200 +@@ -265,6 +265,15 @@ configured to be run by cron daily. You + and run \fIlogrotate\fR hourly to be able to really rotate logs hourly. .TP +\fBaddextension \fIext\fR @@ -83,9 +85,9 @@ option (\fBifempty\fR is the default). Index: logrotate.c =================================================================== ---- logrotate.c.orig -+++ logrotate.c -@@ -867,6 +867,24 @@ int prerotateSingleLog(struct logInfo *l +--- logrotate.c.orig 2013-07-25 14:13:02.781567384 +0200 ++++ logrotate.c 2013-07-25 14:13:04.196582364 +0200 +@@ -964,6 +964,24 @@ int prerotateSingleLog(struct logInfo *l rotNames->baseName = strdup(ourBaseName(log->files[logNum])); @@ -112,20 +114,20 @@ (rotNames-> Index: logrotate.h =================================================================== ---- logrotate.h.orig -+++ logrotate.h +--- logrotate.h.orig 2013-07-25 14:13:02.781567384 +0200 ++++ logrotate.h 2013-07-25 14:13:04.196582364 +0200 @@ -44,6 +44,7 @@ struct logInfo { - char *pre, *post, *first, *last; + char *pre, *post, *first, *last, *preremove; char *logAddress; char *extension; + char *addextension; char *compress_prog; char *uncompress_prog; char *compress_ext; -Index: test/test-config.17.in +Index: test/test-config.100.in =================================================================== ---- /dev/null -+++ test/test-config.17.in +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ test/test-config.100.in 2013-07-25 14:13:04.196582364 +0200 @@ -0,0 +1,7 @@ +create + @@ -134,10 +136,10 @@ + rotate 1 + addextension .newext +} -Index: test/test-config.18.in +Index: test/test-config.101.in =================================================================== ---- /dev/null -+++ test/test-config.18.in +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ test/test-config.101.in 2013-07-25 14:13:04.196582364 +0200 @@ -0,0 +1,7 @@ +create + ++++++ logrotate-3.7.8-autoext.patch ++++++ --- /var/tmp/diff_new_pack.iTnZMl/_old 2013-07-27 15:48:02.000000000 +0200 +++ /var/tmp/diff_new_pack.iTnZMl/_new 2013-07-27 15:48:02.000000000 +0200 @@ -1,8 +1,8 @@ Index: config.c =================================================================== ---- config.c.orig -+++ config.c -@@ -583,6 +583,7 @@ static int readConfigFile(const char *co +--- config.c.orig 2013-06-10 14:02:36.000000000 +0200 ++++ config.c 2013-07-25 15:42:42.465060702 +0200 +@@ -594,6 +594,7 @@ static int readConfigFile(const char *co char **scriptDest = NULL; struct logInfo *newlog = defConfig; char *start, *chptr; @@ -10,11 +10,12 @@ char *dirName; struct group *group; struct passwd *pw = NULL; -@@ -1205,6 +1206,18 @@ static int readConfigFile(const char *co +@@ -1245,6 +1246,20 @@ static int readConfigFile(const char *co message(MESS_DEBUG, "compress_prog is now %s\n", newlog->compress_prog); + compresscmd_base=strdup(basename(newlog->compress_prog)); ++ fprintf(stdout, "compress_ext is %s\n", newlog->compress_prog); + i=0; /* have to check whether we may do this! */ + /* we check whether we changed the compress_cmd. In case we use the apropriate extension + as listed in compress_cmd_list */ @@ -22,6 +23,7 @@ + if (0==strcmp(compress_cmd_list[i][0], compresscmd_base)){ + newlog->compress_ext=strdup((char *)compress_cmd_list[i][1]); + message(MESS_DEBUG, "compress_ext was changed to %s\n", newlog->compress_ext); ++ fprintf(stdout, "compress_ext was changed to %s\n", newlog->compress_ext); + i=-10; /* terminate loop! */ + } + i++; @@ -31,9 +33,9 @@ Index: logrotate.c =================================================================== ---- logrotate.c.orig -+++ logrotate.c -@@ -76,6 +76,16 @@ unsigned int hashSize; +--- logrotate.c.orig 2013-06-10 14:02:36.000000000 +0200 ++++ logrotate.c 2013-07-25 15:30:36.687434418 +0200 +@@ -85,6 +85,16 @@ unsigned int hashSize; int numLogs = 0; int debug = 0; char *mailCommand = DEFAULT_MAIL_COMMAND; @@ -52,8 +54,8 @@ static gid_t save_egid; Index: logrotate.h =================================================================== ---- logrotate.h.orig -+++ logrotate.h +--- logrotate.h.orig 2013-06-10 14:02:36.000000000 +0200 ++++ logrotate.h 2013-07-25 15:30:36.687434418 +0200 @@ -66,6 +66,9 @@ TAILQ_HEAD(logInfoHead, logInfo) logs; extern int numLogs; extern int debug; @@ -62,5 +64,29 @@ +extern const char * compress_cmd_list[][2]; + int readAllConfigPaths(const char **paths); - #if !defined(asprintf) + #if !defined(asprintf) && !defined(_FORTIFY_SOURCE) int asprintf(char **string_ptr, const char *format, ...); +Index: test/test +=================================================================== +--- test/test.orig 2013-07-25 15:30:36.687434418 +0200 ++++ test/test 2013-07-25 16:16:11.992044805 +0200 +@@ -536,19 +536,6 @@ checkoutput <<EOF + test.log 0 zero + EOF + +-cleanup 18 +- +-# ------------------------------- Test 18 ------------------------------------ +-preptest test.log 18 1 +-$RLR test-config.18 --force +- +-checkoutput <<EOF +-test.log 0 +-test.log.1.gz 1 zero +-EOF +- +-(echo "gzip -f -9") | diff -u - compress-args +- + cleanup 19 + + # ------------------------------- Test 19 ------------------------------------ ++++++ logrotate-3.7.8-mess_err.patch ++++++ --- /var/tmp/diff_new_pack.iTnZMl/_old 2013-07-27 15:48:02.000000000 +0200 +++ /var/tmp/diff_new_pack.iTnZMl/_new 2013-07-27 15:48:02.000000000 +0200 @@ -1,10 +1,10 @@ Index: logrotate.c =================================================================== ---- logrotate.c.orig -+++ logrotate.c -@@ -1206,7 +1206,7 @@ int prerotateSingleLog(struct logInfo *l +--- logrotate.c.orig 2013-07-25 14:52:57.493518089 +0200 ++++ logrotate.c 2013-07-25 14:52:57.499518158 +0200 +@@ -1327,7 +1327,7 @@ int prerotateSingleLog(struct logInfo *l + message(MESS_FATAL, "could not allocate destFile memory\n"); } - asprintf(&destFile, "%s%s", rotNames->finalName, compext); if (!stat(destFile, &fst_buf)) { - message(MESS_DEBUG, + message(MESS_ERROR, ++++++ logrotate-3.8.1.tar.gz -> logrotate-3.8.5.tar.gz ++++++ ++++ 3629 lines of diff (skipped) -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
