Package Details: cpr 1.14.1-1

Git Clone URL: https://aur.archlinux.org/cpr.git (read-only, click to copy)
Package Base: cpr
Description: C++ Requests: Curl for People, a spiritual port of Python Requests.
Upstream URL: https://github.com/libcpr/cpr
Licenses: MIT
Provides: libcpr.so
Submitter: ZLima12
Maintainer: ZLima12 (horror-proton, FabioLolix)
Last Packager: ZLima12
Votes: 7
Popularity: 0.035025
First Submitted: 2021-04-22 20:19 (UTC)
Last Updated: 2025-12-17 21:34 (UTC)

Latest Comments

1 2 3 4 Next › Last »

ZLima12 commented on 2026-01-19 02:17 (UTC)

Surgo: if the tests are hanging, that is an upstream issue, not one with the PKGBUILD. The proper course of action to fix it is filing a bug report at the CPR repository. If you don't care about running tests then all you have to do is run makepkg with --nocheck. I even added logic to the PKGBUILD to skip even building the tests at all in this case.

Surgo commented on 2026-01-19 02:00 (UTC)

Why not just disable the tests entirely at this point? They're a common cause of superfluous breakage.

FabioLolix commented on 2026-01-13 19:33 (UTC)

Couldn't replicate both with makepkg and devtools

repomansez commented on 2026-01-13 19:09 (UTC) (edited on 2026-01-13 19:26 (UTC) by repomansez)

Also breaks for me on the 7th test. Tried compiling and testing manually and it gets stuck on the 8th test, so I think it's probably setup-related or something.

I don't really use cpr, I only have one package that depends on it, so I just downloaded the PKGBUILD and disabled the tests lol.

FabioLolix commented on 2025-12-18 17:18 (UTC)

@kocsi couldn't replicate

kocsi commented on 2025-12-18 15:48 (UTC)

Compilation seems to break during testing

==> Starting check()... Test project /tmp/makepkg/cpr/src/build Start 1: cpr_get_tests 1/31 Test #1: cpr_get_tests .................... Passed 3.44 sec Start 2: cpr_post_tests 2/31 Test #2: cpr_post_tests ................... Passed 3.75 sec Start 3: cpr_session_tests 3/31 Test #3: cpr_session_tests ................ Passed 2.75 sec Start 4: cpr_prepare_tests 4/31 Test #4: cpr_prepare_tests ................ Passed 0.11 sec Start 5: cpr_async_tests 5/31 Test #5: cpr_async_tests .................. Passed 0.12 sec Start 6: cpr_head_tests 6/31 Test #6: cpr_head_tests ................... Passed 4.01 sec Start 7: cpr_delete_tests

nich23 commented on 2025-05-26 15:34 (UTC) (edited on 2025-05-27 17:06 (UTC) by nich23)

Build fails here currently with:

==> Starting build()...
-- The CXX compiler identification is GNU 15.1.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CXX standard: 17
-- C++ Requests CMake Options
-- =======================================================
--   CPR_GENERATE_COVERAGE: OFF
--   CPR_CURL_NOSIGNAL: OFF
--   CURL_VERBOSE_LOGGING: OFF
--   CPR_USE_SYSTEM_GTEST: ON
--   CPR_USE_SYSTEM_CURL: ON
--   CPR_ENABLE_CURL_HTTP_ONLY: ON
--   CPR_ENABLE_SSL: ON
--   CPR_FORCE_OPENSSL_BACKEND: OFF
--   CPR_FORCE_WINSSL_BACKEND: OFF
--   CPR_FORCE_DARWINSSL_BACKEND: OFF
--   CPR_FORCE_MBEDTLS_BACKEND: OFF
--   CPR_ENABLE_LINTING: OFF
--   CPR_ENABLE_CPPCHECK: OFF
--   CPR_BUILD_TESTS: ON
--   CPR_BUILD_TESTS_SSL: ON
--   CPR_BUILD_TESTS_PROXY: OFF
--   CPR_BUILD_VERSION_OUTPUT_ONLY: OFF
--   CPR_SKIP_CA_BUNDLE_SEARCH: OFF
--   CPR_USE_BOOST_FILESYSTEM: OFF
--   CPR_DEBUG_SANITIZER_FLAG_THREAD: OFF
--   CPR_DEBUG_SANITIZER_FLAG_ADDR: OFF
--   CPR_DEBUG_SANITIZER_FLAG_LEAK: OFF
--   CPR_DEBUG_SANITIZER_FLAG_UB: OFF
--   CPR_DEBUG_SANITIZER_FLAG_ALL: OFF
-- =======================================================
-- Performing Test THREAD_SANITIZER_AVAILABLE
-- Performing Test THREAD_SANITIZER_AVAILABLE - Success
-- Performing Test ADDRESS_SANITIZER_AVAILABLE
-- Performing Test ADDRESS_SANITIZER_AVAILABLE - Success
-- Performing Test LEAK_SANITIZER_AVAILABLE
-- Performing Test LEAK_SANITIZER_AVAILABLE - Success
-- Performing Test UNDEFINED_BEHAVIOUR_SANITIZER_AVAILABLE
-- Performing Test UNDEFINED_BEHAVIOUR_SANITIZER_AVAILABLE - Success
-- Performing Test ALL_SANITIZERS_AVAILABLE
-- Performing Test ALL_SANITIZERS_AVAILABLE - Success
-- Automatically detecting SSL backend.
-- Detecting SSL backend...
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.5.0")
-- SSL auto detect: Using OpenSSL.
-- Found CURL: /usr/lib/libcurl.so (found version "8.13.0") found components: HTTP HTTPS
-- Curl 8.13.0 found on this system.
-- Found GTest: /usr/lib/cmake/GTest/GTestConfig.cmake (found version "1.17.0")
-- Building mongoose project for test support.
-- Installing: /home/nich/.cache/yay/cpr/src/build/_deps/mongoose-src/mongoose.CMakeLists.txt
-- The C compiler identification is GNU 15.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at include/CMakeLists.txt:95 (message):
  Your compiler does not support the `<filesystem>` include or cpr is unable
  to determine the proper compiler flags for it.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: cpr-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
cpr - exit status 4

ZLima12 commented on 2025-05-06 03:09 (UTC)

Wild_Penguin: thanks for reporting. This should be fixed when the gtest package gets updated, but I've pushed a temporary fix since I don't know how long that will take.

Wild_Penguin commented on 2025-05-05 02:33 (UTC)

Build fails here currently with:

[ 34%] Built target cpr
[ 36%] Building CXX object test/CMakeFiles/test_server.dir/abstractServer.cpp.o
[ 36%] Building CXX object test/CMakeFiles/test_server.dir/httpServer.cpp.o
[ 37%] Building CXX object test/CMakeFiles/test_server.dir/httpsServer.cpp.o
In file included from /usr/include/gtest/internal/gtest-port.h:295,
                 from /usr/include/gtest/gtest-message.h:57,
                 from /usr/include/gtest/gtest-assertion-result.h:46,
                 from /usr/include/gtest/gtest.h:63,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/abstractServer.hpp:6,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/abstractServer.cpp:1:
/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
   46 | #  warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
      |    ^~~~~~~
In file included from /usr/include/gtest/internal/gtest-port.h:295,
                 from /usr/include/gtest/gtest-message.h:57,
                 from /usr/include/gtest/gtest-assertion-result.h:46,
                 from /usr/include/gtest/gtest.h:63,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/abstractServer.hpp:6,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/httpServer.hpp:6,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/httpServer.cpp:1:
/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
   46 | #  warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
      |    ^~~~~~~
In file included from /usr/include/gtest/internal/gtest-port.h:295,
                 from /usr/include/gtest/gtest-message.h:57,
                 from /usr/include/gtest/gtest-assertion-result.h:46,
                 from /usr/include/gtest/gtest.h:63,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/abstractServer.hpp:6,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/httpsServer.hpp:7,
                 from /home/ville/ABS/cpr/src/cpr-1.11.2/test/httpsServer.cpp:1:
/usr/include/c++/15.1.1/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
   46 | #  warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
      |    ^~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/CMakeFiles/test_server.dir/build.make:79: test/CMakeFiles/test_server.dir/abstractServer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
make[2]: *** [test/CMakeFiles/test_server.dir/build.make:107: test/CMakeFiles/test_server.dir/httpsServer.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[2]: *** [test/CMakeFiles/test_server.dir/build.make:93: test/CMakeFiles/test_server.dir/httpServer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:324: test/CMakeFiles/test_server.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
LANG=C makepkg -Cs  40,58s user 4,50s system 307% cpu 14,670 total

Flat commented on 2025-05-01 15:24 (UTC)

Missing git for makedepends