Skip to content

Commit

Permalink
getdns: disable libidn2 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Mar 19, 2024
1 parent 0417f53 commit 0119b20
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions recipes/getdns/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from conan import ConanFile, conan_version
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration, ConanException
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.env import VirtualBuildEnv
Expand Down Expand Up @@ -38,7 +38,7 @@ class GetDnsConan(ConanFile):
"with_libev": "auto",
"with_libevent": True,
"with_libuv": True,
"with_libidn2": True,
"with_libidn2": False, # FIXME: enable once libidn2 has been migrated https://github.com/conan-io/conan-center-index/pull/18642
}

def export_sources(self):
Expand All @@ -48,12 +48,10 @@ def export_sources(self):
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
# FIXME: remove once libidn2 has been migrated
# https://github.com/conan-io/conan-center-index/pull/18642
self.options.with_libidn2 = conan_version.major == 1
self.options.with_libev = True
# FIXME: uncomment once libunbound is available
# self.options.stub_only = self.settings.os != "Windows"
self.options.with_libev = True # self.settings.os == "Windows"
# self.options.with_libev = self.settings.os == "Windows"

def configure(self):
if self.options.shared:
Expand All @@ -77,7 +75,7 @@ def requirements(self):
if self.options.tls == "gnutls":
self.requires("gnutls/3.7.8")
self.requires("nettle/3.8.1")
raise ConanInvalidConfiguration("gnutls on CCI does not build required libdane component")
raise ConanInvalidConfiguration("gnutls on CCI does not build the required libdane component")
if not self.options.stub_only:
# FIXME: missing libunbound recipe
raise ConanInvalidConfiguration("libunbound is not (yet) available on cci")
Expand Down

0 comments on commit 0119b20

Please sign in to comment.