Attempting to build 2.2.0 (not yet an ebuild) on Gentoo encounters issues with the tail statements in all of the Makefile.in files. Gentoo uses the newer version of tail that has deprecated (to the point of no support) the tail +2 syntax in favour of tail -n +2. Wietse has said the distro will not change because it can and will break non-POSIX capable systems. Reproducible: Always Steps to Reproduce: 1. download postfix source 2. execute make 3. Actual Results: Postfix will fail to compile Potential fixes: 1) for file in `find . -name 'Makefile.in'` ; do cat $file | sed -e 's/tail \ +2/tail -n +2/' > $file.t ; mv $file.t $file ; done 2) # Cater for GNU coreutils "compatibility" _POSIX2_VERSION=199209 export _POSIX2_VERSION Edition 2 forces tail to honour the non-POSIX syntax. I realise 2.2.0 is not yet into the portage tree as a package, but felt that it was worth giving someone a heads-up just in case.
> Attempting to build 2.2.0 (not yet an ebuild) $ grep -A 7 "postfix-2.2.0 " /usr/portage/mail-mta/postfix/ChangeLog *postfix-2.2.0 (09 Mar 2005) 09 Mar 2005; Tuấn Văn <langthang@gentoo.org> +postfix-2.2.0.ebuild: New postfix-2.2.0 release. This release includes IPV6 and TLS in the official release. "vda" has been removed as it isn't available for experimetal Postfix release. "vda" will be added as soon as it's available. Please review these document for more infomation: ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-2.2.0.RELEA SE_NOTES http://www.postfix.org/TLS_README.html http://www.postfix.org/IPV6_README.html It's hard masked. If you want to test, unmask it then post the feedback in this bug. Thanks. > Gentoo uses the newer version of tail that has deprecated (to the point of no > support) the tail +2 syntax in favour of tail -n +2. Wietse has said the > distro will not change because it can and will break non-POSIX capable > systems. the ebuild takes care of that.