Package Details: google-crc32c 1.1.2-5

Git Clone URL: https://aur.archlinux.org/google-crc32c.git (read-only, click to copy)
Package Base: google-crc32c
Description: CRC32C implementation with support for CPU-specific acceleration instructions
Upstream URL: https://github.com/google/crc32c
Keywords: crc32c google
Licenses: BSD-3-Clause
Submitter: mortymacs
Maintainer: envolution
Last Packager: envolution
Votes: 3
Popularity: 0.004927
First Submitted: 2020-11-14 22:09 (UTC)
Last Updated: 2025-05-13 04:52 (UTC)

Latest Comments

1 2 Next › Last »

envolution commented on 2025-05-13 04:53 (UTC)

@a821 sure, though I'll probably switch to tar.gz when we get the next official release - I didn't bump rel but you can just replace the PKGBUILD with the latest commit

a821 commented on 2025-05-12 07:08 (UTC)

Thanks for updating!

May I suggest to change the sources array to

source=("$pkgname::git+https://github.com/google/crc32c.git#tag=${_tag}")

so one doesn't have to clone the repository every time there's a new version. Some people like to set SRCDEST.

envolution commented on 2025-04-26 02:38 (UTC)

i pushed https://aur.archlinux.org/packages/google-crc32c-git for anyone looking to use the main google repo while waiting for this to be fixed

haxibami commented on 2025-04-01 09:03 (UTC)

CMakeLists.txt needs to be patched to build with CMake v4.

diff --git a/PKGBUILD b/PKGBUILD
index 8665d09..d415ffa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,7 +19,9 @@ sha256sums=('ac07840513072b7fcebda6e821068aa04889018f24e10e46181068fb214d7e56')

 prepare() {
   # fix version
-  sed -i "s/Crc32c VERSION 1.1.0 /Crc32c VERSION $pkgver /" "crc32c-$pkgver/CMakeLists.txt"
+  sed -i -e "s/Crc32c VERSION 1.1.0 /Crc32c VERSION $pkgver /" \
+    -e 's/cmake_minimum_required(VERSION 3\.1)/cmake_minimum_required(VERSION 3.5..4.0)/' \
+    "crc32c-$pkgver/CMakeLists.txt"
 }

 build() {

mortymacs commented on 2022-11-12 08:47 (UTC) (edited on 2022-11-12 08:47 (UTC) by mortymacs)

@Wupwup sorry for the delay in my response. The problem has been fixed. Please upgrade the package.

mortymacs commented on 2022-11-12 08:46 (UTC) (edited on 2022-11-12 08:51 (UTC) by mortymacs)

@lmartinez-mirror sorry for the delay in my response and the problem in the "path". I just fixed the "path".

Wupwup commented on 2022-10-22 15:48 (UTC) (edited on 2022-10-22 15:49 (UTC) by Wupwup)

This package is causing an upstream problem when I try to build python-google-crc32

tests/test___init__.py ...........E

============================================================================= ERRORS =============================================================================
____________________________________________________ ERROR at setup of TestChecksum.test_ctor_defaults[cext] _____________________________________________________

request = <SubRequest '_crc32c' for <Function test_ctor_defaults[cext]>>

    @pytest.fixture
    def _crc32c(request):
        if request.param == "python":
            from google_crc32c import python
            return python
        elif request.param == "cext":
>           from google_crc32c import cext

tests/test___init__.py:207: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    # Copyright 2020 Google LLC
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     https://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.

    import struct

    # NOTE: ``__config__`` **must** be the first import because it (may)
    #       modify the search path used to locate shared libraries.
    import google_crc32c.__config__  # type: ignore
>   from google_crc32c._crc32c import extend  # type: ignore
E   ImportError: libcrc32c.so.1: cannot open shared object file: No such file or directory

build/lib.linux-x86_64-cpython-310/google_crc32c/cext.py:20: ImportError
======================================================================== warnings summary ========================================================================
build/lib.linux-x86_64-cpython-310/google_crc32c/__init__.py:29
  /home/wupwup/python-google-cloud-bigquery/python-google-resumable-media/python-google-crc32c/src/python-crc32c-1.5.0/build/lib.linux-x86_64-cpython-310/google_crc32c/__init__.py:29: 
RuntimeWarning: As the c extension couldn't be imported, `google-crc32c` is using a pure python implementation that is significantly slower. If possible, please configure a c build environment 
and compile the extension
    warnings.warn(_SLOW_CRC32C_WARNING, RuntimeWarning)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================================================== short test summary info =====================================================================
ERROR tests/test___init__.py::TestChecksum::test_ctor_defaults[cext] - ImportError: libcrc32c.so.1: cannot open shared object file: No such file or directory
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================= 11 passed, 1 warning, 1 error in 0.16s =============================================================
==> ERROR: A failure occurred in check().
    Aborting...

lmartinez-mirror commented on 2022-08-04 14:41 (UTC) (edited on 2022-08-04 14:57 (UTC) by lmartinez-mirror)

May I ask why install paths were changed back to /usr/local? They were installing to the correct path before.

EDIT: Tried it myself: the problem was appending $pkgdir to the install path, so it should've been /usr and not $pkgdir/usr. I wrote up a patch for this package to address this. You can find it here.

mortymacs commented on 2021-09-11 09:01 (UTC) (edited on 2022-01-22 13:34 (UTC) by mortymacs)

@lmartinez-mirror Thanks for reporting the issue. It has been fixed.