4 messages in net.sourceforge.lists.courier-usersRe: [courier-users] [Fwd: Re: Buildi...
FromSent OnAttachments
Wayne PascoeApr 18, 2007 4:40 am 
Gordon MessmerApr 18, 2007 7:17 am 
Jay LeeApr 18, 2007 8:57 am 
Gordon MessmerApr 18, 2007 10:13 am 
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:Re: [courier-users] [Fwd: Re: Building RPM on Centos]Actions...
From:Gordon Messmer (yiny@eburg.com)
Date:Apr 18, 2007 10:13:05 am
List:net.sourceforge.lists.courier-users

Jay Lee wrote:

Gordon Messmer wrote:

It'd be nice to see this in the FAQ, but don't think it can be made a standard "BuildRequires" item. It's not available for CentOS 5 x86, (and I assume RHEL 5 x86). I'm not sure under what situations it is available and required.

Looks to me like CentOS, Fedora and RHEL all have redhat-rpm-config:

Thanks, Jay. I was looking at this way too early. I thought I did a "yum search", and I hadn't. I've really got to quit computing in the morning. :(

The package generally includes all files in /usr/lib/rpm/redhat which rpmbuild looks at for macros and rc files after looking for the files in /usr/lib/rpm. I believe the purpose is to allow distribution specific options to be passed to rpmbuild. rpmbuild will work fine if all the variables courier.spec uses are defined in the /usr/lib/rpm files but if they're not (as is the case in CentOS5) then the build will fail.

I'm using CentOS 5, and my builds went fine. I think the problem is that "/usr/lib/rpm/ia32e-linux/macros" wasn't present on Wayne's system, and rpm reported that was the file it was using.

I just downloaded rpm x86_64 from CentOS, and looked at the package contents. I can see that "/usr/lib/rpm/x86_64-linux/macros" is included, but rpm is looking for "/usr/lib/rpm/ia32e-linux/macros".

This should be reported to Red Hat as a bug in rpm. That file needs to be put in a directory which reflects the arch name that rpm is going to use to locate it later. Duh.

Installing "redhat-rpm-config" fixes things in a roundabout way, but shouldn't be necessary.