dos2unix: Deactivate NLS support
authorHauke Mehrtens <[email protected]>
Sun, 18 Dec 2022 14:06:12 +0000 (15:06 +0100)
committerTianling Shen <[email protected]>
Sun, 18 Dec 2022 21:14:11 +0000 (05:14 +0800)
By default the dos2unix build uses the msgfmt application which is
provided by the host tool gettext in OpenWrt. Instead of adding the
dependency to gettext deactivate NLS support.

This fixes the following build error:
-------------------------------------------
msgfmt -c po/da.po -o po/da.mo
make[4]: msgfmt: No such file or directory
make[4]: *** [Makefile:472: po/da.mo] Error 127

Signed-off-by: Hauke Mehrtens <[email protected]>
utils/dos2unix/Makefile

index 2326e0c87a40b5c69a10234debef9371a4f1093c..10d6d5f313e9dfb3943023104e73bf3e92ac21fe 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dos2unix
 PKG_VERSION:=7.4.3
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://waterlan.home.xs4all.nl/dos2unix/ \
@@ -22,7 +22,7 @@ PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
-MAKE_FLAGS+= D2U_OS=Linux
+MAKE_FLAGS+= D2U_OS=Linux ENABLE_NLS=
 
 define dos2unix/template
   define Package/$(1)