net-proxy/torsocks: fix build w/ clang 16

Closes: https://bugs.gentoo.org/881077
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-01-04 03:49:13 +00:00
parent 6322dc8cf0
commit c0248a88bb
3 changed files with 19 additions and 2 deletions

View File

@@ -1 +1 @@
DIST torsocks-2.4.0.tar.gz 118991 BLAKE2B e1817c3bbf10f83431292c644d7187e40b62c5f223784074b3f9c082d8d75243090e226ffebb6fd81805fbd887588790833adc4ab8923e8116585c0a29255ad0 SHA512 7d625ce3a4600f87b86ae9ac79dfd206e7709cb0bafe0b7afcf33a6f1825f968cc63ad3e23c584582b244647bdeafbfdbfc54f7c81e521b0a3d278a1483ce86e
DIST torsocks-2.4.0-r1.tar.gz 118991 BLAKE2B e1817c3bbf10f83431292c644d7187e40b62c5f223784074b3f9c082d8d75243090e226ffebb6fd81805fbd887588790833adc4ab8923e8116585c0a29255ad0 SHA512 7d625ce3a4600f87b86ae9ac79dfd206e7709cb0bafe0b7afcf33a6f1825f968cc63ad3e23c584582b244647bdeafbfdbfc54f7c81e521b0a3d278a1483ce86e

View File

@@ -0,0 +1,13 @@
https://bugs.gentoo.org/881077
https://gitlab.torproject.org/tpo/core/torsocks/-/issues/40014
https://lists.torproject.org/pipermail/tor-dev/2022-December/014790.html
--- a/src/common/config-file.h
+++ b/src/common/config-file.h
@@ -109,6 +109,7 @@ int conf_file_set_allow_inbound(const char *val, struct configuration *config);
int conf_file_set_allow_outbound_localhost(const char *val, struct
configuration *config);
int conf_file_set_isolate_pid(const char *val, struct configuration *config);
+int conf_file_set_enable_ipv6(const char *val, struct configuration *config);
int conf_apply_socks_auth(struct configuration *config);

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -21,6 +21,10 @@ IUSE="static-libs"
DEPEND=""
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-2.4.0-clang16.patch
)
src_prepare() {
# Disable tests requiring network access.
local test