14
0
forked from pool/python-xmlsec

- Add patch fix-lxml-incompat.patch:

* Cast to avoid an incompatibility with lxml.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmlsec?expand=0&rev=31
This commit is contained in:
2024-08-29 04:41:42 +00:00
committed by Git OBS Bridge
parent 29e1e010ea
commit c45e25b7de
3 changed files with 33 additions and 1 deletions

24
fix-lxml-incompat.patch Normal file
View File

@@ -0,0 +1,24 @@
From 67cd4ac73e4fceac4b4eb6a320067cad33f79213 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Wed, 19 Jun 2024 17:43:07 +0200
Subject: [PATCH] Explicitly cast the pointer type in
PyXmlSec_ClearReplacedNodes
Fixes https://github.com/xmlsec/python-xmlsec/issues/323
---
src/enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/enc.c b/src/enc.c
index 5453ef9..c2bc94b 100644
--- a/src/enc.c
+++ b/src/enc.c
@@ -204,7 +204,7 @@ static void PyXmlSec_ClearReplacedNodes(xmlSecEncCtxPtr ctx, PyXmlSec_LxmlDocume
PYXMLSEC_DEBUGF("clear replaced node %p", n);
nn = n->next;
// if n has references, it will not be deleted
- elem = PyXmlSec_elementFactory(doc, n);
+ elem = (PyXmlSec_LxmlElementPtr*)PyXmlSec_elementFactory(doc, n);
if (NULL == elem)
xmlFreeNode(n);
else