Files
Charlie Li fb3e1d5f3d textproc/libxml2: backport upstream commits fixing CVEs
[CVE-2024-56171] Fix use-after-free after xmlSchemaItemListAdd
[CVE-2025-24928] Fix stack-buffer-overflow in xmlSnprintfElements
[CVE-2025-32414] python: Read at most len/4 characters.

PR: 287391
2025-06-21 14:55:14 -04:00

33 lines
939 B
Makefile

PORTREVISION= 3
CATEGORIES= textproc gnome python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
COMMENT= Python interface for XML parser library for GNOME
USES+= gnome python shebangfix
USE_GNOME= libxml2
USE_PYTHON= flavors
SHEBANG_FILES= *.py doc/*.py python/*.py python/tests/*.py
# Help CMake determine the correct version of Python if
# multiple versions are installed
CMAKE_ARGS= -DPython_EXECUTABLE=${PYTHON_CMD}
MASTERDIR= ${.CURDIR}/../libxml2
DESCR= ${.CURDIR}/pkg-descr
PLIST= ${.CURDIR}/pkg-plist
OPTIONS_EXCLUDE= ${OPTIONS_DEFINE}
# Tell master port we're a slave port
LIBXML2_SLAVE= python
do-install:
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${INSTALL_SCRIPT} ${WRKSRC}/python/drv_libxml2.py ${STAGEDIR}${PYTHON_SITELIBDIR}
${INSTALL_SCRIPT} ${BUILD_WRKSRC}/libxml2.py ${STAGEDIR}${PYTHON_SITELIBDIR}
${INSTALL_LIB} ${BUILD_WRKSRC}/libxml2mod.so ${STAGEDIR}${PYTHON_SITELIBDIR}
.include "${MASTERDIR}/Makefile"