From 63e8a0841f2d65f54e0dddf4ed8706e105723e2a Mon Sep 17 00:00:00 2001 From: Peter TKATCHENKO Date: Tue, 2 Jan 2024 14:22:00 +0100 Subject: [PATCH] net/libsockpp: Update to 1.0.0, add patches to fix build on i386 --- net/libsockpp/Makefile | 2 +- net/libsockpp/distinfo | 6 +++--- net/libsockpp/files/patch-examples_udp_udpechosvr.cpp | 11 +++++++++++ .../files/patch-examples_unix_undgramechosvr.cpp | 11 +++++++++++ net/libsockpp/pkg-plist | 4 ++-- 5 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 net/libsockpp/files/patch-examples_udp_udpechosvr.cpp create mode 100644 net/libsockpp/files/patch-examples_unix_undgramechosvr.cpp diff --git a/net/libsockpp/Makefile b/net/libsockpp/Makefile index d392e8895a7f..952773341f02 100644 --- a/net/libsockpp/Makefile +++ b/net/libsockpp/Makefile @@ -1,6 +1,6 @@ PORTNAME= libsockpp DISTVERSIONPREFIX= v -DISTVERSION= 0.8.3 +DISTVERSION= 1.0.0 CATEGORIES= net devel MAINTAINER= peter@flytrace.com diff --git a/net/libsockpp/distinfo b/net/libsockpp/distinfo index 717373a94d5f..359e4bcfc88c 100644 --- a/net/libsockpp/distinfo +++ b/net/libsockpp/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1702498061 -SHA256 (fpagliughi-sockpp-v0.8.3_GH0.tar.gz) = dcacfae173ae4a1e535078d3023d338c3eb170193fe1b82bc04138e9c02470ef -SIZE (fpagliughi-sockpp-v0.8.3_GH0.tar.gz) = 115393 +TIMESTAMP = 1704200820 +SHA256 (fpagliughi-sockpp-v1.0.0_GH0.tar.gz) = 818477fae6eb29b9daacef71a3d0c494de9e48f6fd267a7fc5a4c332db211bc5 +SIZE (fpagliughi-sockpp-v1.0.0_GH0.tar.gz) = 114358 diff --git a/net/libsockpp/files/patch-examples_udp_udpechosvr.cpp b/net/libsockpp/files/patch-examples_udp_udpechosvr.cpp new file mode 100644 index 000000000000..027e3ae5fc13 --- /dev/null +++ b/net/libsockpp/files/patch-examples_udp_udpechosvr.cpp @@ -0,0 +1,11 @@ +--- examples/udp/udpechosvr.cpp.orig 2023-12-17 20:26:10 UTC ++++ examples/udp/udpechosvr.cpp +@@ -72,7 +72,7 @@ void run_echo(UDPSOCK sock) + // Read some data, also getting the address of the sender, + // then just send it back. + while ((n = sock.recv_from(buf, sizeof(buf), &srcAddr)) > 0) +- sock.send_to(buf, n, srcAddr); ++ sock.send_to((void*)buf, n, srcAddr); + } + + // -------------------------------------------------------------------------- diff --git a/net/libsockpp/files/patch-examples_unix_undgramechosvr.cpp b/net/libsockpp/files/patch-examples_unix_undgramechosvr.cpp new file mode 100644 index 000000000000..86a52cc5bd55 --- /dev/null +++ b/net/libsockpp/files/patch-examples_unix_undgramechosvr.cpp @@ -0,0 +1,11 @@ +--- examples/unix/undgramechosvr.cpp.orig 2023-12-17 20:26:10 UTC ++++ examples/unix/undgramechosvr.cpp +@@ -86,7 +86,7 @@ int main(int argc, char* argv[]) + // Read some data, also getting the address of the sender, + // then just send it back. + while ((n = sock.recv_from(buf, sizeof(buf), &srcAddr)) > 0) +- sock.send_to(buf, n, srcAddr); ++ sock.send_to((void*)buf, n, srcAddr); + + return 0; + } diff --git a/net/libsockpp/pkg-plist b/net/libsockpp/pkg-plist index 3c95fae59d19..8ca20b5414e6 100644 --- a/net/libsockpp/pkg-plist +++ b/net/libsockpp/pkg-plist @@ -32,5 +32,5 @@ lib/cmake/sockpp/sockppTargets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/sockpp/sockppTargets.cmake %%STATIC%%lib/libsockpp.a lib/libsockpp.so -lib/libsockpp.so.0 -lib/libsockpp.so.0.8.3 +lib/libsockpp.so.1 +lib/libsockpp.so.1.0.0