diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2022-03-22 12:46:14 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-03-24 09:45:25 -0700 |
commit | 6ebe45deb4e467feb8ff85da2b9d04ccc4dd4a30 (patch) | |
tree | 93fa84b3857db0c7b42f8333e1ddd0bf2d4644a8 | |
parent | 03e4ec7184b1303264640844562f2345dfed6650 (diff) | |
download | meta-openembedded-6ebe45deb4e467feb8ff85da2b9d04ccc4dd4a30.tar.gz |
postfix: upgrade 3.6.4 -> 3.6.5
ChangeLog:
https://www.postfix.org/announcements/postfix-3.6.5.html
* Drop 0006-correct-signature-of-closefrom-API.patch as the issue has
been fixed upstream.
* Update main.cf to eliminate startup warning:
postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=3.6" and "postfix reload"
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-daemons/postfix/files/0006-correct-signature-of-closefrom-API.patch | 104 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/postfix/files/main.cf | 2 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/postfix/postfix_3.6.5.bb (renamed from meta-networking/recipes-daemons/postfix/postfix_3.6.4.bb) | 3 |
3 files changed, 2 insertions, 107 deletions
diff --git a/meta-networking/recipes-daemons/postfix/files/0006-correct-signature-of-closefrom-API.patch b/meta-networking/recipes-daemons/postfix/files/0006-correct-signature-of-closefrom-API.patch deleted file mode 100644 index 95ca03b223..0000000000 --- a/meta-networking/recipes-daemons/postfix/files/0006-correct-signature-of-closefrom-API.patch +++ /dev/null | |||
@@ -1,104 +0,0 @@ | |||
1 | From 56bec31c4117fddee3a141bcca6c585aa8ddbbe2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 14 Jul 2021 18:08:30 -0700 | ||
4 | Subject: [PATCH] correct signature of closefrom() API | ||
5 | |||
6 | glibc 2.34 introduced this function and finds this error which has been | ||
7 | all along. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | src/util/sys_compat.c | 6 +++--- | ||
14 | src/util/sys_defs.h | 12 ++++++------ | ||
15 | 2 files changed, 9 insertions(+), 9 deletions(-) | ||
16 | |||
17 | diff --git a/src/util/sys_compat.c b/src/util/sys_compat.c | ||
18 | index 8bf8e58..c87f043 100644 | ||
19 | --- a/src/util/sys_compat.c | ||
20 | +++ b/src/util/sys_compat.c | ||
21 | @@ -286,7 +286,7 @@ int dup2_pass_on_exec(int oldd, int newd) | ||
22 | |||
23 | /* closefrom() - closes all file descriptors from the given one up */ | ||
24 | |||
25 | -int closefrom(int lowfd) | ||
26 | +void closefrom(int lowfd) | ||
27 | { | ||
28 | int fd_limit = open_limit(0); | ||
29 | int fd; | ||
30 | @@ -298,14 +298,14 @@ int closefrom(int lowfd) | ||
31 | */ | ||
32 | if (lowfd < 0) { | ||
33 | errno = EBADF; | ||
34 | - return (-1); | ||
35 | + return; | ||
36 | } | ||
37 | if (fd_limit > 500) | ||
38 | fd_limit = 500; | ||
39 | for (fd = lowfd; fd < fd_limit; fd++) | ||
40 | (void) close(fd); | ||
41 | |||
42 | - return (0); | ||
43 | + return; | ||
44 | } | ||
45 | |||
46 | #endif | ||
47 | diff --git a/src/util/sys_defs.h b/src/util/sys_defs.h | ||
48 | index 2e1c953..515de6c 100644 | ||
49 | --- a/src/util/sys_defs.h | ||
50 | +++ b/src/util/sys_defs.h | ||
51 | @@ -1509,7 +1509,7 @@ extern int setsid(void); | ||
52 | #endif | ||
53 | |||
54 | #ifndef HAS_CLOSEFROM | ||
55 | -extern int closefrom(int); | ||
56 | +extern void closefrom(int); | ||
57 | |||
58 | #endif | ||
59 | |||
60 | @@ -1563,7 +1563,7 @@ typedef int pid_t; | ||
61 | |||
62 | /* | ||
63 | * Clang-style attribute tests. | ||
64 | - * | ||
65 | + * | ||
66 | * XXX Without the unconditional test below, gcc 4.6 will barf on ``elif | ||
67 | * defined(__clang__) && __has_attribute(__whatever__)'' with error message | ||
68 | * ``missing binary operator before token "("''. | ||
69 | @@ -1577,7 +1577,7 @@ typedef int pid_t; | ||
70 | * warn for missing initializations and other trouble. However, OPENSTEP4 | ||
71 | * gcc 2.7.x cannot handle this so we define this only if NORETURN isn't | ||
72 | * already defined above. | ||
73 | - * | ||
74 | + * | ||
75 | * Data point: gcc 2.7.2 has __attribute__ (Wietse Venema) but gcc 2.6.3 does | ||
76 | * not (Clive Jones). So we'll set the threshold at 2.7. | ||
77 | */ | ||
78 | @@ -1653,12 +1653,12 @@ typedef int pid_t; | ||
79 | * write to output parameters (for example, stat- or scanf-like functions) | ||
80 | * or from functions that have other useful side effects (for example, | ||
81 | * fseek- or rename-like functions). | ||
82 | - * | ||
83 | + * | ||
84 | * DO NOT use this for functions that write to a stream; it is entirely | ||
85 | * legitimate to detect write errors with fflush() or fclose() only. On the | ||
86 | * other hand most (but not all) functions that read from a stream must | ||
87 | * never ignore result values. | ||
88 | - * | ||
89 | + * | ||
90 | * XXX Prepending "(void)" won't shut up GCC. Clang behaves as expected. | ||
91 | */ | ||
92 | #if ((__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || __GNUC__ > 3) | ||
93 | @@ -1739,7 +1739,7 @@ typedef const char *CONST_CHAR_STAR; | ||
94 | * Safety. On some systems, ctype.h misbehaves with non-ASCII or negative | ||
95 | * characters. More importantly, Postfix uses the ISXXX() macros to ensure | ||
96 | * protocol compliance, so we have to rule out non-ASCII characters. | ||
97 | - * | ||
98 | + * | ||
99 | * XXX The (unsigned char) casts in isalnum() etc arguments are unnecessary | ||
100 | * because the ISASCII() guard already ensures that the values are | ||
101 | * non-negative; the casts are done anyway to shut up chatty compilers. | ||
102 | -- | ||
103 | 2.17.1 | ||
104 | |||
diff --git a/meta-networking/recipes-daemons/postfix/files/main.cf b/meta-networking/recipes-daemons/postfix/files/main.cf index e75c6fc0d7..22c57485d7 100644 --- a/meta-networking/recipes-daemons/postfix/files/main.cf +++ b/meta-networking/recipes-daemons/postfix/files/main.cf | |||
@@ -1,4 +1,4 @@ | |||
1 | compatibility_level = 2 | 1 | compatibility_level = 3.6 |
2 | smtputf8_enable = no | 2 | smtputf8_enable = no |
3 | 3 | ||
4 | # Configure your domain and accounts | 4 | # Configure your domain and accounts |
diff --git a/meta-networking/recipes-daemons/postfix/postfix_3.6.4.bb b/meta-networking/recipes-daemons/postfix/postfix_3.6.5.bb index 54c8eab5c9..343a8b2df0 100644 --- a/meta-networking/recipes-daemons/postfix/postfix_3.6.4.bb +++ b/meta-networking/recipes-daemons/postfix/postfix_3.6.5.bb | |||
@@ -12,7 +12,6 @@ SRC_URI += "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${P | |||
12 | file://0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch \ | 12 | file://0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch \ |
13 | file://0004-Fix-icu-config.patch \ | 13 | file://0004-Fix-icu-config.patch \ |
14 | file://0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \ | 14 | file://0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \ |
15 | file://0006-correct-signature-of-closefrom-API.patch \ | ||
16 | " | 15 | " |
17 | SRC_URI[sha256sum] = "8de0619dcf2fa7c215a80cf84b82ab71631d4d4722cba0949725ce3e18031d4e" | 16 | SRC_URI[sha256sum] = "300fa8811cea20d01d25c619d359bffab82656e704daa719e0c9afc4ecff4808" |
18 | UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.6(\.\d+)+).tar.gz" | 17 | UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.6(\.\d+)+).tar.gz" |