From kogane@syd.odn.ne.jp  Tue Oct 14 06:10:19 2003
Return-Path: <kogane@syd.odn.ne.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 37D7916A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Oct 2003 06:10:19 -0700 (PDT)
Received: from t-mta2.odn.ne.jp (mfep2.odn.ne.jp [143.90.131.180])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3FAD943FD7
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Oct 2003 06:10:17 -0700 (PDT)
	(envelope-from kogane@syd.odn.ne.jp)
Received: from kces1.koganemaru.co.jp ([211.127.63.85]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20031014131015632.HTIX.2074.t-mta2.odn.ne.jp@mta2.odn.ne.jp>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Tue, 14 Oct 2003 22:10:15 +0900
Received: (from kogane@localhost)
	by kces1.koganemaru.co.jp (8.8.8/3.6W) id WAA00435;
	Tue, 14 Oct 2003 22:13:19 +0900 (JST)
Message-Id: <200310141313.WAA00435@kces1.koganemaru.co.jp>
Date: Tue, 14 Oct 2003 22:13:19 +0900 (JST)
From: n-kogane@syd.odn.ne.jp
Reply-To: n-kogane@syd.odn.ne.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: sysinstall postfix installation problem
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         58008
>Category:       bin
>Synopsis:       [sysinstall] [patch] sysinstall postfix installation problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-qa
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 14 06:20:14 PDT 2003
>Closed-Date:    Fri May 19 06:06:53 GMT 2006
>Last-Modified:  Fri May 19 06:06:53 GMT 2006
>Originator:     Nobuyuki Koganemaru
>Release:        FreeBSD 4.9-RC i386
>Organization:
KOGANEMARU Computer Engineering Service Corporation.
>Environment:
FreeBSD kcesx20.koganemaru.co.jp 4.9-RC FreeBSD 4.9-RC #0: Sun Oct 12 01:15:50 JST 2003     root@kcesx20.koganemaru.co.jp:/usr/obj/usr/src.stable.5/sys/GENERIC  i386


>Description:
	sysinstall postfix installation problem.
	If the "pcre" package is not installed "postfix" package
	installation goes wrong.

>How-To-Repeat:
	/stand/sysinstall -> Configure -> Networking -> Mail -> Postfix
>Fix:

--- src/release/sysinstall/config.c.orig	Fri Oct  3 23:41:43 2003
+++ src/release/sysinstall/config.c	Tue Oct 14 19:31:06 2003
@@ -4,7 +4,7 @@
  * This is probably the last program in the `sysinstall' line - the next
  * generation being essentially a complete rewrite.
  *
- * $FreeBSD: src/release/sysinstall/config.c,v 1.156.2.36 2003/09/29 15:53:54 trhodes Exp $
+ * $FreeBSD: src/release/sysinstall/config.c,v 1.156.2.36 2003/09/29 15:53:54 trhodes Exp $
  *
  * Copyright (c) 1995
  *	Jordan Hubbard.  All rights reserved.
@@ -1053,7 +1053,10 @@
 	msgError("Error setting the enviroment variable POSTFIX_DEFAULT_MTA: %s (%u)",
 		 strerror(errno), errno);
 
-    ret = package_add("postfix");
+    ret = package_add("pcre");
+    if(DITEM_STATUS(ret) != DITEM_FAILURE) {
+	ret = package_add("postfix");
+    }
     unsetenv("POSTFIX_DEFAULT_MTA");
 
     if(DITEM_STATUS(ret) == DITEM_FAILURE) {
>Release-Note:
>Audit-Trail:

From: Makoto Matsushita <matusita@jp.FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/58008: sysinstall postfix installation problem
Date: Thu, 16 Oct 2003 08:31:34 +0900

 n-kogane> -    ret = package_add("postfix");
 n-kogane> +    ret = package_add("pcre-");
 n-kogane> +    if(DITEM_STATUS(ret) == DITEM_FAILURE) {
 n-kogane> +	ret = package_add("postfix");
 n-kogane> +    }
 
 If this works for you, it's not a problem of this code fragment, but
 problem(s) of package_add(), package tarball itself, or whole archive.
 
 package_add("postfix") should install pcre package also iff the
 postfix package is built without WITHOUT_PCRE.
 
 ***
 
 You've said that "installation goes wrong," but you didn't mention
 what's really happened.  Would you please describe more clearly?
 
 -- -
 Makoto `MAR' Matsushita
Responsible-Changed-From-To: freebsd-bugs->freebsd-qa 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Aug 29 05:22:52 GMT 2004 
Responsible-Changed-Why:  
sysinstall problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58008 
State-Changed-From-To: open->feedback 
State-Changed-By: matteo 
State-Changed-When: Thu May 18 13:11:19 UTC 2006 
State-Changed-Why:  
Do you still have this issue? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58008 
State-Changed-From-To: feedback->closed 
State-Changed-By: matteo 
State-Changed-When: Fri May 19 06:06:06 UTC 2006 
State-Changed-Why:  
Close, as submitter said he no longer has this problem 

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