commit: 9408c9c98773b31a982ab603d3bd14fc85f1aca4 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Aug 25 04:57:10 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Aug 25 05:04:53 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9408c9c9
net-libs/socket_wrapper: add 1.5.0 Signed-off-by: Sam James <sam <AT> gentoo.org> net-libs/socket_wrapper/Manifest | 1 + .../files/socket_wrapper-1.5.0-stdint.patch | 41 ++++++++++++++++++++++ .../socket_wrapper/socket_wrapper-1.5.0.ebuild | 38 ++++++++++++++++++++ 3 files changed, 80 insertions(+) diff --git a/net-libs/socket_wrapper/Manifest b/net-libs/socket_wrapper/Manifest index 4c35b40ce963..35626dbc2a1e 100644 --- a/net-libs/socket_wrapper/Manifest +++ b/net-libs/socket_wrapper/Manifest @@ -1,2 +1,3 @@ DIST socket_wrapper-1.4.0.tar.gz 87353 BLAKE2B 67c2a4bae2e1031399137e404e95e6e6cfa1143ff659a7d34533e908f9169b8a79d1dfffaa51a6280a8cfc9e03dc07585ff41b0e087527b1ad0bb5adb282156e SHA512 944e5ff2b6919e414f9045fe294b9b4813272fe7c00f5ac144c999b99572be6b3ed2eb975ec1d07bd853cffea6dffe339280e4961520d34667f808f76b47db57 DIST socket_wrapper-1.4.2.tar.gz 90641 BLAKE2B 8a43f48ed8f3809eac8c86ee55e740ac37068d729f3f36955b9f017f29c40fa86f1f4455d2e33c8bb9413e25d8e7cb4bab84cd2688f54febb17d41c37ceb4d79 SHA512 30de1dfa6bfae51114b0557a00b87c785b7a00cf62d495b5c4bd837f32016ed58f942e7de0c33d09aa72e533f58283af6b5ae50f276ad7e58e853e32a8400024 +DIST socket_wrapper-1.5.0.tar.gz 89865 BLAKE2B fec431443f48aaa50f866da5aa4b8acab1ff5c6799264464451e7576bb35d209a5a366bd0454887699e3ae7c039f840c14411a394b0d4871cc593a962b991eb6 SHA512 2ab501e592e6ece88a3e1f5f34a81d6504a07a3df10d21aa4d21b2c96637e7c3660be309624ba9f743e46deb8ac75e8152e082d313cd7b31e510291c5b0ebd20 diff --git a/net-libs/socket_wrapper/files/socket_wrapper-1.5.0-stdint.patch b/net-libs/socket_wrapper/files/socket_wrapper-1.5.0-stdint.patch new file mode 100644 index 000000000000..a196c5006863 --- /dev/null +++ b/net-libs/socket_wrapper/files/socket_wrapper-1.5.0-stdint.patch @@ -0,0 +1,41 @@ +From df1718b0b155cee9ad58f8699f3335f879d710f2 Mon Sep 17 00:00:00 2001 +From: Andreas Schneider <[email protected]> +Date: Thu, 17 Jul 2025 15:18:13 +0200 +Subject: [PATCH] tests: Add missing stdint.h +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf8 +Content-Transfer-Encoding: 8bit + +This is required by cmocka. + +Signed-off-by: Andreas Schneider <[email protected]> +Reviewed-by: Pavel Filipenský <[email protected]> +--- + tests/test_ioctl.c | 1 + + tests/test_sendmsg_recvmsg_fd.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/tests/test_ioctl.c b/tests/test_ioctl.c +index 25bec38..addcb36 100644 +--- a/tests/test_ioctl.c ++++ b/tests/test_ioctl.c +@@ -1,5 +1,6 @@ + #include <stdarg.h> + #include <stddef.h> ++#include <stdint.h> + #include <setjmp.h> + #include <cmocka.h> + +diff --git a/tests/test_sendmsg_recvmsg_fd.c b/tests/test_sendmsg_recvmsg_fd.c +index 30c9861..1f8154d 100644 +--- a/tests/test_sendmsg_recvmsg_fd.c ++++ b/tests/test_sendmsg_recvmsg_fd.c +@@ -1,5 +1,6 @@ + #include <stdarg.h> + #include <stddef.h> ++#include <stdint.h> + #include <setjmp.h> + #include <cmocka.h> + +-- +2.34.1 diff --git a/net-libs/socket_wrapper/socket_wrapper-1.5.0.ebuild b/net-libs/socket_wrapper/socket_wrapper-1.5.0.ebuild new file mode 100644 index 000000000000..2d226f457228 --- /dev/null +++ b/net-libs/socket_wrapper/socket_wrapper-1.5.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib flag-o-matic + +DESCRIPTION="Library passing all socket communications through unix sockets" +HOMEPAGE="https://cwrap.org/socket_wrapper.html" +SRC_URI="https://ftp.samba.org/pub/cwrap/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( >=dev-util/cmocka-1.1.0 )" + +PATCHES=( + "${FILESDIR}"/${P}-stdint.patch +) + +src_configure() { + # https://gcc.gnu.org/PR46596 + # https://gcc.gnu.org/PR101270 + filter-flags -fno-semantic-interposition + + local mycmakeargs=( + -DUNIT_TESTING=$(usex test ON OFF) + ) + cmake-multilib_src_configure +} + +src_test() { + ewarn "test_echo_tcp_poll takes a while to run!" + cmake_src_test +}
