From 72c059535e99a716137da705c2797a180f761960 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Fri, 16 Sep 2022 20:01:30 +0200 Subject: [PATCH] Ports: Follow symlinks while discovering whether a port has patches This enables us to use `./package.sh dev` with LLVM and GCC. --- Ports/.port_include.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index e94b377e43..8f49e7e8dd 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -727,7 +727,7 @@ do_dev() { git config receive.denyCurrentBranch ignore # Import patches as commits, or ask the user to commit them # if they're not git patches already. - if [ -d "${PORT_META_DIR}/patches" ] && [ -n "$(find "${PORT_META_DIR}/patches" -maxdepth 1 -name '*.patch' -print -quit)" ]; then + if [ -d "${PORT_META_DIR}/patches" ] && [ -n "$(find -L "${PORT_META_DIR}/patches" -maxdepth 1 -name '*.patch' -print -quit)" ]; then for patch in "${PORT_META_DIR}"/patches/*.patch; do if [ -f "$workdir/.$(basename $patch).applied" ]; then continue