From f3b7a2dd2d160c48729a2371d6efad90cb792e61 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 10 Oct 2018 10:50:21 +0200 Subject: [PATCH] vim: fix build on non-linux systems after upgrade The configure script calls uname directly and assumes that it returns the system to build for. Signed-off-by: Felix Fietkau --- utils/vim/Makefile | 7 +++++-- utils/vim/scripts/uname | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 utils/vim/scripts/uname diff --git a/utils/vim/Makefile b/utils/vim/Makefile index 49d8351720..8e9e3f3f09 100644 --- a/utils/vim/Makefile +++ b/utils/vim/Makefile @@ -116,8 +116,7 @@ CONFIGURE_ARGS += \ --disable-gpm \ --disable-acl \ --with-tlib=ncurses \ - --with-compiledby="non-existent-hostname-compiled" \ - --disable-darwin + --with-compiledby="non-existent-hostname-compiled" CONFIGURE_VARS += \ vim_cv_getcwd_broken=no \ @@ -129,6 +128,10 @@ CONFIGURE_VARS += \ vim_cv_tty_group=root \ vim_cv_tty_mode=0620 +ifneq ($(HOST_OS),Linux) + TARGET_PATH_PKG:=$(CURDIR)/scripts:$(TARGET_PATH_PKG) +endif + define Build/Prepare $(call Build/Prepare/Default) $(MAKE) -C $(PKG_BUILD_DIR)/src autoconf diff --git a/utils/vim/scripts/uname b/utils/vim/scripts/uname new file mode 100755 index 0000000000..d2cd568641 --- /dev/null +++ b/utils/vim/scripts/uname @@ -0,0 +1,2 @@ +#!/bin/sh +echo "Linux"