8 messages in net.sourceforge.lists.courier-users[courier-users] Re: rpmbuild and mysq...
FromSent OnAttachments
Peer Oliver SchmidtMar 24, 2003 9:55 am 
Matt HyclakMar 24, 2003 10:27 am 
Peer Oliver SchmidtMar 24, 2003 11:38 am 
Bi...@triligon.orgMar 24, 2003 12:53 pm 
Sam VarshavchikMar 24, 2003 5:26 pm 
Peter C. NortonMar 24, 2003 7:32 pm 
Sam VarshavchikMar 24, 2003 8:08 pm 
Keith MatthewsMar 24, 2003 9:10 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Re: rpmbuild and mysql requirementActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Mar 24, 2003 5:26:52 pm
List:net.sourceforge.lists.courier-users

Peer Oliver Schmidt writes:

Thanks Matt.

On Mon, Mar 24, 2003 at 06:20:00PM +0100, Peer Oliver Schmidt enlightened us:

today, I tried to build RPMs for Redhat 7.2 with the following command: --without-authpwd --with-authpgsql --with-authldap --without-authmysql downloads/courier-0.42.0.20030319.tar.bz2 error: failed build dependencies: mysql-devel is needed by courier-0.42.0.20030319-1.7.2

The .spec file specifically requires mysql-devel (check for a BuildRequires: line). You can probably edit it, shove it back in the tarball, and continue along happily.

Anyone know if there is a reason for this, or just a small error in the .spec file?

The reason is so that an rpmbuild of the source tarball should explicitly compile and build everything, with all the bells-and-whistles enabled. MySQL authentication support gets built into an optional subpackage. The target installation machine does not need to have MySQL installed, but the build matchine, where all the software is compiled, needs to have all the software libraries installed.

Otherwise, someone who wants to have MySQL authentication, but forgets to install the MySQL development libraries (only the MySQL runtime) will wonder why the MySQL subpackage is empty and doesn't contain anything.