* update python-xmlsec to 1.3.14-2
This commit is contained in:
parent
85e3e8c18b
commit
a1ba068abd
29
python/python-xmlsec/.SRCINFO
Normal file
29
python/python-xmlsec/.SRCINFO
Normal file
@ -0,0 +1,29 @@
|
||||
pkgbase = python-xmlsec
|
||||
pkgdesc = Python bindings for the XML Security Library
|
||||
pkgver = 1.3.14
|
||||
pkgrel = 2
|
||||
url = https://github.com/mehcode/python-xmlsec
|
||||
arch = x86_64
|
||||
arch = powerpc64le
|
||||
arch = powerpc64
|
||||
arch = powerpc
|
||||
arch = riscv64
|
||||
license = MIT
|
||||
checkdepends = python-hypothesis
|
||||
checkdepends = python-pytest
|
||||
makedepends = git
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-pkgconfig
|
||||
makedepends = python-setuptools-scm
|
||||
makedepends = python-wheel
|
||||
depends = glibc
|
||||
depends = libxml2
|
||||
depends = python-lxml
|
||||
depends = xmlsec
|
||||
source = git+https://github.com/mehcode/python-xmlsec.git#tag=1.3.14
|
||||
source = explicitly-cast-pointer.patch
|
||||
sha512sums = 809168e0b2501a3220640a2f092e38ee749636e4daeed5ba9eb247e0ef88aeedc3cd9c08d54db1a3a073303b940c592d4d0a9a6df4999fa55c2abf3745bc698d
|
||||
sha512sums = 12f8ab47afa14a0c73e7db502710cb2620ae9817be50aa3aa3dfd9aad48fa742a73f47e73281ee3a8428da812c84fa27814f196540bddcb866fa009325d5647f
|
||||
|
||||
pkgname = python-xmlsec
|
4
python/python-xmlsec/.nvchecker.toml
Normal file
4
python/python-xmlsec/.nvchecker.toml
Normal file
@ -0,0 +1,4 @@
|
||||
[python-xmlsec]
|
||||
source = "git"
|
||||
git = "https://github.com/mehcode/python-xmlsec.git"
|
||||
prefix = "v"
|
@ -3,7 +3,7 @@
|
||||
|
||||
pkgname=python-xmlsec
|
||||
pkgver=1.3.14
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Python bindings for the XML Security Library"
|
||||
url="https://github.com/mehcode/python-xmlsec"
|
||||
license=('MIT')
|
||||
@ -11,8 +11,15 @@ arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
depends=('glibc' 'libxml2' 'python-lxml' 'xmlsec')
|
||||
makedepends=('git' 'python-build' 'python-installer' 'python-pkgconfig' 'python-setuptools-scm' 'python-wheel')
|
||||
checkdepends=('python-hypothesis' 'python-pytest')
|
||||
source=("git+https://github.com/mehcode/python-xmlsec.git#tag=$pkgver")
|
||||
sha512sums=('809168e0b2501a3220640a2f092e38ee749636e4daeed5ba9eb247e0ef88aeedc3cd9c08d54db1a3a073303b940c592d4d0a9a6df4999fa55c2abf3745bc698d')
|
||||
source=("git+https://github.com/mehcode/python-xmlsec.git#tag=$pkgver"
|
||||
"explicitly-cast-pointer.patch")
|
||||
sha512sums=('809168e0b2501a3220640a2f092e38ee749636e4daeed5ba9eb247e0ef88aeedc3cd9c08d54db1a3a073303b940c592d4d0a9a6df4999fa55c2abf3745bc698d'
|
||||
'12f8ab47afa14a0c73e7db502710cb2620ae9817be50aa3aa3dfd9aad48fa742a73f47e73281ee3a8428da812c84fa27814f196540bddcb866fa009325d5647f')
|
||||
|
||||
prepare() {
|
||||
cd python-xmlsec
|
||||
patch -Np1 -i ${srcdir}/explicitly-cast-pointer.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd python-xmlsec
|
||||
|
24
python/python-xmlsec/explicitly-cast-pointer.patch
Normal file
24
python/python-xmlsec/explicitly-cast-pointer.patch
Normal 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
|
Loading…
x
Reference in New Issue
Block a user