Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/vim: fix build for the host if NLS is disabled
@ 2019-04-01 13:20 Vadim Kochan
  2019-04-01 19:46 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Vadim Kochan @ 2019-04-01 13:20 UTC (permalink / raw)
  To: buildroot

From: Vadim Kochan <vadim4j@gmail.com>

host-vim started fail after gettext-tiny was introduced in:

    5367a1b package/gettext-tiny: new package

which forces to use host-gettext-tiny as gnu's host-gettext replacament
if NLS is disabled, and msgfmt from gettext-tiny's package crashes while
processing translation files, so fix it by use '--disable-nls' for
a host-vim because host variant does not require any tranalations.

Fixes:
	http://autobuild.buildroot.net/results/0948ab6fd959940c836e06f5b632b36443a53451
	http://autobuild.buildroot.net/results/cfa6f78caea012ea4423e807ce8ceb997bc1f908
	http://autobuild.buildroot.net/results/6d417ab6a0e369b6c7023ce7d40d9b31fa0adeaf
	http://autobuild.buildroot.net/results/4369725cdea72b168dfa760d54ac038f2e0506de
	http://autobuild.buildroot.net/results/a9b72f138595e39be51b37d93bc43e0e8a39e5f6
	http://autobuild.buildroot.net/results/dadf5e71942b807bb4d18108c043ce81b349781c
	http://autobuild.buildroot.net/results/05d48cc5ef1068537d45169a4930927060e1cd7a
	http://autobuild.buildroot.net/results/993392c1213889e4e2bb9c06235d2f2f16a5cafe
	http://autobuild.buildroot.net/results/314acaa9e87e8e896a6af7d49ee0e59643ced500

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
---
 package/vim/vim.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/vim/vim.mk b/package/vim/vim.mk
index ee0c8b6..1e2d85d 100644
--- a/package/vim/vim.mk
+++ b/package/vim/vim.mk
@@ -80,6 +80,13 @@ VIM_POST_INSTALL_TARGET_HOOKS += VIM_REMOVE_DOCS
 endif
 
 HOST_VIM_DEPENDENCIES = host-ncurses
+HOST_VIM_CONF_OPTS = --with-tlib=ncurses \
+		     --enable-gui=no \
+		     --without-x \
+		     --disable-acl \
+		     --disable-gpm \
+		     --disable-selinux \
+		     --disable-nls
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/vim: fix build for the host if NLS is disabled
  2019-04-01 13:20 [Buildroot] [PATCH 1/1] package/vim: fix build for the host if NLS is disabled Vadim Kochan
@ 2019-04-01 19:46 ` Thomas Petazzoni
  2019-04-01 20:11   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2019-04-01 19:46 UTC (permalink / raw)
  To: buildroot

Hello Vadim,

On Mon,  1 Apr 2019 16:20:57 +0300
Vadim Kochan <vadim4j@gmail.com> wrote:

>  HOST_VIM_DEPENDENCIES = host-ncurses
> +HOST_VIM_CONF_OPTS = --with-tlib=ncurses \
> +		     --enable-gui=no \
> +		     --without-x \
> +		     --disable-acl \
> +		     --disable-gpm \
> +		     --disable-selinux \
> +		     --disable-nls

Indentation should have been just one tab. I fixed that up and applied.

However, for target packages, we are passing --enable-nls/--disable-nls
in the autotools-package infrastructure. Perhaps we should simply do
the same for host packages and always pass --disable-nls ? We have a
few host packages already passing --disable-nls:

package/acl/acl.mk:ACL_CONF_OPTS = --disable-nls
package/acl/acl.mk:HOST_ACL_CONF_OPTS = --disable-nls
package/attr/attr.mk:ATTR_CONF_OPTS = --disable-nls
package/attr/attr.mk:HOST_ATTR_CONF_OPTS = --disable-nls
package/gcc/gcc-initial/gcc-initial.mk: --disable-nls \
package/gutenprint/gutenprint.mk:       --disable-nls \
package/gutenprint/gutenprint.mk:       --disable-nls-macos \
package/lvm2/lvm2.mk:   --disable-nls \
package/ushare/ushare.mk:USHARE_CONF_OPTS += --disable-nls
package/vim/vim.mk:     --disable-nls

Since it works for target packages, I think it should be OK to do the
same for host packages, no?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/vim: fix build for the host if NLS is disabled
  2019-04-01 19:46 ` Thomas Petazzoni
@ 2019-04-01 20:11   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-04-01 20:11 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

Hi,

 > However, for target packages, we are passing --enable-nls/--disable-nls
 > in the autotools-package infrastructure. Perhaps we should simply do
 > the same for host packages and always pass --disable-nls ? We have a
 > few host packages already passing --disable-nls:

..

 > Since it works for target packages, I think it should be OK to do the
 > same for host packages, no?

I would think so as well, yes.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-01 20:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-01 13:20 [Buildroot] [PATCH 1/1] package/vim: fix build for the host if NLS is disabled Vadim Kochan
2019-04-01 19:46 ` Thomas Petazzoni
2019-04-01 20:11   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox