]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
tools: bison: do not install or uninstall macros 19606/head
authorMichael Pratt <mcpratt@pm.me>
Wed, 30 Jul 2025 18:44:16 +0000 (14:44 -0400)
committerNick Hainke <vincent@systemli.org>
Wed, 30 Jul 2025 21:06:30 +0000 (23:06 +0200)
There is a clobbering between bison and gnulib for installing
the macro file bison-i18n.m4 where gnulib has a newer version
while bison will replace it with an outdated version if built afterward.

Other builds depend on the changes made to the bison-i18n.m4 file and are
only included using aclocal unless other modifications are made in each case
in order to force imported macros from gnulib to override aclocal macros.

Gnulib is integrated within bison, however it is not with a bootstrap script
and there is already a reverse dependency between the two, where bison
is indirectly required for gnulib to start building. Therefore, do not allow
the building or cleaning of bison to install or uninstall m4 files.

Reported-by: Tianling Shen <cnsztl@immortalwrt.org>
Fixes: d19f8bc199 ("tools/gnulib: update to branch stable-202501")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/19606
Signed-off-by: Nick Hainke <vincent@systemli.org>
tools/bison/Makefile

index 97d34b5a166161a5b1eb2b676982ff4053fe6a82..4cb0faf3365fb69c904b1190bcaadffa9d31f514 100644 (file)
@@ -21,13 +21,13 @@ include $(INCLUDE_DIR)/host-build.mk
 HOST_CONFIGURE_ARGS += --enable-threads=posix --disable-nls
 
 define Host/Install
-       $(call Host/Install/Default)
+       $(call Host/Compile/Default,install aclocal_DATA=) # Macro provided by gnulib
        $(INSTALL_BIN) ./scripts/yacc $(STAGING_DIR_HOST)/bin/yacc
 endef
 
 define Host/Uninstall
        rm -f $(STAGING_DIR_HOST)/bin/yacc
-       -$(call Host/Compile/Default,uninstall)
+       -$(call Host/Compile/Default,uninstall aclocal_DATA=) # Macro provided by gnulib
 endef
 
 $(eval $(call HostBuild))