Package Details: python-tensorstore 0.1.51-1

Git Clone URL: https://aur.archlinux.org/python-tensorstore.git (read-only, click to copy)
Package Base: python-tensorstore
Description: Library for reading and writing large multi-dimensional arrays.
Upstream URL: https://github.com/google/tensorstore
Keywords: hdf5 mat n5 zarr
Licenses: Apache
Submitter: daskol
Maintainer: daskol
Last Packager: daskol
Votes: 2
Popularity: 0.74
First Submitted: 2023-02-16 11:12 (UTC)
Last Updated: 2024-01-01 16:06 (UTC)

Latest Comments

carsme commented on 2024-02-07 08:34 (UTC)

Here's a patch:

diff --git a/PKGBUILD b/PKGBUILD
index e9e27c4..a784501 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -48,7 +48,8 @@ build() {

     export TENSORSTORE_SYSTEM_LIBS=com_google_brotli,org_sourceware_bzip2,c-ares,org_blosc_cblosc,net_zlib,se_curl,org_aomedia_avif,jpeg,png,libwebp,org_lz4,nasm,org_nghttp2,com_github_pybind_pybind11,com_google_snappy,libtiff,org_tukaani_xz,net_zstd
     export TENSORSTORE_SYSTEM_PYTHON_LIBS=numpy
-    python bazelisk.py build -c opt //python/tensorstore:_tensorstore \
+    local ccache_dir=$(ccache --get-config cache_dir)
+    python bazelisk.py build --sandbox_writable_path="$ccache_dir" -c opt //python/tensorstore:_tensorstore \
         --copt=-fvisibility=hidden \
         --verbose_failures

This takes into account that the ccache directory not necessarily is located at $HOME/.ccache.

carsme commented on 2024-02-07 07:22 (UTC)

Can you please apply one of the suggested fixes the ccache issues? Feel free to add me as co-maintainer if you'd like me to do it. Much appreciated, thanks!

wheelsofindustry commented on 2024-02-04 09:33 (UTC) (edited on 2024-02-04 09:46 (UTC) by wheelsofindustry)

error was "Failed to create temporary file for /$HOME/.ccache/tmp/*: Read-only file system" in PKGBUILD I replaced

python bazelisk.py build -c opt //python/tensorstore:_tensorstore /
--copt=-fvisibility=hidden /
--verbose_failures

with

python bazelisk.py build --sandbox_writable_path=$HOME/.ccache -c opt //python/tensorstore:_tensorstore /
--copt=-fvisibility=hidden /
--verbose_failures

OR whatever ccache dir

appears to compile normally.

carsme commented on 2024-01-10 15:55 (UTC)

I'm unsure why the build fails with ccache enabled, might be related to bazel, but I don't know.

If the issue is unrelated to my environment, and the package is truly incompatible with ccache, it would be appropriate to disable ccache for this package specifically, by putting options=(!ccache) in the PKGBUILD.

You can try building with ccache enabled by removing the ! in front of ccache in your /etc/makepkg.conf:

BUILDENV=(!distcc color ccache check !sign)

daskol commented on 2024-01-10 15:24 (UTC) (edited on 2024-01-10 15:25 (UTC) by daskol)

@carsme I didn't quite get it, what is the issue with ccache?

carsme commented on 2024-01-10 15:22 (UTC)

Hey, building this package fails for me when using ccache:

==> Starting build()...
Starting local Bazel server and connecting to it...
INFO: Analyzed target //python/tensorstore:_tensorstore (243 packages loaded, 6218 targets configured).
INFO: Found 1 target...
ERROR: /home/carsme/.cache/bazel/_bazel_carsme/35ec3f7750160c89595a5c131c8ddf27/external/com_google_absl/absl/time/internal/cctz/BUILD.bazel:32:11: Compiling absl/time/internal/cctz/src/time_zone_libc.cc [for tool] failed: (Exit 1): gcc failed: error executing command (from target @com_google_absl//absl/time/internal/cctz:time_zone)
  (cd /home/carsme/.cache/bazel/_bazel_carsme/35ec3f7750160c89595a5c131c8ddf27/sandbox/linux-sandbox/3/execroot/tensorstore && \
  exec env - \
    PATH=/home/carsme/.cache/bazelisk/downloads/bazelbuild/bazel-6.1.0-linux-x86_64/bin:/usr/lib/aurutils:/home/carsme/.local/bin:/bin:/home/carsme/.local/share/cargo/bin:/usr/lib/ccache/bin:/home/carsme/.local/share/krew/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin \
    PWD=/proc/self/cwd \
  /usr/lib/ccache/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_absl/absl/time/internal/cctz/_objs/time_zone/time_zone_libc.d '-frandom-seed=bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_absl/absl/time/internal/cctz/_objs/time_zone/time_zone_libc.o' '-DBAZEL_CURRENT_REPOSITORY="com_google_absl"' -iquote external/com_google_absl -iquote bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_absl -g0 '-fdiagnostics-color=always' -Wno-deprecated-declarations -Wno-sign-compare -Wno-unused-but-set-parameter -Wno-maybe-uninitialized -Wno-sequence-point -Wno-unknown-warning-option -g0 '-std=c++17' -fsized-deallocation -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/time/internal/cctz/src/time_zone_libc.cc -o bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_absl/absl/time/internal/cctz/_objs/time_zone/time_zone_libc.o)

Could you please add options=(!ccache). Thanks!

truncs commented on 2023-12-29 21:28 (UTC)

Not sure if this is the right place to submit a patch but I updated using the following

diff --git a/PKGBUILD b/PKGBUILD
index 56d97b3..e9e27c4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
 pkgname=python-tensorstore
 _pkgname=${pkgname#python-}
-pkgver=0.1.38
+pkgver=0.1.51
 pkgrel=1
 pkgdesc='Library for reading and writing large multi-dimensional arrays.'
 arch=('x86_64')
@@ -36,7 +36,7 @@ makedepends=(
 )
 source=("$_pkgname-$pkgver.tar.gz::https://github.com/google/$_pkgname/archive/refs/tags/v$pkgver.tar.gz"
         'pyproject.toml.patch')
-sha256sums=('f94f6a038991ef034423d037b0b37af34cef022e054e6636b65261cabcc81c47'
+sha256sums=('01b0434519fcefea5d28da6a3decb3f3a8c86b13295870459c4032d157726593'
             'aba99d7080a132cf40d8da7cd0b86f15e76b463e0d5ec004b95875da94ef1979')

 prepare() {