Dne 13.1.2015 v 17:54 Vít Ondruch napsal(a):
>> So lets try to find what is written in C/C++ by some
different way. Is
>> that true, that every package in C/C++ compiled using gcc depends on
>> glibc? Then we can use this query to get the number of packages:
>>
>> $ repoquery --source --whatrequires 'libc.so.6(GLIBC_2.4)(64bit)' | sort
>> | uniq | wc -l
>> 2834
The additional sed should remove the duplicated versions:
$ repoquery --source --whatrequires 'libc.so.6(GLIBC_2.4)(64bit)' | sort
-u | sed -r 's/(.*)-.*-.*/\1/' | uniq | wc -l
2645
Vít
> Well, ... any explanation why this figure differs significantly
There are probably other reasons for the package to be arch dependent.
First which comes to my mind is that somebody forgot to specify
BuildArch: noarch.
> from this brute force estimate [1]:
> # rpm -q --qf "%{SOURCERPM}\n" \
> -p rawhide/i386/os/Packages/*/*.i686.rpm 2>/dev/null | sort -u | wc -l
> 7706
Otherwise interesting number. I'd say this is top estimate of number of
affected packages, since it probably suffers the same issue as mine
query, i.e. there are the same source packages, with different versions,
hence they are not filtered out as duplicates.
Vít
>
> Ralf
>
> [1] Counting the unique src.rpms of all binary rpms in a local rawhide
> mirror.
>
>