From c18a47363fc2a491e5149d3c0663aa39c5e55b23 Mon Sep 17 00:00:00 2001 From: shtayerc Date: Tue, 13 Dec 2022 19:00:31 +0100 Subject: [PATCH 1/2] lc0: update to 0.29.0 --- srcpkgs/lc0/template | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/srcpkgs/lc0/template b/srcpkgs/lc0/template index 28425cd19f3e..9e419aa99689 100644 --- a/srcpkgs/lc0/template +++ b/srcpkgs/lc0/template @@ -1,12 +1,12 @@ # Template file for 'lc0' pkgname=lc0 -version=0.28.2 +version=0.29.0 revision=1 archs="x86_64* i686* aarch64* armv[67]l* ppc64le*" create_wrksrc=yes build_style=meson configure_args="-Dgtest=false" -_lczero_commit=5680c5fad9f3b52288d67f738b272fd09de5ee0b +_lczero_commit=4dfa4ce8339357819f7de01517e6297d4c768cdf hostmakedepends="pkg-config" makedepends="protobuf-devel zlib-devel eigen $(vopt_if openblas openblas-devel) $(vopt_if opencl ocl-icd-devel)" @@ -16,8 +16,8 @@ license="GPL-3.0-only" homepage="https://lczero.org" distfiles="https://github.com/LeelaChessZero/lc0/archive/v${version}.tar.gz https://github.com/LeelaChessZero/lczero-common/archive/${_lczero_commit}.tar.gz" -checksum="5fe8a39c82a9be2b185b57d093417ed290fc36596cb23bc731e05a57fa70f65c - def7b572df6c3e8f5307afa8abb242d51c0e8d200b12dd56466fff11b9bc4cf8" +checksum="3d3cd99bc5a82c5da2b8985ee6db4e1a2ff179e012da777319257d48c8a7c59d + d2a4bd614c01e639b70cbf14cb7d3b732f157ae6bc4865d49697e89837af8d82" build_options="openblas opencl" build_options_default="openblas" From 2013c8780a777b6fe7293cf19aeddf282554158c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 14 Dec 2022 02:13:11 +0700 Subject: [PATCH 2/2] fixup! lc0: update to 0.29.0 --- srcpkgs/lc0/patches/fix-32bit-build.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/lc0/patches/fix-32bit-build.patch diff --git a/srcpkgs/lc0/patches/fix-32bit-build.patch b/srcpkgs/lc0/patches/fix-32bit-build.patch new file mode 100644 index 000000000000..82bfc5bb1878 --- /dev/null +++ b/srcpkgs/lc0/patches/fix-32bit-build.patch @@ -0,0 +1,16 @@ +Source: sgn +Index: lc0-0.29.0/src/mcts/node.h +=================================================================== +--- lc0-0.29.0.orig/src/mcts/node.h ++++ lc0-0.29.0/src/mcts/node.h +@@ -328,6 +328,10 @@ class Node { + // Whether the child_ is actually an array of equal length to edges. + bool solid_children_ : 1; + ++ // either uint8_t, uint16_t or uint32_t is fine. ++ // force size to 48 bytes in 32-bit platforms with 4 bytes alignment ++ uint8_t padding_ = 0; ++ + // TODO(mooskagh) Unfriend NodeTree. + friend class NodeTree; + friend class Edge_Iterator;