OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Building postfix from src rpm

From: Adrian Mak (makkaichunggmail.com)
Date: Thu Aug 18 2005 - 09:16:50 CDT


> > error: Failed build dependencies:
> > /usr/local/mysql/include/mysql/mysql.h is needed by
> > postfix-2.2.5-1.pcre.mysql_path.sasl2.rhel3
>
> Either download the 4.1.x rpms from MySQL.com, or build a placeholder package
> that provides all dependencies the postfix rpm build process will need.
> Option 1 is easier.

I studied the postfix.spec throughly, the following lines to check
those manually build mysql from source tarball.

%if %{mysql_local}
BuildRequires: %{mysql_include}/mysql.h
Requires: %{mysql_lib}/libmysqlclient.so
%endif

The case is if I remark these check, postfix can build & make
sucessfully with mysql support. My question is the BuildRequires and
Requires tag is to check whether a rpm package is exist in the system.
If look at this
it will look like
BuildRequires: /usr/local/mysql/include/mysql/mysql.h
Requires: /usr/local/mysql/lib/mysql/libmysqlclient.so

does the tags also check a file ??
or it recgoznie /usr/local/mysql/include/mysql/mysql.h is a package name