Package Details: cpr 1.11.2-2

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: 6
Popularity: 0.76
First Submitted: 2021-04-22 20:19 (UTC)
Last Updated: 2025-05-04 23:09 (UTC)

Latest Comments

1 2 3 Next › Last »

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

kimmholy commented on 2025-04-15 09:06 (UTC)

i had hard time trying to install cpr because of one test fails so i skip it by editing PKGBUILD with check() { echo "Skipping tests..." }

zlima12 commented on 2025-04-06 18:15 (UTC)

@sergeG239 thanks for reporting, I was able to reproduce this. I'll look into a fix soon. In the mean time, you can build the package by skipping the tests with --nocheck

sergeG239 commented on 2025-04-06 10:11 (UTC)

The following tests FAILED: 3 - cpr_session_tests (Failed) Errors while running CTest Output from these tests are in: /home/serge/.cache/yay/cpr/src/build/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely. ==> ERROR: A failure occurred in check(). Aborting... -> error making: cpr-exit status 4

The only way to install cpr that I found is to downgrade curl to 8.11.1-3.

xiota commented on 2025-03-24 07:14 (UTC)

Sorry. I got skipcheck(sums) and no check confused.

zlima12 commented on 2025-03-24 06:59 (UTC) (edited on 2025-03-24 07:00 (UTC) by zlima12)

@xiota I appreciate your interest in my hack, but I think you are mistaken. SKIPCHECKSUMS is set when --skipchecksums is passed, which is unrelated to the check() function. Furthermore, CHECKFUNC is set not just if the function exists, but also if it is to be run.

zlima12 commented on 2025-02-18 06:54 (UTC)

I've confirmed that the issue is upstream and I'll create an issue there soon. In the mean time, I've pushed a temporary fix that avoids testing the problematic value, so the package should build fine now.