From root@techpc04.okladot.state.ok.us  Thu Jul 15 20:59:31 2004
Return-Path: <root@techpc04.okladot.state.ok.us>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8CB5F16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Jul 2004 20:59:31 +0000 (GMT)
Received: from odot.okladot.state.ok.us (odot.okladot.state.ok.us [192.149.244.9])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E59C843D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Jul 2004 20:59:30 +0000 (GMT)
	(envelope-from root@techpc04.okladot.state.ok.us)
Received: from notes9c.okladot.state.ok.us (notes9c.okladot.state.ok.us [10.36.36.31])
	by odot.okladot.state.ok.us (AIX4.3/8.9.3/8.9.2) with ESMTP id PAA53622;
	Thu, 15 Jul 2004 15:59:27 -0500
Received: from isdmon2.okladot.state.ok.us ([192.149.244.24])
          by notes9c.okladot.state.ok.us (Lotus Domino Release 6.5.1)
          with ESMTP id 2004071515595603-106459 ;
          Thu, 15 Jul 2004 15:59:56 -0500 
Received: from techpc04.okladot.state.ok.us (techpc04.okladot.state.ok.us [199.27.9.37])
	by isdmon2.okladot.state.ok.us (8.12.6/8.12.6) with ESMTP id i6FKx1Uj085659;
	Thu, 15 Jul 2004 15:59:02 -0500 (CDT)
	(envelope-from root@techpc04.okladot.state.ok.us)
Received: by techpc04.okladot.state.ok.us (Postfix, from userid 0)
	id E2FDE5C29; Thu, 15 Jul 2004 15:58:56 -0500 (CDT)
Message-Id: <20040715205856.E2FDE5C29@techpc04.okladot.state.ok.us>
Date: Thu, 15 Jul 2004 15:58:56 -0500 (CDT)
From: "Paul Seniura" <pdseniura@techie.com>
Sender: "Paul Seniura" <pdseniura@techie.com>
Reply-To: "Paul Seniura" <pdseniura@techie.com>
To: <FreeBSD-gnats-submit@freebsd.org>
Cc: <vivek@khera.org>
Subject: [work-around] mail/postfix configure glitch in adding multiple items to POSTFIX_OPTIONS in BATCH mode
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         69128
>Category:       ports
>Synopsis:       [work-around] mail/postfix configure glitch in adding multiple items to POSTFIX_OPTIONS in BATCH mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 15 21:00:42 GMT 2004
>Closed-Date:    Thu Sep 02 23:27:41 GMT 2004
>Last-Modified:  Thu Sep 02 23:27:41 GMT 2004
>Originator:     "Paul Seniura" <pdseniura@techie.com>
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
State of Okla. D.O.T.
>Environment:
System: FreeBSD techpc04.okladot.state.ok.us 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Thu Jul 15 10:22:35 CDT 2004 root@techpc04.okladot.state.ok.us:/usr/obj/src/sys/IBM300SY_4BSD_Os i386


>Description:


Hi,


I couldn't find any references to this sort of problem via
Google & GNATS etc.  I found a work-around, tho, so it may
be worthy of a PR just so to not lose track of it.  ;)


I'm seeing a problem when adding more than one item to
POSTFIX_OPTIONS in BATCH mode.  According to the comments
in the port's FreeBSD Makefile (not the original project),
we are suppose to separate multiple options with a simple
space/blank character.  This causes the following error
when building the app.

Relevent items in my /etc/make.conf:

[...]
BATCH=yes
[...]
POSTFIX_OPTIONS="OpenLDAP Test IPv6"
POSTFIX_DEFAULT_MTA=yes
[...]


My portupgrade log of mail/postfix as of latest CTM buckets
from last night using the above settings:

[...]
** No need to upgrade 'linuxpluginwrapper-20040310_2' (>= linuxpluginwrapper-20040310_2). (specify -f to force)
--->  Upgrade of mail/postfix started at: Thu, 15 Jul 2004 12:11:18 -0500
--->  Upgrading 'postfix-2.1.3,1' to 'postfix-2.1.4,1' (mail/postfix)
--->  Build of mail/postfix started at: Thu, 15 Jul 2004 12:11:18 -0500
--->  Building '/usr/ports/mail/postfix'
===>  Vulnerability check disabled, database not found
env: Test: No such file or directory
*** Error code 127

Stop in /src/ports/mail/postfix.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade19267.8 make
** Fix the problem and try again.
--->  Build of mail/postfix ended at: Thu, 15 Jul 2004 12:11:20 -0500 (consumed 00:00:01)
--->  Upgrade of mail/postfix ended at: Thu, 15 Jul 2004 12:11:20 -0500 (consumed 00:00:01)
** No need to upgrade 'XFree86-Server-4.3.0_14' (>= XFree86-Server-4.3.0_14). (specify -f to force)
[...]


I've tried all kinds of single- & double-quotemarks,
escaping them, etc., and got various errors ranging from
what is shown above, to "Unterminated quoted string",
among others.

The various portupgrade tools are up-to-date, too, here.


>How-To-Repeat:


Try adding more than one option to POSTFIX_OPTIONS in your
/etc/make.conf, using plain blanks as per documentation,
set BATCH=YES there, then build either mail/postfix or
mail/postfix-current as needed.


>Fix:

What I did to _finally_ fix this for good was to change the
line in /etc/make.conf to quote and escape the blanks thusly:

POSTFIX_OPTIONS="OpenLDAP\ Test\ IPv6"

The recent postfix versions will build & install all three
options now.  :)


As an aside, I see similar build problems with net-snmp
and trying to hard-code some MIB strings for it in
/etc/make.conf, too, but escaping the blanks didn't fix
them and neither did single-/double-quotemark tricks. 
SNMP will allow underscores '_' in those MIB strings,
tho, whereas mail/postfix will not, of course.


So I am not sure who/what/where this problem resides. 
It's the age-old problem of "how much how many how deep
must my quote- and escape-marks be seen".  ;)  
I'll log this work-around for postfix, tho.  It might help
the PRs w/r/t sysinstall'ing postfix, too, maybe?


  --  thx, Paul Seniura
           System Specialist
           State of Okla. D.O.T.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: vs 
State-Changed-When: Mon Jul 19 10:50:28 GMT 2004 
State-Changed-Why:  
Forwarded PR to maintainer 

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

From: "Volker Stolz" <vs@freebsd.org>
To: freebsd-gnats-submit@freebsd.org, pdseniura@techie.com,
	vivek@khera.org
Cc:  
Subject: Re: ports/69128: [work-around] mail/postfix configure glitch in adding multiple items to POSTFIX_OPTIONS in BATCH mode
Date: Mon, 19 Jul 2004 12:50:05 +0200

 Dear maintainer, can you please look into this?
 
 Volker

From: Vivek Khera <vivek@khera.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/69128: [work-around] mail/postfix configure glitch in adding multiple items to POSTFIX_OPTIONS in BATCH mode
Date: Tue, 31 Aug 2004 10:31:06 -0400

 Don't put quotes around your options list in /etc/make.conf at all.  In 
 other words, "it works for me" :-)
 
 in /etc/make.conf:
 
 POSTFIX_OPTIONS=SASL DB3
 
 in /usr/ports/mail/postfix:
 
 make -DBATCH
 
 and it works as expected: db3 and SASL were properly linked in.
 
 Please close this PR.  Thank.s
 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Sep 2 23:26:43 GMT 2004 
State-Changed-Why:  
Maintainer has suggested that the workaround is not needed and thus 
the PR should be closed. 

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