Remove gcc, gcc-c++ and make from minimal build root

Marian Csontos mcsontos at redhat.com
Tue Jan 13 18:08:47 UTC 2015


On 01/13/2015 06:53 PM, Aleksandar Kurtakov wrote:
>
>
> ----- Original Message -----
>> From: "Marian Csontos" <mcsontos at redhat.com>
>> To: devel at lists.fedoraproject.org
>> Sent: Tuesday, January 13, 2015 7:52:07 PM
>> Subject: Re: Remove gcc, gcc-c++ and make from minimal build root
>>
>> 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.)
>
> These are src.rpm (--arch src) so the mapping to spec files is 1:1.

Doh! You are of course right! Seems I have serious text understanding 
problems which reminds me it is past dinner time...

Sorry for noise.

-- Martian


>
> Alex
>
>>
>>>>
>>>>
>>>> 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
>>>
>>>
>>
>> --
>> devel mailing list
>> devel at lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/devel
>> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct



More information about the devel mailing list