zsh: use autoreconf PKG_FIXUP to configure
authorOskari Rauta <oskari.rauta@gmail.com>
Wed, 4 Oct 2023 21:46:57 +0000 (23:46 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 5 Oct 2023 10:57:17 +0000 (12:57 +0200)
In preparation to PCRE2 fixup, use autoreconf PKG_FIXUP as a better
configure system instead of configure script. This is needed to reduce
upcoming patch to migrate to PCRE2 library.

To correctly use autoreconf it's needed to declare empty
PKG_REMOVE_FILES.

zsh include custom macro in the default aclocal.m4
When autoreconf PKG_FIXUP is used, if PKG_REMOVE_FILES is not defined,
it's set to remove the file aclocal.m4 by default resulting in problem
with the custom macro AC_PROG_LN.

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
[ split to 2 commit, add PKG_REMOVE_FILES, reword commit description ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
utils/zsh/Makefile

index 6fc713a5db0ed8abd4543d5b1522ba0dca1fce5b..819dbe4ae226fcc1aa1f0952dbc8c9065518e323 100644 (file)
@@ -20,10 +20,19 @@ PKG_LICENSE:=ZSH
 PKG_LICENSE_FILES:=LICENCE
 PKG_CPE_ID:=cpe:/a:zsh_project:zsh
 
+PKG_FIXUP:=autoreconf
 PKG_BUILD_PARALLEL:=1
 PKG_INSTALL:=1
 PKG_BUILD_FLAGS:=gc-sections lto
 
+# zsh include custom macro in the default aclocal.m4
+# When autoreconf PKG_FIXUP is used, if PKG_REMOVE_FILES
+# is not defined, it's set to remove the file aclocak.m4
+# by default resulting in problem with the custom macro
+# AC_PROG_LN
+# To prevent this, declare empty PKG_REMOVE_FILES
+PKG_REMOVE_FILES:=
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/zsh