check if BUILD_DEPENDS is defined before trying to access it

problem found by aja, fix suggested by tb
This commit is contained in:
sthen
2025-02-05 14:04:17 +00:00
parent d81062bf08
commit ad30940204
+2 -1
View File
@@ -227,7 +227,8 @@ _MODPY_USERBASE = ${WRKDIR}
# DPB failure if junking occurs. Add a dep to avoid this. This is
# conditional to avoid loops (currently seen with py-numpy).
MODPY_CYTHON_PYTHRAN_RDEP ?= Yes
.if ${BUILD_DEPENDS:Mlang/cython*} && ${MODPY_CYTHON_PYTHRAN_RDEP} == Yes
.if defined(BUILD_DEPENDS) && ${BUILD_DEPENDS:Mlang/cython*} && \
${MODPY_CYTHON_PYTHRAN_RDEP} == Yes
BUILD_DEPENDS += lang/pythran
.endif