!9 fix build error with glibc 2.34
From: @eaglegai Reviewed-by: @zengwefeng Signed-off-by: @zengwefeng
This commit is contained in:
commit
65f24fa019
14
postfix-3.6.2-glibc-234-build-fix.patch
Normal file
14
postfix-3.6.2-glibc-234-build-fix.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/src/util/sys_defs.h b/src/util/sys_defs.h
|
||||||
|
index 99bec9b..95c78ec 100644
|
||||||
|
--- a/src/util/sys_defs.h
|
||||||
|
+++ b/src/util/sys_defs.h
|
||||||
|
@@ -802,6 +803,9 @@ extern int initgroups(const char *, int);
|
||||||
|
#define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
+#if HAVE_GLIBC_API_VERSION_SUPPORT(2, 34)
|
||||||
|
+#define HAS_CLOSEFROM
|
||||||
|
+#endif
|
||||||
|
#include <linux/version.h>
|
||||||
|
#if !defined(KERNEL_VERSION)
|
||||||
|
#define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1)
|
||||||
10
postfix.spec
10
postfix.spec
@ -23,7 +23,7 @@
|
|||||||
Name: postfix
|
Name: postfix
|
||||||
Summary: Postfix Mail Transport Agent
|
Summary: Postfix Mail Transport Agent
|
||||||
Version: 3.3.1
|
Version: 3.3.1
|
||||||
Release: 13
|
Release: 14
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
URL: http://www.postfix.org
|
URL: http://www.postfix.org
|
||||||
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
||||||
@ -45,6 +45,7 @@ Patch6: pflogsumm-1.1.5-ipv6-warnings-fix.patch
|
|||||||
Patch7: fix-postfix-build-failed.patch
|
Patch7: fix-postfix-build-failed.patch
|
||||||
Patch8: fix-build-error-with_glibc2.30-ftbfs.patch
|
Patch8: fix-build-error-with_glibc2.30-ftbfs.patch
|
||||||
Patch9: fix-multiple-definition-error-with-gcc-10.patch
|
Patch9: fix-multiple-definition-error-with-gcc-10.patch
|
||||||
|
Patch10: postfix-3.6.2-glibc-234-build-fix.patch
|
||||||
|
|
||||||
BuildRequires: libdb-devel perl-generators pkgconfig zlib-devel systemd-units libicu-devel libnsl2-devel gcc m4 openldap-devel
|
BuildRequires: libdb-devel perl-generators pkgconfig zlib-devel systemd-units libicu-devel libnsl2-devel gcc m4 openldap-devel
|
||||||
BuildRequires: cyrus-sasl-devel pcre-devel mariadb-connector-c-devel postgresql-devel sqlite-devel openssl-devel procps-ng
|
BuildRequires: cyrus-sasl-devel pcre-devel mariadb-connector-c-devel postgresql-devel sqlite-devel openssl-devel procps-ng
|
||||||
@ -107,6 +108,7 @@ PostgreSQL maps with Postfix, you need this.
|
|||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%patch8 -p1
|
%patch8 -p1
|
||||||
%patch9 -p1
|
%patch9 -p1
|
||||||
|
%patch10 -p1
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
's|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{_libdir}/postfix"|' \
|
's|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{_libdir}/postfix"|' \
|
||||||
@ -492,6 +494,12 @@ fi
|
|||||||
%{postfix_doc_dir}/README_FILES/*
|
%{postfix_doc_dir}/README_FILES/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 10 2021 gaihuiying <gaihuiying1@huawei.com> - 2:3.3.1-14
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix build error with glibc 2.34
|
||||||
|
|
||||||
* Fri Jul 30 2021 gaihuiying <gaihuiying1@huawei.com> - 2:3.3.1-13
|
* Fri Jul 30 2021 gaihuiying <gaihuiying1@huawei.com> - 2:3.3.1-13
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user