From 393d82a35aa6b562eca63aa76a7a38aba9aa6414 Mon Sep 17 00:00:00 2001 From: Kamal Heib Date: Fri, 24 May 2024 21:17:56 -0400 Subject: [PATCH] Fix annocheck failure Resolves: RHEL-24816 Signed-off-by: Kamal Heib --- 0001-Fix-bind-now-test.patch | 26 ++++++++++++++++++++++++++ mstflint.spec | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 0001-Fix-bind-now-test.patch diff --git a/0001-Fix-bind-now-test.patch b/0001-Fix-bind-now-test.patch new file mode 100644 index 0000000..a489d5f --- /dev/null +++ b/0001-Fix-bind-now-test.patch @@ -0,0 +1,26 @@ +From f9c2ffd7935fb799a084d74ee432e21c3f45b6f1 Mon Sep 17 00:00:00 2001 +From: Kamal Heib +Date: Fri, 24 May 2024 21:15:47 -0400 +Subject: [PATCH] Fix bind-now test + +Signed-off-by: Kamal Heib +--- + resourcetools/resourcedump_lib/src/sdk/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/resourcetools/resourcedump_lib/src/sdk/Makefile.am b/resourcetools/resourcedump_lib/src/sdk/Makefile.am +index aefc88a4f849..de9577b27379 100644 +--- a/resourcetools/resourcedump_lib/src/sdk/Makefile.am ++++ b/resourcetools/resourcedump_lib/src/sdk/Makefile.am +@@ -86,7 +86,7 @@ resource_dump_sdk_so_DEPS = \ + + # if !WIN_BUILD + libresource_dump_sdk.so: libresource_dump_sdk.la +- $(CC) -Wall -pthread -shared ${CFLAGS} $(COMPILER_FPIC) libresource_dump_sdk_la-resource_dump_sdk.o \ ++ $(CC) -Wall -pthread -shared -Wl,-z,now -Wl,${CFLAGS} $(COMPILER_FPIC) libresource_dump_sdk_la-resource_dump_sdk.o \ + -o libresource_dump_sdk.so ${AM_LDFLAGS} $(resource_dump_sdk_so_DEPS) + # else + # libresource_dump_sdk.dll: libresource_dump_sdk.la +-- +2.45.0 + diff --git a/mstflint.spec b/mstflint.spec index ba0fdbe..f918e84 100644 --- a/mstflint.spec +++ b/mstflint.spec @@ -13,6 +13,7 @@ Url: https://github.com/Mellanox/%{name} Source0: https://github.com/Mellanox/%{name}/releases/download/v%{version}-1/%{name}-%{version}-1.tar.gz Group: Applications/System +Patch1: 0001-Fix-bind-now-test.patch Patch4: add-default-link-flags-for-shared-libraries.patch Patch6: replace-mlxfwreset-with-mstfwreset-in-mstflint-message.patch @@ -34,6 +35,7 @@ for network adapters based on Mellanox Technologies chips. %prep %setup -q -n %{name}-%{version} +%patch1 -p1 %patch4 -p1 %patch6 -p1