From d9fb79403b9d32cf72a66bbe69076d9cfc0746d3 Mon Sep 17 00:00:00 2001 From: Josh Patterson Date: Thu, 5 Jun 2025 15:57:56 -0400 Subject: [PATCH] seems new openldap / libldap.so.2 doesnt have EVP_md2 dependency so check for it before trying to remove it --- salt/libvirt/64962/scripts/so-fix-salt-ldap.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/salt/libvirt/64962/scripts/so-fix-salt-ldap.py b/salt/libvirt/64962/scripts/so-fix-salt-ldap.py index 919b50261..90d603904 100644 --- a/salt/libvirt/64962/scripts/so-fix-salt-ldap.py +++ b/salt/libvirt/64962/scripts/so-fix-salt-ldap.py @@ -21,7 +21,9 @@ uname = 'salt' gname = 'salt' lib = lief.parse(str(src_lib)) -sym = next(i for i in lib.imported_symbols if i.name == 'EVP_md2') + +sym = next((i for i in lib.imported_symbols if i.name == 'EVP_md2'), None) + if sym: # Get the Salt services from DBus. sysbus = dbus.SystemBus() @@ -71,5 +73,7 @@ if sym: if svcs: for sn in svcs: mgr.RestartUnit(sn, 'replace') +else: + print('No EVP_md2 symbol found in the library. No modifications needed.') print('Done.')