Remove remaining mentions of curses

This commit is contained in:
Fabian Boehm 2024-02-23 16:36:10 +01:00
parent 8712bd5a4b
commit f62f1aaf99
25 changed files with 14 additions and 43 deletions

View File

@ -3,7 +3,6 @@ packages:
- cargo - cargo
- clang17-libclang - clang17-libclang
- cmake - cmake
- ncurses-dev
- ninja - ninja
- pcre2-dev - pcre2-dev
- py3-pexpect - py3-pexpect

View File

@ -5,7 +5,7 @@ packages:
- gettext - gettext
- gmake - gmake
- llvm - llvm
- ncurses - terminfo-db
- ninja - ninja
- pcre2 - pcre2
- py39-pexpect - py39-pexpect

View File

@ -19,7 +19,7 @@ jobs:
- uses: dtolnay/rust-toolchain@1.67 - uses: dtolnay/rust-toolchain@1.67
- name: Install deps - name: Install deps
run: | run: |
sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip tmux sudo apt install gettext libpcre2-dev python3-pip tmux
sudo pip3 install pexpect sudo pip3 install pexpect
# Generate a locale that uses a comma as decimal separator. # Generate a locale that uses a comma as decimal separator.
sudo locale-gen fr_FR.UTF-8 sudo locale-gen fr_FR.UTF-8
@ -49,7 +49,7 @@ jobs:
- name: Install deps - name: Install deps
run: | run: |
sudo apt update sudo apt update
sudo apt install gettext lib32ncurses5-dev python3-pip g++-multilib tmux sudo apt install gettext python3-pip g++-multilib tmux
sudo pip3 install pexpect sudo pip3 install pexpect
- name: cmake - name: cmake
env: env:
@ -87,7 +87,7 @@ jobs:
components: rust-src components: rust-src
- name: Install deps - name: Install deps
run: | run: |
sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip tmux sudo apt install gettext libpcre2-dev python3-pip tmux
sudo pip3 install pexpect sudo pip3 install pexpect
- name: cmake - name: cmake
env: env:
@ -131,7 +131,7 @@ jobs:
# - uses: dtolnay/rust-toolchain@1.67 # - uses: dtolnay/rust-toolchain@1.67
# - name: Install deps # - name: Install deps
# run: | # run: |
# sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip tmux # sudo apt install gettext libpcre2-dev python3-pip tmux
# sudo pip3 install pexpect # sudo pip3 install pexpect
# - name: cmake # - name: cmake
# env: # env:

View File

@ -23,7 +23,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- name: Install deps - name: Install deps
run: | run: |
sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip tmux sudo apt install gettext libpcre2-dev python3-pip tmux
sudo pip3 install pexpect sudo pip3 install pexpect
- name: cmake - name: cmake
run: | run: |

View File

@ -29,7 +29,6 @@ For that, you'll require:
- Rust (version 1.67 or later) - when in doubt, try rustup - Rust (version 1.67 or later) - when in doubt, try rustup
- a C++11 compiler (g++ 4.8 or later, or clang 3.3 or later) - a C++11 compiler (g++ 4.8 or later, or clang 3.3 or later)
- CMake (version 3.5 or later) - CMake (version 3.5 or later)
- a curses implementation such as ncurses (headers and libraries)
- PCRE2 (headers and libraries) - optional, this will be downloaded if missing - PCRE2 (headers and libraries) - optional, this will be downloaded if missing
- gettext (headers and libraries) - optional, for translation support - gettext (headers and libraries) - optional, for translation support
- Sphinx - optional, to build the documentation - Sphinx - optional, to build the documentation

View File

@ -3,7 +3,7 @@ FROM centos:latest
# Build dependency # Build dependency
RUN yum update -y &&\ RUN yum update -y &&\
yum install -y epel-release &&\ yum install -y epel-release &&\
yum install -y clang cmake3 gcc-c++ make ncurses-devel &&\ yum install -y clang cmake3 gcc-c++ make &&\
yum clean all yum clean all
# Test dependency # Test dependency

View File

@ -88,7 +88,8 @@ Dependencies
Running fish requires: Running fish requires:
- curses or ncurses (preinstalled on most \*nix systems) - A terminfo database, typically from curses or ncurses (preinstalled on most \*nix systems) - this needs to be the directory tree format, not the "hashed" database.
If this is unavailable, fish uses an included xterm-256color definition.
- some common \*nix system utilities (currently ``mktemp``), in - some common \*nix system utilities (currently ``mktemp``), in
addition to the basic POSIX utilities (``cat``, ``cut``, ``dirname``, addition to the basic POSIX utilities (``cat``, ``cut``, ``dirname``,
``file``, ``ls``, ``mkdir``, ``mkfifo``, ``rm``, ``sort``, ``tee``, ``tr``, ``file``, ``ls``, ``mkdir``, ``mkfifo``, ``rm``, ``sort``, ``tee``, ``tr``,
@ -124,7 +125,6 @@ Compiling fish from a tarball requires:
- a C++11 compiler (g++ 4.8 or later, or clang 3.3 or later) - a C++11 compiler (g++ 4.8 or later, or clang 3.3 or later)
- CMake (version 3.5 or later) - CMake (version 3.5 or later)
- a curses implementation such as ncurses (headers and libraries)
- PCRE2 (headers and libraries) - optional, this will be downloaded if missing - PCRE2 (headers and libraries) - optional, this will be downloaded if missing
- gettext (headers and libraries) - optional, for translation support - gettext (headers and libraries) - optional, for translation support
@ -179,20 +179,13 @@ Note that fish does *not* support static linking and will attempt to error out i
Help, it didnt build! Help, it didnt build!
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
If fish reports that it could not find curses, try installing a curses On Debian or Ubuntu you want these packages:
development package and build again.
On Debian or Ubuntu you want:
:: ::
sudo apt install build-essential cmake ncurses-dev libncurses5-dev libpcre2-dev gettext sudo apt install build-essential cmake libpcre2-dev gettext
On RedHat, CentOS, or Amazon EC2: On RedHat, CentOS, or Amazon EC2 everything should be preinstalled.
::
sudo yum install ncurses-devel
Contributing Changes to the Code Contributing Changes to the Code
-------------------------------- --------------------------------

View File

@ -118,7 +118,6 @@
{ symbol: ["__uint32_t", "private", "<cstdint>", "public"] }, { symbol: ["__uint32_t", "private", "<cstdint>", "public"] },
{ symbol: ["uint32_t", "private", "<cstdint>", "public"] }, { symbol: ["uint32_t", "private", "<cstdint>", "public"] },
{ symbol: ["intptr_t", "private", "<cstdint>", "public"] }, { symbol: ["intptr_t", "private", "<cstdint>", "public"] },
{ symbol: ["tparm", "private", "<ncurses.h>", "public"] },
{ symbol: ["select", "private", "<sys/select.h>", "public"] }, { symbol: ["select", "private", "<sys/select.h>", "public"] },
{ symbol: ["_LIBCPP_VERSION", "private", "<cstddef>", "public"] }, { symbol: ["_LIBCPP_VERSION", "private", "<cstddef>", "public"] },
{ symbol: ["_LIBCPP_VERSION", "private", "<unistd.h>", "public"] }, { symbol: ["_LIBCPP_VERSION", "private", "<unistd.h>", "public"] },

View File

@ -1,7 +1,3 @@
# LSAN can detect leaks tracing back to __asan::AsanThread::ThreadStart (probably caused by our # LSAN can detect leaks tracing back to __asan::AsanThread::ThreadStart (probably caused by our
# threads not exiting before their TLS dtors are called). Just ignore it. # threads not exiting before their TLS dtors are called). Just ignore it.
leak:AsanThread leak:AsanThread
# ncurses leaks allocations freely as it assumes it will be running throughout. Ignore these.
leak:tparm
leak:_nc_doalloc

View File

@ -31,7 +31,6 @@ endif()
# CMAKE_BINARY_DIR can include symlinks, since we want to compare this to the dir fish is executed in we need to canonicalize it. # CMAKE_BINARY_DIR can include symlinks, since we want to compare this to the dir fish is executed in we need to canonicalize it.
file(REAL_PATH "${CMAKE_BINARY_DIR}" fish_binary_dir) file(REAL_PATH "${CMAKE_BINARY_DIR}" fish_binary_dir)
string(JOIN "," CURSES_LIBRARY_LIST ${CURSES_LIBRARY} ${CURSES_EXTRA_LIBRARY})
if(FISH_CRATE_FEATURES) if(FISH_CRATE_FEATURES)
set(FEATURES_ARG ${FISH_CRATE_FEATURES}) set(FEATURES_ARG ${FISH_CRATE_FEATURES})
@ -54,7 +53,6 @@ set(VARS_FOR_CARGO
"SYSCONFDIR=${CMAKE_INSTALL_FULL_SYSCONFDIR}" "SYSCONFDIR=${CMAKE_INSTALL_FULL_SYSCONFDIR}"
"BINDIR=${CMAKE_INSTALL_FULL_BINDIR}" "BINDIR=${CMAKE_INSTALL_FULL_BINDIR}"
"LOCALEDIR=${CMAKE_INSTALL_FULL_LOCALEDIR}" "LOCALEDIR=${CMAKE_INSTALL_FULL_LOCALEDIR}"
"CURSES_LIBRARY_LIST=${CURSES_LIBRARY_LIST}"
"CARGO_TARGET_DIR=${FISH_RUST_BUILD_DIR}" "CARGO_TARGET_DIR=${FISH_RUST_BUILD_DIR}"
"CARGO_BUILD_RUSTC=${RUSTC_EXECUTABLE}" "CARGO_BUILD_RUSTC=${RUSTC_EXECUTABLE}"
"${FISH_PCRE2_BUILDFLAG}" "${FISH_PCRE2_BUILDFLAG}"

2
debian/control vendored
View File

@ -4,7 +4,7 @@ Priority: optional
Maintainer: ridiculous_fish <corydoras@ridiculousfish.com> Maintainer: ridiculous_fish <corydoras@ridiculousfish.com>
Uploaders: David Adam <zanchey@ucc.gu.uwa.edu.au> Uploaders: David Adam <zanchey@ucc.gu.uwa.edu.au>
# Debhelper should be bumped to >= 10 once Ubuntu Xenial is no longer supported # Debhelper should be bumped to >= 10 once Ubuntu Xenial is no longer supported
Build-Depends: debhelper (>= 9.20160115), libncurses5-dev, cmake (>= 3.5.0), gettext, libpcre2-dev, Build-Depends: debhelper (>= 9.20160115), cmake (>= 3.5.0), gettext, libpcre2-dev,
# Test dependencies # Test dependencies
locales-all, python3, rustc (>= 1.67) | rustc-mozilla (>= 1.67), cargo locales-all, python3, rustc (>= 1.67) | rustc-mozilla (>= 1.67), cargo
Standards-Version: 4.1.5 Standards-Version: 4.1.5

View File

@ -12,7 +12,6 @@ RUN apk add --no-cache \
git \ git \
libintl \ libintl \
musl-dev \ musl-dev \
ncurses-dev \
ninja \ ninja \
pcre2-dev \ pcre2-dev \
python3 \ python3 \

View File

@ -11,7 +11,6 @@ RUN apt-get update \
clang-9 \ clang-9 \
gettext \ gettext \
git \ git \
libncurses5-dev \
libpcre2-dev \ libpcre2-dev \
locales \ locales \
ninja-build \ ninja-build \

View File

@ -11,7 +11,6 @@ RUN apt-get update \
clang-9 \ clang-9 \
gettext \ gettext \
git \ git \
libncurses5-dev \
libpcre2-dev \ libpcre2-dev \
locales \ locales \
ninja-build \ ninja-build \

View File

@ -11,7 +11,6 @@ RUN apt-get update \
clang-9 \ clang-9 \
gettext \ gettext \
git \ git \
libncurses5-dev \
libpcre2-dev \ libpcre2-dev \
locales \ locales \
ninja-build \ ninja-build \

View File

@ -7,7 +7,6 @@ RUN yum install --assumeyes epel-release https://repo.ius.io/ius-release-el7.rpm
cmake3 \ cmake3 \
gcc-c++ \ gcc-c++ \
git236 \ git236 \
ncurses-devel \
ninja-build \ ninja-build \
python3 \ python3 \
openssl \ openssl \

View File

@ -17,7 +17,6 @@ RUN dnf -y install dnf-plugins-core \
diffutils \ diffutils \
gcc-c++ \ gcc-c++ \
git \ git \
ncurses-devel \
ninja-build \ ninja-build \
python3 \ python3 \
openssl \ openssl \

View File

@ -6,7 +6,6 @@ RUN dnf install --assumeyes \
diffutils \ diffutils \
gcc-c++ \ gcc-c++ \
git-core \ git-core \
ncurses-devel \
ninja-build \ ninja-build \
pcre2-devel \ pcre2-devel \
python3 \ python3 \

View File

@ -13,7 +13,6 @@ RUN apt-get update \
g++-multilib \ g++-multilib \
gettext \ gettext \
git \ git \
lib32ncurses5-dev \
locales \ locales \
ninja-build \ ninja-build \
pkg-config \ pkg-config \

View File

@ -12,7 +12,6 @@ RUN apt-get update \
clang-9 \ clang-9 \
gettext \ gettext \
git \ git \
libncurses5-dev \
libpcre2-dev \ libpcre2-dev \
locales \ locales \
ninja-build \ ninja-build \

View File

@ -14,7 +14,6 @@ RUN apt-get update \
g++ \ g++ \
gettext \ gettext \
git \ git \
libncurses5-dev \
libpcre2-dev \ libpcre2-dev \
locales \ locales \
ninja-build \ ninja-build \

View File

@ -11,7 +11,6 @@ RUN apt-get update \
clang \ clang \
gettext \ gettext \
git \ git \
libncurses5-dev \
libpcre2-dev \ libpcre2-dev \
locales \ locales \
ninja-build \ ninja-build \

View File

@ -10,7 +10,6 @@ RUN zypper --non-interactive install \
diffutils \ diffutils \
gcc-c++ \ gcc-c++ \
git-core \ git-core \
ncurses-devel \
ninja \ ninja \
pcre2-devel \ pcre2-devel \
python311 \ python311 \

View File

@ -10,7 +10,6 @@ RUN apt-get update \
cmake \ cmake \
gettext \ gettext \
git \ git \
libncurses5-dev \
libpcre2-dev \ libpcre2-dev \
locales \ locales \
ninja-build \ ninja-build \

View File

@ -9,7 +9,7 @@ Group: System/Shells
URL: https://fishshell.com/ URL: https://fishshell.com/
Source0: %{name}_@VERSION@.orig.tar.xz Source0: %{name}_@VERSION@.orig.tar.xz
BuildRequires: cargo ncurses-devel gettext gcc-c++ xz pcre2-devel BuildRequires: cargo gettext gcc-c++ xz pcre2-devel
BuildRequires: rust >= 1.67 BuildRequires: rust >= 1.67
%if 0%{?rhel} && 0%{?rhel} < 8 %if 0%{?rhel} && 0%{?rhel} < 8