vim: fix build on non-linux systems after upgrade
authorFelix Fietkau <nbd@nbd.name>
Wed, 10 Oct 2018 08:50:21 +0000 (10:50 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 10 Oct 2018 08:50:25 +0000 (10:50 +0200)
The configure script calls uname directly and assumes that it returns
the system to build for.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
utils/vim/Makefile
utils/vim/scripts/uname [new file with mode: 0755]

index 49d8351720ea08e2799fbc95a3d6325508bb33a3..8e9e3f3f0936079f9af062499a9d50277835eaa7 100644 (file)
@@ -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 (executable)
index 0000000..d2cd568
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "Linux"