Created attachment 277061 [details, diff] patch to compile with linux-3.x kernels >>> Configuring source in /home/PORTAGE/portage/mail-mta/postfix-2.8.3-r1/work/postfix-2.8.3 ... make -j4 DEBUG= CC=x86_64-pc-linux-gnu-gcc 'OPT=-march=native -O2 -pipe' 'CCARGS=-DHAS_PCRE -DHAS_LDAP -DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/include/postgresql-9.0 -DHAS_SQLITE -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DDEF_DAEMON_DIR=\"/usr/lib64/postfix\" -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_COMMAND_DIR=\"/usr/sbin\" -DDEF_SENDMAIL_PATH=\"/usr/sbin/sendmail\" -DDEF_NEWALIS_PATH=\"/usr/bin/newaliases\" -DDEF_MAILQ_PATH=\"/usr/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.8.3-r1/readme\" -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.8.3-r1/html\" -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/lib/postfix\" -DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"postdrop\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE' 'AUXLIBS=-Wl,-O1 -Wl,--as-needed -lpcre -lcrypt -lpthread -lpam -lldap -llber -Wl,-O1 -Wl,--as-needed -rdynamic -L/usr/lib64/mysql -lmysqlclient -L/usr//lib64 -lz -lcrypt -lnsl -lm -L/usr/lib64/ -lssl -lcrypto -lpq -L/usr/lib64/postgresql-9.0/lib64 -lsqlite3 -lssl -lcrypto -lsasl2' makefiles 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 3.0.0-rc2 ATTENTION: make: *** [Makefiles] Error 1 make: *** [makefiles] Error 2 --- Reproducible: Always Steps to Reproduce: 1. emerge =sys-kernel/git-sources-3.0_rc3 2. emerge postfix 3. the makedefs script only checks for linux 1.x or 2.x versions, but fails with 3.x. with a patched makedefs file the package compiles without a problem.
*** Bug 371727 has been marked as a duplicate of this bug. ***
i reported it upstream, wietse venema wrote a patch that works for 2.7.4, 2.8.3 and 2.9_pre.
Created attachment 277139 [details, diff] patch to compile with linux-3.x kernels by wietse venema thanks wietse!
Created attachment 277141 [details, diff] patch for postfix-2.8.3-r2.ebuild to use linux3.patch
Created attachment 277143 [details, diff] patch for postfix-2.7.4.ebuild to use linux3.patch
Created attachment 277145 [details, diff] patch for postfix-2.9_pre20110605.ebuild to use linux3.patch
Fixed in mail-mta/postfix-2.9_pre20110615. Thanks for the bug report and following it up on postfix ML.