From 6258f9892c75b0254be679282f4574d4a45b86ca Mon Sep 17 00:00:00 2001 From: Yaraslau Furman Date: Thu, 9 Jan 2025 00:53:39 +0200 Subject: [PATCH] PKGBUILD: add back briefly used script flags Some users may have switched to the new flags when they got added, some may have not. We've reverted those updated flags in commit: 756a7d02ae63f9d2cf0371873b4a34418b37ac53 Add support for them back with a warning. --- PKGBUILD | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index 74e2f2d..6775bcf 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -38,6 +38,10 @@ # # Set to anything but null to activate. : "${_use_current:=""}" +: "${_reuse_current:=""}" +[[ -n "${_reuse_current}" ]] && \ + warning "Please switch to using '_use_current' flag instead of '_reuse_current'" && \ + _use_current="y" # Apply selected optimizations chosen by # the package maintainers to the config. @@ -49,6 +53,10 @@ # # Set to anything but null to activate. : "${_optimize_defconfig:=""}" +: "${_update_kconfig_on_reuse:=""}" +[[ -n "${_update_kconfig_on_reuse}" ]] && \ + warning "Please switch to using '_update_kconfig_on_reuse' flag instead of '_optimize_defconfig'" && \ + _optimize_defconfig="y" # Determines whether the kernel configuration should be # copied into the source tree before compilation starts.