From bd56ad4b92193bf63c730a5bd5d22a7af70e957f93c11b612eaf946620f38549 Mon Sep 17 00:00:00 2001 From: Peter Varkoly Date: Tue, 24 Aug 2021 14:34:40 +0000 Subject: [PATCH] Accepting request 914039 from home:varkoly:branches:server:mail - postfix fails with glibc 2.34 Define HAS_CLOSEFROM (bsc#1189101) add patch - postfix-3.6.2-glibc-234-build-fix.patch - postfix fails with glibc 2.34 Define HAS_CLOSEFROM (bsc#1189101) add patch - postfix-3.6.2-glibc-234-build-fix.patch OBS-URL: https://build.opensuse.org/request/show/914039 OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=423 --- postfix-3.6.2-glibc-234-build-fix.patch | 14 ++++++++++++++ postfix-bdb.changes | 9 +++++++++ postfix-bdb.spec | 2 ++ postfix.changes | 9 +++++++++ postfix.spec | 2 ++ 5 files changed, 36 insertions(+) create mode 100644 postfix-3.6.2-glibc-234-build-fix.patch diff --git a/postfix-3.6.2-glibc-234-build-fix.patch b/postfix-3.6.2-glibc-234-build-fix.patch new file mode 100644 index 0000000..11d749d --- /dev/null +++ b/postfix-3.6.2-glibc-234-build-fix.patch @@ -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 + #if !defined(KERNEL_VERSION) + #define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1) diff --git a/postfix-bdb.changes b/postfix-bdb.changes index 4e11bf2..0d9802b 100644 --- a/postfix-bdb.changes +++ b/postfix-bdb.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Aug 24 09:55:02 UTC 2021 - Peter Varkoly + +- postfix fails with glibc 2.34 + Define HAS_CLOSEFROM + (bsc#1189101) + add patch + - postfix-3.6.2-glibc-234-build-fix.patch + ------------------------------------------------------------------- Thu Aug 5 19:09:36 UTC 2021 - chris@computersalat.de diff --git a/postfix-bdb.spec b/postfix-bdb.spec index 1497fe3..687070c 100644 --- a/postfix-bdb.spec +++ b/postfix-bdb.spec @@ -82,6 +82,7 @@ Patch7: postfix-ssl-release-buffers.patch Patch8: postfix-vda-v14-3.0.3.patch Patch9: fix-postfix-script.patch Patch10: postfix-avoid-infinit-loop-if-no-permission.patch +Patch11: postfix-3.6.2-glibc-234-build-fix.patch BuildRequires: ca-certificates BuildRequires: cyrus-sasl-devel BuildRequires: db-devel @@ -155,6 +156,7 @@ lmdb. %patch8 %patch9 %patch10 +%patch11 # --------------------------------------------------------------------------- diff --git a/postfix.changes b/postfix.changes index 4e11bf2..e017d27 100644 --- a/postfix.changes +++ b/postfix.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Aug 24 09:55:42 UTC 2021 - Peter Varkoly + +- postfix fails with glibc 2.34 + Define HAS_CLOSEFROM + (bsc#1189101) + add patch + - postfix-3.6.2-glibc-234-build-fix.patch + ------------------------------------------------------------------- Thu Aug 5 19:09:36 UTC 2021 - chris@computersalat.de diff --git a/postfix.spec b/postfix.spec index 48f5d2b..9cb04a8 100644 --- a/postfix.spec +++ b/postfix.spec @@ -69,6 +69,7 @@ Patch8: %{name}-vda-v14-3.0.3.patch Patch9: fix-postfix-script.patch Patch10: %{name}-avoid-infinit-loop-if-no-permission.patch Patch11: set-default-db-type.patch +Patch12: postfix-3.6.2-glibc-234-build-fix.patch BuildRequires: ca-certificates BuildRequires: cyrus-sasl-devel #BuildRequires: db-devel @@ -175,6 +176,7 @@ maps with Postfix, you need this. %patch9 %patch10 %patch11 +%patch12 -p1 # ---------------------------------------------------------------------------