Bug 26769 - rpm -i fails to install some Mandriva source rpms (rpm5.org src.rpms?)
Summary: rpm -i fails to install some Mandriva source rpms (rpm5.org src.rpms?)
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL: http://mirror.yandex.ru/mandriva/deve...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 18:36 MSK by viy
Modified: 2016-12-26 14:37 MSK (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viy 2012-01-02 18:36:03 MSK
$ wget -c 'http://mirror.yandex.ru/mandriva/devel/2011/SRPMS/contrib/backports/abcm2ps-6.5.15-1.src.rpm'
 $ rpm -i abcm2ps-6.5.15-1.src.rpm 
ошибка: невозможно получить исключительную блокировку на /var/lib/rpm/Packages
ошибка: невозможно открыть индекс Packages используя db3 -  (-1)
ошибка: не могу открыть базу данных Packages в /var/lib/rpm
$ rpm -q
rpm-4.0.4-alt100.43

Выглядит так, как будто rpm принимает их за бинарные пакеты.
Comment 1 Jeff Johnson 2012-01-03 03:03:25 MSK
tracked at https://bugs.launchpad.net/rpm/+bug/911021
Comment 2 Dmitry V. Levin 2012-03-19 21:43:51 MSK
(In reply to comment #0)
> $ wget -c
> 'http://mirror.yandex.ru/mandriva/devel/2011/SRPMS/contrib/backports/abcm2ps-6.5.15-1.src.rpm'
>  $ rpm -i abcm2ps-6.5.15-1.src.rpm 
> ошибка: невозможно получить исключительную блокировку на /var/lib/rpm/Packages
> ошибка: невозможно открыть индекс Packages используя db3 -  (-1)
> ошибка: не могу открыть базу данных Packages в /var/lib/rpm
> $ rpm -q
> rpm-4.0.4-alt100.43
> 
> Выглядит так, как будто rpm принимает их за бинарные пакеты.

exactly, they _are_ binary packages:
$ od -A n -N 16 -t x1 -- abcm2ps-7.0.3-1.src.rpm 
 ed ab ee db 03 00 00 00 00 00 00 00 00 00 00 00
Comment 3 viy 2012-03-19 22:58:12 MSK
:( the whole dir
http://mirror.yandex.ru/mandriva/devel/2011/SRPMS/contrib/backports/
contains those 'srpms' with RPMVERSION=5.3.12.
What does it mean?
is rpm 5.3 compatible with our rpm 4.0+ no more?
or is it just local Mandriva bug?
Comment 4 Jeff Johnson 2012-03-19 23:27:23 MSK
Relax: Per Oyvind added a tracking dependency, now reverted.

The change totally screwed not only Mandriva's build system *twice*
but also ROSA's.

Packages produced by rpm-5.3.12 SHOULD be compatible in
format almost everywhere. The issue is vendor divergence, not
upstream incompatibilities.
Comment 5 viy 2012-03-19 23:59:05 MSK
(В ответ на комментарий №4)
> Relax: Per Oyvind added a tracking dependency, now reverted.
> 
> The change totally screwed not only Mandriva's build system *twice*
> but also ROSA's.
> 
> Packages produced by rpm-5.3.12 SHOULD be compatible in
> format almost everywhere. The issue is vendor divergence, not
> upstream incompatibilities.

thanks! that's good news.
Comment 6 Per Øyvind Karlsen 2012-03-20 18:09:50 MSK
(In reply to comment #4)
> Relax: Per Oyvind added a tracking dependency, now reverted.
Not related at all (and it only affected a few packages in cooker for a few days)..

Judging by Dmitry's comment, a better guess would be that the issue is that rpmlead is being used to determine whether src.rpm or not..