[Mageia-dev] Urpmi raise an erreur when installing a .spec file

Thierry Vignaud thierry.vignaud at gmail.com
Fri Aug 10 00:14:18 CEST 2012


On 10 August 2012 00:07, Olivier Thauvin <nanardon at nanardon.zarb.org> wrote:
> Urpmi wrongly assumed the spec file as binary package:
>
> Example:
>
> QUOTE:
>     %define name toto
>     %define version 1
>     %define release %mkrel 1
>
>     Summary: test
>     Name: %{name}
>     Version: %{version}
>     Release: %{release}
>     License: GPL
>     Group: test
>     BuildRoot: %{_tmppath}/%{name}-buildroot
>
>     %description
>     test
>
>     %files
>     %defattr(-,root,root)
> END QUOTE
>
> $ urpmi toto.spec
> error: toto-1-1.mga3.x86_64: install failed
>
> Now if replace the name by prboom (installed):
>
> A requested package cannot be installed:
> prboom-1-1.mga3.x86_64 (in order to keep prboom-2.5.0-10.mga3.x86_64)
>
> So clearly the specfile is treat as a binary rpm and the error reported
> incorrectly.

ah OK.
It's b/c of this commit
http://svnweb.mageia.org/soft/rpm/perl-URPM/trunk/URPM.xs?r1=5029&r2=5031


More information about the Mageia-dev mailing list