On Wed, 2011-01-26 at 09:38 -0500, JohnS wrote:
On Tue, 2011-01-25 at 17:07 -0500, Bob Beers wrote:
It's your build environment that's the problem. They build for el5.
Clean out your build root and recreate it and do a fresh .rpmmacros file.
John
Wrote: /home/ethan/rpmbuild/SRPMS/libsrtp-1.4.4-2.20101004cvs.el5.em2.src.rpm Wrote: /home/ethan/rpmbuild/RPMS/x86_64/libsrtp-1.4.4-2.20101004cvs.el5.em2.x86_64.rpm Wrote: /home/ethan/rpmbuild/RPMS/x86_64/libsrtp-devel-1.4.4-2.20101004cvs.el5.em2.x86_64.rpm Wrote: /home/ethan/rpmbuild/RPMS/x86_64/libsrtp-debuginfo-1.4.4-2.20101004cvs.el5.em2.x86_64.rpm
Ahh well that want work for him. My build environment is way different. You'll have to excuse me.
Magic rpm says this: Box stock CentOS... [ethan@sylvies SPECS]$ rpm -q rpm rpm-4.4.2.3-20.el5_5.1
So Bob needs:
[ethan@sylvies SPECS]$ diff -uNr libsrtp.spec.orig libsrtp.spec --- libsrtp.spec.orig 2011-01-26 10:51:58.000000000 -0500 +++ libsrtp.spec 2011-01-26 10:52:39.000000000 -0500 @@ -12,6 +12,9 @@ # cvs -d:pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp co -P srtp # tar cvfj srtp-1.4.4-20101004cvs.tar.bz2 srtp/ Source0: %{shortname}-%{version}-%{cvsver}.tar.bz2 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + # Pkgconfig goodness Source1: libsrtp.pc # Seriously. Who doesn't do shared libs these days?
The problem is RPM is trying to install into the main file system whereas el5 rpm does not need an incantation like so.
John