Package Details: cpr 1.11.1-3

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.90
First Submitted: 2021-04-22 20:19 (UTC)
Last Updated: 2024-11-25 22:18 (UTC)

Latest Comments

1 2 Next › Last »

BowDown097 commented on 2024-10-15 12:47 (UTC)

Thanks for the update! Everything works again.

FabioLolix commented on 2024-10-14 16:50 (UTC)

Thanks for updating!

horror-proton commented on 2024-10-14 16:19 (UTC) (edited on 2024-10-14 16:39 (UTC) by horror-proton)

Does the latest commit resolve this issue? A -DBUILD_SHARED_LIBS=ON was added and the package should now contain shared library instead of a static one. Patch from @FabioLolix has been applied.

FabioLolix commented on 2024-10-14 16:18 (UTC) (edited on 2024-10-14 16:18 (UTC) by FabioLolix)

Confirming the issue, I have already send John a patch (btw horror-proton is not reachable by email, not even using git log here) and fixed a couple of other things

(1/1) Arming ConditionNeedsUpdate...
Checking PKGBUILD
PKGBUILD (cpr) W: Non-unique source name (1.11.0.tar.gz). Use a unique filename.
Checking cpr-1.11.0-1-x86_64.pkg.tar.zst
cpr E: Uncommon license identifiers such as 'MIT' require license files below /usr/share/licenses/cpr/ or switching to common license identifiers. Found 0/1 required license files.
cpr W: Dependency included, but may not be needed ('curl')
==> Running checkpkg
  -> Checking packages
usr/lib/libcpr.so                         | usr/lib/libcpr.a
usr/lib/libcpr.so.1                       <
usr/lib/libcpr.so.1.10.3                      <
==> WARNING: Sonames differ in cpr!
libcpr.so=1-64                            <

my pkgbuild: https://github.com/FabioLolix/AURCOPY/blob/main/cpr/PKGBUILD

revision diff: https://github.com/FabioLolix/AURCOPY/commit/1708ce42c03729a7b3667f1bb86acff175cc607e

BowDown097 commented on 2024-10-14 15:15 (UTC) (edited on 2024-10-14 15:17 (UTC) by BowDown097)

CMake package is completely broken since the update to 1.11.0:

  • Link interface contains OpenSSL, but the target is never imported at any point. This problem can be fixed by manually adding find_package(OpenSSL).
  • Linking the library no longer works and has to be done manually.

I believe this breakage may have to do with the library switching from shared to static by default with this update, but I'm not 100% sure.

zlima12 commented on 2023-04-02 02:13 (UTC)

horror-proton: I have added you as a co-maintainer. Sorry for my inactivity, I should have updated the package long ago. The change you mentioned below seems reasonable to me; please feel free to add it.

horror-proton commented on 2023-03-29 07:17 (UTC)

According to the CMake package guidelines, something like this would be more reasonable, which would also install CMake files to allow developers to use find_package(cpr).

prepare() {
    cd "$srcdir/cpr-$pkgver"
    cmake -B "$srcdir"/build -DCMAKE_BUILD_TYPE=Release -DCPR_BUILD_TESTS=OFF -DCPR_USE_SYSTEM_CURL=ON
}
build() {
    cmake --build "$srcdir"/build
}
package() {
    cmake --install "$srcdir"/build --prefix "$pkgdir"/usr
}

zlima12 commented on 2022-09-05 17:53 (UTC)

rlmineing_dead: just updated, try building again. Sorry for the delay.

rlmineing_dead commented on 2022-05-22 22:09 (UTC)

this package doesn't build anymore

/home/alice/git-applications/cpr/src/cpr-1.8.1/cpr/session.cpp: In member function ‘void cpr::Session::Impl::SetSslOptions(const cpr::SslOptions&)’:
/home/alice/git-applications/cpr/src/cpr-1.8.1/cpr/session.cpp:495:9: error: ‘curl_blob’ was not declared in this scope
  495 |         curl_blob blob{};
      |         ^~~~~~~~~
/home/alice/git-applications/cpr/src/cpr-1.8.1/cpr/session.cpp:496:9: error: ‘blob’ was not declared in this scope
  496 |         blob.data = &key_blob[0];
      |         ^~~~
In file included from /home/alice/git-applications/cpr/src/cpr-1.8.1/include/cpr/curlholder.h:8,
                 from /home/alice/git-applications/cpr/src/cpr-1.8.1/include/cpr/cookies.h:4,
                 from /home/alice/git-applications/cpr/src/cpr-1.8.1/include/cpr/session.h:13,
                 from /home/alice/git-applications/cpr/src/cpr-1.8.1/cpr/session.cpp:1:
/home/alice/git-applications/cpr/src/cpr-1.8.1/cpr/session.cpp:498:41: error: ‘CURLOPT_SSLKEY_BLOB’ was not declared in this scope; did you mean ‘CURLOPT_SSLKEYTYPE’?
  498 |         curl_easy_setopt(curl_->handle, CURLOPT_SSLKEY_BLOB, &blob);
      |                                         ^~~~~~~~~~~~~~~~~~~
make[2]: *** [cpr/CMakeFiles/cpr.dir/build.make:244: cpr/CMakeFiles/cpr.dir/session.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:116: cpr/CMakeFiles/cpr.dir/all] Error 2
make: *** [Makefile:136: all] Error 2