public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Pagano <mpagano@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Guidance on adding kernel config checks to ebuilds
Date: Mon, 27 Sep 2021 14:17:40 -0400	[thread overview]
Message-ID: <3f9fbaa2-f819-b3cc-fa9b-eb6643dbc22a@gentoo.org> (raw)
In-Reply-To: <CAJ0EP42wRJsEJgBb=N5rbq95kA=yqiVq6b5XL2W_xV9noV2bAQ@mail.gmail.com>

On 9/27/21 2:15 PM, Mike Gilbert wrote:
> On Mon, Sep 27, 2021 at 1:44 PM Robin H. Johnson <robbat2@gentoo.org> wrote:
>>
>> On Mon, Sep 27, 2021 at 01:15:10PM -0400, Mike Gilbert wrote:
>>> On Mon, Sep 27, 2021 at 12:23 PM Mike Pagano <mpagano@gentoo.org> wrote:
>>>>> Adding linux-info calls to pkg_pretend or pkg_setup causes slowdowns
>>>>> when running emerge, so we should do so only when there is a
>>>>> compensating benefit.
>>>>
>>>> Is this a significant slowdown? Do you have any numbers?
>>>
>>> Adding a check for CONFIG_PACKET to the dhcpcd ebuild adds around 7
>>> seconds of delay time to the pkg_setup and/or pkg_pretend phase on my
>>> system.
>>>
>>> That's ok if a small number of packages are doing it, but it would
>>> become quite annoying if a significant number of them get queued up.
>> 7 seconds is ridiculous.
> 
> I think the horribly slow performance is mainly due to this change in
> how we detect the kernel version:
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/linux-info.eclass?id=d1ea596f034285cd044006b107a60902ea059793
> 
> That causes "make" to be called 4 times, and each make invocation adds
> a couple of seconds to the get_version call.
> 

Changes to these eclasses are like a prison of circular breakage for which there is no escape.




  reply	other threads:[~2021-09-27 18:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-27 16:10 [gentoo-dev] Guidance on adding kernel config checks to ebuilds Mike Gilbert
2021-09-27 16:23 ` Mike Pagano
2021-09-27 17:15   ` Mike Gilbert
2021-09-27 17:44     ` Robin H. Johnson
2021-09-27 17:56       ` Rich Freeman
2021-09-27 18:45         ` Mike Gilbert
2021-09-27 18:15       ` Mike Gilbert
2021-09-27 18:17         ` Mike Pagano [this message]
2021-09-27 20:28       ` Jason A. Donenfeld
2021-09-27 20:38         ` Mike Gilbert
2021-09-27 18:18   ` Mike Gilbert
2021-09-27 19:11     ` Peter Stuge
2021-09-27 19:44       ` Mike Gilbert
2021-09-27 20:56         ` Peter Stuge
2021-09-28 14:00         ` Michael Orlitzky
2021-09-27 17:01 ` [gentoo-dev] " Luca Barbato
2021-09-30 13:21 ` [gentoo-dev] " Francesco Riosa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3f9fbaa2-f819-b3cc-fa9b-eb6643dbc22a@gentoo.org \
    --to=mpagano@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox