diff options
| author | Rosen Penev <rosenp@gmail.com> | 2019-12-13 21:51:29 -0800 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2019-12-18 12:01:21 -0800 |
| commit | a135cbb9f1cf568d35e4eb62e154286ab05ccc19 (patch) | |
| tree | ece8edc74bdf7f9b1c3148bbacbf2395ef4dd6e0 /utils/fish | |
| parent | c996e6b4708daffda6bb0ce1057a03e142a396d0 (diff) | |
fish: Fix compilation with libcxx
cxxabi.h is a useless header that libcxx does not include.
Remove indent on postint script. It should be on the same as the above
section.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/fish')
| -rw-r--r-- | utils/fish/Makefile | 10 | ||||
| -rw-r--r-- | utils/fish/patches/010-cxx.patch | 27 |
2 files changed, 32 insertions, 5 deletions
diff --git a/utils/fish/Makefile b/utils/fish/Makefile index 679ca0753..17de41d5e 100644 --- a/utils/fish/Makefile +++ b/utils/fish/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fish PKG_VERSION:=3.0.2 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/fish-shell/fish-shell/releases/download/$(PKG_VERSION) @@ -54,10 +54,10 @@ define Package/fish/postinst grep fish $${IPKG_INSTROOT}/etc/shells || \ echo "/usr/bin/fish" >> $${IPKG_INSTROOT}/etc/shells - # Backwards compatibility - if [ -e /bin/fish ] && { [ ! -L /bin/fish ] || [ "$(readlink -fn $${IPKG_INSTROOT}/bin/fish)" != "../$(CONFIGURE_PREFIX)/bin/fish" ]; }; then - ln -fs "../$(CONFIGURE_PREFIX)/bin/fish" "$${IPKG_INSTROOT}/bin/fish" - fi +# Backwards compatibility +if [ -e /bin/fish ] && { [ ! -L /bin/fish ] || [ "$(readlink -fn $${IPKG_INSTROOT}/bin/fish)" != "../$(CONFIGURE_PREFIX)/bin/fish" ]; }; then + ln -fs "../$(CONFIGURE_PREFIX)/bin/fish" "$${IPKG_INSTROOT}/bin/fish" +fi endef define Package/fish/postrm diff --git a/utils/fish/patches/010-cxx.patch b/utils/fish/patches/010-cxx.patch new file mode 100644 index 000000000..79e0aedec --- /dev/null +++ b/utils/fish/patches/010-cxx.patch @@ -0,0 +1,27 @@ +From c132a2aa53f3a4ca0ab26395a4936ecf3fd030f2 Mon Sep 17 00:00:00 2001 +From: Rosen Penev <rosenp@gmail.com> +Date: Fri, 13 Dec 2019 21:50:06 -0800 +Subject: [PATCH] common.cpp: Don't always include cxxabi.h + +cxxabi.h is not available with LLVM's libcxx +--- + src/common.cpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/common.cpp b/src/common.cpp +index cfa4cb0d81..96873f17a9 100644 +--- a/src/common.cpp ++++ b/src/common.cpp +@@ -1,8 +1,11 @@ + // Various functions, mostly string utilities, that are used by most parts of fish. + #include "config.h" + +-#include <ctype.h> ++#ifdef HAVE_BACKTRACE_SYMBOLS + #include <cxxabi.h> ++#endif ++ ++#include <ctype.h> + #include <dlfcn.h> + #include <errno.h> + #include <fcntl.h> |
