Bug 146371

Summary: mail/postfix fails to build WITH_BDB_HIGHEST - db50 unsupported
Product: Ports & Packages Reporter: c.kworr
Component: Individual Port(s)Assignee: Sahil Tandon <sahil>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description c.kworr 2010-05-07 08:40:02 UTC
Trying to build port WITH_BDB_HIGHEST results in:
cc -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DDEF_COMMAND_DIR=\"/usr/local/sbin\" -DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" -DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/local/man\" -DDEF_README_DIR=\"no\" -DDEF_HTML_DIR=\"no\" -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/db/postfix\" -DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"maildrop\" -DHAS_PCRE -I/usr/local/include -DUSE_TLS -I/usr/include -I/usr/local/include/db50  -O2 -pipe -march=nocona -fno-strict-aliasing -I. -DFREEBSD8 -c dict_cidr.c
cc -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DDEF_COMMAND_DIR=\"/usr/local/sbin\" -DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" -DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/local/man\" -DDEF_README_DIR=\"no\" -DDEF_HTML_DIR=\"no\" -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/db/postfix\" -DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"maildrop\" -DHAS_PCRE -I/usr/local/include -DUSE_TLS -I/usr/include -I/usr/local/include/db50  -O2 -pipe -march=nocona -fno-strict-aliasing -I. -DFREEBSD8 -c dict_db.c
dict_db.c:685:2: error: #error "Unsupported Berkeley DB version"

Fix: 

At least INVALID_BDB_VER=50+. This would result in:

===>  postfix-2.7.0,1 cannot install: does not work with Berkeley DB version 50 (50+ not supported).
*** Error code 1

A better way is to ask bsd.database.mk people to add the possibility to not fail on INVALID_BDB_VER but instead try each other version installed. So if 5.0 and 4.8 are installed simultaneously the 5.0 gets rejected and 4.8 is used instead.
How-To-Repeat: cd /usr/ports/mail/postfix; make -DWITH_BDB_HIGHEST
Comment 1 Sahil Tandon freebsd_committer freebsd_triage 2010-05-07 20:40:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sahil

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-05-14 01:29:45 UTC
sahil       2010-05-14 00:29:36 UTC

  FreeBSD ports repository

  Modified files:
    mail/postfix         Makefile 
  Log:
  - Set INVALID_BDB_VER; upstream does not yet support Berkeley DB 5 [1]
  - Remove OPTION for Kerberos IV
  - Change my email to @FreeBSD.org
  
  PR:             ports/146371 [1]
  Reported by:    Volodymyr Kostyrko <c.kworr@gmail.com> [1]
  Approved by:    itetcu@ (mentor)
  
  Revision  Changes    Path
  1.157     +5 -12     ports/mail/postfix/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Sahil Tandon freebsd_committer freebsd_triage 2010-05-14 01:30:23 UTC
State Changed
From-To: open->closed

Committed. Thanks!