]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon: warn that non-Linux platforms are untested
authorPetr Špaček <petr.spacek@nic.cz>
Wed, 22 Apr 2020 08:18:56 +0000 (10:18 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 27 Apr 2020 13:59:35 +0000 (15:59 +0200)
Hopefully this will help to set right expectations.

daemon/main.c
meson.build

index 09667b5ceb9dc79cdd9281152f23783a4db90402..f936c645cd1e48fde96788e387ac083c7ab18de9 100644 (file)
@@ -513,6 +513,10 @@ int main(int argc, char **argv)
                                strerror(errno));
                fflush(stderr);
        }
+       if (strcmp("linux", OPERATING_SYSTEM) != 0)
+               kr_log_info("[warn] Knot Resolver is tested on Linux, other platforms might exhibit bugs.\n"
+                               "Please report issues to https://gitlab.labs.nic.cz/knot/knot-resolver/issues/\n"
+                               "Thank you for your time and interest!\n");
 
        the_args = &the_args_value;
        args_init(the_args);
index aa961aa70b6e162e480ab34b761836d3eee82b33..9ca5c60fdc1d5671f4ae4ef1fed486cfd8dc17c5 100644 (file)
@@ -155,6 +155,7 @@ conf_data.set_quoted('PACKAGE_VERSION', meson.project_version())
 conf_data.set_quoted('LIBDIR', lib_dir)
 conf_data.set_quoted('ROOTHINTS', root_hints)
 conf_data.set_quoted('LIBEXT', libext)
+conf_data.set_quoted('OPERATING_SYSTEM', host_machine.system())
 conf_data.set_quoted('libzscanner_SONAME',
   libzscanner.get_pkgconfig_variable('soname'))
 conf_data.set_quoted('libknot_SONAME',