Hi,

This patch is to fix SUNWevolution-data-server.spec build problem when
%support_level is not supported.

There was logic error. When supported, we should Requires:SUNWbdb and
BuildRequires:SUNWevolution-bdb-devel to use solaris bundled bdb. When
unsupported, these two dependencies should not be added.

So the simple logic is like this.

%define with_bdb %(test %support_level = supported && echo 1 || echo 0)
%if %with_bdb
 Requires:      SUNWbdb
 BuildRequires: SUNWevolution-bdb-devel
%endif

%if %with_bdb
%define bdb_option --with-libdb=%{_basedir}
%else
%define bdb_option
%endif

-Halton.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eds-bdb.diff
Type: text/x-patch
Size: 1610 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20071220/7d5dbe14/attachment.bin>

Reply via email to