]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
postfix: Fix FTBFS with glibc 2.34
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Aug 2021 16:52:07 +0000 (16:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Feb 2022 13:33:53 +0000 (13:33 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/postfix
src/patches/postfix-3.6.2-glibc-234-build-fix.patch [new file with mode: 0644]

index 6fe46d9a83f9a5ad200bbc91c4b2fdf8768a3fb6..0dcccadb63b7442c56475c211ca5b8abce55fbdf 100644 (file)
@@ -99,6 +99,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/postfix-3.6.2-glibc-234-build-fix.patch
        cd $(DIR_APP) && make -f Makefile.init makefiles \
                DEBUG="" OPT="$(CFLAGS) -fno-strict-aliasing" CCARGS="$(CCARGS)" AUXLIBS="$(AUXLIBS)"
        cd $(DIR_APP) && make $(MAKETUNING)
diff --git a/src/patches/postfix-3.6.2-glibc-234-build-fix.patch b/src/patches/postfix-3.6.2-glibc-234-build-fix.patch
new file mode 100644 (file)
index 0000000..b678b78
--- /dev/null
@@ -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)