1 |
commit: 65bcd33f0e024cfd20ddc58852d20dd392a422d4 |
2 |
Author: José María Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 25 09:11:38 2016 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 25 09:12:18 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65bcd33f |
7 |
|
8 |
app-admin/logrotate: Drop old patches |
9 |
|
10 |
.../logrotate/files/logrotate-3.8.9-Werror.patch | 12 ----- |
11 |
.../files/logrotate-3.8.9-atomic-create.patch | 43 ---------------- |
12 |
.../logrotate/files/logrotate-3.8.9-fbsd.patch | 57 ---------------------- |
13 |
.../files/logrotate-3.8.9-ignore-hidden.patch | 14 ------ |
14 |
.../files/logrotate-3.8.9-noasprintf.patch | 55 --------------------- |
15 |
5 files changed, 181 deletions(-) |
16 |
|
17 |
diff --git a/app-admin/logrotate/files/logrotate-3.8.9-Werror.patch b/app-admin/logrotate/files/logrotate-3.8.9-Werror.patch |
18 |
deleted file mode 100644 |
19 |
index 53570e1..0000000 |
20 |
--- a/app-admin/logrotate/files/logrotate-3.8.9-Werror.patch |
21 |
+++ /dev/null |
22 |
@@ -1,12 +0,0 @@ |
23 |
-diff -Nuar a/Makefile.am b/Makefile.am |
24 |
---- a/Makefile.am 2015-02-13 07:11:21.000000000 +0100 |
25 |
-+++ b/Makefile.am 2015-03-01 11:19:47.279999912 +0100 |
26 |
-@@ -1,7 +1,7 @@ |
27 |
- MAN = logrotate.8 |
28 |
- MAN5 = logrotate.conf.5 |
29 |
- |
30 |
--AM_CFLAGS = -Wall -Werror |
31 |
-+AM_CFLAGS = -Wall |
32 |
- sbin_PROGRAMS = logrotate |
33 |
- logrotate_SOURCES = logrotate.c log.c config.c basenames.c |
34 |
- |
35 |
|
36 |
diff --git a/app-admin/logrotate/files/logrotate-3.8.9-atomic-create.patch b/app-admin/logrotate/files/logrotate-3.8.9-atomic-create.patch |
37 |
deleted file mode 100644 |
38 |
index dbb2063..0000000 |
39 |
--- a/app-admin/logrotate/files/logrotate-3.8.9-atomic-create.patch |
40 |
+++ /dev/null |
41 |
@@ -1,43 +0,0 @@ |
42 |
-diff -Nuar a/logrotate.c b/logrotate.c |
43 |
---- a/logrotate.c 2015-03-01 11:50:36.569999862 +0100 |
44 |
-+++ b/logrotate.c 2015-03-01 11:56:26.329999853 +0100 |
45 |
-@@ -372,15 +372,18 @@ |
46 |
- int createOutputFile(char *fileName, int flags, struct stat *sb, acl_type acl, int force_mode) |
47 |
- { |
48 |
- int fd; |
49 |
-- struct stat sb_create; |
50 |
-- int acl_set = 0; |
51 |
-- |
52 |
-- fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW), |
53 |
-- (S_IRUSR | S_IWUSR) & sb->st_mode); |
54 |
-+ int acl_set = 0; |
55 |
-+ struct stat sb_create; |
56 |
-+ char template[PATH_MAX + 1]; |
57 |
-+ mode_t umask_value; |
58 |
-+ snprintf(template, PATH_MAX, "%s/logrotate_temp.XXXXXX", ourDirName(fileName)); |
59 |
-+ umask_value = umask(0000); |
60 |
-+ fd = mkostemp(template, (flags | O_EXCL | O_NOFOLLOW)); |
61 |
-+ umask(umask_value); |
62 |
- |
63 |
- if (fd < 0) { |
64 |
-- message(MESS_ERROR, "error creating output file %s: %s\n", |
65 |
-- fileName, strerror(errno)); |
66 |
-+ message(MESS_ERROR, "error creating unique temp file: %s\n", |
67 |
-+ strerror(errno)); |
68 |
- return -1; |
69 |
- } |
70 |
- if (fchmod(fd, (S_IRUSR | S_IWUSR) & sb->st_mode)) { |
71 |
-@@ -431,6 +434,13 @@ |
72 |
- } |
73 |
- } |
74 |
- |
75 |
-+ if (rename(template, fileName)) { |
76 |
-+ message(MESS_ERROR, "error renaming temp file to %s: %s\n", |
77 |
-+ fileName, strerror(errno)); |
78 |
-+ close(fd); |
79 |
-+ return -1; |
80 |
-+ } |
81 |
-+ |
82 |
- return fd; |
83 |
- } |
84 |
- |
85 |
|
86 |
diff --git a/app-admin/logrotate/files/logrotate-3.8.9-fbsd.patch b/app-admin/logrotate/files/logrotate-3.8.9-fbsd.patch |
87 |
deleted file mode 100644 |
88 |
index 4c6c8cf..0000000 |
89 |
--- a/app-admin/logrotate/files/logrotate-3.8.9-fbsd.patch |
90 |
+++ /dev/null |
91 |
@@ -1,57 +0,0 @@ |
92 |
-diff -Nuar a/config.c b/config.c |
93 |
---- a/config.c 2015-03-01 11:25:37.489999902 +0100 |
94 |
-+++ b/config.c 2015-03-01 11:26:31.129999901 +0100 |
95 |
-@@ -1,6 +1,6 @@ |
96 |
- #include "queue.h" |
97 |
- /* Alloca is defined in stdlib.h in NetBSD */ |
98 |
--#ifndef __NetBSD__ |
99 |
-+#if !defined(__NetBSD__) && !defined(__FreeBSD__) |
100 |
- #include <alloca.h> |
101 |
- #endif |
102 |
- #include <limits.h> |
103 |
-@@ -24,6 +24,10 @@ |
104 |
- #include <fnmatch.h> |
105 |
- #include <sys/mman.h> |
106 |
- |
107 |
-+#if !defined(PATH_MAX) && defined(__FreeBSD__) |
108 |
-+#include <sys/param.h> |
109 |
-+#endif |
110 |
-+ |
111 |
- #include "basenames.h" |
112 |
- #include "log.h" |
113 |
- #include "logrotate.h" |
114 |
-diff -Nuar a/logrotate.c b/logrotate.c |
115 |
---- a/logrotate.c 2015-02-13 07:11:21.000000000 +0100 |
116 |
-+++ b/logrotate.c 2015-03-01 11:27:05.769999900 +0100 |
117 |
-@@ -1,6 +1,6 @@ |
118 |
- #include "queue.h" |
119 |
- /* alloca() is defined in stdlib.h in NetBSD */ |
120 |
--#ifndef __NetBSD__ |
121 |
-+#if !defined(__NetBSD__) && !defined(__FreeBSD__) |
122 |
- #include <alloca.h> |
123 |
- #endif |
124 |
- #include <limits.h> |
125 |
-@@ -25,6 +25,10 @@ |
126 |
- #include <limits.h> |
127 |
- #endif |
128 |
- |
129 |
-+#if !defined(PATH_MAX) && defined(__FreeBSD__) |
130 |
-+#include <sys/param.h> |
131 |
-+#endif |
132 |
-+ |
133 |
- #include "basenames.h" |
134 |
- #include "log.h" |
135 |
- #include "logrotate.h" |
136 |
-diff -Nuar a/Makefile b/Makefile |
137 |
---- a/Makefile 2015-02-13 07:11:21.000000000 +0100 |
138 |
-+++ b/Makefile 2015-03-01 11:27:27.209999900 +0100 |
139 |
-@@ -22,7 +22,9 @@ |
140 |
- |
141 |
- ifeq ($(WITH_ACL),yes) |
142 |
- CFLAGS += -DWITH_ACL |
143 |
-+ifneq ($(OS_NAME),FreeBSD) |
144 |
- LOADLIBES += -lacl |
145 |
-+endif |
146 |
- # See pretest |
147 |
- TEST_ACL=1 |
148 |
- else |
149 |
|
150 |
diff --git a/app-admin/logrotate/files/logrotate-3.8.9-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.8.9-ignore-hidden.patch |
151 |
deleted file mode 100644 |
152 |
index d092668..0000000 |
153 |
--- a/app-admin/logrotate/files/logrotate-3.8.9-ignore-hidden.patch |
154 |
+++ /dev/null |
155 |
@@ -1,14 +0,0 @@ |
156 |
-diff -Nuar a/config.c b/config.c |
157 |
---- a/config.c 2015-02-13 07:11:21.000000000 +0100 |
158 |
-+++ b/config.c 2015-03-01 10:51:09.669999958 +0100 |
159 |
-@@ -359,7 +359,9 @@ |
160 |
- char *pattern; |
161 |
- |
162 |
- /* Check if fname is '.' or '..'; if so, return false */ |
163 |
-- if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2]))) |
164 |
-+ /* Don't include 'hidden' files either; this breaks Gentoo |
165 |
-+ portage config file management http://bugs.gentoo.org/87683 */ |
166 |
-+ if (fname[0] == '.') |
167 |
- return 0; |
168 |
- |
169 |
- /* Check if fname is ending in a taboo-extension; if so, return false */ |
170 |
|
171 |
diff --git a/app-admin/logrotate/files/logrotate-3.8.9-noasprintf.patch b/app-admin/logrotate/files/logrotate-3.8.9-noasprintf.patch |
172 |
deleted file mode 100644 |
173 |
index aee5702..0000000 |
174 |
--- a/app-admin/logrotate/files/logrotate-3.8.9-noasprintf.patch |
175 |
+++ /dev/null |
176 |
@@ -1,55 +0,0 @@ |
177 |
-diff -Nuar a/config.c b/config.c |
178 |
---- a/config.c 2015-03-01 10:58:18.689999946 +0100 |
179 |
-+++ b/config.c 2015-03-01 11:04:20.899999937 +0100 |
180 |
-@@ -49,39 +49,6 @@ |
181 |
- #include "asprintf.c" |
182 |
- #endif |
183 |
- |
184 |
--#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) |
185 |
--#include <stdarg.h> |
186 |
-- |
187 |
--int asprintf(char **string_ptr, const char *format, ...) |
188 |
--{ |
189 |
-- va_list arg; |
190 |
-- char *str; |
191 |
-- int size; |
192 |
-- int rv; |
193 |
-- |
194 |
-- va_start(arg, format); |
195 |
-- size = vsnprintf(NULL, 0, format, arg); |
196 |
-- size++; |
197 |
-- va_start(arg, format); |
198 |
-- str = malloc(size); |
199 |
-- if (str == NULL) { |
200 |
-- va_end(arg); |
201 |
-- /* |
202 |
-- * Strictly speaking, GNU asprintf doesn't do this, |
203 |
-- * but the caller isn't checking the return value. |
204 |
-- */ |
205 |
-- fprintf(stderr, "failed to allocate memory\\n"); |
206 |
-- exit(1); |
207 |
-- } |
208 |
-- rv = vsnprintf(str, size, format, arg); |
209 |
-- va_end(arg); |
210 |
-- |
211 |
-- *string_ptr = str; |
212 |
-- return (rv); |
213 |
--} |
214 |
-- |
215 |
--#endif |
216 |
-- |
217 |
- #if !defined(strndup) |
218 |
- char *strndup(const char *s, size_t n) |
219 |
- { |
220 |
-diff -Nuar a/logrotate.h b/logrotate.h |
221 |
---- a/logrotate.h 2015-02-13 07:11:21.000000000 +0100 |
222 |
-+++ b/logrotate.h 2015-03-01 11:04:55.739999936 +0100 |
223 |
-@@ -80,8 +80,5 @@ |
224 |
- extern int debug; |
225 |
- |
226 |
- int readAllConfigPaths(const char **paths); |
227 |
--#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) |
228 |
--int asprintf(char **string_ptr, const char *format, ...); |
229 |
--#endif |
230 |
- |
231 |
- #endif |