Re: [gentoo-dev] [PATCH 0/4] CPU_FLAGS_X86: Introduce 'rdrand' flag

2020-07-13 Thread Michał Górny
On Mon, 2020-07-13 at 22:53 +0200, Francisco Blas Izquierdo Riera (klondike) wrote: > El 13/7/20 a las 22:07, Francisco Blas Izquierdo Riera (klondike) escribió: > > El 13/7/20 a las 21:27, Michał Górny escribió: > > > On Mon, 2020-07-13 at 19:33 +0200, Francisco Blas Izquierdo Riera > > >

Re: [gentoo-dev] [PATCH 0/4] CPU_FLAGS_X86: Introduce 'rdrand' flag

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
El 13/7/20 a las 22:07, Francisco Blas Izquierdo Riera (klondike) escribió: > El 13/7/20 a las 21:27, Michał Górny escribió: >> On Mon, 2020-07-13 at 19:33 +0200, Francisco Blas Izquierdo Riera >> (klondike) wrote: >>> El 13/7/20 a las 19:23, Michał Górny escribió: On Mon, 2020-07-13 at 19:07

Re: [gentoo-dev] [PATCH 0/4] CPU_FLAGS_X86: Introduce 'rdrand' flag

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
El 13/7/20 a las 21:27, Michał Górny escribió: > On Mon, 2020-07-13 at 19:33 +0200, Francisco Blas Izquierdo Riera > (klondike) wrote: >> El 13/7/20 a las 19:23, Michał Górny escribió: >>> On Mon, 2020-07-13 at 19:07 +0200, Francisco Blas Izquierdo Riera >>> (klondike) wrote: Hi! We

[gentoo-dev] Re: [PATCHv2 3/4] dev-libs/json-c: Change USE to cpu_flags_x86_rdrand

2020-07-13 Thread Jakov Smolic
LGTM, thank you! I just left a comment on the pull request to close the related bug [1] via the commit. Best regards, Jakov Smolic [1] https://bugs.gentoo.org/724354 On Mon, Jul 13, 2020 at 7:29 PM Francisco Blas Izquierdo Riera (klondike) wrote: > > > Package-Manager: Portage-2.3.99,

Re: [gentoo-dev] [PATCH 0/4] CPU_FLAGS_X86: Introduce 'rdrand' flag

2020-07-13 Thread Michał Górny
On Mon, 2020-07-13 at 19:33 +0200, Francisco Blas Izquierdo Riera (klondike) wrote: > El 13/7/20 a las 19:23, Michał Górny escribió: > > On Mon, 2020-07-13 at 19:07 +0200, Francisco Blas Izquierdo Riera > > (klondike) wrote: > > > Hi! > > > > > > We have currently two packages that have USE

Re: [gentoo-portage-dev] [PATCH] Add caching to use_reduce, vercmp, and catpkgsplit

2020-07-13 Thread Ulrich Mueller
> On Mon, 13 Jul 2020, Chun-Yu Shei wrote: > Ah, I wasn't aware that I should have added that... I'm happy to say > "Signed-off-by: Chun-Yu Shei " somewhere if > necessary. Should be enough to say it here, because this mailing list is archived. We could of course add an empty commit with

Re: [gentoo-portage-dev] [PATCH] Add caching to use_reduce, vercmp, and catpkgsplit

2020-07-13 Thread Chun-Yu Shei
Ah, I wasn't aware that I should have added that... I'm happy to say "Signed-off-by: Chun-Yu Shei " somewhere if necessary. The patch has gone through Google's open source patching approval process and I'm able to agree to any CLA required. On Mon, Jul 13, 2020 at 11:54 AM Ulrich Mueller wrote:

Re: [gentoo-portage-dev] [PATCH] Add caching to use_reduce, vercmp, and catpkgsplit

2020-07-13 Thread Ulrich Mueller
> On Mon, 13 Jul 2020, Zac Medico wrote: > Merged: > https://gitweb.gentoo.org/proj/portage.git/commit/?id=d9ee5b09664ab2255b62c1d52d554721ef8b716a Looks like the author's copyright signoff is missing? signature.asc Description: PGP signature

[gentoo-dev] last rites: kubernetes split packages

2020-07-13 Thread William Hubbs
# William Hubbs (2020-07-14) # The kubernetes split packages are old versions with known security # issues. # #If you haven't already, please upgrade and migrate to sys-cluster/kubernetes: # # https://www.gentoo.org/support/news-items/2020-04-03-kubernetes-moving-to-single-package.html # #

Re: [gentoo-dev] [PATCH 0/4] CPU_FLAGS_X86: Introduce 'rdrand' flag

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
El 13/7/20 a las 19:23, Michał Górny escribió: > On Mon, 2020-07-13 at 19:07 +0200, Francisco Blas Izquierdo Riera > (klondike) wrote: >> Hi! >> >> We have currently two packages that have USE cpu-flags-x86-rdrand as there >> is no USE_EXPAND version available. This pattern is likely to confuse

[gentoo-dev] Re: [PATCH 0/4] CPU_FLAGS_X86: Introduce 'rdrand' flag

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
Please ignore patches 2 and 3, I missed some USE flag replacements. I'll resubmit in a second. El 13/7/20 a las 19:07, Francisco Blas Izquierdo Riera (klondike) escribió: > Hi! > > We have currently two packages that have USE cpu-flags-x86-rdrand as there is > no USE_EXPAND version available.

[gentoo-dev] [PATCHv2 3/4] dev-libs/json-c: Change USE to cpu_flags_x86_rdrand

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Francisco Blas Izquierdo Riera (klondike) ---  dev-libs/json-c/json-c-0.14-r3.ebuild | 4 ++--  dev-libs/json-c/json-c-.ebuild    | 4 ++--  dev-libs/json-c/metadata.xml  | 3 ---  3 files changed, 4 insertions(+), 7

Re: [gentoo-portage-dev] [PATCH] Add caching to use_reduce, vercmp, and catpkgsplit

2020-07-13 Thread Zac Medico
On 7/12/20 11:30 PM, Chun-Yu Shei wrote: > Each of these functions is called repeatedly with the same arguments > many times. Cache sizes were selected to minimize memory use increase, > while still providing about the same speedup compared to a cache with > unbounded size. "emerge -uDvpU

[gentoo-dev] [PATCHv2 2/4] dev-haskell/cryptonite: Change USE to cpu_flags_x86_rdrand

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Francisco Blas Izquierdo Riera (klondike) ---  dev-haskell/cryptonite/cryptonite-0.21.ebuild    | 8  dev-haskell/cryptonite/cryptonite-0.26-r1.ebuild | 6 +++---  dev-haskell/cryptonite/metadata.xml  | 1 -  3

Re: [gentoo-dev] [PATCH 0/4] CPU_FLAGS_X86: Introduce 'rdrand' flag

2020-07-13 Thread Michał Górny
On Mon, 2020-07-13 at 19:07 +0200, Francisco Blas Izquierdo Riera (klondike) wrote: > Hi! > > We have currently two packages that have USE cpu-flags-x86-rdrand as there is > no USE_EXPAND version available. This pattern is likely to confuse users as > they may not be aware of the difference

Re: [gentoo-dev] [PATCH 2/4] dev-haskell/cryptonite: Change USE to cpu_flags_x86_rdrand

2020-07-13 Thread Sergei Trofimovich
On Mon, 13 Jul 2020 19:11:52 +0200 "Francisco Blas Izquierdo Riera (klondike)" wrote: > Package-Manager: Portage-2.3.99, Repoman-2.3.23 > Signed-off-by: Francisco Blas Izquierdo Riera (klondike) > --- >  dev-haskell/cryptonite/cryptonite-0.21.ebuild    | 4 ++-- >  

[gentoo-dev] Re: [PATCH 4/4] x86: Add support for 'rdrand'

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
Notice that this is for cpuflags2cpuid Signed-off-by: Francisco Blas Izquierdo Riera (klondike) ---  src/x86.c  | 1 +  tests/x86/amd-colfax.txt   | 2 +-  tests/x86/xeon-e-2176g.txt | 2 +-  tests/x86/xeon-silver-4410.txt | 2 +-  4 files changed, 4 insertions(+), 3

[gentoo-dev] [PATCH 3/4] dev-libs/json-c: Change USE to cpu_flags_x86_rdrand

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Francisco Blas Izquierdo Riera (klondike) ---  dev-libs/json-c/json-c-0.14-r3.ebuild | 2 +-  dev-libs/json-c/json-c-.ebuild    | 2 +-  dev-libs/json-c/metadata.xml  | 3 ---  3 files changed, 2 insertions(+), 5

[gentoo-dev] [PATCH 2/4] dev-haskell/cryptonite: Change USE to cpu_flags_x86_rdrand

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Francisco Blas Izquierdo Riera (klondike) ---  dev-haskell/cryptonite/cryptonite-0.21.ebuild    | 4 ++--  dev-haskell/cryptonite/cryptonite-0.26-r1.ebuild | 2 +-  dev-haskell/cryptonite/metadata.xml  | 1 -  3 files

[gentoo-dev] [PATCH 1/4] CPU_FLAGS_X86: add 'rdrand' flag

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
Introduce 'rdrand' flag that corresponds to RDRAND instruction. This currently has two users. Signed-off-by: Francisco Blas Izquierdo Riera (klondike) ---  profiles/desc/cpu_flags_x86.desc | 1 +  1 file changed, 1 insertion(+) diff --git a/profiles/desc/cpu_flags_x86.desc

[gentoo-dev] [PATCH 0/4] CPU_FLAGS_X86: Introduce 'rdrand' flag

2020-07-13 Thread Francisco Blas Izquierdo Riera (klondike)
Hi! We have currently two packages that have USE cpu-flags-x86-rdrand as there is no USE_EXPAND version available. This pattern is likely to confuse users as they may not be aware of the difference between dashes and underscores. Affected packages: dev-haskell/cryptonite dev-libs/json-c The

[gentoo-dev] app-laptop/thinkfan is for grabs

2020-07-13 Thread Mikle Kolyada
I do not have an old thinkpad anymore. On modern ones this package is irrelevant. There is a pending version bump and 3 open bugs: - musl compatibility problem - 2 bugs are due to problems in upstream unit/init.d files. signature.asc Description: OpenPGP digital signature

[gentoo-dev] Last rites: net-print/pkpgcounter, sci-libs/scipy-python2, sci-visualization/pyxplot and old versions of

2020-07-13 Thread Michał Górny
# Michał Górny (2020-07-13) # These packages are mid-profile Python 2-only dependencies # of dev-python/pillow. Since the last Pillow version to support # Python 2 contains a number of unresolved vulnerabilities, these # packages and old package versions are queued for removal. # # In more

[gentoo-portage-dev] [PATCH] Add caching to use_reduce, vercmp, and catpkgsplit

2020-07-13 Thread Chun-Yu Shei
Each of these functions is called repeatedly with the same arguments many times. Cache sizes were selected to minimize memory use increase, while still providing about the same speedup compared to a cache with unbounded size. "emerge -uDvpU --with-bdeps=y @world" runtime decreases from 44.32s ->

Re: [gentoo-portage-dev] [PATCH] Add caching to use_reduce,

2020-07-13 Thread Chun-Yu Shei
Sounds good, here's an updated patch that uses frozenset instead. I also moved the lru_cache imports up with the other system imports and renamed use_reduce_cached to _use_reduce_cached to fit with the existing convention. Memory usage and performance are essentially unchanged due to the tuple