thanks for the reply! the command line was rpmbuild -ba postfix.spec and yes I did add that line. I a little new to spec files so I guess I didn't know how to add it correctly. maybe there's some documentation out there that might be good for me to reference? I've googled around and not found the answer. thanks tim ----- Original Message ----- From: "David Goldsmith" <dgoldsmith at sans.org> To: centos at centos.org Sent: Saturday, November 19, 2011 1:47:00 PM Subject: Re: [CentOS] build postfix spec w/ mysql -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11/19/2011 1:11 PM, Tim Dunphy wrote: > hello list! > > I am attempting to build an rpm of postfix that includes support > for mysql. I've done this before with earlier versions on postfix > but I am staring at this spec file until my eyes bleed and I just > don't see why when I build the spec with rpmbuild mysql support > isn't there. > > After I install the rpm I have a look at the modules as such: ldd > $(which postfix) | grep -i mysql > > and nothing's there. > > I was hoping someone out there might not mind having a look at the > spec file and let me know what I'm missing. One of these two lines likely needs to be set to 1 %define with_mysql 0 %define with_mysql_redhat 0 They control two conditional blocks later in the spec file %if %{with_mysql_redhat} Requires: mysql BuildRequires: mysql, mysql-devel %endif %if %{with_mysql} Requires: MySQL-shared BuildRequires: MySQL-shared, MySQL-devel %endif I'm guessing you added the following line: %define MYSQL 1 because that define name does not appear to be referenced anywhere else in the spec file. - -- David Goldsmith -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7H+aQACgkQ417vU8/9QfnppACfUOFG05KqoN6s8rsrHHrNAvvX OscAn3WMAHWStJgYPrIDTpXSr/rkq1H0 =xEFq -----END PGP SIGNATURE----- _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos