diff options
-rw-r--r-- | meta/recipes-extended/logrotate/logrotate/0001-Update-the-manual.patch (renamed from meta/recipes-extended/logrotate/logrotate/update-the-manual.patch) | 15 | ||||
-rw-r--r-- | meta/recipes-extended/logrotate/logrotate/act-as-mv-when-rotate.patch | 25 | ||||
-rw-r--r-- | meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch | 14 | ||||
-rw-r--r-- | meta/recipes-extended/logrotate/logrotate_3.16.0.bb (renamed from meta/recipes-extended/logrotate/logrotate_3.15.1.bb) | 6 |
4 files changed, 29 insertions, 31 deletions
diff --git a/meta/recipes-extended/logrotate/logrotate/update-the-manual.patch b/meta/recipes-extended/logrotate/logrotate/0001-Update-the-manual.patch index 725567e0c9..50a3852078 100644 --- a/meta/recipes-extended/logrotate/logrotate/update-the-manual.patch +++ b/meta/recipes-extended/logrotate/logrotate/0001-Update-the-manual.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From bf22e8805df69344f6f20cea390e829a22fa741b Mon Sep 17 00:00:00 2001 | 1 | From 3e2cfa88b6538bb0fee3d9a6e99622055d05ac4a Mon Sep 17 00:00:00 2001 |
2 | From: Robert Yang <liezhi.yang@windriver.com> | 2 | From: Robert Yang <liezhi.yang@windriver.com> |
3 | Date: Tue, 17 Feb 2015 21:14:37 -0800 | 3 | Date: Tue, 17 Feb 2015 21:14:37 -0800 |
4 | Subject: [PATCH] Update the manual | 4 | Subject: [PATCH] Update the manual |
@@ -8,23 +8,24 @@ Update the manual for rotating on different filesystems. | |||
8 | Upstream-Status: Pending | 8 | Upstream-Status: Pending |
9 | 9 | ||
10 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | 10 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
11 | |||
11 | --- | 12 | --- |
12 | logrotate.8.in | 10 ++++------ | 13 | logrotate.8.in | 10 ++++------ |
13 | 1 file changed, 4 insertions(+), 6 deletions(-) | 14 | 1 file changed, 4 insertions(+), 6 deletions(-) |
14 | 15 | ||
15 | diff --git a/logrotate.8.in b/logrotate.8.in | 16 | diff --git a/logrotate.8.in b/logrotate.8.in |
16 | index 951e406..581bf48 100644 | 17 | index 98fea91..70b4c44 100644 |
17 | --- a/logrotate.8.in | 18 | --- a/logrotate.8.in |
18 | +++ b/logrotate.8.in | 19 | +++ b/logrotate.8.in |
19 | @@ -445,12 +445,10 @@ Do not rotate the log if it is empty (this overrides the \fBifempty\fR option). | 20 | @@ -202,12 +202,10 @@ at all (use with caution, may waste performance and disk space). Default is 0. |
20 | 21 | ||
21 | .TP | 22 | .TP |
22 | \fBolddir \fIdirectory\fR | 23 | \fBolddir \fIdirectory\fR |
23 | -Logs are moved into \fIdirectory\fR for rotation. The \fIdirectory\fR must be | 24 | -Logs are moved into \fIdirectory\fR for rotation. The \fIdirectory\fR must be |
24 | -on the same physical device as the log file being rotated, unless \fBcopy\fR, | 25 | -on the same physical device as the log file being rotated, unless \fBcopy\fR, |
25 | -\fBcopytruncate\fR or \fBrenamecopy\fR option is used. The \fIdirectory\fR | 26 | -\fBcopytruncate\fR or \fBrenamecopy\fR option is used. The \fIdirectory\fR |
26 | -is assumed to be relative to the directory holding the log file | 27 | -is assumed to be relative to the directory holding the log file |
27 | -unless an absolute path name is specified. When this option is used all | 28 | -unless an absolute path name is specified. When this option is used all |
28 | -old versions of the log end up in \fIdirectory\fR. This option may be | 29 | -old versions of the log end up in \fIdirectory\fR. This option may be |
29 | +Logs are moved into \fIdirectory\fR for rotation. The \fIdirectory\fR | 30 | +Logs are moved into \fIdirectory\fR for rotation. The \fIdirectory\fR |
30 | +is assumed to be relative to the directory holding the log file unless | 31 | +is assumed to be relative to the directory holding the log file unless |
@@ -34,5 +35,5 @@ index 951e406..581bf48 100644 | |||
34 | 35 | ||
35 | .TP | 36 | .TP |
36 | -- | 37 | -- |
37 | 1.8.3.1 | 38 | 2.24.0 |
38 | 39 | ||
diff --git a/meta/recipes-extended/logrotate/logrotate/act-as-mv-when-rotate.patch b/meta/recipes-extended/logrotate/logrotate/act-as-mv-when-rotate.patch index 79805b5148..acef5ccbe9 100644 --- a/meta/recipes-extended/logrotate/logrotate/act-as-mv-when-rotate.patch +++ b/meta/recipes-extended/logrotate/logrotate/act-as-mv-when-rotate.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From c637948ebab5aff5641700c5cf613321ca0a6e6b Mon Sep 17 00:00:00 2001 | 1 | From ef1ea905831c5bcd63e04149571c10d75ff8f028 Mon Sep 17 00:00:00 2001 |
2 | From: Robert Yang <liezhi.yang@windriver.com> | 2 | From: Robert Yang <liezhi.yang@windriver.com> |
3 | Date: Tue, 17 Feb 2015 21:08:07 -0800 | 3 | Date: Tue, 17 Feb 2015 21:08:07 -0800 |
4 | Subject: [PATCH] Act as the "mv" command when rotate log | 4 | Subject: [PATCH] Act as the "mv" command when rotate log |
@@ -9,15 +9,16 @@ read and write. | |||
9 | Upstream-Status: Pending | 9 | Upstream-Status: Pending |
10 | 10 | ||
11 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | 11 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
12 | |||
12 | --- | 13 | --- |
13 | logrotate.c | 71 ++++++++++++++++++++++++++++++++++++++++++++--------- | 14 | logrotate.c | 71 ++++++++++++++++++++++++++++++++++++++++++++--------- |
14 | 1 file changed, 59 insertions(+), 12 deletions(-) | 15 | 1 file changed, 59 insertions(+), 12 deletions(-) |
15 | 16 | ||
16 | diff --git a/logrotate.c b/logrotate.c | 17 | diff --git a/logrotate.c b/logrotate.c |
17 | index 54dac90..bf3ec23 100644 | 18 | index 25902bc..afa1a90 100644 |
18 | --- a/logrotate.c | 19 | --- a/logrotate.c |
19 | +++ b/logrotate.c | 20 | +++ b/logrotate.c |
20 | @@ -1360,6 +1360,53 @@ static int findNeedRotating(struct logInfo *log, int logNum, int force) | 21 | @@ -1434,6 +1434,53 @@ static int findNeedRotating(struct logInfo *log, int logNum, int force) |
21 | return 0; | 22 | return 0; |
22 | } | 23 | } |
23 | 24 | ||
@@ -71,7 +72,7 @@ index 54dac90..bf3ec23 100644 | |||
71 | /* find the rotated file with the highest index */ | 72 | /* find the rotated file with the highest index */ |
72 | static int findLastRotated(const struct logNames *rotNames, | 73 | static int findLastRotated(const struct logNames *rotNames, |
73 | const char *fileext, const char *compext) | 74 | const char *fileext, const char *compext) |
74 | @@ -1800,15 +1847,15 @@ static int prerotateSingleLog(struct logInfo *log, int logNum, | 75 | @@ -1911,15 +1958,15 @@ static int prerotateSingleLog(struct logInfo *log, int logNum, |
75 | } | 76 | } |
76 | 77 | ||
77 | message(MESS_DEBUG, | 78 | message(MESS_DEBUG, |
@@ -90,7 +91,7 @@ index 54dac90..bf3ec23 100644 | |||
90 | oldName, newName, strerror(errno)); | 91 | oldName, newName, strerror(errno)); |
91 | hasErrors = 1; | 92 | hasErrors = 1; |
92 | } | 93 | } |
93 | @@ -1891,21 +1938,21 @@ static int rotateSingleLog(struct logInfo *log, int logNum, | 94 | @@ -2002,10 +2049,10 @@ static int rotateSingleLog(struct logInfo *log, int logNum, |
94 | return 1; | 95 | return 1; |
95 | } | 96 | } |
96 | 97 | ||
@@ -104,7 +105,8 @@ index 54dac90..bf3ec23 100644 | |||
104 | log->files[logNum], tmpFilename, | 105 | log->files[logNum], tmpFilename, |
105 | strerror(errno)); | 106 | strerror(errno)); |
106 | hasErrors = 1; | 107 | hasErrors = 1; |
107 | } | 108 | @@ -2014,11 +2061,11 @@ static int rotateSingleLog(struct logInfo *log, int logNum, |
109 | free(tmpFilename); | ||
108 | } | 110 | } |
109 | else { | 111 | else { |
110 | - message(MESS_DEBUG, "renaming %s to %s\n", log->files[logNum], | 112 | - message(MESS_DEBUG, "renaming %s to %s\n", log->files[logNum], |
@@ -118,7 +120,7 @@ index 54dac90..bf3ec23 100644 | |||
118 | log->files[logNum], rotNames->finalName, | 120 | log->files[logNum], rotNames->finalName, |
119 | strerror(errno)); | 121 | strerror(errno)); |
120 | hasErrors = 1; | 122 | hasErrors = 1; |
121 | @@ -2297,7 +2344,7 @@ static int rotateLogSet(struct logInfo *log, int force) | 123 | @@ -2424,7 +2471,7 @@ static int rotateLogSet(struct logInfo *log, int force) |
122 | return hasErrors; | 124 | return hasErrors; |
123 | } | 125 | } |
124 | 126 | ||
@@ -127,7 +129,7 @@ index 54dac90..bf3ec23 100644 | |||
127 | { | 129 | { |
128 | struct logState *p; | 130 | struct logState *p; |
129 | FILE *f; | 131 | FILE *f; |
130 | @@ -2460,7 +2507,7 @@ static int writeState(const char *stateFilename) | 132 | @@ -2629,7 +2676,7 @@ static int writeState(const char *stateFilename) |
131 | fclose(f); | 133 | fclose(f); |
132 | 134 | ||
133 | if (error == 0) { | 135 | if (error == 0) { |
@@ -135,8 +137,8 @@ index 54dac90..bf3ec23 100644 | |||
135 | + if (mvFile(tmpFilename, stateFilename, log, prev_acl)) { | 137 | + if (mvFile(tmpFilename, stateFilename, log, prev_acl)) { |
136 | unlink(tmpFilename); | 138 | unlink(tmpFilename); |
137 | error = 1; | 139 | error = 1; |
138 | message(MESS_ERROR, "error renaming temp state file %s\n", | 140 | message(MESS_ERROR, "error renaming temp state file %s to %s\n", |
139 | @@ -2805,7 +2852,7 @@ int main(int argc, const char **argv) | 141 | @@ -2987,7 +3034,7 @@ int main(int argc, const char **argv) |
140 | rc |= rotateLogSet(log, force); | 142 | rc |= rotateLogSet(log, force); |
141 | 143 | ||
142 | if (!debug) | 144 | if (!debug) |
@@ -145,6 +147,3 @@ index 54dac90..bf3ec23 100644 | |||
145 | 147 | ||
146 | return (rc != 0); | 148 | return (rc != 0); |
147 | } | 149 | } |
148 | -- | ||
149 | 2.18.1 | ||
150 | |||
diff --git a/meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch b/meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch index 96ff098a3f..9ba531f815 100644 --- a/meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch +++ b/meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From e47796c8e8270a3d14f0b06af8a9e916c2225514 Mon Sep 17 00:00:00 2001 | 1 | From a3fdf3dbdd6ecc0f2550a765dcb9bb274bce8ea8 Mon Sep 17 00:00:00 2001 |
2 | From: Robert Yang <liezhi.yang@windriver.com> | 2 | From: Robert Yang <liezhi.yang@windriver.com> |
3 | Date: Tue, 8 Jan 2019 06:27:06 +0000 | 3 | Date: Tue, 8 Jan 2019 06:27:06 +0000 |
4 | Subject: [PATCH] Disable the check for different filesystems | 4 | Subject: [PATCH] Disable the check for different filesystems |
@@ -9,18 +9,19 @@ disable the check for different filesystems. | |||
9 | Upstream-Status: Pending | 9 | Upstream-Status: Pending |
10 | 10 | ||
11 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | 11 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
12 | |||
12 | --- | 13 | --- |
13 | config.c | 9 --------- | 14 | config.c | 9 --------- |
14 | 1 file changed, 9 deletions(-) | 15 | 1 file changed, 9 deletions(-) |
15 | 16 | ||
16 | diff --git a/config.c b/config.c | 17 | diff --git a/config.c b/config.c |
17 | index 633b843..99a4a3b 100644 | 18 | index f027c7e..026136c 100644 |
18 | --- a/config.c | 19 | --- a/config.c |
19 | +++ b/config.c | 20 | +++ b/config.c |
20 | @@ -1765,15 +1765,6 @@ duperror: | 21 | @@ -1873,15 +1873,6 @@ duperror: |
21 | goto error; | ||
22 | } | ||
23 | } | 22 | } |
23 | |||
24 | free(ld); | ||
24 | - | 25 | - |
25 | - if (sb.st_dev != sb2.st_dev | 26 | - if (sb.st_dev != sb2.st_dev |
26 | - && !(newlog->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY | LOG_FLAG_TMPFILENAME))) { | 27 | - && !(newlog->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY | LOG_FLAG_TMPFILENAME))) { |
@@ -33,6 +34,3 @@ index 633b843..99a4a3b 100644 | |||
33 | } | 34 | } |
34 | } | 35 | } |
35 | 36 | ||
36 | -- | ||
37 | 2.18.1 | ||
38 | |||
diff --git a/meta/recipes-extended/logrotate/logrotate_3.15.1.bb b/meta/recipes-extended/logrotate/logrotate_3.16.0.bb index 7c7d51b39e..2b6ee0a19a 100644 --- a/meta/recipes-extended/logrotate/logrotate_3.15.1.bb +++ b/meta/recipes-extended/logrotate/logrotate_3.16.0.bb | |||
@@ -21,12 +21,12 @@ UPSTREAM_CHECK_REGEX = "logrotate-(?P<pver>\d+(\.\d+)+).tar" | |||
21 | 21 | ||
22 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz \ | 22 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz \ |
23 | file://act-as-mv-when-rotate.patch \ | 23 | file://act-as-mv-when-rotate.patch \ |
24 | file://update-the-manual.patch \ | 24 | file://0001-Update-the-manual.patch \ |
25 | file://disable-check-different-filesystems.patch \ | 25 | file://disable-check-different-filesystems.patch \ |
26 | " | 26 | " |
27 | 27 | ||
28 | SRC_URI[md5sum] = "afe109afea749c306ff489203fde6beb" | 28 | SRC_URI[md5sum] = "faf729e0e24bfaafaa677bc6deb46ed8" |
29 | SRC_URI[sha256sum] = "491fec9e89f1372f02a0ab66579aa2e9d63cac5178dfa672c204c88e693a908b" | 29 | SRC_URI[sha256sum] = "442f6fdf61c349eeae5f76799878b88fe45a11c8863a38b618bac6988f4a7ce5" |
30 | 30 | ||
31 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)}" | 31 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)}" |
32 | 32 | ||