From nobody@FreeBSD.org  Fri Sep 11 17:19:39 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 478931065693
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Sep 2009 17:19:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 378568FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Sep 2009 17:19:39 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n8BHJd8s028097
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Sep 2009 17:19:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n8BHJcCr028096;
	Fri, 11 Sep 2009 17:19:38 GMT
	(envelope-from nobody)
Message-Id: <200909111719.n8BHJcCr028096@www.freebsd.org>
Date: Fri, 11 Sep 2009 17:19:38 GMT
From: Mark Atkinson <atkin901@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: postfix-2.6.3,1 will not build on 9-CURRENT
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: sahil@tandon.net

>Number:         138740
>Category:       ports
>Synopsis:       mail/postfix 2.6.3,1 will not build on 9-CURRENT
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 11 17:20:04 UTC 2009
>Closed-Date:    Mon Sep 14 23:30:37 UTC 2009
>Last-Modified:  Mon Sep 14 23:30:37 UTC 2009
>Originator:     Mark Atkinson
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD moby 9.0-CURRENT FreeBSD 9.0-CURRENT #17 r196703: Mon Aug 31 11:09:21 PDT 2009     root@moby:/usr/obj/usr/src/sys/MOBY  i386
>Description:
postfix-2.6.3,1 fails on 9-CURRENT because of a unrecognized SYSTYPE for 9-CURRENT


>How-To-Repeat:
make in ports/mail/postfix on a 9-CURRENT installation
>Fix:
change files/patch-makedefs and files/patch-src::util::sys_defs.h to the following:

--- makedefs.orig       2009-07-17 18:21:25.000000000 -0400
+++ makedefs    2009-07-17 18:23:12.000000000 -0400
@@ -144,6 +144,10 @@
                ;;
   FreeBSD.7*)  SYSTYPE=FREEBSD7
                ;;
+  FreeBSD.8*)  SYSTYPE=FREEBSD8
+               ;;
+  FreeBSD.9*)  SYSTYPE=FREEBSD9
+               ;;
   OpenBSD.2*)  SYSTYPE=OPENBSD2
                ;;
   OpenBSD.3*)  SYSTYPE=OPENBSD3

--- src/util/sys_defs.h.orig    2009-05-11 03:45:27.000000000 +0300
+++ src/util/sys_defs.h 2009-07-22 21:26:44.208909929 +0300
@@ -25,6 +25,7 @@
   */
 #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
     || defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
+    || defined(FREEBSD8) || defined(FREEBSD9) \
     || defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \
     || defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \
     || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \
@@ -110,6 +111,10 @@
 #define HAS_DUPLEX_PIPE                        /* 4.1 breaks with kqueue(2) */
 #endif

+#if __FreeBSD_version >= 702104 || __FreeBSD_version >= 800100
+#define HAS_CLOSEFROM
+#endif
+
 /* OpenBSD version is year+month */

 #if OpenBSD >= 199805                  /* XXX */



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Sep 14 21:38:57 UTC 2009 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138740 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: sahil@tandon.net
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/138740: mail/postfix: 2.6.3,1 will not build on 9-CURRENT
Date: Mon, 14 Sep 2009 21:38:55 UT

 Maintainer of mail/postfix,
 
 Please note that PR ports/138740 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/138740
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
State-Changed-From-To: feedback->closed 
State-Changed-By: wxs 
State-Changed-When: Mon Sep 14 23:30:36 UTC 2009 
State-Changed-Why:  
This has been fixed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138740 
>Unformatted:
