FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 11-19-2011, 05:17 PM
"Joseph L. Casale"
 
Default build postfix spec w/ mysql

>I was hoping someone out there might not mind having a look at the spec file and let me know what I'm missing.

It would be required to know how you build it, cmdline?
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-19-2011, 05:47 PM
David Goldsmith
 
Default 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@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-19-2011, 05:52 PM
Tim Dunphy
 
Default build postfix spec w/ mysql

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@sans.org>
To: centos@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@centos.org
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-19-2011, 06:10 PM
Alexander Dalloz
 
Default build postfix spec w/ mysql

Am 19.11.2011 19:11, schrieb Tim Dunphy:
> 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.

Tim, you certainly noticed the verbose explanations in the spec file below.

> # W A R N I N G -- DO NOT EDIT THIS FILE -- W A R N I N G
> #
> # postfix.spec
> #
> # This file was generated automatically from /home/sjmudd/RPM/SRC/postfix/postfix.spec.in.
> # If you want to build postfix with other options see make-postfix.spec in
> # the same directory for instructions.
> # --
> #
> # File used to generate the distribution-specific postfix.spec file.
> # If you need to make changes to postfix.spec, make them to postfix.spec.in
> # and regenerate the spec file.
> #
> # See make-postfix.spec in %{_sourcedir} for more information.
> #
> # This spec file was built on distribution: rhel-5.0
> #
> # Information imported from postfix.spec.in: DO NOT CHANGE IT BY HAND
> #
> # mysql_paths - paths where locally installed MySQL resides (or 0)
> # - if using this option mysql_paths should be as
> # follows: </pathto/mysql/include>:</pathto/mysql/lib>
> # e.g.: /usr/mysql/include:/usr/mysql/lib
> # - The order is important and only 2 directories may
> # be given.
> # requires_db - used to add dbX dependencies in the package
> # smtpd_multiline_greeting - my patch to allow multiline banner
> # mps - man page suffix, .gz except Mandrake >= 8 which uses .bz2
> # with_cdb - include CDB support by Michael Tokarev
> # <mjt@corpit.ru>
> # with_dovecot - include DOVECOT SASL authentication
> # with_ldap - include LDAP support
> # with_mysql - include support for www.mysql.com's MySQL rpms
> # with_mysql_redhat - include support for RedHat's MySQL rpms
> # with_pcre - include pcre support
> # with_pgsql - include Postgres database support
> # with_sasl - include Cyrus SASL/AUTH support (0 to disable sasl,
> # 1 for sasl v1, or 2 for sasl v2, sasl_library is
> # the sasl library to link against, distribution dependent)
> # with_spf - include libspf2 library support (EXPERIMENTAL)
> # - rpms for libspf can be found at http://www.sosdg.org/rpm/libspf/
> # with_tls - include TLS support
> # with_tlsfix - include TLS fix
> # - needed for rh6.2, rh9 and rhel3
> # with_vda - add virtual delivery agent patch
> #
> # Please send bugfixes and comments to the packager.
> #
> # distribution which the spec file was built from
> %define distribution rhel-5.0
>
> %define MYSQL 1

Why did you add that non working define? Above all variables required
are already there. Do not edit the spec file! There is no need to. Just
follow the rpmbuild documentation and set the variable you want to use.

So, you would have to run

rpmbuild -ba --define "with_mysql_redhat 1"

[ ... ]

> Thanks in advance!!
> Tim

Alexander

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-19-2011, 07:16 PM
Tim Dunphy
 
Default build postfix spec w/ mysql

ok sorry for the oversight and thanks for the explanation.

best!
tim

----- Original Message -----
From: "Alexander Dalloz" <ad+lists@uni-x.org>
To: "CentOS mailing list" <centos@centos.org>
Sent: Saturday, November 19, 2011 2:10:14 PM
Subject: Re: [CentOS] build postfix spec w/ mysql

Am 19.11.2011 19:11, schrieb Tim Dunphy:
> 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.

Tim, you certainly noticed the verbose explanations in the spec file below.

> # W A R N I N G -- DO NOT EDIT THIS FILE -- W A R N I N G
> #
> # postfix.spec
> #
> # This file was generated automatically from /home/sjmudd/RPM/SRC/postfix/postfix.spec.in.
> # If you want to build postfix with other options see make-postfix.spec in
> # the same directory for instructions.
> # --
> #
> # File used to generate the distribution-specific postfix.spec file.
> # If you need to make changes to postfix.spec, make them to postfix.spec.in
> # and regenerate the spec file.
> #
> # See make-postfix.spec in %{_sourcedir} for more information.
> #
> # This spec file was built on distribution: rhel-5.0
> #
> # Information imported from postfix.spec.in: DO NOT CHANGE IT BY HAND
> #
> # mysql_paths - paths where locally installed MySQL resides (or 0)
> # - if using this option mysql_paths should be as
> # follows: </pathto/mysql/include>:</pathto/mysql/lib>
> # e.g.: /usr/mysql/include:/usr/mysql/lib
> # - The order is important and only 2 directories may
> # be given.
> # requires_db - used to add dbX dependencies in the package
> # smtpd_multiline_greeting - my patch to allow multiline banner
> # mps - man page suffix, .gz except Mandrake >= 8 which uses .bz2
> # with_cdb - include CDB support by Michael Tokarev
> # <mjt@corpit.ru>
> # with_dovecot - include DOVECOT SASL authentication
> # with_ldap - include LDAP support
> # with_mysql - include support for www.mysql.com's MySQL rpms
> # with_mysql_redhat - include support for RedHat's MySQL rpms
> # with_pcre - include pcre support
> # with_pgsql - include Postgres database support
> # with_sasl - include Cyrus SASL/AUTH support (0 to disable sasl,
> # 1 for sasl v1, or 2 for sasl v2, sasl_library is
> # the sasl library to link against, distribution dependent)
> # with_spf - include libspf2 library support (EXPERIMENTAL)
> # - rpms for libspf can be found at http://www.sosdg.org/rpm/libspf/
> # with_tls - include TLS support
> # with_tlsfix - include TLS fix
> # - needed for rh6.2, rh9 and rhel3
> # with_vda - add virtual delivery agent patch
> #
> # Please send bugfixes and comments to the packager.
> #
> # distribution which the spec file was built from
> %define distribution rhel-5.0
>
> %define MYSQL 1

Why did you add that non working define? Above all variables required
are already there. Do not edit the spec file! There is no need to. Just
follow the rpmbuild documentation and set the variable you want to use.

So, you would have to run

rpmbuild -ba --define "with_mysql_redhat 1"

[ ... ]

> Thanks in advance!!
> Tim

Alexander

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-20-2011, 11:35 PM
Christopher Chan
 
Default build postfix spec w/ mysql

On Sunday, November 20, 2011 02:11 AM, 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.
>

I thought there was a postfix package with mysql enabled in the plus repo?


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org