From 39a9980fb116108807ee68def27a6348184f282c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20sp1rit=E2=80=8B?= Date: Sun, 21 Aug 2022 00:24:26 +0200 Subject: [PATCH 1/2] dropped deprecated gethostbyname check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Done to avoid the rpmlint warning: hyprland.x86_64: W: binary-or-shlib-calls-gethostbyname /usr/bin/hyprctl The binary calls gethostbyname. Please port the code to use getaddrinfo. Signed-off-by: Florian "sp1rit"​ --- hyprctl/main.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index db8f48a3..820e9fe9 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -50,12 +50,6 @@ void request(std::string arg) { return; } - const auto SERVER = gethostbyname("localhost"); - - if (!SERVER) { - std::cout << "Couldn't get host (2)"; - return; - } // get the instance signature auto instanceSig = getenv("HYPRLAND_INSTANCE_SIGNATURE"); From e9551731f032677a830eb4ab4ea9bcf30857c494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20sp1rit=E2=80=8B?= Date: Sun, 21 Aug 2022 00:32:55 +0200 Subject: [PATCH 2/2] improve compatability with older meson versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - changed .get_version() to .version() Signed-off-by: Florian "sp1rit"​ --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 94353336..58ef93a6 100644 --- a/meson.build +++ b/meson.build @@ -15,7 +15,7 @@ if cpp_compiler.has_argument('-std=c++23') elif cpp_compiler.has_argument('-std=c++2b') add_global_arguments('-std=c++2b', language: 'cpp') else - error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.get_version() + ') with required C++ standard (C++23)') + error('Could not configure current C++ compiler (' + cpp_compiler.get_id() + ' ' + cpp_compiler.version() + ') with required C++ standard (C++23)') endif GIT_BRANCH = run_command('git', 'rev-parse', '--abbrev-ref', 'HEAD', check: false).stdout().strip()