user/postfix: FTBFS: does not support Linux 6.x
Found on ppc (setarch ppc chroot /path/to/32-bit-ppc/rootfs
, running on a host kernel of 6.0.0
):
...
(28/28) Installing .makedepends-postfix (20221213.124403)
OK: 549 MiB in 120 packages
>>> postfix: Cleaning temporary build dirs...
>>> postfix: Fetching http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-3.6.2.tar.gz
>>> postfix: Fetching http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-3.6.2.tar.gz
>>> postfix: Checking sha512sums...
postfix-3.6.2.tar.gz: OK
honour-config-directory.patch: OK
postfix.initd: OK
>>> postfix: Unpacking /var/cache/distfiles/postfix-3.6.2.tar.gz...
>>> postfix: honour-config-directory.patch
patching file postfix-install
Hunk #1 succeeded at 841 (offset 9 lines).
>>> postfix: Creating group postfix
>>> postfix: Creating group postdrop
>>> postfix: Creating user postfix
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
ATTENTION:
ATTENTION: Unknown system type: Linux 6.0.0-5-powerpc64
ATTENTION:
make: *** [Makefile.in:33: Makefiles] Error 1
make: *** [Makefile:22: makefiles] Error 2
>>> ERROR: postfix: build failed
relevant makedefs
snippet:
Linux.[345].*) SYSTYPE=LINUX$RELEASE_MAJOR
case "$CCARGS" in
*-DNO_DB*) ;;
*-DHAS_DB*) ;;
*) if [ -f /usr/include/db.h ]
then
: we are all set
elif [ -f /usr/include/db/db.h ]
then
CCARGS="$CCARGS -I/usr/include/db"
else
# On a properly installed system, Postfix builds
# by including <db.h> and by linking with -ldb
echo "No <db.h> include file found." 1>&2
echo "Install the appropriate db*-devel package first." 1>&2
exit 1
fi
SYSLIBS="-ldb"
;;
esac
Note: uname -r
should not be used.
builder on ppc64 ~/packages/user/postfix $ uname -a && uname -r
Linux ppc64 6.0.0-5-powerpc64 #1 SMP Debian 6.0.10-2 (2022-12-01) ppc GNU/Linux
6.0.0-5-powerpc64
Issue still present in 3.6.7
, as well as 3.7.3
, which is the latest as of writing.
Upstream mailing list: https://www.mail-archive.com/postfix-devel@postfix.org/msg01109.html