From 26d349303efc2b94e6382c1a14f3f2bb3349796a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Wed, 6 Oct 2021 22:09:45 -0300 Subject: [PATCH] build-style/void-cross: check for kernel-libc-headers/patches The directory isn't always present, so add the same check as used in other stages of the build. --- common/build-style/void-cross.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh index ee2c6aaf7c2..92f03f8130f 100644 --- a/common/build-style/void-cross.sh +++ b/common/build-style/void-cross.sh @@ -167,9 +167,11 @@ _void_cross_build_kernel_headers() { msg_normal "Patching Linux headers for ${tgt}\n" cd ${wrksrc}/linux-${ver} - for f in ${XBPS_SRCPKGDIR}/kernel-libc-headers/patches/*.patch; do - _void_cross_apply_patch "$f" - done + if [ -d "${XBPS_SRCPKGDIR}/kernel-libc-headers/patches" ]; then + for f in ${XBPS_SRCPKGDIR}/kernel-libc-headers/patches/*.patch; do + _void_cross_apply_patch "$f" + done + fi cd .. msg_normal "Building Linux headers for ${tgt}\n"