diff --git a/utils/sh/configure_funcs.sh b/utils/sh/configure_funcs.sh index 0b5c11c1bb6..b909b74c215 100644 --- a/utils/sh/configure_funcs.sh +++ b/utils/sh/configure_funcs.sh @@ -51,7 +51,6 @@ configure_src_phase() "$build_style" = "only-install" -o \ "$build_style" = "custom-install" ] && return 0 - # cross compilation vars. if [ -n "$cross_compiler" ]; then . $XBPS_HELPERSDIR/cross-compilation.sh diff --git a/utils/sh/patch_funcs.sh b/utils/sh/patch_funcs.sh index ffbf260d568..bae52e104e6 100644 --- a/utils/sh/patch_funcs.sh +++ b/utils/sh/patch_funcs.sh @@ -40,6 +40,7 @@ apply_tmpl_patches() fi [ -z "$patch_args" ] && patch_args="-p0" + [ -z "$patch_files" ] && return 0 # # If package needs some patches applied before building,