git: 25c952626c32 - main - textproc/py-libxml2: Include bytecode files in package
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Mar 2022 07:19:38 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=25c952626c32a1830793a770b8f401a7d5370905
commit 25c952626c32a1830793a770b8f401a7d5370905
Author: Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-03-28 07:16:43 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-03-28 07:16:50 +0000
textproc/py-libxml2: Include bytecode files in package
This fixes build_fs_violation while running "poudriere bulk" with -t flag
PR: 262823
Reported by: sunpoet
Approved by: portmgr (blanket)
---
textproc/py-libxml2/Makefile | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/textproc/py-libxml2/Makefile b/textproc/py-libxml2/Makefile
index 3f15ce482dd6..a7c1a4e62d20 100644
--- a/textproc/py-libxml2/Makefile
+++ b/textproc/py-libxml2/Makefile
@@ -1,6 +1,6 @@
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc gnome python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -24,7 +24,11 @@ LIBXML2_SLAVE= python
DESCR= ${.CURDIR}/pkg-descr
# Don't append pkg-plist from master port
PLIST=
-PLIST_FILES= ${PYTHON_SITELIBDIR}/drv_libxml2.py \
+PLIST_FILES= ${PYTHON_SITELIBDIR}/__pycache__/drv_libxml2${PYTHON_EXT_SUFFIX}.opt-1.pyc \
+ ${PYTHON_SITELIBDIR}/__pycache__/drv_libxml2${PYTHON_EXT_SUFFIX}.pyc \
+ ${PYTHON_SITELIBDIR}/__pycache__/libxml2${PYTHON_EXT_SUFFIX}.opt-1.pyc \
+ ${PYTHON_SITELIBDIR}/__pycache__/libxml2${PYTHON_EXT_SUFFIX}.pyc \
+ ${PYTHON_SITELIBDIR}/drv_libxml2.py \
${PYTHON_SITELIBDIR}/libxml2.py \
${PYTHON_SITELIBDIR}/libxml2mod.so \
${PYTHON_SITELIBDIR}/libxml2mod.so.${DISTVERSION}
@@ -36,4 +40,8 @@ do-install:
${INSTALL_LIB} ${BUILD_WRKSRC}/libxml2mod.so ${STAGEDIR}${PYTHON_SITELIBDIR}
${RLN} ${STAGEDIR}${PYTHON_SITELIBDIR}/libxml2mod.so ${STAGEDIR}${PYTHON_SITELIBDIR}/libxml2mod.so.${DISTVERSION}
+post-install:
+ ${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
+ ${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
+
.include "${MASTERDIR}/Makefile"