rpmbuild-nonroot %{version} interpreted incorrectly

Nils Philippsen nphilipp at redhat.com
Wed May 26 14:58:12 UTC 2004


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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20040526/ac5324e4/attachment.sig>


More information about the fedora-devel-list mailing list