mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 22:52:59 -04:00
dev-cpp/trantor: Skip adns test when USE="-adns".
Closes: https://bugs.gentoo.org/820212 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
45
dev-cpp/trantor/files/trantor-1.5.2_skip-dnstest.patch
Normal file
45
dev-cpp/trantor/files/trantor-1.5.2_skip-dnstest.patch
Normal file
@@ -0,0 +1,45 @@
|
||||
From 7ebc378255f0c7da11b82c51aa4810fd6a1965d1 Mon Sep 17 00:00:00 2001
|
||||
From: tastytea <tastytea@tastytea.de>
|
||||
Date: Mon, 25 Oct 2021 18:35:17 +0200
|
||||
Subject: [PATCH] Skip DnsTest test when compiling without BUILD_C-ARES.
|
||||
|
||||
Compiling DnsTest.cc fails without c-ares.
|
||||
---
|
||||
trantor/tests/CMakeLists.txt | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/trantor/tests/CMakeLists.txt b/trantor/tests/CMakeLists.txt
|
||||
index 052dd49..1926614 100644
|
||||
--- a/trantor/tests/CMakeLists.txt
|
||||
+++ b/trantor/tests/CMakeLists.txt
|
||||
@@ -15,7 +15,9 @@ add_executable(async_file_logger_test1 AsyncFileLoggerTest1.cc)
|
||||
add_executable(sendfile_test SendfileTest.cc)
|
||||
add_executable(timing_wheel_test TimingWheelTest.cc)
|
||||
add_executable(kickoff_test KickoffTest.cc)
|
||||
-add_executable(dns_test DnsTest.cc)
|
||||
+if (BUILD_C-ARES)
|
||||
+ add_executable(dns_test DnsTest.cc)
|
||||
+endif()
|
||||
add_executable(delayed_ssl_server_test DelayedSSLServerTest.cc)
|
||||
add_executable(delayed_ssl_client_test DelayedSSLClientTest.cc)
|
||||
add_executable(run_on_quit_test RunOnQuitTest.cc)
|
||||
@@ -38,12 +40,15 @@ set(targets_list
|
||||
sendfile_test
|
||||
timing_wheel_test
|
||||
kickoff_test
|
||||
- dns_test
|
||||
delayed_ssl_server_test
|
||||
delayed_ssl_client_test
|
||||
run_on_quit_test
|
||||
path_conversion_test)
|
||||
|
||||
+if (BUILD_C-ARES)
|
||||
+ list(APPEND targets_list dns_test)
|
||||
+endif()
|
||||
+
|
||||
set_property(TARGET ${targets_list} PROPERTY CXX_STANDARD 14)
|
||||
set_property(TARGET ${targets_list} PROPERTY CXX_STANDARD_REQUIRED ON)
|
||||
set_property(TARGET ${targets_list} PROPERTY CXX_EXTENSIONS OFF)
|
||||
--
|
||||
2.32.0
|
||||
|
||||
@@ -25,6 +25,8 @@ DEPEND="
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-1.5.2_skip-dnstest.patch" )
|
||||
|
||||
src_prepare() {
|
||||
use ssl || sed -i '/find_package(OpenSSL)/d' CMakeLists.txt || die
|
||||
|
||||
|
||||
Reference in New Issue
Block a user