[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#640012: postfix: FTBFS: kFreeBSD check hardcodes kernel version 5,6,7, current is 8 + no NIS on !linux



Package: src:postfix
Version: 2.8.4-1
Severity: serious
X-Debbugs-Cc: debian-bsd@lists.debian.org,debian-hurd@lists.debian.org
Tags: sid wheezy
Justification: fails to build from source (but built successfully in the past)

Hi!

Your package failed to build on the kfreebsd and hurd buildds. For
kFreeBSD makedefs hardcodes kFreeBSD kernel Versions up to 7 while
current is 8. Patch:

diff -u postfix-2.8.4/makedefs postfix-2.8.4/makedefs
--- postfix-2.8.4/makedefs
+++ postfix-2.8.4/makedefs
@@ -374,7 +374,7 @@
 		    done
 		done
 		;;
-     GNU.0*|GNU/kFreeBSD.[567]*)
+     GNU.0*|GNU/kFreeBSD*)
      		SYSTYPE=GNU0
 		# Postfix no longer needs DB 1.85 compatibility
 		if [ -f /usr/include/db.h ]


Also there's no NIS on kfreebsd and hurd (See #545970). I tried to
disable NIS in postfix with the following patch which results in a
building postfix at least:

--- postfix-2.8.4/src/util/sys_defs.h
+++ postfix-2.8.4/src/util/sys_defs.h
@@ -835,7 +835,9 @@
 #define HAS_DB
 #define DEF_DB_TYPE	"hash"
 #define ALIAS_DB_MAP	"hash:/etc/aliases"
+#ifndef DEBIAN
 #define HAS_NIS
+#endif
 #define GETTIMEOFDAY(t)	gettimeofday(t,(struct timezone *) 0)
 #define ROOT_PATH	"/bin:/usr/bin:/sbin:/usr/sbin"
 #define FIONREAD_IN_TERMIOS_H

Regards

    Christoph

If you have further questions please mail debian-bsd@lists.debian.org

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer



Reply to: