From 673e81b90bb9b0a5fcc6abb2438b6cea7b01e808 Mon Sep 17 00:00:00 2001 From: Fragstiller <30158742+Fragstiller@users.noreply.github.com> Date: Fri, 21 Jan 2022 14:53:13 +0300 Subject: [PATCH] Ports: Relocate `use_fresh_config_sub` check to `do_configure()` --- Ports/.port_include.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 1a2cf1f151..04e114cc69 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -380,9 +380,7 @@ func_defined patch_internal || patch_internal() { fi } func_defined pre_configure || pre_configure() { - if "$use_fresh_config_sub"; then - ensure_new_config_sub - fi + : } func_defined configure || configure() { chmod +x "${workdir}"/"$configscript" @@ -505,6 +503,9 @@ do_configure() { ensure_build if [ "$useconfigure" = "true" ]; then echo "Configuring $port..." + if "$use_fresh_config_sub"; then + ensure_new_config_sub + fi pre_configure configure post_configure