On 01/13/2015 06:46 PM, Vít Ondruch wrote:
Dne 13.1.2015 v 18:20 Vít Ondruch napsal(a):
> Dne 13.1.2015 v 18:09 Vít Ondruch napsal(a):
>> 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
>>
> And the wildcard in libc makes the difference :) So these seems to be
> numbers for Rawhide:
>
> $ repoquery --disablerepo=* --enablerepo=rawhide --source --whatrequires
> 'libc.so.6*' | sort -u | sed -r 's/(.*)-.*-.*/\1/' | uniq | wc -l
> 7402
>
> $ dnf repoquery --disablerepo=* --enablerepo=rawhide-source --arch src
> '*' | wc -l
> 16230
>
> I.e. 45.6 % of packages seems to be written in C/C++
You should try to turn that into number of spec files as it is not
uncommon there are noarch packages built from same spec file as
architecture dependent (like kernel-firmware.)
>
>
> Vít
>
>
And somebody might be interested what is the trend:
= F21
$ repoquery --disablerepo=* --enablerepo=fedora-source --arch src '*' |
wc -l
15842
$ repoquery --disablerepo=* --enablerepo=fedora --source --whatrequires
'libc.so.6*' | sort -u | sed -r 's/(.*)-.*-.*/\1/' | uniq | wc -l
7320
46.2 %
= F20
$ repoquery --repoid=f
--repofrompath='f,http://download.fedoraproject.org/pub/fedora/linux/releases/20/Everything/source/SRPMS/'
--arch=src '*' | sort -u | sed -r 's/(.*)-.*-.*/\1/' | uniq | wc -l
14364
$ repoquery --repoid=f
--repofrompath='f,http://download.fedoraproject.org/pub/fedora/linux/releases/20/Everything/x86_64/os/'
--source --whatrequires 'libc.so.6*' | sort -u | sed -r
's/(.*)-.*-.*/\1/' | uniq | wc -l
6856
47.7 %
= F19
$ repoquery --repoid=f
--repofrompath='f,http://download.fedoraproject.org/pub/fedora/linux/releases/19/Everything/source/SRPMS/'
--arch=src '*' | sort -u | sed -r 's/(.*)-.*-.*/\1/' | uniq | wc -l
13606
$ repoquery --repoid=f
--repofrompath='f,http://download.fedoraproject.org/pub/fedora/linux/releases/19/Everything/x86_64/os/'
--source --whatrequires 'libc.so.6*' | sort -u | sed -r
's/(.*)-.*-.*/\1/' | uniq | wc -l
6609
48.6 %
= F18
$ repoquery --repoid=f
--repofrompath='f,http://download.fedoraproject.org/pub/fedora/linux/releases/18/Everything/source/SRPMS/'
--arch=src '*' | sort -u | sed -r 's/(.*)-.*-.*/\1/' | uniq | wc -l
12614
$ repoquery --repoid=f
--repofrompath='f,http://download.fedoraproject.org/pub/fedora/linux/releases/18/Everything/x86_64/os/'
--source --whatrequires 'libc.so.6*' | sort -u | sed -r
's/(.*)-.*-.*/\1/' | uniq | wc -l
6288
49.8%
Vít