Skip to contentSkip to conversation

pkg-autotools-infra: disable NLS for the host by default

PATCH Superseded Vadim Kochan 2 participants 3 messages Apr 3, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pkg-autotools-infra: disable NLS for the host by default

From: Vadim Kochan <[email protected]>

There is no need for language translaion feature for the host packages, anyway some of them disable it explicitly, so lets do it automatically at least for the host-autotools- kind of packages.

---
 package/acl/acl.mk                     | 1 -
 package/attr/attr.mk                   | 1 -
 package/gcc/gcc-initial/gcc-initial.mk | 1 -
 package/gutenprint/gutenprint.mk       | 2 --
 package/pkg-autotools.mk               | 2 ++
 package/vim/vim.mk                     | 3 +--
 6 files changed, 3 insertions(+), 7 deletions(-)
package/acl/acl.mk +0 -1
index 038bc7a..8dce274 100644
@@ -15,7 +15,6 @@ HOST_ACL_DEPENDENCIES = host-attr
 ACL_INSTALL_STAGING = YES
 
 ACL_CONF_OPTS = --disable-nls
-HOST_ACL_CONF_OPTS = --disable-nls
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
package/attr/attr.mk +0 -1
index 348dcd2..ba77e80 100644
@@ -12,7 +12,6 @@ ATTR_LICENSE_FILES = doc/COPYING doc/COPYING.LGPL
 ATTR_INSTALL_STAGING = YES
 
 ATTR_CONF_OPTS = --disable-nls
-HOST_ATTR_CONF_OPTS = --disable-nls
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
package/gcc/gcc-initial/gcc-initial.mk +0 -1
index 1decca8..f5bc6c5 100644
@@ -38,7 +38,6 @@ HOST_GCC_INITIAL_CONF_OPTS = \
 	--disable-threads \
 	--with-newlib \
 	--disable-largefile \
-	--disable-nls \
 	$(call qstrip,$(BR2_EXTRA_GCC_CONFIG_OPTIONS))
 
 HOST_GCC_INITIAL_CONF_ENV = \
package/gutenprint/gutenprint.mk +0 -2
index 65b8d31..6c42319 100644
@@ -61,8 +61,6 @@ HOST_GUTENPRINT_CONF_OPTS = \
 	--disable-samples \
 	--without-gimp2 \
 	--without-doc \
-	--disable-nls \
-	--disable-nls-macos \
 	--without-foomatic \
 	--without-foomatic3 \
 	--disable-escputil \
package/pkg-autotools.mk +2 -0
index 45de993..3f139f8 100644
@@ -232,6 +232,8 @@ define $(2)_CONFIGURE_CMDS
 		--disable-debug \
 		--with-xmlto=no \
 		--with-fop=no \
+		--disable-nls \
+		--disable-nls-macos \
 		$$(if $$($$(PKG)_OVERRIDE_SRCDIR),,--disable-dependency-tracking) \
 		$$(QUIET) $$($$(PKG)_CONF_OPTS) \
 	)
package/vim/vim.mk +1 -2
index 56716cb..c19d835 100644
@@ -86,8 +86,7 @@ HOST_VIM_CONF_OPTS = \
 	--without-x \
 	--disable-acl \
 	--disable-gpm \
-	--disable-selinux \
-	--disable-nls
+	--disable-selinux
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 pkg-autotools-infra: disable NLS for the host by default

Hello,

Quoted 7 lines · On Wed, 3 Apr 2019 18:40:55 +0300 Vadim Kochan <[email protected]> wrote:

From: Vadim Kochan <[email protected]>

There is no need for language translaion feature for the host packages, anyway some of them disable it explicitly, so lets do it automatically at least for the host-autotools- kind of packages.

Thanks for the patch. One question below, though.

package/pkg-autotools.mk define $(2)_CONFIGURE_CMDS · line 236

Quoted 2 lines
package/pkg-autotools.mk +2 -0
+		--disable-nls \
+		--disable-nls-macos \

What is --disable-nls-macos ? Why do we need to pass it even though no package is passing it right now ?

It should perhaps be a separate patch, or at the very least be explained in the commit log.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 pkg-autotools-infra: disable NLS for the host by default

Hi Thomas,

Quoted 11 lines · Thomas Petazzoni

Hello,

Quoted 6 lines · On Wed, 3 Apr 2019 18:40:55 +0300 Vadim Kochan <[email protected]> wrote:

From: Vadim Kochan <[email protected]>

There is no need for language translaion feature for the host packages, anyway some of them disable it explicitly, so lets do it automatically at least for the host-autotools- kind of packages.

Quoted 6 lines
Quoted 1 line

Thanks for the patch. One question below, though.

package/pkg-autotools.mk define $(2)_CONFIGURE_CMDS · line 236

Quoted 2 lines
package/pkg-autotools.mk +2 -0
+		--disable-nls \
+		--disable-nls-macos \

Yeahh, sorry I took it from guterprint, but it should be removed at all.

Quoted 7 lines

What is --disable-nls-macos ? Why do we need to pass it even though no package is passing it right now ?

It should perhaps be a separate patch, or at the very least be explained in the commit log.

Regards,
Vadim Kochan