From 0f5cb2907431eb5290be03a1cb8cd17ba66ff462 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 20 Apr 2023 13:32:57 -0400 Subject: [PATCH] Fix removal of deprecated macro Signed-off-by: Simo Sorce --- fix-removed-xmlsec-deprecations.patch | 12 ++++++++++++ lasso.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 fix-removed-xmlsec-deprecations.patch diff --git a/fix-removed-xmlsec-deprecations.patch b/fix-removed-xmlsec-deprecations.patch new file mode 100644 index 0000000..8924557 --- /dev/null +++ b/fix-removed-xmlsec-deprecations.patch @@ -0,0 +1,12 @@ +diff -uPr lasso-2.8.2.orig/lasso/lasso.c lasso-2.8.2/lasso/lasso.c +--- lasso-2.8.2.orig/lasso/lasso.c 2023-01-25 12:10:30.746769119 -0500 ++++ lasso-2.8.2/lasso/lasso.c 2023-04-20 12:14:57.332671023 -0400 +@@ -270,7 +270,7 @@ + * xmlsec-crypto library. + */ + #ifdef XMLSEC_CRYPTO_DYNAMIC_LOADING +- if (xmlSecCryptoDLLoadLibrary(BAD_CAST XMLSEC_CRYPTO) < 0) { ++ if (xmlSecCryptoDLLoadLibrary(BAD_CAST xmlSecGetDefaultCrypto()) < 0) { + message(G_LOG_LEVEL_CRITICAL, + "Unable to load default xmlsec-crypto library. Make sure" + "that you have it installed and check shared libraries path" diff --git a/lasso.spec b/lasso.spec index d57b2c1..abaefb1 100644 --- a/lasso.spec +++ b/lasso.spec @@ -72,6 +72,8 @@ License: GPLv2+ URL: https://lasso.entrouvert.org/ Source: https://dev.entrouvert.org/lasso/lasso-%{version}.tar.gz +Patch01: fix-removed-xmlsec-deprecations.patch + BuildRequires: autoconf BuildRequires: automake BuildRequires: check-devel