Package Details: google-crc32c 1.1.2-4

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
Submitter: mortymacs
Maintainer: pekkarr (BioArchLinuxBot)
Last Packager: BioArchLinuxBot
Votes: 3
Popularity: 0.141975
First Submitted: 2020-11-14 22:09 (UTC)
Last Updated: 2023-07-15 18:01 (UTC)

Latest Comments

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.

lmartinez-mirror commented on 2021-09-09 23:37 (UTC)

This package installs to the wrong directory; it should install under /usr, not /usr/local. Please change the install prefix to $pkgdir/usr.