[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpmbuild-nonroot %{version} interpreted incorrectly



On Wed, 2004-05-26 at 16:00, Leonard den Ottolander wrote:
> Hi,
> 
> When using Mike Harris' rpmbuild-nonroot setup (except for the no archs
> hack) I have a problem building rpm. See
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=124364 .
> 
> rpmbuild -bp rpm.spec fails:
> error: File /data/rpmbuild-fc1/rpm-1.8.1/rpm-4.2.1.tar.gz: No such
> file or directory
> 
> It looks like the last "Version:" (popt's) is being used in the path
> expansion for %setup.
> 
> $ rpm --showrc | grep sourcedir
>   RPM_SOURCE_DIR="%{u2p:%{_sourcedir}}"
> RPM_SOURCE_DIR="%{_sourcedir}"
> -14: _sourcedir %{_topdir}/%{name}-%{version}
> -14: _specdir   %{_sourcedir}
> 
> The latest "Version:" tag in the spec file is the one for popt. It
> looks as if this value is substituted for %{version}. How can this be
> fixed?

I guess this has to be fixed in RPM itself -- I think you should file it
in Bugzilla (actually I stumbled over this a while ago but was too lazy
to file it ;-).

Nils
-- 
     Nils Philippsen    /    Red Hat    /    nphilipp redhat com
"They that can give up essential liberty to obtain a little temporary
 safety deserve neither liberty nor safety."     -- B. Franklin, 1759
 PGP fingerprint:  C4A8 9474 5C4C ADE3 2B8F  656D 47D8 9B65 6951 3011

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]