diff options
-rw-r--r-- | meta-networking/recipes-daemons/postfix/files/0001-fix-build-with-glibc-2.34.patch | 46 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/postfix/postfix_3.4.12.bb | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/postfix/files/0001-fix-build-with-glibc-2.34.patch b/meta-networking/recipes-daemons/postfix/files/0001-fix-build-with-glibc-2.34.patch new file mode 100644 index 0000000000..b6ec8c70df --- /dev/null +++ b/meta-networking/recipes-daemons/postfix/files/0001-fix-build-with-glibc-2.34.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 1f25dae3f38548bad32c5a3ebee4c07938d8c1b8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Thu, 30 Dec 2021 10:35:57 +0800 | ||
4 | Subject: [PATCH] fix build with glibc 2.34 | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | The closefrom() function which is introduced in glibc 2.34 conflicts | ||
10 | with the one provided by postfix. | ||
11 | |||
12 | Fixes: | ||
13 | | In file included from attr_clnt.c:88: | ||
14 | | /usr/include/unistd.h:363:13: error: conflicting types for ‘closefrom’; have ‘void(int)’ | ||
15 | | 363 | extern void closefrom (int __lowfd) __THROW; | ||
16 | | | ^~~~~~~~~ | ||
17 | | In file included from attr_clnt.c:87: | ||
18 | | ./sys_defs.h:1506:12: note: previous declaration of ‘closefrom’ with type ‘int(int)’ | ||
19 | | 1506 | extern int closefrom(int); | ||
20 | | | ^~~~~~~~~ | ||
21 | |||
22 | Upstream-Status: Backport | ||
23 | [https://github.com/vdukhovni/postfix/commit/3d966d3bd5f95b2c918aefb864549fa9f0442e24] | ||
24 | |||
25 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
26 | --- | ||
27 | src/util/sys_defs.h | 3 +++ | ||
28 | 1 file changed, 3 insertions(+) | ||
29 | |||
30 | diff --git a/src/util/sys_defs.h b/src/util/sys_defs.h | ||
31 | index 39daa16..5de5855 100644 | ||
32 | --- a/src/util/sys_defs.h | ||
33 | +++ b/src/util/sys_defs.h | ||
34 | @@ -827,6 +827,9 @@ extern int initgroups(const char *, int); | ||
35 | #define HAVE_POSIX_GETPW_R | ||
36 | #endif | ||
37 | #endif | ||
38 | +#if HAVE_GLIBC_API_VERSION_SUPPORT(2, 34) | ||
39 | +#define HAS_CLOSEFROM | ||
40 | +#endif | ||
41 | |||
42 | #endif | ||
43 | |||
44 | -- | ||
45 | 2.17.1 | ||
46 | |||
diff --git a/meta-networking/recipes-daemons/postfix/postfix_3.4.12.bb b/meta-networking/recipes-daemons/postfix/postfix_3.4.12.bb index db5b41bfbd..e7bb3e9d32 100644 --- a/meta-networking/recipes-daemons/postfix/postfix_3.4.12.bb +++ b/meta-networking/recipes-daemons/postfix/postfix_3.4.12.bb | |||
@@ -13,6 +13,7 @@ SRC_URI += "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${P | |||
13 | file://postfix-install.patch \ | 13 | file://postfix-install.patch \ |
14 | file://icu-config.patch \ | 14 | file://icu-config.patch \ |
15 | file://0001-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \ | 15 | file://0001-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \ |
16 | file://0001-fix-build-with-glibc-2.34.patch \ | ||
16 | " | 17 | " |
17 | SRC_URI[sha256sum] = "18555183ae8b52a9e76067799279c86f9f2770cdef3836deb8462ee0a0855dec" | 18 | SRC_URI[sha256sum] = "18555183ae8b52a9e76067799279c86f9f2770cdef3836deb8462ee0a0855dec" |
18 | UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.3(\.\d+)+).tar.gz" | 19 | UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.3(\.\d+)+).tar.gz" |