Re: [gentoo-dev] What happened to gcc-12.3.0?

2023-06-14 Thread Matt Turner
On Thu, Jun 15, 2023 at 12:02 AM Joshua Kinard wrote: Options? I mean, if anyone knows magic to make gcc build faster, I am all ears, but ever since the switch to > C++, the time needed for it to build itself has just been absolutely > horrendous. And it gets worse with each > new release,

[gentoo-dev] What happened to gcc-12.3.0?

2023-06-14 Thread Joshua Kinard
Noticing that the ebuild for gcc-12.3.0 got dropped with little explanation. It is the upstream stable release. I am eyeballing #906310 as what may have triggered the drop, but I find it a bit of a stretch that an upstream stable release got dropped over a single, optional package that has

Re: [gentoo-dev] A problem with updating my key (again)

2023-06-14 Thread Robin H. Johnson
On Tue, Jun 13, 2023 at 05:00:16PM +, Andrey Grozin wrote: > Hi *, > > My key was going to expire soon. So, as usual, I have prolonged it for the > next year (several days ago). I've sent it to the Gentoo keyserver. I've > checked that the fingerpring of my key in LDAP coinsides with the >

[gentoo-dev] [PATCH v2 7/7] pypi.eclass: Avoid subshell for extglob setting

2023-06-14 Thread Michał Górny
Suggested by Eli Schwartz. This gives roughly 5260 ops / s, over 550% speedup. The complete patch series therefore increases the speed from roughly 326 ops / s to 5260 ops / s, making the common case 16 times faster. Closes: https://bugs.gentoo.org/908411 Closes:

[gentoo-dev] [PATCH v2 6/7] pypi.eclass: Replace pypi_sdist_url in global scope

2023-06-14 Thread Michał Górny
Introduce an internal helper for _pypi_sdist_url that doesn't require subshell, and therefore eliminate all subshells from global scope. We're nearing 952 ops / s, further 39% speedup. Signed-off-by: Michał Górny --- eclass/pypi.eclass | 53 +- 1 file

[gentoo-dev] [PATCH v2 4/7] pypi.eclass: Normalize names without subshell

2023-06-14 Thread Michał Górny
Provide an internal helper to normalize names without a subshell. This gives 535 ops / s, so a further 44% speedup. Signed-off-by: Michał Górny --- eclass/pypi.eclass | 39 +++ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/eclass/pypi.eclass

[gentoo-dev] [PATCH v2 5/7] pypi.eclass: Translate version without subshell in common case

2023-06-14 Thread Michał Górny
Provide an internal helper to translate versions without a subshell, and use it in the common case. Now the benchmark gives 685 ops / s, which means it's another 28% speedup. Signed-off-by: Michał Górny --- eclass/pypi.eclass | 33 ++--- 1 file changed, 22

[gentoo-dev] [PATCH v2 3/7] pypi.eclass: Translate version once in the default scenario

2023-06-14 Thread Michał Górny
Instead of translating version two times, once in pypi_sdist_url and then when setting S, do it once and store the result. This gives roughly 371 ops / s, i.e. a 13% speedup. Signed-off-by: Michał Górny --- eclass/pypi.eclass | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-)

[gentoo-dev] [PATCH v2 2/7] eclass/tests: Add pypi-bench.sh for global scope logic

2023-06-14 Thread Michał Górny
The benchmark yield roughly 327 ops / s on my machine. Signed-off-by: Michał Górny --- eclass/tests/pypi-bench.sh | 65 ++ 1 file changed, 65 insertions(+) create mode 100755 eclass/tests/pypi-bench.sh diff --git a/eclass/tests/pypi-bench.sh

[gentoo-dev] [PATCH v2 1/7] pypi.eclass: Move setting globals to a function

2023-06-14 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/pypi.eclass | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/eclass/pypi.eclass b/eclass/pypi.eclass index 13dd56fa4fec..732b0c6184ef 100644 --- a/eclass/pypi.eclass +++ b/eclass/pypi.eclass @@ -221,12 +221,20 @@

[gentoo-dev] [PATCH v2 0/7] pypi.eclass: optimize, v2

2023-06-14 Thread Michał Górny
Hi, Only small changes: 1) added more test cases to the benchmark and improved the logic to generate readable output 2) switched extglob logic to the more readable version suggested by ulm (decided to do it after all) Michał Górny (7): pypi.eclass: Move setting globals to a function

[gentoo-dev] [PATCH] estack.eclass: Fix bug in eshopts_push()

2023-06-14 Thread Ulrich Müller
"eshopts_push -s autocd; eshopts_pop" (i.e. the first option listed by "shopt -p") would not restore the option because of bogus whitespace in the saved string. Signed-off-by: Ulrich Müller --- eclass/estack.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git