Skip to content

Commit

Permalink
gettext-full: add gmsgfmt symlink in host install
Browse files Browse the repository at this point in the history
Some configure scripts look for msgfmt and gmsgfmt. As we don't install
the latter, configure might pick up one from staging_dir/hostpkg, and
the other from the host:

checking for msgfmt... /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt

This could potentially lead to hard to debug undefined behaviour.
Install a symlink in the host install phase to avoid this.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
  • Loading branch information
stintel committed Mar 25, 2022
1 parent 7598863 commit 636cb00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package/libs/gettext-full/Makefile
Expand Up @@ -88,6 +88,11 @@ define Build/InstallDev
$(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize
endef

define Host/Install
$(call Host/Install/Default)
$(LN) msgfmt $(STAGING_DIR_HOSTPKG)/bin/gmsgfmt
endef

define Package/libintl-full/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
Expand Down

0 comments on commit 636cb00

Please sign in to comment.