Package Details: cpr 1.11.2-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: 5
Popularity: 0.075401
First Submitted: 2021-04-22 20:19 (UTC)
Last Updated: 2025-03-15 18:51 (UTC)

Latest Comments

1 2 3 Next › Last »

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.

zlima12 commented on 2025-02-17 23:11 (UTC)

It seems as though the issue was introduced with curl 8.12, since downgrading to 8.11.1-3 causes the errors to go away. I'll look into it a bit further.

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

Hi, I have made some tests using both AUR pkgbuilds and with mine just refreshed https://github.com/FabioLolix/PKGBUILD-AUR_fix/tree/master/zz_tests

I confirm the issue, cpr-git instead don't enable them

About my tests; of the four variations (stable, git and bundled, unbundled curl+gtest) have found that only git_bundled pass all tests while other other fail st least 3 tests

With a quick look don't seem to be already reported https://github.com/libcpr/cpr/issues

From memory tests where already failing when I send the patch to zlima12 on 2024/10 (that's why they weren't enabled) but I didn't in it further

About this commit https://aur.archlinux.org/cgit/aur.git/commit/?h=cpr&id=345c8e77d1b194980057e9a36968b24c98f61211 honestly I don't the solution

Meanwhile --nocheck options exist for makepkg