From e144f3ad661277522887f609defeb8d7123505d1 Mon Sep 17 00:00:00 2001 From: Pavel Cahyna Date: Sun, 11 Feb 2024 21:10:57 +0100 Subject: [PATCH] Add a patch from C9S Include config.h in cmdlang to avoid gethostbyname cmdlang.c uses a configure macro to determine getaddrinfo support. Without the macro defined, it uses gethostbyname instead of getaddrinfo. This was actually happening erroneously, because the code did not include config.h. Fix that. Avoids one rpminspect/rpmdiff warning. --- OpenIPMI.spec | 1 + include-config-h-cmdlang.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 include-config-h-cmdlang.patch diff --git a/OpenIPMI.spec b/OpenIPMI.spec index a41c95e..8843778 100644 --- a/OpenIPMI.spec +++ b/OpenIPMI.spec @@ -12,6 +12,7 @@ Source1: openipmi.sysconf Source2: openipmi-helper Source3: ipmi.service Patch1: 0001-man.patch +Patch2: include-config-h-cmdlang.patch Patch4: OpenIPMI-c99.patch Patch5: OpenIPMI-py313compat.patch diff --git a/include-config-h-cmdlang.patch b/include-config-h-cmdlang.patch new file mode 100644 index 0000000..4f9fcab --- /dev/null +++ b/include-config-h-cmdlang.patch @@ -0,0 +1,12 @@ +diff -up OpenIPMI-2.0.32/cmdlang/cmdlang.c~ OpenIPMI-2.0.32/cmdlang/cmdlang.c +--- OpenIPMI-2.0.32/cmdlang/cmdlang.c~ 2021-01-22 19:51:28.000000000 +0100 ++++ OpenIPMI-2.0.32/cmdlang/cmdlang.c 2022-01-28 11:55:42.375470392 +0100 +@@ -32,6 +32,8 @@ + */ + + ++#include ++ + #include + #include + #include