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
This commit is contained in:
Peter Varkoly 2021-08-24 14:34:40 +00:00 committed by Git OBS Bridge
parent fb5f24453a
commit bd56ad4b92
5 changed files with 36 additions and 0 deletions

View 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)

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Aug 24 09:55:02 UTC 2021 - Peter Varkoly <varkoly@suse.com>
- 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

View File

@ -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
# ---------------------------------------------------------------------------

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Aug 24 09:55:42 UTC 2021 - Peter Varkoly <varkoly@suse.com>
- 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

View File

@ -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
# ---------------------------------------------------------------------------