Bug 121582 - Postfix rpmbuild MySQL wrong Requires BuildRequires to mysqlclient9
Summary: Postfix rpmbuild MySQL wrong Requires BuildRequires to mysqlclient9
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: postfix
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John Dennis
QA Contact:
URL: http://http://www.fedora.us/wiki/Post...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-23 15:14 UTC by Alexander Dalloz
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-18 13:35:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexander Dalloz 2004-04-23 15:14:16 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.4.1)
Gecko/20031114

Description of problem:
The .spec file of the postfix-2.0.16-1 SRPM contains wrong
requirements for runtime and build on mysqlclient9 library while
Fedora Core 1 ships with mysqlclient version 10.

Changing %define MYSQL 0 at top of the .spec file to build Postfix
agains Mysql this causes then build error:

Error: Failed build dependencies                mysqlclient9 is needed
by postfix-2.0.16-1

The .spec file part neede to be changed (lines 99-102):

%if %{MYSQL}
Requires: mysql, mysqlclient9
BuildRequires: mysql, mysqlclient9, mysql-devel
%endif



Version-Release number of selected component (if applicable):
postfix-2.0.16-1

How reproducible:
Always

Steps to Reproduce:
1. get postfix-2.0.16-1.src.rpm
2. rpm ivh postfix-2.0.16-1.src.rpm
3. edit the .spec file and change %define MYSQL 0 to %define MYSQL 1
4. rpmbuild -ba postfix.spec

    

Actual Results:  Error: Failed build dependencies               
mysqlclient9 is needed by postfix-2.0.16-1

Expected Results:  The SRPM and the RPMs should rpmbuild proper with
Postfix build with MySQL support

Additional info:

Comment 1 Thomas Woerner 2004-06-18 13:35:08 UTC
Fixed since 2.0.16-4 in fc2.

Comment 2 Eduardo Figueroa 2004-07-22 09:11:55 UTC
download 
http://download.fedoralegacy.org/redhat/7.3/updates/i386/mysqlclient9-
3.23.22-8.i386.rpm , install it on fedora coe 1 and then try to 
rebuild postfix, It works wonderful for me !!!

Edu.-

Comment 3 Eduardo Figueroa 2004-07-22 09:12:39 UTC
http://download.fedoralegacy.org/redhat/7.3/updates/i386/

Comment 4 Eduardo Figueroa 2004-07-22 09:19:09 UTC
Don't forget to uninstall sendmail first, getting attention not to 
delete dependencies :

rpm -e --nodeps sendmail 

then install postfix !!!!!
I'm so happy.-


Note You need to log in before you can comment on or make changes to this bug.