1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

net/libsockpp: Update to 1.0.0, add patches to fix build on i386

This commit is contained in:
Peter TKATCHENKO 2024-01-02 14:22:00 +01:00 committed by Gleb Popov
parent 2bb91c11eb
commit 63e8a0841f
5 changed files with 28 additions and 6 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= libsockpp
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.3
DISTVERSION= 1.0.0
CATEGORIES= net devel
MAINTAINER= peter@flytrace.com

View File

@ -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

View File

@ -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);
}
// --------------------------------------------------------------------------

View File

@ -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;
}

View File

@ -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