Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 371643

Summary: mail-mta/postfix-2.8.3-r1 fails to compile with linux-3.0 kernel
Product: Gentoo Linux Reporter: ron widler <ron>
Component: [OLD] ServerAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: shtartora
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to compile with linux-3.x kernels
patch to compile with linux-3.x kernels by wietse venema
patch for postfix-2.8.3-r2.ebuild to use linux3.patch
patch for postfix-2.7.4.ebuild to use linux3.patch
patch for postfix-2.9_pre20110605.ebuild to use linux3.patch

Description ron widler 2011-06-14 18:53:41 UTC
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.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-15 16:11:00 UTC
*** Bug 371727 has been marked as a duplicate of this bug. ***
Comment 2 ron widler 2011-06-15 17:19:11 UTC
i reported it upstream, wietse venema wrote a patch that works for 2.7.4, 2.8.3 and 2.9_pre.
Comment 3 ron widler 2011-06-15 17:20:12 UTC
Created attachment 277139 [details, diff]
patch to compile with linux-3.x kernels by wietse venema

thanks wietse!
Comment 4 ron widler 2011-06-15 17:24:09 UTC
Created attachment 277141 [details, diff]
patch for postfix-2.8.3-r2.ebuild to use linux3.patch
Comment 5 ron widler 2011-06-15 17:24:34 UTC
Created attachment 277143 [details, diff]
patch for postfix-2.7.4.ebuild to use linux3.patch
Comment 6 ron widler 2011-06-15 17:25:01 UTC
Created attachment 277145 [details, diff]
patch for postfix-2.9_pre20110605.ebuild to use linux3.patch
Comment 7 Eray Aslan gentoo-dev 2011-06-16 06:15:14 UTC
Fixed in mail-mta/postfix-2.9_pre20110615.  Thanks for the bug report and following it up on postfix ML.