Re: build postfix spec w/ mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



-----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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux