From nobody@FreeBSD.org  Wed Mar 21 11:32:07 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 91C7037B72D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Mar 2001 11:32:07 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f2LJMZI06995;
	Wed, 21 Mar 2001 11:22:35 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200103211922.f2LJMZI06995@freefall.freebsd.org>
Date: Wed, 21 Mar 2001 11:22:35 -0800 (PST)
From: renaud+freebsd-bugs@waldura.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: Postfix port links against the static MySQL client library
X-Send-Pr-Version: www-1.0

>Number:         25967
>Category:       ports
>Synopsis:       Postfix port links against the static MySQL client library
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 21 11:40:01 PST 2001
>Closed-Date:    Fri Mar 23 17:42:13 PST 2001
>Last-Modified:  Thu Apr  5 12:10:02 PDT 2001
>Originator:     Renaud Waldura
>Release:        4.2-RELEASE
>Organization:
>Environment:
>Description:
The Postfix port links against the static MySQL client library. I'd rather have it use the dynamic library, for multiple reasons, the main one being that we use a custom MySQL client lib. I can think of other benefits too, namely memory footprint.
>How-To-Repeat:
Build Postfix with MySQL extensions; all the post* binaries are linked against the static .a MySQL client library, NOT the .so.
>Fix:
--- configure.postfix.bak       Wed Mar 21 10:23:21 2001
+++ configure.postfix   Wed Mar 21 10:24:02 2001
@@ -104,9 +104,9 @@
                        echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
                        ;;
                \"MySQL\")
-                       echo "BUILD_DEPENDS+=   \${LOCALBASE}/lib/mysql/libmysqlclient.a:\${PORTSDIR}/databases/mysql323-client"
+                       echo "BUILD_DEPENDS+=   \${LOCALBASE}/lib/mysql/libmysqlclient.so:\${PORTSDIR}/databases/mysql323-client"
                        echo "POSTFIX_CCARGS+=  -DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
-                       echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz"
+                       echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/mysql -lmysqlclient -lm -lz"
                        ;;
                \"OpenLDAP\")
                        echo "CONF2+=           sample-ldap.cf"

>Release-Note:
>Audit-Trail:

From: "David W. Chapman Jr." <dwcjr@inethouston.net>
To: <renaud+freebsd-bugs@waldura.org>,
	<freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: ports/25967: Postfix port links against the static MySQL client library
Date: Wed, 21 Mar 2001 13:49:06 -0600

 if this also applies to postfix-current, could you send in a patch for that
 also?
 
 ----- Original Message -----
 From: <renaud+freebsd-bugs@waldura.org>
 To: <freebsd-gnats-submit@FreeBSD.org>
 Sent: Wednesday, March 21, 2001 1:22 PM
 Subject: ports/25967: Postfix port links against the static MySQL client
 library
 
 
 >
 > >Number:         25967
 > >Category:       ports
 > >Synopsis:       Postfix port links against the static MySQL client
 library
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    freebsd-ports
 > >State:          open
 > >Quarter:
 > >Keywords:
 > >Date-Required:
 > >Class:          change-request
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Wed Mar 21 11:40:01 PST 2001
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Renaud Waldura
 > >Release:        4.2-RELEASE
 > >Organization:
 > >Environment:
 > >Description:
 > The Postfix port links against the static MySQL client library. I'd rather
 have it use the dynamic library, for multiple reasons, the main one being
 that we use a custom MySQL client lib. I can think of other benefits too,
 namely memory footprint.
 > >How-To-Repeat:
 > Build Postfix with MySQL extensions; all the post* binaries are linked
 against the static .a MySQL client library, NOT the .so.
 > >Fix:
 > --- configure.postfix.bak       Wed Mar 21 10:23:21 2001
 > +++ configure.postfix   Wed Mar 21 10:24:02 2001
 > @@ -104,9 +104,9 @@
 >                         echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
 >                         ;;
 >                 \"MySQL\")
 > -                       echo "BUILD_DEPENDS+=
 \${LOCALBASE}/lib/mysql/libmysqlclient.a:\${PORTSDIR}/databases/mysql323-cli
 ent"
 > +                       echo "BUILD_DEPENDS+=
 \${LOCALBASE}/lib/mysql/libmysqlclient.so:\${PORTSDIR}/databases/mysql323-cl
 ient"
 >                         echo
 "POSTFIX_CCARGS+=  -DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
 > -                       echo "POSTFIX_AUXLIBS+=
 \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz"
 > +                       echo
 "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/mysql -lmysqlclient -lm -lz"
 >                         ;;
 >                 \"OpenLDAP\")
 >                         echo "CONF2+=           sample-ldap.cf"
 >
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 >
 > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > with "unsubscribe freebsd-ports" in the body of the message
 >
 

From: "Renaud Waldura" <renaud@waldura.org>
To: "David W. Chapman Jr." <dwcjr@inethouston.net>
Cc: <freebsd-gnats-submit@FreeBSD.org>
Subject: Re: ports/25967: Postfix port links against the static MySQL client library
Date: Wed, 21 Mar 2001 13:45:41 -0800

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0019_01C0B20D.38176470
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: 7bit
 
 Here is a patch against postfix-current (attached to preserve tabs etc.)
 
 --Renaud
 
 
 ------=_NextPart_000_0019_01C0B20D.38176470
 Content-Type: text/plain;
 	name="patch.txt"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 	filename="patch.txt"
 
 --- /usr/ports/mail/postfix-current/scripts/configure.postfix	Mon Mar  5 =
 14:15:25 2001
 +++ configure.postfix	Wed Mar 21 13:17:49 2001
 @@ -89,9 +89,9 @@
  			echo "POSTFIX_AUXLIBS+=3D	-L\${LOCALBASE}/lib -ldb3"
  			;;
  		\"MySQL\")
 -			echo "BUILD_DEPENDS+=3D	=
 \${LOCALBASE}/lib/mysql/libmysqlclient.a:\${PORTSDIR}/databases/mysql323-=
 client"
 +			echo "BUILD_DEPENDS+=3D	=
 \${LOCALBASE}/lib/mysql/libmysqlclient.so:\${PORTSDIR}/databases/mysql323=
 -client"
  			echo "POSTFIX_CCARGS+=3D	-DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
 -			echo "POSTFIX_AUXLIBS+=3D	\${LOCALBASE}/lib/mysql/libmysqlclient.a =
 -lm -lz"
 +			echo "POSTFIX_AUXLIBS+=3D	-L\${LOCALBASE}/lib/mysql -lmysqlclient =
 -lm -lz"
  			;;
  		\"OpenLDAP\")
  			echo "CONF2+=3D		sample-ldap.cf"
 
 ------=_NextPart_000_0019_01C0B20D.38176470--
 

From: Jun Kuriyama <kuriyama@imgsrc.co.jp>
To: blaz@amis.net
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: ports/25967: Postfix port links against the static MySQL client library
Date: Fri, 23 Mar 2001 11:43:45 +0900

 Can you check PR ports/25967?
 
 
 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25967
 
 
 -- 
 Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
              <kuriyama@FreeBSD.org> // FreeBSD Project

From: Blaz Zupan <blaz@amis.net>
To: Jun Kuriyama <kuriyama@imgsrc.co.jp>
Cc: <freebsd-gnats-submit@FreeBSD.ORG>
Subject: Re: ports/25967: Postfix port links against the static MySQL client
 library
Date: Fri, 23 Mar 2001 19:50:18 +0100 (CET)

 > Can you check PR ports/25967?
 > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25967
 
 I have not personally tested the patch, but I believe it to be correct. I also
 believe it was already commited to postfix-current.
 
 Blaz Zupan,  Medinet d.o.o, Linhartova 21, 2000 Maribor, Slovenia
 E-mail: blaz@amis.net, Tel: +386-2-320-6320, Fax: +386-2-320-6325
 
State-Changed-From-To: open->closed 
State-Changed-By: kuriyama 
State-Changed-When: Fri Mar 23 17:42:13 PST 2001 
State-Changed-Why:  
Committed, thanks! 

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

From: Blaz Zupan <blaz@amis.net>
To: Jun Kuriyama <kuriyama@imgsrc.co.jp>
Cc: <freebsd-gnats-submit@FreeBSD.ORG>
Subject: Re: ports/25967: Postfix port links against the static MySQL client
 library
Date: Sat, 24 Mar 2001 20:04:08 +0100 (CET)

 > Can you check PR ports/25967?
 > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25967
 
 I just experienced a problem because of this patch. Until now, postfix has
 been started using sendmail_enable="YES" in /etc/rc.conf. But now this does
 not work because at this point /usr/local/etc/rc.d/mysql-client.sh has not
 been run yet and thus ldconfig has not been run so libmysqlclient is not yet
 available. Postfix fails to start. There are two possible fixes: either revert
 the patch or make the postfix port install /usr/local/etc/rc.d/postfix.sh.
 
 Blaz Zupan,  Medinet d.o.o, Linhartova 21, 2000 Maribor, Slovenia
 E-mail: blaz@amis.net, Tel: +386-2-320-6320, Fax: +386-2-320-6325
 

From: "Renaud Waldura" <renaud@waldura.org>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: ports/25967: Postfix port links against the static MySQL client library
Date: Thu, 5 Apr 2001 12:06:32 -0700

 I'm the originator of this PR; a word if I may...
 
 Please consider starting Postfix with its own
 /usr/local/etc/rc.d/postfix.sh. I personally never understood (until today)
 why this file wasn't created, and why my freshly installed Postfix was not
 started. I ended up writing the file myself.
 
 When I say "sendmail_enable=NO" in my /etc/rc.conf, as I always do, I mean
 precisely that, i.e. "do not enable f%ing sendmail, I want to use something
 else".
 
 I understand today this was done on purpose, in the hope to smoothly
 integrate Postfix into the base system. But I tend to believe that, like
 many users, when I choose Postfix, I do so *explicitely*, in full knowledge
 that I may encounter some quirks.
 
 While most (all?) of those quirks have now been taken care of by /etc/mail
 (kudos to the person who came up with this), it looks wrong to use
 "sendmail_enable" to enable Postfix. Either rename that variable to
 "smtpserver_enable" or something, or start Postfix separately.
 
 I trust the ports maintainers to come up with the best possible solution.
 Thank you for your time.
 
 --Renaud
 
 
>Unformatted:
