diff --git a/.github/workflows/abicheck.yml b/.github/workflows/abicheck.yml
index 4e14353d0..254c64f9b 100644
--- a/.github/workflows/abicheck.yml
+++ b/.github/workflows/abicheck.yml
@@ -3,8 +3,8 @@ name: abicheck
env:
build_options: -Dbuildtype=debug -Denable-true-color=yes -Dwith-proxy=yes -Dc_args=-DPERL_EUPXS_ALWAYS_EXPORT
prefix: /usr/local
- apt_build_deps: ninja-build libutf8proc-dev libperl-dev libotr5-dev
- get_pip_build_deps: pip3 install setuptools; pip3 install wheel; pip3 install 'meson<0.59.0'
+ apt_build_deps: ninja-build libutf8proc-dev libperl-dev libotr5-dev libglib2.0-dev
+ get_pip_build_deps: pip3 install 'setuptools<66'; pip3 install wheel; pip3 install 'meson<0.59.0'
getabidef_def: getabidef() { awk '$1=="#define" && $2=="IRSSI_ABI_VERSION" { print $3 }' "$1"/include/irssi/src/common.h; }
jobs:
build-base-ref:
@@ -17,7 +17,7 @@ jobs:
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: prepare required software
run: |
- sudo apt install $apt_build_deps
+ sudo apt update; sudo apt install $apt_build_deps
eval "$get_pip_build_deps"
- name: checkout base ref
uses: actions/checkout@main
@@ -36,8 +36,8 @@ jobs:
base_abi=$(getabidef base$prefix)
echo base abi : $base_abi
./base$prefix/bin/irssi --version
- echo "::set-output name=base_abi::$base_abi"
- - uses: actions/upload-artifact@v2
+ echo base_abi=$base_abi >> $GITHUB_OUTPUT
+ - uses: actions/upload-artifact@v4
with:
name: base.inst
path: base
@@ -52,7 +52,7 @@ jobs:
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: prepare required software
run: |
- sudo apt install $apt_build_deps
+ sudo apt update; sudo apt install $apt_build_deps
eval "$get_pip_build_deps"
- name: checkout merge ref
uses: actions/checkout@main
@@ -70,8 +70,8 @@ jobs:
merge_abi=$(getabidef merge$prefix)
echo merge abi : $merge_abi
./merge$prefix/bin/irssi --version
- echo "::set-output name=merge_abi::$merge_abi"
- - uses: actions/upload-artifact@v2
+ echo merge_abi=$merge_abi >> $GITHUB_OUTPUT
+ - uses: actions/upload-artifact@v4
with:
name: merge.inst
path: merge
@@ -87,14 +87,14 @@ jobs:
steps:
- name: prepare required software
run: |
- sudo apt install abigail-tools
+ sudo apt update; sudo apt install abigail-tools
- name: fetch base build
- uses: actions/download-artifact@v2
+ uses: actions/download-artifact@v4
with:
name: base.inst
path: base
- name: fetch merge build
- uses: actions/download-artifact@v2
+ uses: actions/download-artifact@v4
with:
name: merge.inst
path: merge
@@ -103,7 +103,7 @@ jobs:
abipkgdiff -l base merge >abipkgdiff.out && diff_ret=0 || diff_ret=$?
echo "diff_ret=$diff_ret" >> $GITHUB_ENV
cat abipkgdiff.out
- - uses: actions/upload-artifact@v2
+ - uses: actions/upload-artifact@v4
with:
path: abipkgdiff.out
- run: |
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index aeaf6c270..186c2e83f 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -5,27 +5,50 @@ on:
pull_request:
name: Check Irssi
env:
- apt_build_deps: libutf8proc-dev libperl-dev libotr5-dev
- apt_build_deps_meson: ninja-build
- apt_build_deps_autotools: autoconf automake libtool
+ apt_build_deps: ninja-build libutf8proc-dev libperl-dev libotr5-dev libglib2.0-dev
get_pip_build_deps_meson: pip3 install setuptools${setuptools_ver}; pip3 install wheel; pip3 install meson${meson_ver}
build_options_meson: -Dwith-proxy=yes -Dwith-bot=yes -Dwith-perl=yes -Dwith-otr=yes
- build_options_configure: --with-proxy=module --with-bot --with-perl=module --with-otr=module
prefix: ~/irssi-build
jobs:
dist:
runs-on: ubuntu-latest
+ env:
+ meson_ver: <0.63.0
+ setuptools_ver: <66
steps:
- name: prepare required software
run: |
- sudo apt install $apt_build_deps $apt_build_deps_autotools
+ sudo apt update && sudo apt install $apt_build_deps
+ eval "$get_pip_build_deps_meson"
+ patch ~/.local/lib/python3.12/site-packages/pkg_resources/__init__.py <<- PATCH
+ --- __init__.py 2024-12-16 20:37:46.733230351 +0100
+ +++ __init__.py 2024-12-16 20:38:42.479554540 +0100
+ @@ -2188,7 +2188,8 @@ def resolve_egg_link(path):
+ return next(dist_groups, ())
+
+
+ -register_finder(pkgutil.ImpImporter, find_on_path)
+ +if hasattr(pkgutil, 'ImpImporter'):
+ + register_finder(pkgutil.ImpImporter, find_on_path)
+
+ if hasattr(importlib_machinery, 'FileFinder'):
+ register_finder(importlib_machinery.FileFinder, find_on_path)
+ @@ -2345,7 +2346,8 @@ def file_ns_handler(importer, path_item,
+ return subpath
+
+
+ -register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)
+ +if hasattr(pkgutil, 'ImpImporter'):
+ + register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)
+ register_namespace_handler(zipimport.zipimporter, file_ns_handler)
+
+ if hasattr(importlib_machinery, 'FileFinder'):
+ PATCH
- uses: actions/checkout@main
- name: make dist
run: |
- # make dist
- ./autogen.sh $build_options_configure
- make dist
- - uses: actions/upload-artifact@v2
+ ./utils/make-dist.sh
+ - uses: actions/upload-artifact@v4
with:
path: irssi-*.tar.gz
retention-days: 1
@@ -38,24 +61,21 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-16.04, ubuntu-latest]
- builder: [meson, configure]
+ os: [ubuntu-22.04, ubuntu-latest]
compiler: [clang, gcc]
flags: [regular]
+ setuptools_ver: [<66]
include:
- - os: ubuntu-16.04
- builder: meson
- meson_ver: ==0.49.2
+ - os: ubuntu-22.04
+ meson_ver: ==0.53.2
setuptools_ver: <51
- os: ubuntu-latest
- builder: meson
- meson_ver: <0.59.0
+ meson_ver: <0.63.0
- os: ubuntu-latest
- builder: meson
flags: meson-latest FAILURE-OK
steps:
- name: fetch dist
- uses: actions/download-artifact@v2
+ uses: actions/download-artifact@v4
- name: set PATH
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
@@ -64,8 +84,8 @@ jobs:
meson_ver: ${{ matrix.meson_ver }}
setuptools_ver: ${{ matrix.setuptools_ver }}
run: |
- sudo apt install $apt_build_deps $apt_build_deps_${{ matrix.builder }}
- eval "$get_pip_build_deps_${{ matrix.builder }}"
+ sudo apt update && sudo apt install $apt_build_deps
+ eval "$get_pip_build_deps_meson"
curl -SLf https://github.com/irssi-import/actions-irssi/raw/master/check-irssi/render.pl -o ~/render.pl && chmod +x ~/render.pl
- name: unpack archive
run: tar xaf artifact/irssi-*.tar.gz
@@ -76,31 +96,12 @@ jobs:
meson Build $build_options_meson --prefix=${prefix/\~/~}
ninja -C Build
ninja -C Build install
- if: ${{ matrix.builder == 'meson' }}
- - name: build and install with Makefile
- run: |
- # make install
- cd irssi-*/
- mkdir Build
- cd Build
- ../configure $build_options_configure --prefix=${prefix/\~/~} --enable-always-build-tests
- make CFLAGS="-Wall -Werror -Werror=declaration-after-statement"
- make install
- if: ${{ matrix.builder == 'configure' }}
- - name: run tests with Makefile
- run: |
- # make check
- cd irssi-*/Build
- make -C tests -sk check
- find -name test-suite.log -exec cat {} +
- if: ${{ matrix.builder == 'configure' }}
- name: run tests with Meson
run: |
# ninja test
cd irssi-*/
ninja -C Build test
find -name testlog.txt -exec sed -i -e '/Inherited environment:.* GITHUB/d' {} + -exec cat {} +
- if: ${{ matrix.builder == 'meson' }}
- name: run launch test
env:
TERM: xterm
@@ -114,9 +115,66 @@ jobs:
^set -clear log_day_changed
^set -clear log_open_string
^set log_timestamp *
- ^window log on' > irssi-test/startup
- echo load perl >> irssi-test/startup
- echo load proxy >> irssi-test/startup
- echo ^quit >> irssi-test/startup
- irssi-build/bin/irssi --home irssi-test | ~/render.pl
+ ^window log on
+ load irc
+ load dcc
+ load flood
+ load notifylist
+ load perl
+ load otr
+ load proxy
+ ^quit' > irssi-test/startup
+ irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
+ cat irc.log.*
+ annotation-warnings:
+ runs-on: ubuntu-latest
+ if: ${{ github.event_name == 'pull_request' }}
+ env:
+ CC: clang
+ steps:
+ - name: prepare required software
+ run: |
+ sudo apt update && sudo apt install $apt_build_deps
+ - uses: actions/checkout@main
+ - name: Setup local annotations
+ uses: irssi-import/actions-irssi/problem-matchers@master
+ - name: set PATH
+ run: |
+ echo "$HOME/.local/bin" >> $GITHUB_PATH
+ - name: prepare required software
+ env:
+ meson_ver: ${{ matrix.meson_ver }}
+ setuptools_ver: ${{ matrix.setuptools_ver }}
+ run: |
+ sudo apt update && sudo apt install $apt_build_deps
+ eval "$get_pip_build_deps_meson"
+ curl -SLf https://github.com/irssi-import/actions-irssi/raw/master/check-irssi/render.pl -o ~/render.pl && chmod +x ~/render.pl
+ - name: build and install with meson
+ run: |
+ meson Build $build_options_meson --prefix=${prefix/\~/~}
+ ninja -C Build
+ ninja -C Build install >/dev/null
+ - name: run launch test
+ env:
+ TERM: xterm
+ run: |
+ # automated irssi launch test
+ cd
+ mkdir irssi-test
+ echo 'echo automated irssi launch test
+ ^set settings_autosave off
+ ^set -clear log_close_string
+ ^set -clear log_day_changed
+ ^set -clear log_open_string
+ ^set log_timestamp *
+ ^window log on
+ load irc
+ load dcc
+ load flood
+ load notifylist
+ load perl
+ load otr
+ load proxy
+ ^quit' > irssi-test/startup
+ irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
cat irc.log.*
diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml
index a32e335d3..3b20e4273 100644
--- a/.github/workflows/cifuzz.yml
+++ b/.github/workflows/cifuzz.yml
@@ -19,13 +19,23 @@ jobs:
matrix:
sanitizer: [address, undefined, memory]
steps:
+ - uses: actions/checkout@main
+ with:
+ path: irssi
+ - name: Docker build build_fuzzers container
+ run: |
+ # google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
+ docker build -t build_fuzzers:actions -f "/home/runner/work/_actions/google/oss-fuzz/master/infra/build_fuzzers.Dockerfile" "/home/runner/work/_actions/google/oss-fuzz/master/infra"
- name: Build Fuzzers (${{ matrix.sanitizer }})
id: build
- uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
- with:
- oss-fuzz-project-name: 'irssi'
- dry-run: false
- sanitizer: ${{ matrix.sanitizer }}
+ env:
+ OSS_FUZZ_PROJECT_NAME: 'irssi'
+ DRY_RUN: false
+ SANITIZER: ${{ matrix.sanitizer }}
+ PROJECT_SRC_PATH: /github/workspace/irssi
+ REPOSITORY: 'irssi'
+ run: |
+ docker run --workdir /github/workspace --rm -e OSS_FUZZ_PROJECT_NAME -e DRY_RUN -e SANITIZER -e PROJECT_SRC_PATH -e REPOSITORY -e WORKSPACE=/github/workspace -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "$GITHUB_WORKSPACE":"/github/workspace" build_fuzzers:actions
- name: Run Fuzzers (${{ matrix.sanitizer }})
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
@@ -34,7 +44,7 @@ jobs:
dry-run: false
sanitizer: ${{ matrix.sanitizer }}
- name: Upload Crash
- uses: actions/upload-artifact@v1
+ uses: actions/upload-artifact@v4
if: failure() && steps.build.outcome == 'success'
with:
name: ${{ matrix.sanitizer }}-artifacts
diff --git a/.github/workflows/clangformat.yml b/.github/workflows/clangformat.yml
index 59beb9289..55aca4f38 100644
--- a/.github/workflows/clangformat.yml
+++ b/.github/workflows/clangformat.yml
@@ -2,10 +2,10 @@ on: [pull_request]
name: clang-format
jobs:
check-clang-format:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- name: install clang-format
- run: sudo apt install clang-format-11
+ run: sudo apt install clang-format-14
- uses: actions/checkout@main
- name: fetch target ref
run:
@@ -20,10 +20,10 @@ jobs:
- name: run git-clang-format and Check if no changes are needed
run:
|
- CLANG_FORMAT=clang-format-11 git-clang-format-11 --diff FETCH_HEAD HEAD | tee git-clang-format.diff
+ CLANG_FORMAT=clang-format-14 git-clang-format-14 --diff FETCH_HEAD HEAD | tee git-clang-format.diff
cmp -s <(echo no modified files to format) git-clang-format.diff || cmp -s <(echo -n) git-clang-format.diff
- - uses: actions/upload-artifact@v1
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: git-clang-format.diff
- path: git-clang-format.diff
\ No newline at end of file
+ path: git-clang-format.diff
diff --git a/.github/workflows/muon-fmt.yml b/.github/workflows/muon-fmt.yml
new file mode 100644
index 000000000..6fa06d381
--- /dev/null
+++ b/.github/workflows/muon-fmt.yml
@@ -0,0 +1,32 @@
+name: Format meson files
+
+on:
+ push:
+ pull_request:
+
+permissions: {}
+
+jobs:
+ muon-meson-fmt:
+ name: Format
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@main
+ with:
+ persist-credentials: false
+
+ # Build from source because Ubuntu 24.04 apt only has muon 0.2.0.
+ # Newer muons seem to format differently.
+ - name: Build muon from source
+ run: |
+ git clone --depth 1 --branch 0.5.0 https://github.com/muon-build/muon /tmp/muon
+ cd /tmp/muon
+ ./bootstrap.sh build
+ build/muon-bootstrap setup build
+ build/muon-bootstrap -C build samu
+ sudo build/muon -C build install
+
+ - name: Run muon fmt
+ run: |
+ find . -name meson.build -print0 | xargs -0 muon fmt -c .muon_fmt.ini -i
+ git diff --exit-code
diff --git a/.github/workflows/solarisvm.yml b/.github/workflows/solarisvm.yml
new file mode 100644
index 000000000..da1ffa175
--- /dev/null
+++ b/.github/workflows/solarisvm.yml
@@ -0,0 +1,104 @@
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ workflow_dispatch:
+name: Check Irssi on Solaris
+env:
+ get_pip_build_deps_meson: pip3 install setuptools${setuptools_ver}; pip3 install wheel
+ prefix: ~/irssi-build
+jobs:
+ dist:
+ runs-on: ubuntu-latest
+ env:
+ setuptools_ver: <66
+ steps:
+ - name: prepare required software
+ run: |
+ sudo apt update && sudo apt install $apt_build_deps
+ eval "$get_pip_build_deps_meson"
+ patch ~/.local/lib/python3.12/site-packages/pkg_resources/__init__.py <<- PATCH
+ --- __init__.py 2024-12-16 20:37:46.733230351 +0100
+ +++ __init__.py 2024-12-16 20:38:42.479554540 +0100
+ @@ -2188,7 +2188,8 @@ def resolve_egg_link(path):
+ return next(dist_groups, ())
+
+
+ -register_finder(pkgutil.ImpImporter, find_on_path)
+ +if hasattr(pkgutil, 'ImpImporter'):
+ + register_finder(pkgutil.ImpImporter, find_on_path)
+
+ if hasattr(importlib_machinery, 'FileFinder'):
+ register_finder(importlib_machinery.FileFinder, find_on_path)
+ @@ -2345,7 +2346,8 @@ def file_ns_handler(importer, path_item,
+ return subpath
+
+
+ -register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)
+ +if hasattr(pkgutil, 'ImpImporter'):
+ + register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)
+ register_namespace_handler(zipimport.zipimporter, file_ns_handler)
+
+ if hasattr(importlib_machinery, 'FileFinder'):
+ PATCH
+ - uses: actions/checkout@main
+ - name: make dist
+ run: |
+ ./utils/make-dist.sh
+ - uses: actions/upload-artifact@v4
+ with:
+ path: irssi-*.tar.gz
+ retention-days: 1
+ install:
+ runs-on: ubuntu-latest
+ needs: dist
+ steps:
+ - name: fetch dist
+ uses: actions/download-artifact@v4
+ - name: Test in Solaris
+ uses: vmactions/solaris-vm@v1
+ with:
+ usesh: true
+ sync: rsync
+ release: "11.4-gcc"
+ prepare: |
+ pkg update --accept || echo 1:$?
+ pkg install meson || echo 2:$?
+ pkgutil -y -i curl || echo 3:$?
+ pkgutil -y -i gtar || echo 4:$?
+ pkgutil -y -i findutils || echo 5:$?
+ run: |
+ set -ex
+ export PKG_CONFIG_PATH=/usr/lib/64/pkgconfig
+ curl -SLf https://github.com/irssi-import/actions-irssi/raw/master/check-irssi/render.pl -o ~/render.pl && chmod +x ~/render.pl
+ gtar xzf artifact/irssi-*.tar.gz
+ # ninja install
+ cd irssi-*/
+ meson Build -Dwith-proxy=yes -Dwith-bot=yes -Dwith-perl=yes --prefix=$HOME/irssi-build
+ ninja -C Build
+ ninja -C Build install
+ # ninja test
+ ninja -C Build test
+ gfind -name testlog.txt -exec gsed -i -e '/Inherited environment:.* GITHUB/d' {} + -exec cat {} +
+ export TERM=xterm
+ # automated irssi launch test
+ cd
+ mkdir irssi-test
+ echo 'echo automated irssi launch test
+ ^set settings_autosave off
+ ^set -clear log_close_string
+ ^set -clear log_day_changed
+ ^set -clear log_open_string
+ ^set log_timestamp *
+ ^window log on
+ load irc
+ load dcc
+ load flood
+ load notifylist
+ load perl
+ load otr
+ load proxy
+ ^quit' > irssi-test/startup
+ irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
+ cat irc.log.*
diff --git a/.github/workflows/termuxpkg.yml b/.github/workflows/termuxpkg.yml
new file mode 100644
index 000000000..23f356953
--- /dev/null
+++ b/.github/workflows/termuxpkg.yml
@@ -0,0 +1,79 @@
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+name: Build Irssi Termux package
+jobs:
+ termux-package:
+ runs-on: ubuntu-latest
+ steps:
+ - name: checkout termux-packages
+ uses: actions/checkout@main
+ with:
+ repository: termux/termux-packages
+ - name: checkout irssi
+ uses: actions/checkout@main
+ with:
+ path: src.irssi.git
+ - name: download termux docker container
+ uses: docker://termux/package-builder:latest
+ - name: create irssi build receipe
+ run: |
+ mkdir packages/irssi-an
+ cat << 'BUILD_SH' > packages/irssi-an/build.sh
+ TERMUX_PKG_HOMEPAGE=https://irssi.org/
+ TERMUX_PKG_DESCRIPTION="Terminal based IRC client"
+ TERMUX_PKG_LICENSE="GPL-2.0"
+ TERMUX_PKG_MAINTAINER="@irssi"
+ TERMUX_PKG_VERSION=@VERSION@
+ TERMUX_PKG_REVISION=@REVISION@
+ TERMUX_PKG_SRCURL=git+file:///home/builder/termux-packages/src.irssi.git
+ TERMUX_PKG_AUTO_UPDATE=true
+ TERMUX_PKG_DEPENDS="glib, libandroid-glob, libiconv, libotr, ncurses, openssl, perl, utf8proc"
+ TERMUX_PKG_BREAKS="irssi"
+ TERMUX_PKG_REPLACES="irssi"
+ TERMUX_MESON_PERL_CROSS_FILE=$TERMUX_PKG_TMPDIR/meson-perl-cross-$TERMUX_ARCH.txt
+ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
+ -Dfhs-prefix=$TERMUX_PREFIX
+ --cross-file $TERMUX_MESON_PERL_CROSS_FILE
+ "
+
+ termux_step_pre_configure() {
+ LDFLAGS+=" -landroid-glob"
+
+ # Make build log less noisy.
+ CFLAGS+=" -Wno-compound-token-split-by-macro"
+
+ local perl_version=$(. $TERMUX_SCRIPTDIR/packages/perl/build.sh; echo $TERMUX_PKG_VERSION)
+
+ cat << MESON_PERL_CROSS >$TERMUX_MESON_PERL_CROSS_FILE
+ [properties]
+ perl_version = '$perl_version'
+ perl_ccopts = ['-I$TERMUX_PREFIX/include', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-I$TERMUX_PREFIX/lib/perl5/$perl_version/${TERMUX_ARCH}-android/CORE']
+ perl_ldopts = ['-Wl,-E', '-I$TERMUX_PREFIX/include', '-L$TERMUX_PREFIX/lib/perl5/$perl_version/${TERMUX_ARCH}-android/CORE', '-lperl', '-lm', '-ldl']
+ perl_archname = '${TERMUX_ARCH}-android'
+ perl_installsitearch = '$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android'
+ perl_installvendorarch = ''
+ perl_inc = ['$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android', '$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version', '$TERMUX_PREFIX/lib/perl5/$perl_version/${TERMUX_ARCH}-android', '$TERMUX_PREFIX/lib/perl5/$perl_version']
+ MESON_PERL_CROSS
+ }
+
+ BUILD_SH
+ version=$(awk '/^v/ { $0=$1; gsub(/^v/,""); gsub(/-head/,"dev"); gsub(/-/,""); print; exit }' src.irssi.git/NEWS)
+ version=$version+g$(git -C src.irssi.git rev-parse --short HEAD)
+ sed -i \
+ -e "s:@VERSION@:$version:" \
+ -e "s:@REVISION@:$GITHUB_RUN_NUMBER:" \
+ packages/irssi-an/build.sh
+ git -C src.irssi.git tag v$version
+ - name: prepare output folder
+ run: |
+ install -m a+rwx -d output
+ - name: build irssi package
+ run: |
+ sudo ./scripts/run-docker.sh ./build-package.sh -I irssi-an
+ - uses: actions/upload-artifact@v4
+ with:
+ name: irssi-termux-pkg
+ path: output/irssi-an*.deb
diff --git a/.github/workflows/trigger-pages.yml b/.github/workflows/trigger-pages.yml
new file mode 100644
index 000000000..0f2d32125
--- /dev/null
+++ b/.github/workflows/trigger-pages.yml
@@ -0,0 +1,20 @@
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ rebuild-pages:
+ if: github.repository == 'irssi/irssi'
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/github-script@v6
+ with:
+ github-token: ${{ secrets.PAT_TOKEN }}
+ script: |
+ await github.rest.actions.createWorkflowDispatch({
+ owner: context.repo.owner,
+ repo: 'irssi.github.io',
+ workflow_id: 'pages.yml',
+ ref: 'main'
+ })
diff --git a/.github/workflows/voiddocker.yml b/.github/workflows/voiddocker.yml
new file mode 100644
index 000000000..9dc2addf1
--- /dev/null
+++ b/.github/workflows/voiddocker.yml
@@ -0,0 +1,75 @@
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ workflow_dispatch:
+name: Check Irssi on Void Linux glibc
+jobs:
+ dist:
+ runs-on: ubuntu-latest
+ container: ghcr.io/void-linux/void-glibc:latest
+ steps:
+ - name: prepare required software
+ run: |
+ xbps-install -Syu xbps || :
+ xbps-install -Syu
+ xbps-install -Sy git findutils python3-setuptools tar xz gzip
+ - uses: actions/checkout@main
+ - name: make dist
+ run: |
+ git config --global --add safe.directory /__w/irssi/irssi
+ ./utils/make-dist.sh
+ - uses: actions/upload-artifact@v4
+ with:
+ path: irssi-*.tar.gz
+ retention-days: 1
+ install:
+ runs-on: ubuntu-latest
+ container: ghcr.io/void-linux/void-glibc:latest
+ needs: dist
+ steps:
+ - name: prepare required software
+ run: |
+ xbps-install -Syu xbps || :
+ xbps-install -Syu
+ xbps-install -Sy meson base-devel libglib-devel libutf8proc-devel ncurses-devel ncurses-base openssl-devel libotr-devel libgcrypt-devel tar findutils curl
+ - name: fetch dist
+ uses: actions/download-artifact@v4
+ - name: Setup local annotations
+ uses: irssi-import/actions-irssi/problem-matchers@master
+ - name: Test on Void Linux glibc
+ run: |
+ set -ex
+ curl -SLf https://github.com/irssi-import/actions-irssi/raw/master/check-irssi/render.pl -o ~/render.pl && chmod +x ~/render.pl
+ tar xzf artifact/irssi-*.tar.gz
+ # ninja install
+ cd irssi-*/
+ meson Build -Dwith-proxy=yes -Dwith-bot=yes -Dwith-perl=yes --prefix=$HOME/irssi-build --buildtype debugoptimized
+ ninja -C Build
+ ninja -C Build install
+ # ninja test
+ ninja -C Build test
+ find -name testlog.txt -exec sed -i -e '/Inherited environment:.* GITHUB/d' {} + -exec cat {} +
+ export TERM=xterm
+ # automated irssi launch test
+ cd
+ mkdir irssi-test
+ echo 'echo automated irssi launch test
+ ^set settings_autosave off
+ ^set -clear log_close_string
+ ^set -clear log_day_changed
+ ^set -clear log_open_string
+ ^set log_timestamp *
+ ^window log on
+ load irc
+ load dcc
+ load flood
+ load notifylist
+ load perl
+ load otr
+ load proxy
+ ^quit' > irssi-test/startup
+ export LC_CTYPE=C.utf8
+ irssi-build/bin/irssi --home irssi-test | perl -Mutf8 -C ~/render.pl
+ cat irc.log.*
diff --git a/.gitignore b/.gitignore
index 217ce3a83..ea2cd7ba9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -86,3 +86,6 @@ src/fe-fuzz/oom-*
Build
subprojects/*
!subprojects/*.wrap
+Irssi-Dist
+setup.cfg
+*.egg-info
diff --git a/.muon_fmt.ini b/.muon_fmt.ini
new file mode 100644
index 000000000..47fce5d28
--- /dev/null
+++ b/.muon_fmt.ini
@@ -0,0 +1,14 @@
+# Irssi configuration for muon fmt
+max_line_len = 108
+indent_style = space
+indent_size = 2
+#indent_by = ' '
+space_array = true
+kwargs_force_multiline = true
+wide_colon = true
+no_single_comma_function = true
+insert_final_newline = true
+sort_files = false
+group_arg_value = true
+sticky_parens = true
+continuation_indent = true
diff --git a/.obs/workflows.yml b/.obs/workflows.yml
new file mode 100644
index 000000000..de8152267
--- /dev/null
+++ b/.obs/workflows.yml
@@ -0,0 +1,13 @@
+workflow:
+ steps:
+ - branch_package:
+ source_project: home:ailin_nemui:irssi-git-an
+ source_package: irssi-git-an
+ target_project: home:ailin_nemui:CI
+ - set_flags:
+ flags:
+ - type: publish
+ status: enable
+ project: home:ailin_nemui:CI
+ filters:
+ event: pull_request
diff --git a/INSTALL b/INSTALL
index 3dbe2ebd5..ac7c419fe 100644
--- a/INSTALL
+++ b/INSTALL
@@ -4,11 +4,15 @@
To compile Irssi you need:
-- meson-0.49 build system with ninja-1.5 or greater
+- meson-0.53 build system with ninja-1.8 or greater
+- pkg-config (or compatible)
- glib-2.32 or greater
- openssl (for ssl support)
-- perl-5.6 or greater (for Perl support)
+- perl-5.8 or greater (for building, and optionally Perl scripts)
+ (n.b a complete perl is needed, including ExtUtils::Embed and xsubpp)
- terminfo or ncurses (for text frontend)
+- utf8proc (optional, for additional char width calculation)
+- libgcrypt (for OTR)
For most people, this should work just fine:
@@ -17,21 +21,12 @@ For most people, this should work just fine:
su
ninja -C Build install
-For the moment, autotools is also supported:
+meson options
- ./autogen.sh (for people who just cloned the repository)
- ./configure (if this script already exists, skip ./autogen.sh)
- make
- su
- make install (not _really_ required except for perl support)
-
-configure options
-
- These options can be given to meson or ./configure.
- The first syntax is for meson, the 2nd for ./configure
+ These options can be given to meson.
For a complete list of options, run
- meson configure / ./configure --help
+ meson configure
--prefix
@@ -39,33 +34,28 @@ configure options
YES, you can install Irssi WITHOUT ROOT permissions
by using --prefix=/home/dir
- -Dwith-proxy=yes / --with-proxy
+ -Dwith-proxy=yes
Build the Irssi proxy (see startup-HOWTO).
- -Dwith-perl=[yes|no] / --with-perl=[yes|no|module]
+ -Dwith-perl=[yes|no]
Enable Perl support
yes enable builtin (default)
no disable
- module enable as module
- -Dwith-perl-lib=[site|vendor|DIR] / --with-perl-lib=[site|vendor|DIR]
+ -Dwith-perl-lib=[site|vendor|DIR]
Specify installation dir for Perl libraries
site install in dir for site-specific modules (default)
vendor install in dir for vendor-specific modules
DIR install in DIR
- [N/A] / --with-socks
-
- Build with socks library
-
- -Dwith-bot=yes / --with-bot
+ -Dwith-bot=yes
Build irssi-bot
- -Dwithout-textui=yes / --without-textui
+ -Dwithout-textui=yes
Build without text frontend
@@ -82,31 +72,18 @@ the -Dc_args and -Dc_link_args options variable, eg.:
Perl support generates most of the problems. There's quite a many
things that can go wrong:
- - Compiling fails if you compile irssi with GCC in a system that has
- perl compiled with some other C compiler. Very common problem with
- non-Linux/BSD systems. You'll need to edit src/perl/*/Makefile files
- and remove the parameters that gcc doesn't like. Mostly you'll just
- need to keep the -I and -D parameters and add -fPIC.
- If there's any weird crashing at startup, you might have older irssi's
perl libraries installed somewhere, and you should remove those.
- - Dynamic libraries don't want to work with some systems, so if your
- system complains about some missing symbol in Irssi.so file, configure
- irssi with --with-perl-staticlib option (NOT same as --with-perl=static).
- - If configure complains that it doesn't find some perl stuff, you're
+ - If meson complains that it doesn't find some perl stuff, you're
probably missing libperl.so or libperl.a. In debian, you'll need to do
apt-get install libperl-dev
- - For unprivileged home directory installations, you probably do not want
- to specify --with-perl-lib=(site|vendor). Instead, you can use the
- default perl installation target (below the irssi prefix). If you are
- using local::lib you can also choose to install there by specifying
- --with-perl-lib=$PERL_LOCAL_LIB_ROOT/lib/perl5
You can verify that the perl module is loaded and working with "/LOAD"
command. It should print something like:
Module Type Submodules
...
-perl static core fe
+perl dynamic fe core
System specific notes
@@ -134,13 +111,12 @@ would call:
Getting perl scripting to work needs a few things:
- - configure with --with-perl-staticlib
+ - TODO
+
- - libperl.dll is required in linking and running irssi, it's normally
- located somewhere around /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.dll
- copy it to eg. /usr/bin/libperl.dll
+ Apple MacOS / Darwin
- - -DUSEIMPORTLIB is needed to be defined while compiling src/perl directory.
- It doesn't hurt to be defined everywhere, so configure irssi with:
+At the time of writing, meson has an open issue with correctly linking
+libraries on macos.
- CFLAGS='-DUSEIMPORTLIB' ./configure --with-perl-staticlib
+See docs/meson-macos-ar.txt for a workaround.
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 000000000..2cff9eba0
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,35 @@
+global-include meson.build
+
+recursive-include src *.c *.h meson.build
+recursive-include src/perl *.c *.h *.xs *.pm *.pl typemap meson.build
+recursive-include src/fe-fuzz *.c *.h *.txt meson.build
+recursive-include tests *.c meson.build
+
+include meson_options.txt
+
+include subprojects/*.wrap
+# prune subprojects/*
+
+include utils/*.pl utils/*.sh
+exclude utils/make-dist.sh
+
+include irssi.conf
+include themes/*.theme
+include docs/*.1 docs/*.txt docs/*.html
+include docs/help/in/[a-z]*.in
+include scripts/*.pl scripts/examples/*.pl
+include irssi-icon.png
+
+include NEWS
+include INSTALL
+include TODO
+include ChangeLog
+
+include .clang-format
+
+# prune Build
+# prune dist
+prune *.egg-info
+
+# ignore fuzz-support/fuzz.diff
+# ignore utils/clang-format-xs/*
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 74f813035..000000000
--- a/Makefile.am
+++ /dev/null
@@ -1,35 +0,0 @@
-ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
-
-# create default-config.h
-BUILT_SOURCES = default-config.h default-theme.h irssi-version.h
-CLEANFILES = default-config.h default-theme.h
-
-@MAINTAINER_MODE_TRUE@.PHONY: irssi-version.h
-
-default-config.h: $(srcdir)/irssi.conf
- $(srcdir)/utils/file2header.sh $(srcdir)/irssi.conf default_config > default-config.h
-
-default-theme.h: $(srcdir)/themes/default.theme
- $(srcdir)/utils/file2header.sh $(srcdir)/themes/default.theme default_theme > default-theme.h
-
-irssi-version.h:
- VERSION="$(VERSION)" $(srcdir)/utils/irssi-version.sh $(srcdir) | \
- cmp -s - $@ || VERSION="$(VERSION)" $(srcdir)/utils/irssi-version.sh $(srcdir) >$@
-
-SUBDIRS = src tests docs scripts themes utils
-
-confdir = $(sysconfdir)
-conf_DATA = irssi.conf
-
-pkgconfig_DATA = irssi-1.pc
-
-pkginclude_HEADERS = irssi-config.h irssi-version.h
-
-EXTRA_DIST = \
- ChangeLog \
- autogen.sh \
- README.md \
- $(conf_DATA) \
- irssi-icon.png \
- meson.build \
- meson_options.txt
diff --git a/NEWS b/NEWS
index 1bdffd822..571d251e0 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,377 @@
-v1.3-head 2021-xx-xx The Irssi team
-
-v1.2.3 2021-04-11 The Irssi team
+v1.5-head 202x-xx-xx The Irssi team
+
+v1.4.5 2023-10-03 The Irssi team
+ + Add workaround for Perl 5.38.0 bug that breaks the Irssi
+ locale and glyph rendering (scripts.irssi.org#857, #1498)
+ - Fix Perl scripts broken by Perl 5.38 (scripts.irssi.org#851,
+ #1474). With input from Leon Timmermans
+ - Document workaround to fix linker errors when building with
+ meson on Apple (#1435, #1492)
+ - Fix meson using wrong filenames on Apple, leading to broken
+ Perl support (#1483, #1493)
+ - Fix /upgrade not accepting `~' (#1460, #1462). By Lukas Mai
+ - Improve compatibility with Perl5-IDEA (#1465, #1467). By
+ Charlie Daffern
+ - Fix logic in how own actions are printed for other protocols
+ (codeberg!5, #1471). By Andrej Kacian
+ - Fix crash on old PowerPC Mac (#1482, #1484)
+ - Fix wrong prototype of library function used in terminal
+ handling (#1495). By Emil Engler
+ - Minor cleanups (#1488, #1497). Includes work by Emil Engler
+ - Minor help and documentation fixes (#1458, #1494, #1477,
+ #1478). Includes work by KindOne
+
+v1.4.4 2023-03-31 The Irssi team
+ * Expose location of signals.txt via pkg-config (codeberg!1,
+ #1439, #1446, #1447). By Andrej Kacian
+ + Levels can now be inverted using `^' prefix in the /WINDOW
+ (HIDE)LEVEL commands (#1428)
+ + Support receiving monospace (#1370, #1442). By Linus
+ Heckemann
+ - Fix config broken by /WINDOW LOGFILE without parameter
+ (#1392, #1432)
+ - Fix broken /LASTLOG -window switch (#1418, #1424, regression
+ introduced in #1398)
+ - Fix logic in how actions are printed for other protocols
+ (codeberg!3, #1454). By Andrej Kacian
+ - Fix stale special collector use after free (#1456). Reported
+ by ednash
+ - Help and message fixes (#1421, #1429, #1431, #1434, #1438,
+ #1452, #1453, #1455). Includes work by Jimmie Tyrrell and
+ Sven Grewe
+
+v1.4.3 2022-10-31 The Irssi team
+ - Fix freeze on Alt+arrows (#1416, #1417)
+ - Fix crash on /upgrade (#1399, #1419)
+ - Fix saving of -disallow_starttls (#1401, #1420)
+ - Fix libnv detection on FreeBSD (freebsd#265397, #1407). By
+ Guido Falsi and Kristof Provost
+ - Minor help and script fixes (#1380, #1393, #1411, #1413,
+ #1414, #1415)
+
+v1.4.2 2022-07-17 The Irssi team
+ * Add irssimoduledir to irssi-1.pc in the Meson build (#1383,
+ #1378)
+ - Use -isystem includes, limiting warnings to Irssi
+ code. Fixes compilation with Perl 5.36 (#1381,
+ gentoo#851522, #1384)
+ - Fix missing lines when changing dynamic textbuffer contents
+ (#1382, #1387). Reported by externalserver15
+ - Fix Perl cross compilation with Meson 0.60.0 (#1377)
+ - Fix default channel prefix used for /JOIN to default to `#'
+ (#1385, #1388)
+ - Fix crash in /LASTLOG by getting line texts before printing
+ (#1367, #1398)
+
+v1.4.1 2022-06-12 The Irssi team
+ ! Note: botti no longer compiles; get in touch if you use it
+ * Format the output of /QUOTE HELP (#1371, an#82). By Val
+ Lorentz. Add /SHELP as default alias (an#83)
+ + GLib log message filter: /SET glib_log_domains (an#50,
+ an#59). By Andrej Kacian
+ + An option to clear the cutbuffer:
+ /SET empty_kill_clears_cutbuffer (an#58). By Mikael
+ Magnusson
+ + Scriptable pastebin (an#60, an#88)
+ + Configurable actlist separator: /SET actlist_separator
+ (#1364, an#61)
+ - Fix window left/right not skipping visible windows
+ (an#57). By Mikael Magnusson
+ - Fix wrong printf-format on OpenBSD (an#66, an#68). Reported
+ by Aaron Bieber
+ - Fix erroneous output produced by autoload_modules (an#72)
+ - Fix scroll_page_count setting with `.' (#1365, an#76)
+ - Fix memory leak in /IGNORE (#1373, an#84). Found by Jookia
+ - Misc fixes (an#45, an#67, an#70, #1368, an#77)
+
+ - CHANTYPES take precedence over (missing) STATUSMSG in /join
+ (#1358, an#54)
+ - Fix crash in Perl's $view->set_bookmark (freebsd#254237,
+ an#56)
+
+ - Minor help fixes (an#51, an#52)
+ - Fix regression where own channel status was forgotten after
+ /UPGRADE (#1357, an#53)
+
+ * /SET resolve_reverse_lookup setting was removed (#1034,
+ #1135)
+ * Irssi will try to connect on IPv4 if IPv6 connection failed
+ (#1146). By Shivaram Lingamneni
+
+ * The display system now renders formats on the fly (#1079,
+ #1188, #1191, #1192, #1204, #1205, #1209, #1349, #1355,
+ an#13, an#14, an#28, an#29, an#36, an#37, an#49)
+
+ This major change will break scripts that try to modify
+ printed text during "print text" signal (#1189). They need
+ to be ported to modify the text during "print format"
+ instead. It also breaks the usage of using /FORMAT to add
+ different colours to a line. Such usage needs to be ported
+ to using $expando variables instead. Affected scripts
+ include format_identify.pl, friends_peder.pl, nickcolor.pl,
+ nm.pl, people.pl
+
+ The "gui print text finished" and "gui print text after
+ finished" signals gained a TEXT_DEST_REC *parameter in the
+ process.
+
+ A new "gui render line text" signal is available to change
+ the rendering of a line
+
+ * made the $Z expando (time) dynamic (#1087, #1207, #1208)
+
+ This change breaks the usage of /SET timestamp_format to
+ supply a custom displayed time stamp. Affected scripts
+ include binary_time.pl
+
+ * /HILIGHT -priority now affects which hilight rule gets
+ applied (#1228, #1232)
+ * The NAMES list is now hidden by default if there are more
+ than 18 users on the channel (an#7)
+
+ To revert to the previous behaviour
+
+ /SET show_names_on_join_limit -1
+
+ * -tls_verify is now enabled by default (#1170, an#18, #1309,
+ an#23, #1343, #1351)
+
+ This may cause an ugly display of notls_verify in the output
+ of /SERVER LIST, even on plain-text connection, on old
+ configs. Kindly remove the "tls_verify = "no";" entries from
+ your config file manually.
+
+ * Irssi will now attempt STARTTLS if advertised (#1170, #1312,
+ an#19)
+
+ Use -disallow_starttls if you absolutely do not want this
+
+ In order to check for a STARTTLS advertisement, Irssi will
+ now wait for a response (even an error) to CAP LS 302. If
+ your bouncer/server does not want to communicate before
+ receiving USER/PASS at all, use -nocap to disable the CAP
+ check.
+
+ * Channel sync requests (WHO, MODE) are now sent "later" than
+ user commands. This should improve responsiveness to user
+ commands in the autojoin phase (#1300, an#26, an#32, an#33)
+ * Irssi is now using full paths in #include directives and
+ consequently does not add all directories to the include
+ path anymore (#1040)
+ * The Build System was ported to Meson (#1064, #1065, #1068,
+ #1071, #1072, #1073, #1074, #1075, #1084, #1085, #1118, #1166,
+ #1223, #1224, #1245, #1313, #1314, an#31)
+ * Scriptassist was changed to use a YAML database (#1163)
+
+ It will tell you when you need to update your setting
+
+ * /BIND shows all partial matches (#1155)
+ * Cleanup of unused functions (#1017, #1132, #1145, #1182,
+ #1246, #1264)
+
+ Functions removed:
+
+ NET_CALLBACK
+ NET_HOST_CALLBACK
+ RESOLVED_NAME_REC
+ net_gethostbyaddr_nonblock
+ net_connect_nonblock
+ [ SIMPLE_THREAD_REC, simple_init, simple_readpipe ]
+ hash_save_key
+
+ Functions deprecated:
+
+ dec2octal
+ g_timeval_cmp
+ get_timeval_diff
+
+ Function names corrected:
+
+ g_input -> i_input
+ g_istr -> i_istr
+ g_io_channel -> i_io_channel
+ g_hash_free_value -> i_hash_free_value
+ remove g_free_true
+ gslist -> i_slist
+ glog_func -> i_log_func
+ glist -> i_list
+
+ If multi-version compatibility is desired, module authors
+ can find an example of backwards compatible code in
+ cdidier/irssi-xmpp#55
+
+ + Add MSGLEVEL_HIDDEN to Perl (#1044)
+ + Add $view->set_hidden_level and $view->remove_lines_by_level
+ to Perl (#1026)
+ + Add a /SET scrollback_max_age setting (#1022). By Heikki
+ Orsila
+ + Add /SET actlist_prefer_window_name (#1025)
+ + Add -window option to /CAT (#1023, #1159)
+ + Add an option to list specific sections with
+
+ /SET -section lookandfeel
+
+ (#1048)
+
+ + Add support for IRCv3 CAP LS 302 (#1091)
+ + Add a new "print noformat" signal that goes together with
+ "print format" (#1088, #1192)
+ + Add support for IRCv3 extended-join. /SET show_extended_join
+ to enable (#1097, #1107, #1124)
+
+ There are two new /FORMATs, join_extended and
+ join_extended_account, that theme writers need to take into
+ account if desired.
+
+ + Add support for IRCv3 setname (#1093, #1104, #1254, GL#33)
+ + Add support for IRCv3 account-notify (#1100, #1098, GL#33,
+ #1105, #1131). Credit to oss-fuzz
+ /SET show_account_notify to enable
+ + Add support for IRCv3 invite-notify (#1094)
+ + Add support for receiving IRCv3 message-tags (#576, #1090)
+ + Add support for sending IRCv3 message-tags (#1092, an#34)
+ + Enable the znc.in/self-message CAP by default (#1123)
+ + Add support for IRCv3 away-notify. /SET away_notify_public
+ to enable (#1099, GL#33, #1105)
+ + Add support for IRCv3 chghost (#1096, GL#33, #1105)
+
+ For servers with broken chghost implementation that fill the
+ status window with host changed messages, one may add "quote
+ cap req -chghost" to the -autosendcmd or, if the host change
+ messages are entirely undesired, "/format -delete
+ host_changed"
+
+ + Add support for IRCv3 server-time. /SET show_server_time to
+ enable (#1108)
+ + Add support for logging IRCv3 server-time.
+ /SET log_server_time to disable (#1318, an#16)
+ + Add IRCv3 features to signals.txt (#1111)
+
+ In particular, "message join" now takes 2 additional
+ arguments, script and module authors must beware of this
+ change.
+
+ + Show the unignore time in /IGNORE output (#1158, #1161)
+ + Add /SET quit_on_hup to make the behaviour of SIGHUP
+ configurable (#828, #1169). By Pinguin1234
+ + Support numeric 489 as ERR_SECUREONLYCHAN (#1193, #1196). By
+ Michael Hansen
+ + Improve support for building Irssi in Termux-Android with
+ Meson (#1199)
+ + Add usermode key to Irssi::Irc::Chatnet in Perl (#1288). By
+ Jessica Sophie Porter
+ + Add format_string_expand and format_string_unexpand
+ functions to Perl (#1286)
+ + Add ...->format_create_dest(...)->printformat("format",
+ args...) and ...->printformat_module("module", "format",
+ args...) methods to Perl (#1284)
+
+ You can avoid any CORE::GLOBAL::caller hacks using the
+ printformat_module method, especially sind that hack was not
+ safe during signal emissions
+
+ + Add tracking of user accounts in the channel nicklist using
+ WHOX on join (#1250)
+ + Add auto-loading of the Perl and otr module from /SET
+ autoload_modules (#1295)
+ + Add /IGNORE ... NOHILIGHT to ignore some hilights (#1260)
+ + Do not beep on hidden lines with /SET beep_msg_level
+ ... -HIDDEN (#1259)
+ + Added /CS, /MS, /NS, and /OS aliases to the default config
+ (#1316). By Mathis Beer
+ + Allow -tls_ca{file,path} '' to unset an argument (#730,
+ #1060, an#30)
+ + Add a "server outgoing modify" signal to intercept outgoing
+ messages (#1148, #1151, an#15, an#43). Original by
+ JustAnotherArchivist
+ - remove some hard-coded 510 byte assumptions (#1086)
+ - Several fixes for error checks in SSL (#944, #1037, #943,
+ #1036). Reported by Chi Li
+ - Wrong variable tested in mask_match (#902, #1035)
+ - Fix bug where irssi-proxy with `?'-port would not reconnect
+ (#1041)
+ - Allow shrinking of /SET rawlog_lines (#957, #1020). By
+ Marcus "Teschi" Prinz
+ - Fix /WINDOW BALANCE warning (#1054)
+ - fix overflow when first command history entry expires
+ (#1070)
+ - begin modularising IRC module (#1067, #1112, #1113)
+ - fix some memory leaks in /DCC RESUME and settings_add
+ (#1077). By Zero King
+ - fix cut-off text with theme_indent module and /SET
+ indent_always OFF (#1078)
+ - fix the cap_queue order (#1095)
+ - add reference counted strings (#1089)
+ - Fix irc_op_public messages not triggering hilights (#354,
+ #891, #1129). By Dan Collins
+ - Fix /IGNORE not setting the right level in irc_op_public
+ messages (#1280). Credit to oss-fuzz
+ - Fix GTimeVal deprecation (#1141, #1144, #1145, #1350, an#44)
+
+ If multi-version compatibility is desired, module authors
+ can find an example of backwards compatible code in
+ cdidier/irssi-xmpp#53
+
+ - Fix /IGNORE ... MODES NO_ACT not working (#1164)
+ - Deprecated -ssl* options are hidden from tab completion
+ (#1171)
+ - Make /SET actlist_sort a choice type (#1198)
+ - Fix crash from self-unloading script (#1206). By Thomas
+ Stagner
+ - Fix crash during Perl signal emission (#1233, #1234)
+ - Fix a case where empty lines or comments inside channels or
+ servers in the config would confuse Irssi (#1062, #1242,
+ #1243)
+ - Fix reported freezing in DCC GET on slow disks (#159, #1271)
+ - Fix message-tags parsing (#1274, #1275). Credit to oss-fuzz
+ - Fail redirects when receiving numeric 263 (RPL_TRYAGAIN) in
+ response to /WHO (#1283)
+ - Some updates to .gitignore (#1302). By Rene Kita
+ - Fix build on operating systems with X/Open Curses, version 2
+ (#1305, #1308). By Nia Alarie (Regression introduced with
+ #1290, alternative fix for Irssi 1.2.3 no-term.h.patch)
+ - Fix otr module not using g_strndup, e.g. on Solaris 10
+ (#1315). By Claes Nästén
+ - Fix cursor getting stuck for auto completions that changes
+ case (#1176, #1322, an#8). By ffrogman
+ - Restore operation of tag/* in /SET activity_hide_targets
+ (#1337, an#11) nb. the ::all syntax was working in Irssi 1.1
+ and 1.2 (and continues to work)
+ - Fix /SERVER ADD -matrix -network my_matrix_network
+ (an#12). By Andrej Kacian
+ - Fix /SERVER ADD creating duplicated entries in the config
+ file (#1317, an#22, an#41)
+ - Fix critical when SASL user is set and SASL password is
+ empty (#1325, an#21)
+ - Misc fixes (#1106, #1141, #1272, #1297, an#35)
+ - Fuzz fixes (#1116, #1117, #1119, #1125, #1126, an#20)
+ - Build system fixes (#1101, #1102, #1069, #1140, #1181, #1253)
+ - Sync docs and scripts (an#39)
+ - Text and Help updates
+ - add -tls_* options to manual (#1029, #1030). By Jacob
+ V. Rasmussen
+ - missing targets in /MSG (#1032)
+ - wrong parameter in /ECHO (#1024)
+ - Spelling in OTR (#1047). By David Gall
+ - Clarify statusbar priority (#1049). By Marius Gedminas
+ - Document get_irssi_dir in Perl (#1051, #1052). By Alex
+ Shafer
+ - typo in /HILIGHT help (#1081). By DFrostByte
+ - improved clarity of your_nick_owned (#1138). By Mike Quin
+ - Update some URLs to https (#1163)
+ - Add documentation for escaping some characters (#1329,
+ #1330, an#9). By Guntbert Reiter
+ - Fix some typos (#1336, an#10). By Francis Mteo
+ - Document $abiversion and parse_special (an#38). By bw1
+ - Infrastructure updates:
+ - Support for Github Actions (#1039, #1103, #1160, #1212,
+ #1231, #1252, #1261, an#40)
+ - Run clang-format on pull requests (#1172, #1173, #1184,
+ #1230, #1247, #1287)
+ - Run abidiff on pull requests (#1179, #1195)
+ - Test CI-Fuzz (#1279, #1304, an#17)
+
+v1.2.3 2021-04-11 The Irssi team
- Fix the compilation of utf8proc (#1021)
- Fix wrong call to free. By Zero King (#1076)
- Fix a colour reset in true colour themes when encountering
@@ -38,13 +409,13 @@ v1.2.3 2021-04-11 The Irssi team
- Fix memory leak when receiving bogus SASL authentication
data. Found and fixed by Sergey Valentey (#1293)
-v1.2.2 2019-08-29 The Irssi team
+v1.2.2 2019-08-29 The Irssi team
- Fix a use after free issue when receiving IRCv3 CAP
- information from the server (GL#34)
+ information from the server (GL#34, GL!35)
- Fix a crash during startup when windows weren't fully
initialised yet (#1114, bdo#935813)
-v1.2.1 2019-06-29 The Irssi team
+v1.2.1 2019-06-29 The Irssi team
! Contains all changes from 1.1.3
- Fix a test on big endian machines (#1014)
- Fix the compile time conditionality of wcwidth
@@ -55,17 +426,17 @@ v1.2.1 2019-06-29 The Irssi team
encoding) in the input prompt was broken (#1018,
#1057). Initial patch by Артём Курашов
-v1.1.3 2019-06-29 The Irssi team
+v1.1.3 2019-06-29 The Irssi team
! Contains all changes from 1.0.8
- Fix regression of #779 where autolog_ignore_targets would
not matching itemless windows anymore (#1012, #1013)
-v1.0.8 2019-06-29 The Irssi team
+v1.0.8 2019-06-29 The Irssi team
- Fix a use after free issue when sending the SASL login on
(automatic and manual) reconnects (#1055, #1058). Reported
by ilbelkyr
-v1.2.0 2019-02-11 The Irssi team
+v1.2.0 2019-02-11 The Irssi team
! Contains all changes from 1.1.2
* Improved the /STATUSBAR commands (#858)
* /SET no longer shows `=' between setting and value (#886)
@@ -153,7 +524,7 @@ v1.2.0 2019-02-11 The Irssi team
- Misc fixes (#840, #839, #843, #953, #962). Tests (#806,
#875, #905, #964, #1011). Fuzzing (#929).
-v1.1.2 2019-01-09 The Irssi team
+v1.1.2 2019-01-09 The Irssi team
- Fix the resetting of window hiddenlevel (#861)
- Fix clearing of hidelevel in layout (#951)
- Fix accessing unallocated text when checking entry position
@@ -172,14 +543,14 @@ v1.1.2 2019-01-09 The Irssi team
- Fix Perl detection on MacOS. By Dominyk Tiller (#927)
- Misc fixes. By Jaroslav Škarvada (#981, #982)
-v1.1.1 2018-02-15 The Irssi team
+v1.1.1 2018-02-15 The Irssi team
! Contains all changes from 1.0.7
- Restore compatibility with OpenSSL < 1.0.2 (#820, #831)
- Fix test compilation on some platforms (#815, #816)
- Fix portability and backwards compatibility of test runner
(#818, #845)
-v1.0.7 2018-02-15 The Irssi team
+v1.0.7 2018-02-15 The Irssi team
- Prevent use after free error during the execution of some
commands. Found by Joseph Bisch (GL#17, GL!24).
- Revert netsplit print optimisation due to crashes (#465, #809,
@@ -198,7 +569,7 @@ v1.0.7 2018-02-15 The Irssi team
resize (GL#25, GL#29, #836).
- Minor help correction. By William Jackson (#834).
-v1.1.0 2018-01-15 The Irssi team
+v1.1.0 2018-01-15 The Irssi team
! Warning. Irssi is broken and will crash with OpenSSL < 1.0.2
due to openssl/openssl commit
5b4b9ce976fce09a7a92e2f25b91a1635cb840fe
@@ -280,7 +651,7 @@ v1.1.0 2018-01-15 The Irssi team
#738)
- Fix space issue in glib-2.0.m4 (#621)
-v1.0.6 2018-01-07 The Irssi team
+v1.0.6 2018-01-07 The Irssi team
! Note: Code and aliases using `$($'-like constructs are no
longer supported due to issue GL#18. Sorry about the
inconvenience.
diff --git a/README.md b/README.md
index d1232764c..bfe521d35 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,10 @@
-# [Irssi](https://irssi.org/)
+# [Irssi](https://irssi.org)

-Irssi is a modular chat client that is most commonly known for its
-text mode user interface, but 80% of the code isn't text mode
-specific. Irssi comes with IRC support built in, and there are
-third party [ICB](https://github.com/jperkin/irssi-icb),
+Irssi is a modular text mode chat client. It comes with IRC support
+built in, and there are third party
+[ICB](https://github.com/jperkin/irssi-icb),
[SILC](http://www.silcnet.org/),
[XMPP](http://cybione.org/~irssi-xmpp/) (Jabber),
[PSYC](http://about.psyc.eu/Irssyc) and
@@ -18,7 +17,7 @@ available.
#### Development source installation
-[Ninja](https://ninja-build.org/) 1.5 and [Meson](https://mesonbuild.com/) 0.49
+[Ninja](https://ninja-build.org/) 1.8 and [Meson](https://mesonbuild.com/) 0.53
```
git clone https://github.com/irssi/irssi
@@ -30,27 +29,27 @@ ninja -C Build && sudo ninja -C Build install
#### Release source installation
* Download [release](https://github.com/irssi/irssi/releases)
-* [Verify](https://irssi.org/download/#release-sources) signature
+* Verify signature
```
tar xJf irssi-*.tar.xz
cd irssi-*
-./configure
-make && sudo make install
+meson Build
+ninja -C Build && sudo ninja -C Build install
```
### Requirements
- [glib-2.32](https://wiki.gnome.org/Projects/GLib) or greater
- [openssl](https://www.openssl.org/)
-- [perl-5.6](https://www.perl.org/) or greater (for perl support)
+- [perl-5.8](https://www.perl.org/) or greater (for perl support)
- terminfo or ncurses (for text frontend)
#### See the [INSTALL](INSTALL) file for details
## [Documentation](https://irssi.org/documentation/)
-* [Frequently Asked Questions](https://irssi.org/documentation/faq)
-* [Startup How-To](https://irssi.org/documentation/startup)
+* [New users guide](https://irssi.org/New-users/)
+* [Questions and Answers](https://irssi.org/documentation/qna/)
* Check the built-in `/HELP`, it has all the details on command syntax
## [Themes](https://irssi-import.github.io/themes/)
@@ -63,7 +62,7 @@ make && sudo make install
Please report security issues to staff@irssi.org. Thanks!
-## [Bugs](https://github.com/irssi/irssi/issues) / Suggestions / [Contributing](https://irssi.org/development/)
+## [Bugs](https://github.com/irssi/irssi/issues) / Suggestions / Contributing
Check the GitHub issues if it is already listed in there; if not, open
an issue on GitHub or send a mail to [staff@irssi.org](mailto:staff@irssi.org).
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100755
index 17f60f89d..000000000
--- a/autogen.sh
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Run this to generate all the initial makefiles, etc.
-
-PKG_NAME="Irssi"
-
-srcdir=`dirname "$0"`
-test -z "$srcdir" && srcdir=.
-mydir=`pwd`
-
-if test ! -f "$srcdir"/configure.ac; then
- echo -n "**Error**: Directory \`$srcdir' does not look like the"
- echo " top-level $PKG_NAME directory"
- exit 1
-fi
-
-cd "$srcdir"
-
-# create help files
-echo "Creating help files..."
-perl utils/syntax.pl
-
-echo "Creating ChangeLog..."
-git log > ChangeLog
-if test "$?" -ne 0; then
- echo "**Error**: ${PKG_NAME} Autogen must be run in a git clone, cannot proceed."
- exit 1
-fi
-
-files=`echo docs/help/in/*.in|sed -e 's,docs/help/in/Makefile.in ,,' -e 's,docs/help/in/,!,g' -e 's/\.in /.in ?/g'`
-cat docs/help/in/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/in/Makefile.am
-
-files=`echo $files|sed 's/\.in//g'`
-cat docs/help/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/Makefile.am
-
-if test x$NOCONFIGURE = x && test -z "$*"; then
- echo "**Warning**: I am going to run \`configure' with no arguments."
- echo "If you wish to pass any to it, please specify them on the"
- echo \`$0\'" command line."
- echo
-fi
-
-rm -f aclocal.m4
-echo "Running autoreconf ..."
-autoreconf -i || exit $?
-
-# make sure perl hashes have correct length
-find src/perl -name '*.c' -o -name '*.xs' -exec grep -n hv_store {} + | perl -l -ne 'if (/"(\w+)",\s*(\d+)/ && $2 != length $1) { $X=1; print "Incorrect key length in $_" } END { exit $X }'
-
-cd "$mydir"
-
-conf_flags="--enable-maintainer-mode"
-
-if test x$NOCONFIGURE = x; then
- echo Running "$srcdir"/configure $conf_flags "$@" ...
- "$srcdir"/configure $conf_flags "$@" \
- && echo Now type \`make\' to compile $PKG_NAME || exit 1
-else
- echo Skipping configure process.
-fi
-
-if grep -q '==\|\[\[' "$srcdir"/build-aux/test-driver; then
- echo
- echo "************************************************************************"
- echo "**Warning**: your build is not portable, please do not make dist"
- echo " see https://bugzilla.opensuse.org/show_bug.cgi?id=1076146"
- echo "************************************************************************"
-fi
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index 3a9e7bd63..000000000
--- a/configure.ac
+++ /dev/null
@@ -1,821 +0,0 @@
-AC_INIT(irssi, 1.3-head)
-AC_CONFIG_SRCDIR([src])
-AC_CONFIG_AUX_DIR(build-aux)
-AC_PREREQ(2.50)
-
-AC_CONFIG_HEADERS([irssi-config.h])
-AC_CONFIG_MACRO_DIR([m4])
-AM_INIT_AUTOMAKE([1.9 no-define foreign subdir-objects nostdinc])
-
-AM_SILENT_RULES([yes])
-
-AM_MAINTAINER_MODE
-
-AC_PROG_CC
-AC_PROG_CPP
-AM_PROG_LIBTOOL
-
-AC_PATH_PROG(sedpath, sed)
-AC_PATH_PROG(perlpath, perl)
-
-PKG_INSTALLDIR
-
-AC_CHECK_HEADERS(unistd.h dirent.h sys/ioctl.h sys/resource.h)
-
-# check posix headers..
-AC_CHECK_HEADERS(sys/socket.h sys/time.h sys/utsname.h)
-
-AC_SYS_LARGEFILE
-
-AC_ARG_WITH(socks,
-[ --with-socks Build with socks support],
- if test x$withval = xno; then
- want_socks=no
- else
- want_socks=yes
- fi,
- want_socks=no)
-
-AC_ARG_WITH(textui,
-[ --without-textui Build without text frontend],
- if test x$withval = xno; then
- want_textui=no
- else
- want_textui=yes
- fi,
- want_textui=yes)
-
-AC_ARG_WITH(bot,
-[ --with-bot Build irssi-bot],
- if test x$withval = xno; then
- want_irssibot=no
- else
- want_irssibot=yes
- fi,
- want_irssibot=no)
-
-AC_ARG_WITH(fuzzer,
-[ --with-fuzzer Build irssi-fuzzer],
- if test x$withval = xno; then
- want_irssifuzzer=no
- else
- want_irssifuzzer=yes
- fi,
- want_irssifuzzer=no)
-
-AC_ARG_WITH(fuzzer-lib,
-[ --with-fuzzer-lib Specify path to fuzzer library],
- fuzzerlibpath="$withval")
-
-AC_ARG_WITH(proxy,
-[ --with-proxy Build irssi-proxy],
- if test x$withval = xno; then
- want_irssiproxy=no
- else
- want_irssiproxy=yes
- fi,
- want_irssiproxy=no)
-
-AC_ARG_WITH(modules,
-[ --with-modules Specify what modules to build in binary],
- if test x$withval != xyes -a x$withval != xno; then
- build_modules="$withval"
- fi)
-
-if test "x$prefix" != "xNONE"; then
- prefix=`eval echo $prefix`
- PERL_MM_PARAMS="INSTALLDIRS=perl INSTALL_BASE=$prefix"
- perl_set_use_lib=yes
-
- perl_prefix_note=yes
-fi
-
-AC_ARG_WITH(perl-staticlib,
-[ --with-perl-staticlib Specify that we want to link perl libraries
- statically in irssi, default is no],
- if test x$withval = xno; then
- want_staticperllib=no
- else
- want_staticperllib=yes
- fi,
- want_staticperllib=no)
-
-
-AC_ARG_WITH(perl-lib,
-[ --with-perl-lib=[perl|site|vendor|DIR] Specify where to install the
- Perl libraries for irssi, default is site],
- if test "x$withval" = xyes; then
- want_perl=yes
- elif test "x$withval" = xno; then
- want_perl=no
- elif test "x$withval" = xperl; then
- want_perl=yes
- perl_prefix_note=no
- PERL_MM_PARAMS="INSTALLDIRS=perl"
- perl_set_use_lib=no
- elif test "x$withval" = xsite; then
- want_perl=yes
- perl_prefix_note=no
- PERL_MM_PARAMS=""
- perl_set_use_lib=no
- elif test "x$withval" = xvendor; then
- want_perl=yes
- perl_prefix_note=no
- if test -z "`$perlpath -v|grep '5\.0'`"; then
- PERL_MM_PARAMS="INSTALLDIRS=vendor"
- else
- PERL_MM_PARAMS="INSTALLDIRS=perl PREFIX=`$perlpath -e 'use Config; print $Config{prefix}'`"
- fi
- perl_set_use_lib=no
- else
- want_perl=yes
- perl_prefix_note=no
- PERL_MM_PARAMS="INSTALLDIRS=perl LIB=$withval"
- perl_set_use_lib=yes
- fi,
- want_perl=yes)
-
-AC_ARG_WITH(perl,
-[ --with-perl[=yes|no|module] Build with Perl support - also specifies
- if it should be built into main irssi binary
- (static, default) or as module],
- if test x$withval = xyes; then
- want_perl=static
- elif test x$withval = xstatic; then
- want_perl=static
- elif test x$withval = xmodule; then
- want_perl=module
- else
- want_perl=no
- fi,
- want_perl=static)
-
-AC_ARG_WITH(otr,
-[ --with-otr[=yes|no|static] Build with OTR support - also specifies
- if it should be built into the main irssi
- binary (static) or as a module (default)],
- if test x$withval = xyes; then
- want_otr=module
- elif test x$withval = xstatic; then
- want_otr=static
- elif test x$withval = xmodule; then
- want_otr=module
- else
- want_otr=no
- fi,
- want_otr=no)
-
-AC_ARG_ENABLE(true-color,
-[ --enable-true-color Build with true color support in terminal],
- if test x$enableval = xno ; then
- want_truecolor=no
- else
- want_truecolor=yes
- fi,
- want_truecolor=no)
-
-AC_ARG_ENABLE(gregex,
-[ --disable-gregex Build without GRegex (fall back to regex.h)],
- if test x$enableval = xno ; then
- want_gregex=no
- else
- want_gregex=yes
- fi,
- want_gregex=yes)
-
-AC_ARG_ENABLE(utf8proc,
-[ --disable-utf8proc Build without Julia's utf8proc],
- if test x$enableval = xno ; then
- want_utf8proc=no
- else
- want_utf8proc=yes
- fi,
- want_utf8proc=yes)
-
-AC_ARG_WITH(capsicum,
-[ --with-capsicum Build with Capsicum support],
- if test x$withval = xno; then
- want_capsicum=no
- else
- want_capsicum=yes
- fi,
- want_capsicum=yes)
-
-dnl **
-dnl ** just some generic stuff...
-dnl **
-
-dnl * OS specific options
-case "$host_os" in
- hpux*)
- CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
- ;;
- *)
- ;;
-esac
-
-
-AC_SEARCH_LIBS([socket], [network socket])
-
-AC_SEARCH_LIBS([inet_addr], [nsl])
-
-dnl * gcc specific options
-if test "x$ac_cv_prog_gcc" = "xyes"; then
- CFLAGS="$CFLAGS -Wall"
-fi
-
-AC_CHECK_TYPE(socklen_t, ,
- [AC_DEFINE([socklen_t], [int], [Define to 'int' if doesn't define.])], [
-AC_INCLUDES_DEFAULT
-#ifdef HAVE_SYS_SOCKET_H
-# include
-#endif
-])
-
-AC_CHECK_SIZEOF(int)
-AC_CHECK_SIZEOF(long)
-AC_CHECK_SIZEOF(long long)
-AC_CHECK_SIZEOF(off_t)
-
-if test $ac_cv_sizeof_off_t = 8; then
- offt_64bit=yes
-else
- offt_64bit=no
-fi
-
-dnl **
-dnl ** check for socks
-dnl **
-
-if test "x$want_socks" = "xyes"; then
- AC_CHECK_LIB(socks, connect, [
- AC_DEFINE(HAVE_SOCKS,, Build with socks support)
- LIBS="$LIBS -lsocks"
- AC_CHECK_HEADER(socks.h, [
- AC_DEFINE(HAVE_SOCKS_H)
- CFLAGS="$CFLAGS -DSOCKS"
- AC_MSG_RESULT(["socks5 library found, building with it"])
- ], [
- AC_MSG_RESULT(["socks4 library found, building with it"])
- CFLAGS="$CFLAGS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dgetpeername=Rgetpeername -Dbind=Rbind -Daccept=Raccept -Dlisten=Rlisten -Dselect=Rselect"
- ])
- ])
-fi
-
-dnl **
-dnl ** fe-text checks
-dnl **
-
-for try in 1 2; do
- if test $try = 1; then
- glib_modules=gmodule
- else
- echo "*** trying without -lgmodule"
- glib_modules=
- fi
- AM_PATH_GLIB_2_0(2.32.0,,, $glib_modules)
- if test "$GLIB_LIBS"; then
- if test $glib_modules = gmodule; then
- AC_DEFINE(HAVE_GMODULE)
- have_gmodule=yes
- fi
- break
- fi
-done
-
-if test -z "$GLIB_LIBS"; then
- echo
- echo "*** If you don't have GLIB, you can get it from ftp://ftp.gtk.org/pub/glib/"
- echo "*** We recommend you get the latest stable GLIB 2 version."
- echo "*** Compile and install it, and make sure pkg-config finds it,"
- echo "*** by adding the path where the .pc file is located to PKG_CONFIG_PATH"
- echo -n "*** Or alternatively install your distribution's package"
- if test -f /etc/debian_version; then
- echo :
- echo "*** sudo apt-get install libglib2.0-dev"
- elif test -f /etc/redhat-release; then
- echo " (glib2-devel)"
- else
- echo .
- fi
- echo
-
- AC_ERROR([GLIB is required to build irssi.])
-fi
-
-LIBS="$LIBS $GLIB_LIBS"
-
-GLIB_TESTS
-
-dnl **
-dnl ** OpenSSL checks
-dnl **
-PKG_CHECK_MODULES([OPENSSL], [openssl], [
- CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
- LIBS="$LIBS $OPENSSL_LIBS"
-], [
- AC_CHECK_LIB([ssl], [SSL_library_init], [
- LIBS="$LIBS -lssl -lcrypto"
- ], [
- AC_MSG_ERROR([The OpenSSL library was not found])
- ])
-])
-
-dnl **
-dnl ** utf8proc
-dnl **
-if test "x$want_utf8proc" != "xno"; then
- AC_CHECK_HEADER([utf8proc.h], [
- AC_CHECK_LIB([utf8proc], [utf8proc_version], [
- want_utf8proc=yes
- AC_DEFINE(HAVE_LIBUTF8PROC,, [Define to 1 if you have the `utf8proc' library (-lutf8proc).])
- LIBS="$LIBS -lutf8proc"
- ], [
- want_utf8proc="no, library not found"
- ])
- ], [
- want_utf8proc="no, library header not found"
- ])
-fi
-
-dnl **
-dnl ** curses checks
-dnl **
-
-if test "x$want_textui" != "xno"; then
-
- TEXTUI_NO_LIBS="$LIBS"
- LIBS=
- AC_SEARCH_LIBS([setupterm], [tinfo ncursesw ncurses terminfo], [want_textui=yes], [
- AC_ERROR(Terminfo not found - install libncurses-dev or ncurses-devel package)
- want_textui="no, Terminfo not found"
- ])
-
- TEXTUI_LIBS="$LIBS"
- AC_SUBST(TEXTUI_LIBS)
- LIBS="$TEXTUI_NO_LIBS"
-
- AC_CHECK_HEADER([term.h], [
- AC_DEFINE(HAVE_TERM_H, [], [Define to 1 if you have the `term.h' header.])
- ])
-
-fi
-
-dnl **
-dnl ** irssifuzzer checks
-dnl **
-
-if test "$want_irssifuzzer" != "no"; then
- dnl * we need to build with -fsanitize-coverage=trace-pc-guard
- dnl * otherwise fuzzer won't be very successful at finding bugs :)
- if test -z "$SANFLAGS"; then
- SANFLAGS="-g -fsanitize=address -fsanitize-coverage=trace-pc-guard"
- fi
- CFLAGS="$CFLAGS $SANFLAGS"
- CXXFLAGS="$CXXFLAGS $SANFLAGS"
-
- AC_MSG_CHECKING(for fuzzer library)
-
- if test -z "$fuzzerlibpath"; then
- AC_MSG_RESULT([not found, building without fuzzer front end])
- want_irssifuzzer=no
- else
- FUZZER_LIBS="$fuzzerlibpath"
- AC_SUBST(FUZZER_LIBS)
- fi
-fi
-
-dnl **
-dnl ** perl checks
-dnl **
-
-if test "$want_perl" != "no"; then
- AC_MSG_CHECKING(for working Perl support)
-
- if test -z "$perlpath"; then
- perl_check_error="perl binary not found"
- else
- PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
- fi
-
- if test "x$ac_cv_prog_gcc" = "xyes" -a -z "`echo $host_os|grep 'bsd\|linux'`"; then
- dnl * several systems have Perl compiled with native compiler
- dnl * but irssi is being compiled with GCC. Here we try to
- dnl * fix those command line options a bit so GCC won't
- dnl * complain about them. Normally there's only few options
- dnl * that we want to keep:
- dnl * -Ddefine -Uundef -I/path -fopt -mopt -iwithsysroot
- PERL_CFLAGS=`echo $PERL_CFLAGS | $perlpath -pe 's/^(.* )?-@<:@^DUIifm@:>@@<:@^ @:>@+/\1/g; s/^(.* )?\+@<:@^ @:>@+/\1/g'`
-
- PERL_EXTRA_OPTS="CCCDLFLAGS=\"-fPIC\""
- AC_SUBST(PERL_EXTRA_OPTS)
- fi
-
- if test -z "$PERL_CFLAGS"; then
- if test -n "$perl_check_error"; then
- perl_check_error="Error getting perl CFLAGS"
- fi
- AC_MSG_RESULT([not found, building without Perl])
- want_perl=no
- else
- PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null`
-
- dnl * remove all database stuffs
- dnl * nsl is already in ldflags
- dnl * libc is of course linked without needing -lc
- dnl * -rdynamic must not be in LIBADD line
- for word in -ldb -ldbm -lndbm -lgdbm -lc -rdynamic; do
- PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e "s/$word //" -e "s/$word$//"`
- done
-
- case "$host_os" in
- linux*)
- PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lposix //' -e 's/-lposix$//'`
- ;;
- hpux*)
- if test "x$ac_cv_prog_gcc" = "xyes"; then
- PERL_CFLAGS=`echo $PERL_CFLAGS | $sedpath -e 's/-Ae //' -e 's/-Ae$//'`
- PERL_LDFLAGS=`echo $PERL_LDFLAGS | $sedpath -e 's/-Ae //' -e 's/-Ae$//'`
- fi
- ;;
- *)
- ;;
- esac
-
- dnl * check that perl's ldflags actually work
- echo "#include " > conftest.c
- echo "#include " >> conftest.c
- echo "int main(){perl_alloc(); return 0;}" >> conftest.c
- $CC $CFLAGS $PERL_CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null
- if test ! -s conftest -a "x$ignore_perl_errors" = "x"; then
- perl_check_error="Error linking with perl libraries: $PERL_LDFLAGS: `cat perl.error.tmp`"
- AC_MSG_RESULT([error linking with perl libraries, building without Perl])
- want_perl=no
- fi
-
- rm -f perl.error.tmp
- fi
-
- if test "x$want_perl" != "xno"; then
- AC_MSG_RESULT(ok)
-
- if test "x$want_perl" = "xstatic"; then
- dnl * building with static perl support
- dnl * all PERL_LDFLAGS linking is done in fe-text
- PERL_LINK_FLAGS="$PERL_LDFLAGS"
- PERL_LINK_LIBS="../perl/libperl_core_static.la"
- PERL_FE_LINK_LIBS="../perl/libfe_perl_static.la"
- PERL_LDFLAGS=
- AC_DEFINE(HAVE_STATIC_PERL)
-
- dnl * build only static library of perl module
- perl_module_lib=
- perl_module_fe_lib=
- perl_static_lib=libperl_core_static.la
- perl_static_fe_lib=libfe_perl_static.la
- else
- dnl * build dynamic library of perl module
- perl_module_lib=libperl_core.la
- perl_module_fe_lib=libfe_perl.la
- perl_static_lib=
- perl_static_fe_lib=
- fi
-
- if test "x$want_staticperllib" = "xyes"; then
- PERL_MM_PARAMS="$PERL_MM_PARAMS LINKTYPE=static"
- PERL_LINK_LIBS="$PERL_LINK_LIBS ../perl/common/blib/arch/auto/Irssi/Irssi.a ../perl/irc/blib/arch/auto/Irssi/Irc/Irc.a ../perl/ui/blib/arch/auto/Irssi/UI/UI.a ../perl/textui/blib/arch/auto/Irssi/TextUI/TextUI.a"
- PERL_STATIC_LIBS=1
- else
- PERL_STATIC_LIBS=0
- fi
-
- # remove any prefix from PERL_MM_OPT
- PERL_MM_OPT=`perl -MText::ParseWords -e 'sub qu{$_=shift;s{^(.*?)=(.*)$}{($a,$b)=($1,$2);$b=~s/"/\\\\"/g;qq{$a="$b"}}ge if /@<:@\s"@:>@/;$_} local $,=" "; print map qu($_), grep !/^(INSTALL_BASE|PREFIX)=/, shellwords(@ARGV)' "$PERL_MM_OPT"`
- # figure out the correct @INC path - we'll need to do this
- # through MakeMaker since it's difficult to get it right
- # otherwise.
- $perlpath -MExtUtils::MakeMaker -e 'WriteMakefile(NAME => "test", MAKEFILE => "Makefile.test", FIRST_MAKEFILE => "/dev/null", NO_META => 1, NO_MYMETA => 1);' $PERL_MM_PARAMS >/dev/null
- echo 'show-INSTALLDIRS:' >> Makefile.test
- echo ' @echo $(INSTALLDIRS)' >> Makefile.test
- perl_INSTALLDIRS=`$am_make -s -f Makefile.test show-INSTALLDIRS`
- if test "x$perl_INSTALLDIRS" = "xsite"; then
- perl_library_dir="site default"
- perl_INSTALL_VAR=INSTALLSITEARCH
- elif test "x$perl_INSTALLDIRS" = "xvendor"; then
- perl_library_dir="vendor default"
- perl_INSTALL_VAR=INSTALLVENDORARCH
- else
- perl_library_dir="module default"
- perl_INSTALL_VAR=INSTALLARCHLIB
- fi
- echo 'show-ARCHLIB:' >> Makefile.test
- echo ' @echo $('"$perl_INSTALL_VAR"')' >> Makefile.test
- perl_use_lib=`$am_make -s -f Makefile.test show-ARCHLIB`
- rm -f Makefile.test
- if test "x$perl_set_use_lib" = "xyes"; then
- if $perlpath -e 'exit ! grep $_ eq $ARGV@<:@0@:>@, grep /^\//, @INC' "$perl_use_lib"; then
- perl_library_dir="other path in @INC"
- perl_set_use_lib=no
- else
- perl_library_dir="prepends to @INC with /set perl_use_lib"
- PERL_USE_LIB="$perl_use_lib"
- fi
- fi
-
- AC_SUBST(perl_module_lib)
- AC_SUBST(perl_static_lib)
- AC_SUBST(perl_module_fe_lib)
- AC_SUBST(perl_static_fe_lib)
-
- AC_SUBST(PERL_LINK_FLAGS)
- AC_SUBST(PERL_LINK_LIBS)
- AC_SUBST(PERL_FE_LINK_LIBS)
-
- AC_SUBST(PERL_LDFLAGS)
- AC_SUBST(PERL_CFLAGS)
-
- AC_SUBST(PERL_USE_LIB)
- AC_SUBST(PERL_MM_OPT)
- AC_SUBST(PERL_MM_PARAMS)
- AC_SUBST(PERL_STATIC_LIBS)
- fi
-fi
-
-dnl **
-dnl ** check for capsicum
-dnl **
-
-if test "x$want_capsicum" = "xyes"; then
- AC_CHECK_LIB(c, cap_enter, [
- AC_CHECK_LIB(nv, nvlist_create, [
- AC_DEFINE(HAVE_CAPSICUM,, Build with Capsicum support)
- LIBS="$LIBS -lnv"
- ], [
- want_capsicum="no, nvlist_create not found"
- ])
- ], [
- want_capsicum="no, cap_enter not found"
- ])
-fi
-
-dnl **
-dnl ** OTR checks
-dnl **
-
-have_otr=no
-if test "x$want_otr" != "xno"; then
- AM_PATH_LIBGCRYPT(1:1.2.0, [], [AC_ERROR(libgcrypt 1.2.0 or newer is required.)])
- AM_PATH_LIBOTR(4.1.0, [], [AC_ERROR([libotr 4.1.0 or newer is required.])])
-
- OTR_CFLAGS="$LIBOTR_CFLAGS $LIBGCRYPT_CFLAGS"
- OTR_LDFLAGS="$LIBOTR_LIBS $LIBGCRYPT_LIBS"
-
- AC_SUBST(otr_module_lib)
- AC_SUBST(otr_static_lib)
-
- if test "x$want_otr" != "xno"; then
- if test "x$want_otr" = "xstatic"; then
- otr_module_lib=
- otr_static_lib=libotr_core_static.la
-
- OTR_LINK_LIBS="../otr/libotr_core_static.la"
- OTR_LINK_FLAGS="$OTR_LDFLAGS"
-
- AC_DEFINE(HAVE_STATIC_OTR)
- else
- otr_module_lib=libotr_core.la
- otr_static_lib=
- fi
- fi
-
- AC_SUBST(otr_module_lib)
- AC_SUBST(otr_static_lib)
-
- AC_SUBST(OTR_CFLAGS)
- AC_SUBST(OTR_LDFLAGS)
-
- AC_SUBST(OTR_LINK_LIBS)
- AC_SUBST(OTR_LINK_FLAGS)
-
- have_otr=yes
-fi
-
-dnl ** check what we want to build
-AM_CONDITIONAL(BUILD_TEXTUI, test "$want_textui" = "yes")
-AM_CONDITIONAL(BUILD_IRSSIBOT, test "$want_irssibot" = "yes")
-AM_CONDITIONAL(BUILD_IRSSIFUZZER, test "$want_irssifuzzer" = "yes")
-AM_CONDITIONAL(BUILD_IRSSIPROXY, test "$want_irssiproxy" = "yes")
-AM_CONDITIONAL(HAVE_PERL, test "$want_perl" != "no")
-AM_CONDITIONAL(HAVE_CAPSICUM, test "x$want_capsicum" = "xyes")
-AM_CONDITIONAL(USE_GREGEX, test "x$want_gregex" = "xyes")
-AM_CONDITIONAL(HAVE_OTR, test "x$have_otr" != "xno")
-
-# move LIBS to PROG_LIBS so they're not tried to be used when linking eg. perl libraries
-PROG_LIBS=$LIBS
-LIBS=
-AC_SUBST(PROG_LIBS)
-
-dnl **
-dnl ** Keep all the libraries here so each frontend doesn't need to
-dnl ** keep track of them all
-dnl **
-dnl ** (these could be made configurable)
-
-CHAT_MODULES="irc"
-irc_MODULES="dcc flood notifylist"
-if test -n "$build_modules"; then
- irc_MODULES="$irc_MODULES $build_modules"
-fi
-
-dnl ****************************************
-
-AC_SUBST(CHAT_MODULES)
-AC_SUBST(irc_MODULES)
-
-CORE_LIBS="../core/libcore.a ../lib-config/libirssi_config.a"
-FE_COMMON_LIBS=""
-
-CHAT_LIBS=""
-for c in $CHAT_MODULES; do
- CHAT_LIBS="$CHAT_LIBS ../$c/lib$c.a ../$c/core/lib${c}_core.a"
- if test -f $srcdir/src/fe-common/$c/module.h; then
- FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/$c/libfe_common_$c.a "
- fi
- for s in `eval echo \\$${c}_MODULES`; do
- CHAT_LIBS="$CHAT_LIBS ../$c/$s/lib${c}_$s.a"
- if test -f $srcdir/src/fe-common/$c/$s/module.h; then
- FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/$c/$s/libfe_${c}_$s.a "
- fi
- done
-done
-
-FE_COMMON_LIBS="$FE_COMMON_LIBS../fe-common/core/libfe_common_core.a"
-
-dnl ** common libraries needed by frontends
-COMMON_NOUI_LIBS="$CHAT_LIBS $CORE_LIBS"
-COMMON_LIBS="$FE_COMMON_LIBS $COMMON_NOUI_LIBS"
-AC_SUBST(COMMON_NOUI_LIBS)
-AC_SUBST(COMMON_LIBS)
-
-if test "x$want_truecolor" = "xyes"; then
- AC_DEFINE([TERM_TRUECOLOR], [], [true color support in terminal])
-else
- want_truecolor=no
-fi
-
-if test "x$want_gregex" = "xyes"; then
- AC_DEFINE([USE_GREGEX], [], [use GRegex for regular expressions])
-else
- want_gregex=no
-fi
-
-AC_DEFINE([FHS_PREFIX], [""], [Alternate filesystem prefix for Termux])
-AH_TEMPLATE(HAVE_GMODULE)
-AH_TEMPLATE(HAVE_SOCKS_H, [misc..])
-AH_TEMPLATE(HAVE_STATIC_PERL)
-AH_TEMPLATE(HAVE_STATIC_OTR)
-AH_TEMPLATE(PRIuUOFF_T, [printf()-format for uoff_t, eg. "u" or "lu" or "llu"])
-AH_TEMPLATE(UOFF_T_INT, [What type should be used for uoff_t])
-AH_TEMPLATE(UOFF_T_LONG)
-AH_TEMPLATE(UOFF_T_LONG_LONG)
-
-AC_CONFIG_FILES([
-Makefile
-src/Makefile
-src/core/Makefile
-src/irc/Makefile
-src/irc/core/Makefile
-src/irc/dcc/Makefile
-src/irc/notifylist/Makefile
-src/irc/proxy/Makefile
-src/irc/flood/Makefile
-src/fe-common/Makefile
-src/fe-common/core/Makefile
-src/fe-common/irc/Makefile
-src/fe-common/irc/dcc/Makefile
-src/fe-common/irc/notifylist/Makefile
-src/fe-fuzz/Makefile
-src/fe-fuzz/irc/Makefile
-src/fe-fuzz/irc/core/Makefile
-src/fe-fuzz/fe-common/Makefile
-src/fe-fuzz/fe-common/core/Makefile
-src/fe-none/Makefile
-src/fe-text/Makefile
-src/lib-config/Makefile
-src/perl/Makefile
-src/perl/common/Makefile.PL
-src/perl/irc/Makefile.PL
-src/perl/ui/Makefile.PL
-src/perl/textui/Makefile.PL
-src/otr/Makefile
-scripts/Makefile
-scripts/examples/Makefile
-tests/Makefile
-tests/fe-common/Makefile
-tests/fe-common/core/Makefile
-tests/fe-text/Makefile
-tests/irc/Makefile
-tests/irc/core/Makefile
-tests/irc/flood/Makefile
-docs/Makefile
-docs/help/Makefile
-docs/help/in/Makefile
-utils/Makefile
-themes/Makefile
-irssi-1.pc
-])
-
-dnl ** make the paths like include headers later
-AC_CONFIG_LINKS([irssi/irssi-config.h:irssi-config.h])
-AC_LINK_FILES([$srcdir/src],[irssi/src])
-
-AC_OUTPUT
-$LN_S ../irssi-version.h irssi/irssi-version.h
-
-dnl ** for building from objdir
-old_dir=`pwd` && cd $srcdir && whole_dir=`pwd` && cd $old_dir
-if test "x$old_dir" != "x$whole_dir"; then
- $LN_S $srcdir/irssi-version.h irssi-version.h
- if test "x$want_perl" != "xno"; then
- subdirfiles=""
- for i in $whole_dir/src/perl/common $whole_dir/src/perl/irc $whole_dir/src/perl/ui $whole_dir/src/perl/textui; do
- subdirfiles=`echo $subdirfiles $i/typemap $i/*.h $i/*.pm $i/*.xs`
- done
- for file in $whole_dir/src/perl/module.h $subdirfiles; do
- link=`echo $file|$sedpath "s?$whole_dir/??"`
- rm -f $link
- $LN_S $file $link
- done
- fi
-fi
-
-echo
-
-echo "Building text frontend ........... : $want_textui"
-echo "Building irssi bot ............... : $want_irssibot"
-echo "Building irssi proxy ............. : $want_irssiproxy"
-if test "x$have_gmodule" = "xyes"; then
- echo "Building with module support ..... : yes"
-else
- echo "Building with module support : NO!! /LOAD will not work!"
- echo " - You're missing gmodule (comes with glib) for some reason,"
- echo " or it doesn't work in your system."
-fi
-
-if test "x$want_perl" = "xstatic"; then
- echo "Building with Perl support ....... : static (in irssi binary)"
-elif test "x$want_perl" = "xmodule"; then
- echo "Building with Perl support ....... : module"
-else
- if test -z "$perl_check_error"; then
- echo "Building with Perl support ....... : no"
- else
- echo "Building with Perl support ....... : NO!"
- echo " - $perl_check_error"
- if test -f /etc/debian_version; then
- echo " - Try: sudo apt-get install libperl-dev"
- elif test -f /etc/redhat-release; then
- echo " - Try installing perl-devel"
- fi
- fi
-fi
-
-if test "x$want_perl" != "xno" -a "x$perl_mod_error" != "x"; then
- echo " - NOTE: Perl support will be compiled statically to irssi, not as"
- echo " a module as requested. Reason:"
- echo " $perl_mod_error"
-
- if test -f /etc/debian_version; then
- echo " - Try: sudo apt-get install libperl-dev"
- fi
-fi
-
-if test "x$want_perl" != "xno"; then
- echo "Perl library directory ........... : ($perl_library_dir - $perl_use_lib)"
- if test "x$perl_prefix_note" = "xyes"; then
- echo " - NOTE: This was automatically set to the same directory you gave with"
- echo " --prefix. If you want the perl libraries to install to their 'correct'"
- echo " path, you'll need to give --with-perl-lib=site option to configure."
- echo " Anyway, installing perl to this directory should work just as well."
- fi
-fi
-echo "Install prefix ................... : $prefix"
-
-echo
-
-echo "Building with 64bit DCC support .. : $offt_64bit"
-echo "Building with true color support.. : $want_truecolor"
-echo "Building with GRegex ............. : $want_gregex"
-echo "Building with Capsicum ........... : $want_capsicum"
-echo "Building with utf8proc ........... : $want_utf8proc"
-if test "x$want_otr" = "xstatic"; then
- echo "Building with OTR support ........ : static (in irssi binary)"
-elif test "x$want_otr" = "xmodule"; then
- echo "Building with OTR support ........ : module"
-else
- echo "Building with OTR support ........ : no"
-fi
-
-
-echo
-echo "If there are any problems, read the INSTALL file."
diff --git a/docs/Makefile.am b/docs/Makefile.am
deleted file mode 100644
index 05ebb3195..000000000
--- a/docs/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-man_MANS = \
- irssi.1
-
-doc_DATA = \
- capsicum.txt \
- design.html \
- design.txt \
- formats.txt \
- manual.txt \
- faq.html \
- faq.txt \
- perl.txt \
- signals.txt \
- special_vars.txt \
- startup-HOWTO.html \
- startup-HOWTO.txt
-
-EXTRA_DIST = $(doc_DATA) $(man_MANS) \
- meson.build
-
-SUBDIRS = help
diff --git a/docs/New-users.html b/docs/New-users.html
new file mode 100644
index 000000000..496f319e3
--- /dev/null
+++ b/docs/New-users.html
@@ -0,0 +1,110 @@
+
+New users guide
+
+New to IRC
+Internet Relay Chat was created in 1988 and has hardly changed. It can be used to exchange text messages (one message = single line) with other people, either privately (called query, PM, private message, MSG) or in a room (channel). Pictures are shared by uploading them to a temporary host like https://pomf.lain.la/ and then pasting the HTTP links. Code snippets or longer texts are shared by pasting them to a Pastebin like https://paste.opensuse.org/ and then sharing the HTTP link.
+IRC does not have message history. You can only receive replies while your computer is turned on and connected to the channel you want to follow. Some people run their IRC programs on remote servers for that reason.
+IRC is organised into networks. Each network consists of many servers. It (mostly) does not matter which server you connect to as long as it belongs to the network you want to use. Irssi supports connections to many networks at the same time.
+Each network contains many channels, rooms that are often dedicated to discussing a specific topic. You can find many channels on https://netsplit.de/ or using a search engine with the keyword “IRC”. Irssi supports joining many channels at the same time.
+There is a rather large IRC network catering to free and open-source software and peer directed projects at https://libera.chat/ and a smaller one at https://www.oftc.net/ – many free software projects still have support channels on these IRC networks (although some have moved to Matrix or proprietary platforms like Discord).
+
+
+First start
+After (compiling and) installing Irssi, to start it, open a shell (Terminal) and type:
+
+You should be greeted by a blinking cursor behind [(status)]. You are now in the status window of Irssi. Window is the Irssi name for what you might nowadays call a “Web browser tab”.
+If you’re confused about what you are seeing on the Irssi screen, you can find an annotated screenshot of it at User interface.
+If you want, you can pick a nick name (handle) that will be shown to others reading your messages now, by typing
+
+Each command or message can be sent by pressing Enter. Commands in Irssi start with a /. If there is no /, then the line that you wrote will be sent as a message to the channel that you have open, for everyone to see.
+
+Leaving
+Type /quit to get out of Irssi.
+
+
+
+Connecting to a network
+Irssi comes with some predefined networks. You can see the current list of networks by typing
+
+(the list will be shown in your status window)
+To connect to one of the networks in the list, type /connect networkname, for example:
+
+You should see several messages scroll by. After a while, you should be connected to the Libera Chat network.
+
+
+Nickname registration
+Many IRC networks (but not all) offer a way to register a user account. Sometimes (but not on all networks) the account registration also includes reserving a nick for you. How to register also differs by network. Some channels only allow users with registered accounts to join them, so it may be very important for you to register a user account.
+User accounts are always specific to a network.
+For the Libera Chat network, you can find instructions how to register and set up your account with Irssi on https://github.com/shabble/irssi-docs/wiki/liberachat#configure-sasl-automated-log-in
+
+
+
+Joining a channel
+Once you are connected to a network, you can join channels by typing /join #channelname, for example:
+
+Now, a new window will open and you can send messages to the channel.
+
+Changing windows
+You can change between windows using the Ctrl+n or Ctrl+p keys, or–if your terminal is configured properly–using Alt+1, Alt+2, … See bind -list for a list of all default key bindings.
+
+
+Removing clutter
+By default, Irssi shows when someone joins or leaves a channel. These messages can waste a lot of lines and obscure the actual chat. To hide them, type
+/window hidelevel +joins +parts +quits
+
+
+To get them back
+/window hidelevel -joins -parts -quits
+
+
+If you want to hide them by default, /set window_default_hidelevel hidden joins parts quits
+
+
+
+Adding a new network
+If you want to join a network that is not there, you first need to find at least one server of that network. Let’s say you have found the room #hackint on netsplit.de and want to join it. Then you can find that the server is irc.hackint.org, port 6697, SSL (TLS) on. To add it to Irssi, use the commands:
+/network add hackint
+/server add -tls -network hackint irc.hackint.org 6697
+
+
+Then, you can connect to the newly added network with
+
+
+Multiple networks
+If you are connected to multiple networks, you can change which one you are “talking” to (which one to send commands) by using the Ctrl+x key in the status window.
+
+
+
+On-line help
+Most /commands have a help page, you can read it with
+
+or on-line.
+The settings that can be changed with /SET are described on Settings Documentation – the settingshelp script can be used to read it from within /help
+
+
+About Scripts
+You can enhance your Irssi by installing scripts. Many Perl scripts written by other Irssi users can be found on https://scripts.irssi.org/
+Most of them should be compatible with Irssi 1.4 (but some may not, also see the Full Change log for some incompatible ones)
+
+
+About Themes
+Irssi’s look can be thoroughly changed with themes. Many themes created by other Irssi users can be found on https://themes.irssi.org/
+If you want to modify the look of Irssi yourself, the default theme which can be found in your ~/.irssi folder is a good starting point. It also has a few comments explaining what some of the abstracts are used for
+
\ No newline at end of file
diff --git a/docs/New-users.txt b/docs/New-users.txt
new file mode 100644
index 000000000..5c5a268c2
--- /dev/null
+++ b/docs/New-users.txt
@@ -0,0 +1,193 @@
+# New users guide #
+
+## New to IRC ##
+
+Internet Relay Chat was created in 1988 and has hardly changed. It can be used
+to exchange text messages (one message = single line) with other people, either
+privately (called query, PM, private message, MSG) or in a room (channel).
+Pictures are shared by uploading them to a temporary host like [1]https://
+pomf.lain.la/ and then pasting the HTTP links. Code snippets or longer texts
+are shared by pasting them to a Pastebin like [2]https://paste.opensuse.org/
+and then sharing the HTTP link.
+
+IRC does not have message history. You can only receive replies while your
+computer is turned on and connected to the channel you want to follow. Some
+people run their IRC programs on remote servers for that reason.
+
+IRC is organised into networks. Each network consists of many servers. It
+(mostly) does not matter which server you connect to as long as it belongs to
+the network you want to use. Irssi supports connections to many networks at the
+same time.
+
+Each network contains many channels, rooms that are often dedicated to
+discussing a specific topic. You can find many channels on [3]https://
+netsplit.de/ or using a search engine with the keyword “IRC”. Irssi supports
+joining many channels at the same time.
+
+There is a rather large IRC network catering to free and open-source software
+and peer directed projects at [4]https://libera.chat/ and a smaller one at [5]
+https://www.oftc.net/ – many free software projects still have support channels
+on these IRC networks (although some have moved to Matrix or proprietary
+platforms like Discord).
+
+## First start ##
+
+After (compiling and) installing Irssi, to start it, open a shell (Terminal)
+and type:
+
+irssi
+
+You should be greeted by a blinking cursor behind [(status)]. You are now in
+the status window of Irssi. Window is the Irssi name for what you might
+nowadays call a “Web browser tab”.
+
+If you’re confused about what you are seeing on the Irssi screen, you can find
+an annotated screenshot of it at [6]User interface.
+
+If you want, you can pick a nick name (handle) that will be shown to others
+reading your messages now, by typing
+
+/set nick whatyouwant
+
+Each command or message can be sent by pressing Enter. Commands in Irssi start
+with a /. If there is no /, then the line that you wrote will be sent as a
+message to the channel that you have open, for everyone to see.
+
+### Leaving ###
+
+Type /quit to get out of Irssi.
+
+## Connecting to a network ##
+
+Irssi comes with some predefined networks. You can see the current list of
+networks by typing
+
+/network
+
+(the list will be shown in your status window)
+
+To connect to one of the networks in the list, type /connect networkname, for
+example:
+
+/connect liberachat
+
+You should see several messages scroll by. After a while, you should be
+connected to the Libera Chat network.
+
+Attention
+
+Irssi version 1.2 or older may be lacking the liberachat network entry. See [7]
+https://github.com/shabble/irssi-docs/wiki/liberachat for how to add it.
+
+### Nickname registration ###
+
+Many IRC networks (but not all) offer a way to register a user account.
+Sometimes (but not on all networks) the account registration also includes
+reserving a nick for you. How to register also differs by network. Some
+channels only allow users with registered accounts to join them, so it may be
+very important for you to register a user account.
+
+User accounts are always specific to a network.
+
+For the Libera Chat network, you can find instructions how to register and set
+up your account with Irssi on [8]https://github.com/shabble/irssi-docs/wiki/
+liberachat#configure-sasl-automated-log-in
+
+## Joining a channel ##
+
+Once you are connected to a network, you can join channels by typing /join #
+channelname, for example:
+
+/join #irssi
+
+Now, a new window will open and you can send messages to the channel.
+
+### Changing windows ###
+
+You can change between windows using the Ctrl+n or Ctrl+p keys, or–if your
+terminal is configured properly–using Alt+1, Alt+2, … See [9]bind -list for a
+list of all default key bindings.
+
+### Removing clutter ###
+
+By default, Irssi shows when someone joins or leaves a channel. These messages
+can waste a lot of lines and obscure the actual chat. To hide them, type
+
+/window hidelevel +joins +parts +quits
+
+To get them back
+
+/window hidelevel -joins -parts -quits
+
+If you want to hide them by default, /set window_default_hidelevel hidden joins
+parts quits
+
+## Adding a new network ##
+
+If you want to join a network that is not there, you first need to find at
+least one server of that network. Let’s say you have found the room [10]#
+hackint on netsplit.de and want to join it. Then you can find that the [11]
+server is irc.hackint.org, port 6697, SSL (TLS) on. To add it to Irssi, use the
+commands:
+
+/network add hackint
+/server add -tls -network hackint irc.hackint.org 6697
+
+Then, you can connect to the newly added network with
+
+/connect hackint
+
+### Multiple networks ###
+
+If you are connected to multiple networks, you can change which one you are
+“talking” to (which one to send commands) by using the Ctrl+x key in the status
+window.
+
+## On-line help ##
+
+Most /commands have a help page, you can read it with
+
+/help commandname
+
+or [12]on-line.
+
+The settings that can be changed with /SET are described on [13]Settings
+Documentation – the settingshelp [14]script can be used to read it from within
+/help
+
+## About Scripts ##
+
+You can enhance your Irssi by installing scripts. Many Perl scripts written by
+other Irssi users can be found on [15]https://scripts.irssi.org/
+
+Most of them should be compatible with Irssi 1.4 (but some may not, also see
+the Full Change log for some incompatible ones)
+
+## About Themes ##
+
+Irssi’s look can be thoroughly changed with themes. Many themes created by
+other Irssi users can be found on [16]https://themes.irssi.org/
+
+If you want to modify the look of Irssi yourself, the default theme which can
+be found in your ~/.irssi folder is a good starting point. It also has a few
+comments explaining what some of the abstracts are used for
+
+
+References:
+
+[1] https://pomf.lain.la/
+[2] https://paste.opensuse.org/
+[3] https://netsplit.de/
+[4] https://libera.chat/
+[5] https://www.oftc.net/
+[6] https://irssi.org/User-interface/
+[7] https://github.com/shabble/irssi-docs/wiki/liberachat
+[8] https://github.com/shabble/irssi-docs/wiki/liberachat#configure-sasl-automated-log-in
+[9] https://irssi.org/documentation/help/bind_-list/
+[10] https://netsplit.de/channels/details.php?room=%23hackint&net=hackint
+[11] https://netsplit.de/servers/?net=hackint
+[12] https://irssi.org/documentation/help/
+[13] https://irssi.org/documentation/settings/
+[14] https://irssi.org/New-users/#about-scripts
+[15] https://scripts.irssi.org/
+[16] https://themes.irssi.org/
diff --git a/docs/capsicum.txt b/docs/capsicum.txt
index a3a1b8a78..d2ad920c2 100644
--- a/docs/capsicum.txt
+++ b/docs/capsicum.txt
@@ -9,13 +9,13 @@ To make Irssi enter capability mode on startup, add
capsicum = "yes";
awaylog_file = "~/irclogs/away.log";
-to your ~/.irssi/config and restart the client. Alternatively you can
-enter it "by hand", using the "/capsicum enter" command. From the security
-point of view it's strongly preferable to use the former method, to avoid
-establishing connections without the sandbox protection; the "/capsicum"
-command is only intended for experimentation, and in cases where you need
-to do something that's not possible in capability mode - run scripts,
-for example - before continuing.
+to your ~/.irssi/config in the settings/core section, and restart the
+client. Alternatively you can enter it "by hand", using the
+"/capsicum enter" command. From the security point of view it's strongly
+preferable to use the former method, to avoid establishing connections
+without the sandbox protection; the "/capsicum" command is only intended
+for experimentation, and in cases where you need to do something that's not
+possible in capability mode - run scripts, for example - before continuing.
There is no way to leave the capability mode, apart from exiting Irssi.
When running in capability mode, there are certain restrictions - Irssi
diff --git a/docs/design.html b/docs/design.html
index 3865a7fbc..e4f9bb060 100644
--- a/docs/design.html
+++ b/docs/design.html
@@ -162,4 +162,4 @@ IRC UI module
placing channels and queries in windows
nick completion
printing infomation of some events
-
\ No newline at end of file
+
diff --git a/docs/faq.html b/docs/faq.html
index 7c17f45dd..7909b5b46 100644
--- a/docs/faq.html
+++ b/docs/faq.html
@@ -2,7 +2,7 @@
Frequently Asked Questions
-A: They force ANSI colors even if terminal doesn’t support them. By default, irssi uses colors only if terminfo/termcap so says. The correct way to fix this would be to change your TERM environment to a value where colors work, like xterm-color or color_xterm (eg. TERM=xterm-color irssi). If this doesn’t help, then use the evil way of /SET term_force_colors ON.
+A: They force ANSI colors even if terminal doesn’t support them. By default, irssi uses colors only if terminfo/termcap so says. The correct way to fix this would be to change your TERM environment to a value where colors work, like xterm-256color or color_xterm (eg. TERM=xterm-256color irssi). If this doesn’t help, then use the evil way of /SET term_force_colors ON.
Q: How do I easily write text to channel that starts with ‘/’ character?
@@ -54,7 +54,7 @@ A: tmux, screen and dtach can be used to do it just fine.
+A: tmux, screen and dtach can be used to do it just fine.
Q: How do I run scripts automatically at startup?
@@ -78,4 +78,4 @@ Q: How do I add the
-
A: Check here
\ No newline at end of file
+A: Check here
diff --git a/docs/faq.txt b/docs/faq.txt
index 0d0b5f461..0fcc156aa 100644
--- a/docs/faq.txt
+++ b/docs/faq.txt
@@ -4,8 +4,8 @@ Q: Why doesn’t irssi display colors even when ircii etc. displays them?
A: They force ANSI colors even if terminal doesn’t support them. By default,
irssi uses colors only if terminfo/termcap so says. The correct way to fix this
would be to change your TERM environment to a value where colors work, like
- xterm-color or color_xterm (eg. TERM=xterm-color irssi). If this doesn’t help,
- then use the evil way of /SET term_force_colors ON.
+ xterm-256color or color_xterm (eg. TERM=xterm-256color irssi). If this doesn’t
+ help, then use the evil way of /SET term_force_colors ON.
Q: How do I easily write text to channel that starts with ‘/’ character?
A: / /text
@@ -119,6 +119,6 @@ A: Check [6]here
[1] https://github.com/irssi-import/xirssi
[2] https://tmux.github.io/
[3] https://www.gnu.org/software/screen/screen.html
- [4] http://dtach.sf.net/
+ [4] https://sourceforge.net/projects/dtach/
[5] https://dgl.cx/irssi/hack-whois-in-current-window.pl
[6] https://irssi.org/assets/irssi.wav
diff --git a/docs/help/Makefile.am.gen b/docs/help/Makefile.am.gen
deleted file mode 100644
index 917abe64a..000000000
--- a/docs/help/Makefile.am.gen
+++ /dev/null
@@ -1,13 +0,0 @@
-# Makefile.am is autogenerated by autogen.sh from Makefile.am.gen
-
-helpdir = $(datadir)/irssi/help
-
-help_DATA = \
-@HELPFILES@
-
-EXTRA_DIST = \
- Makefile.am.gen \
- $(help_DATA) \
- meson.build
-
-SUBDIRS = in
diff --git a/docs/help/in/Makefile.am.gen b/docs/help/in/Makefile.am.gen
deleted file mode 100644
index 9b0f2aaa1..000000000
--- a/docs/help/in/Makefile.am.gen
+++ /dev/null
@@ -1,5 +0,0 @@
-# Makefile.am is autogenerated by autogen.sh from Makefile.am.gen
-
-EXTRA_DIST = \
- Makefile.am.gen \
-@HELPFILES@
diff --git a/docs/help/in/admin.in b/docs/help/in/admin.in
index cfe66eba9..acb6e1ae4 100644
--- a/docs/help/in/admin.in
+++ b/docs/help/in/admin.in
@@ -15,7 +15,7 @@
%9Examples:%9
/ADMIN
- /ADMIN irc.example.com
+ /ADMIN irc.libera.chat
/ADMIN mike
%9See also:%9 INFO
diff --git a/docs/help/in/bind.in b/docs/help/in/bind.in
index 8fcc744b4..761d971e3 100644
--- a/docs/help/in/bind.in
+++ b/docs/help/in/bind.in
@@ -17,13 +17,15 @@ Details:
Adds or removes a binding; the binding itself is case-sensitive and may
contain as many characters as you want.
- Uppercase characters usually indicate that you need to keep the shift-key
- pressed to use the binding.
+ Key bindings are case sensitive so uppercase letters mean you also have
+ to use the shift key, except for ctrl which does not support shift but
+ the keys must always be typed in uppercase.
%9Examples:%9
/BIND
/BIND meta-c /CLEAR
+ /BIND meta-C /CYCLE
/BIND meta-q change_window 16
/BIND -delete meta-y
/BIND ^W^C /WINDOW NEW HIDE
diff --git a/docs/help/in/channel.in b/docs/help/in/channel.in
index 0e15b6d50..d9be8cf5f 100644
--- a/docs/help/in/channel.in
+++ b/docs/help/in/channel.in
@@ -33,12 +33,12 @@
/CHANNEL
/CHANNEL LIST
- /CHANNEL ADD -auto #irssi ExampleNet
+ /CHANNEL ADD -auto #irssi liberachat
/CHANNEL ADD -auto #basementcat Quakenet secret_lair
- /CHANNEL ADD -auto -bots '*!@*.irssi.org *!bot@irssi.org' -botcmd 'msg $0 op WzerTrzq' #hideout ExampleNet
+ /CHANNEL ADD -auto -bots '*!@*.irssi.org *!bot@irssi.org' -botcmd 'msg $0 op WzerTrzq' #hideout liberachat
/CHANNEL ADD -auto -bots 'Q!TheQBot@CServe.quakenet.org' -botcmd '^MSG Q op #irssi' #irssi Quakenet
- /CHANNEL MODIFY -noauto #irssi ExampleNet
- /CHANNEL REMOVE #hideout ExampleNet
+ /CHANNEL MODIFY -noauto #irssi liberachat
+ /CHANNEL REMOVE #hideout liberachat
%9Special Example:%9
diff --git a/docs/help/in/connect.in b/docs/help/in/connect.in
index 4d59dde13..4c6acc90b 100644
--- a/docs/help/in/connect.in
+++ b/docs/help/in/connect.in
@@ -17,6 +17,7 @@
-tls_ciphers: TLS cipher suite preference lists.
-tls_pinned_cert: Pinned x509 certificate fingerprint.
-tls_pinned_pubkey: Pinned public key fingerprint.
+ -nocap: Disable CAPREQ during connect
-noproxy: Ignores the global proxy configuration.
-network: The network this connection belongs to.
-host: The hostname you would like to connect from.
@@ -34,9 +35,9 @@
%9Examples:%9
- /CONNECT ExampleNet
- /CONNECT -6 ExampleNet
- /CONNECT -4 -! -host staff.irssi.org -network ExampleNet irc.example.com
+ /CONNECT liberachat
+ /CONNECT -6 liberachat
+ /CONNECT -4 -! -host staff.irssi.org -network liberachat irc.libera.chat
/CONNECT irc.irssi.org 6667 WzerT8zq mike
%9See also:%9 DISCONNECT, RMRECONNS, SERVER
diff --git a/docs/help/in/disconnect.in b/docs/help/in/disconnect.in
index 88772e1e1..c53b1e60b 100644
--- a/docs/help/in/disconnect.in
+++ b/docs/help/in/disconnect.in
@@ -18,7 +18,7 @@
%9Examples:%9
- /DISCONNECT ExampleNet I'm off for today, take care!
+ /DISCONNECT liberachat I'm off for today, take care!
/DISCONNECT * Vacation time :D
/DISCONNECT
diff --git a/docs/help/in/eval.in b/docs/help/in/eval.in
index b2d4b6254..c53c62484 100644
--- a/docs/help/in/eval.in
+++ b/docs/help/in/eval.in
@@ -10,13 +10,23 @@
%9Description:%9
Evaluates the given commands and executes them; you can use internal
- variables and separate multiple commands by using the ';' character.
+ variables and separate multiple commands by using the `;' character.
+ If the command contains a string with `$', `\' or `;' those characters
+ need to be escaped:
+
+ `$' -> `$$'
+ `\' -> `\\' (or even `\\\\', depending on where they are used)
+ `;' -> `\;'
%9Examples:%9
/EVAL echo I am connected to ${S} on ${chatnet} as ${N}
/EVAL echo My user privileges are +${usermode}; echo Let's party!
+ to print `1;2$3\4':
+
+ /EVAL echo 1\;2$$3\\4
+
%9References:%9
https://github.com/irssi/irssi/blob/master/docs/special_vars.txt
diff --git a/docs/help/in/ignore.in b/docs/help/in/ignore.in
index 0fbf970d3..26dd63bb7 100644
--- a/docs/help/in/ignore.in
+++ b/docs/help/in/ignore.in
@@ -14,6 +14,8 @@
-network: Ignores only on a specific network.
-channels: Ignores only on specific channels.
-time: The timeout to automatically remove the ignore.
+ Accepts units specified in days, hours, minutes, seconds,
+ milliseconds, or no unit for seconds.
The mask, channels and levels to ignore; if no argument is provided, the
list of ignores will be displayed.
@@ -27,6 +29,8 @@
because it is allowed in addition to other ignores for the same target.
The special level 'HIDDEN' can be used to hide matching messages that can
later be revealed using /WINDOW HIDELEVEL -HIDDEN
+ The special level 'NOHILIGHT' can be used to suppress hilights without actually
+ ignoring the message.
%9Examples:%9
@@ -44,6 +48,8 @@
/IGNORE #irssi NO_ACT JOINS PARTS QUITS
/IGNORE mike NO_ACT -MSGS
/IGNORE mike HIDDEN PUBLIC JOINS PARTS QUITS
+ /IGNORE -time 5days christmas PUBLICS
+ /IGNORE -time 300 mike PUBLICS
%9See also:%9 ACCEPT, SILENCE, UNIGNORE
diff --git a/docs/help/in/info.in b/docs/help/in/info.in
index 415785016..d8d8cfc98 100644
--- a/docs/help/in/info.in
+++ b/docs/help/in/info.in
@@ -15,7 +15,7 @@
%9Examples:%9
/INFO
- /INFO irc.example.com
+ /INFO irc.libera.chat
%9See also:%9 ADMIN
diff --git a/docs/help/in/join.in b/docs/help/in/join.in
index 55190267d..adf7158e8 100644
--- a/docs/help/in/join.in
+++ b/docs/help/in/join.in
@@ -20,7 +20,7 @@
/JOIN #irssi
/JOIN #basementcat secret_lair
/JOIN -invite
- /JOIN -ExampleNet #github,#example,#irssi
+ /JOIN -liberachat #github,#libera,#irssi
%9See also:%9 KICK, PART
diff --git a/docs/help/in/knock.in b/docs/help/in/knock.in
index 3e2fdbdb4..ce8f9aa02 100644
--- a/docs/help/in/knock.in
+++ b/docs/help/in/knock.in
@@ -23,7 +23,7 @@
%9Examples:%9
/KNOCK #irssi
- /KNOCK #example
+ /KNOCK #libera
/KNOCK #github
%9See also:%9 INVITE, JOIN
diff --git a/docs/help/in/levels.in b/docs/help/in/levels.in
index 99f3070ae..3c61263dd 100644
--- a/docs/help/in/levels.in
+++ b/docs/help/in/levels.in
@@ -20,9 +20,10 @@
MODES A channel mode is modified.
MSGS Private messages.
NICKS A nickname changes to another nickname.
- NOTICES Notices sent from a nickname.
+ NOTICES Private notices.
PARTS A nickname leaves a channel.
PUBLIC Public messages in a channel.
+ PUBNOTICES Public notices in a channel.
QUITS A nickname disconnects from IRC.
SNOTES Notices sent from a server.
TOPICS A channel topic is modified.
@@ -35,6 +36,7 @@
HIDDEN Hides the message when window HIDELEVEL includes HIDDEN.
NO_ACT Doesn't trigger any activity in the statusbar.
NOHILIGHT The text is not highlighted.
+ Suppresses hilights when used with /ignore.
When using levels from Irssi scripts, you need to prepend the level with
'MSGLEVEL_'; for example 'CRAP' becomes 'MSGLEVEL_CRAP'.
diff --git a/docs/help/in/log.in b/docs/help/in/log.in
index dfe26e30e..3ca8782ce 100644
--- a/docs/help/in/log.in
+++ b/docs/help/in/log.in
@@ -33,10 +33,10 @@
%9Examples:%9
/LOG OPEN -targets mike ~/irclogs/mike.log MSGS
- /LOG OPEN -targets #irssi ~/irclogs/ExampleNet/irssi-%%Y-%%m-%%d
- /LOG CLOSE ~/irclogs/ExampleNet/irssi-%%Y-%%m-%%d
- /LOG STOP ~/irclogs/ExampleNet/irssi-%%Y-%%m-%%d
- /LOG START ~/irclogs/ExampleNet/irssi-%%Y-%%m-%%d
+ /LOG OPEN -targets #irssi ~/irclogs/liberachat/irssi-%%Y-%%m-%%d
+ /LOG CLOSE ~/irclogs/liberachat/irssi-%%Y-%%m-%%d
+ /LOG STOP ~/irclogs/liberachat/irssi-%%Y-%%m-%%d
+ /LOG START ~/irclogs/liberachat/irssi-%%Y-%%m-%%d
/SET autolog ON
diff --git a/docs/help/in/lusers.in b/docs/help/in/lusers.in
index f9edf5355..99089fb78 100644
--- a/docs/help/in/lusers.in
+++ b/docs/help/in/lusers.in
@@ -5,7 +5,7 @@
%9Parameters:%9
- The server to search on and the remote sever to search on; if no arguments
+ The server to search on and the remote server to search on; if no arguments
are given, the active server will be used.
%9Description:%9
diff --git a/docs/help/in/motd.in b/docs/help/in/motd.in
index ee1233b2f..6e86681ef 100644
--- a/docs/help/in/motd.in
+++ b/docs/help/in/motd.in
@@ -15,7 +15,7 @@
%9Examples:%9
/MOTD
- /MOTD irc.example.com
+ /MOTD irc.libera.chat
/MOTD bob
%9See also:%9 ADMIN, INFO, LINKS, MAP
diff --git a/docs/help/in/names.in b/docs/help/in/names.in
index deccea403..974b845f7 100644
--- a/docs/help/in/names.in
+++ b/docs/help/in/names.in
@@ -21,7 +21,7 @@
%9Examples:%9
/NAMES -ops
- /NAMES -voices #irssi,#example
+ /NAMES -voices #irssi,#libera
%9See also:%9 JOIN, PART, WHO, WHOIS
diff --git a/docs/help/in/nctcp.in b/docs/help/in/nctcp.in
index 68d789d60..9f5167307 100644
--- a/docs/help/in/nctcp.in
+++ b/docs/help/in/nctcp.in
@@ -15,7 +15,7 @@
%9Examples:%9
/NCTCP #irssi VERSION King of the Jungle v1.0
- /NCTCP bob,#example USERINFO I am bob :p
+ /NCTCP bob,#libera USERINFO I am bob :p
%9See also:%9 CTCP
diff --git a/docs/help/in/network.in b/docs/help/in/network.in
index 183fd5b5c..16ff9f47b 100644
--- a/docs/help/in/network.in
+++ b/docs/help/in/network.in
@@ -18,7 +18,8 @@
-usermode: Specifies the user modes to set on yourself.
-autosendcmd: Specifies the commands, separated by the ';' character,
and enclosed within two "'" characters, to perform after
- connecting.
+ connecting.
+ (Some characters need to be escaped - see /help eval)
-querychans: Specifies the maximum number of channels to put in one MODE
or WHO command when synchronizing.
-whois: Specifies the maximum number of nicknames in one WHOIS
@@ -35,8 +36,8 @@
-cmdmax: Specifies the maximum number of commands to perform before
starting the internal flood protection.
-sasl_mechanism Specifies the mechanism to use for the SASL authentication.
- At the moment irssi only supports the 'plain' and the
- 'external' mechanisms.
+ Irssi supports: PLAIN, EXTERNAL, SCRAM-SHA-1, SCRAM-SHA-256
+ and SCRAM-SHA-512
Use '' to disable the authentication.
-sasl_username Specifies the username to use during the SASL authentication.
-sasl_password Specifies the password to use during the SASL authentication.
@@ -59,11 +60,11 @@
%9Examples:%9
/NETWORK ADD -usermode +giw EFnet
- /NETWORK ADD -usermode +iw -nick mike -realname 'The one and only mike!' -host staff.irssi.org ExampleNet
- /NETWORK ADD -autosendcmd '^MSG NickServ identify WzerT8zq' ExampleNet
+ /NETWORK ADD -usermode +iw -nick mike -realname 'The one and only mike!' -host staff.irssi.org liberachat
+ /NETWORK ADD -autosendcmd '^MSG NickServ identify WzerT8zq' liberachat
/NETWORK ADD -autosendcmd '^MSG Q@CServe.quakenet.org AUTH mike WzerT8zq; WAIT 2000; OPER mike WzerT8zq; WAIT 2000; MODE mike +kXP' Quakenet
/NETWORK MODIFY -usermode +gi EFnet
- /NETWORK REMOVE ExampleNet
+ /NETWORK REMOVE liberachat
%9See also:%9 CHANNEL, CONNECT, SERVER
diff --git a/docs/help/in/otr.in b/docs/help/in/otr.in
index f76a2d532..fcfcd8752 100644
--- a/docs/help/in/otr.in
+++ b/docs/help/in/otr.in
@@ -51,7 +51,7 @@ GENKEY
This process is done in a background worker and can take an arbitrary
amount of time. The completion is checked when another irssi event is
- catched.
+ caught.
HELP
Print this help.
diff --git a/docs/help/in/part.in b/docs/help/in/part.in
index 51be59bd0..f89769cc0 100644
--- a/docs/help/in/part.in
+++ b/docs/help/in/part.in
@@ -14,7 +14,7 @@
%9Examples:%9
/PART #irssi
- /PART #example,#irssi
+ /PART #libera,#irssi
%9See also:%9 JOIN, KICK
diff --git a/docs/help/in/query.in b/docs/help/in/query.in
index 85f2556ef..a34f85e80 100644
--- a/docs/help/in/query.in
+++ b/docs/help/in/query.in
@@ -17,8 +17,8 @@
%9Examples:%9
/QUERY mike
- /QUERY -ExampleNet bob
- /QUERY -ExampleNet -window sarah
+ /QUERY -liberachat bob
+ /QUERY -liberachat -window sarah
%9See also:%9 MSG, UNQUERY, WINDOW
diff --git a/docs/help/in/recode.in b/docs/help/in/recode.in
index c34822de9..760c66cdb 100644
--- a/docs/help/in/recode.in
+++ b/docs/help/in/recode.in
@@ -22,7 +22,7 @@
%9Examples:%9
/RECODE
- /RECODE ADD ExampleNet/mike utf-8
+ /RECODE ADD liberachat/mike utf-8
/RECODE ADD #korea euc-kr
/RECODE REMOVE #korea
diff --git a/docs/help/in/reconnect.in b/docs/help/in/reconnect.in
index f2148c90d..87beb95a1 100644
--- a/docs/help/in/reconnect.in
+++ b/docs/help/in/reconnect.in
@@ -15,7 +15,7 @@
%9Examples:%9
/RECONNECT
- /RECONNECT ExampleNet
+ /RECONNECT liberachat
/RECONNECT EFnet BRB :)
%9See also:%9 CONNECT, DISCONNECT, NETWORK, RMRECONNS, SERVER
diff --git a/docs/help/in/scrollback.in b/docs/help/in/scrollback.in
index 5f59d842e..e91513cd9 100644
--- a/docs/help/in/scrollback.in
+++ b/docs/help/in/scrollback.in
@@ -20,10 +20,10 @@
%9Description:%9
- Manipulate the text in the window to go to a to the given line number, or
+ Manipulate the text in the window to go to the given line number, or
clear the buffers.
- The timestamp format is format is '[dd[.mm] | -] hh:mi[:ss]'.
+ The timestamp format is '[dd[.mm] | -] hh:mi[:ss]'.
%9Examples:%9
diff --git a/docs/help/in/server.in b/docs/help/in/server.in
index 8a4d8887a..84b5ad78c 100644
--- a/docs/help/in/server.in
+++ b/docs/help/in/server.in
@@ -5,7 +5,7 @@
%9Parameters:%9
- LIST: Displays the list of servers you are connected to.
+ LIST: Displays the list of servers you have configured.
CONNECT: Connects to the given server.
ADD: Adds a server to your configuration.
MODIFY: Modifies a server in your configuration.
@@ -16,11 +16,13 @@
-4: Connects using IPv4.
-6: Connects using IPv6.
-tls: Connects using TLS encryption.
+ -notls: Connect without TLS encrption.
-tls_cert: The TLS client certificate file.
-tls_pkey: The TLS client private key, if not included in the
certificate file.
-tls_pass: The password for the TLS client private key or certificate.
- -tls_verify: Verifies the TLS certificate of the server.
+ -tls_verify: Verifies the TLS certificate of the server.
+ -notls_verify: Doesn't verify the TLS certificate of the server.
-tls_cafile: The file with the list of CA certificates.
-tls_capath: The directory which contains the CA certificates.
-tls_ciphers: TLS cipher suite preference lists.
@@ -28,6 +30,8 @@
-tls_pinned_pubkey: Pinned public key fingerprint.
-auto: Automatically connects to the server on startup.
-noauto: Doesn't connect to the server on startup.
+ -cap: Enable CAPREQ for server.
+ -nocap: Disable CAPREQ for server.
-network: The network the server belongs to.
-host: The hostname you would like to connect from.
-cmdspeed: Specifies the minimum amount of time, expressed in
@@ -51,25 +55,24 @@
When using the ADD parameter on a server that already exists, the
configuration will be merged with each other.
- When using the command without any of the given parameters, it will
- connect to the specified server; the server in the active window will be
- disconnected unless you prepend the server with the '+' character; the same
- method is applicable to the CONNECT parameter.
+ When using the CONNECT parameter, it will connect to the specified
+ server; the server in the active window will be disconnected
+ unless you prepend the server with the '+' character.
Specify '-' as password to remove a server password
%9Examples:%9
/SERVER
- /SERVER CONNECT irc.example.com
- /SERVER CONNECT +irc.example.com
- /SERVER ADD -network ExampleNet -noautosendcmd irc.example.com
- /SERVER ADD -! -auto -host staff.irssi.org -4 -network ExampleNet -noproxy irc.example.com 6667
- /SERVER MODIFY -network ExampleNet -noauto irc.example.com
- /SERVER MODIFY -network ExampleNet irc.example.com 6697 -
- /SERVER REMOVE irc.example.com 6667 ExampleNet
+ /SERVER CONNECT irc.libera.chat
+ /SERVER CONNECT +irc.libera.chat
+ /SERVER ADD -network liberachat -noautosendcmd irc.libera.chat
+ /SERVER ADD -! -auto -host staff.irssi.org -4 -network liberachat -noproxy irc.libera.chat 6667
+ /SERVER MODIFY -network liberachat -noauto irc.libera.chat
+ /SERVER MODIFY -network liberachat irc.libera.chat 6697 -
+ /SERVER REMOVE irc.libera.chat 6667 liberachat
/SERVER PURGE
- /SERVER PURGE irc.example.com
+ /SERVER PURGE irc.libera.chat
%9See also:%9 CHANNEL, CONNECT, DISCONNECT, NETWORK, RECONNECT, RMRECONNS
diff --git a/docs/help/in/statusbar.in b/docs/help/in/statusbar.in
index fd7645376..ac57ca5fd 100644
--- a/docs/help/in/statusbar.in
+++ b/docs/help/in/statusbar.in
@@ -10,7 +10,7 @@
RESET: Restores the default statusbar configuration.
ADDITEM: Adds an item to the specified statusbar. It can be set to
appear before/after another item and left/right aligned
- to a specified position on the screen.
+ on the screen.
MODIFYITEM: Changes an item position inside a bar.
REMOVEITEM: Removes an item from the specified statusbar.
INFO: List the current details and items of the specified
@@ -18,15 +18,16 @@
-disable: Removes a statusbar from the list.
-type: Sets the type of statusbar, for each split window or only
- for the current root screen.
+ once at the root (very top or bottom) of the screen.
-placement: Sets the placement of the statusbar, either at the top or
- the bottom of the screen.
+ the bottom of the screen or split window.
-position: Sets the position of the statusbar. Represented as a
- number, with 0 implying the first position.
- -visible: Sets the visibility of the statusbar or item. If set to
- always it is visible on all screens, otherwise if set to
- inactive or active then it is only visible on inactive
- or active screens, respectively.
+ number, with smaller numbers implying a position further
+ to the top.
+ -visible: Sets the visibility of the statusbar. If set to always,
+ it is visible on all split windows, otherwise if set to
+ inactive or active then it is only visible on inactive or
+ active split windows, respectively.
-before: This item is added before the other item.
-after: This item is added after the other item.
-priority: When the statusbar items overflow, the item with the
@@ -35,8 +36,10 @@
quoted (e.g. -priority "-1")
-alignment: Display the item on the right side.
- Where statusbar refers to the name of the statusbar; if no argument is
- given, the entire list of statusbars will be displayed.
+ Where statusbar refers to the name of the statusbar; if no
+ argument is given, or `LIST` is given, the entire list of
+ statusbars along with a quick overview of their properties will be
+ displayed.
%9Description:%9
diff --git a/docs/help/in/toggle.in b/docs/help/in/toggle.in
index f87a6462b..9469ba5c0 100644
--- a/docs/help/in/toggle.in
+++ b/docs/help/in/toggle.in
@@ -15,7 +15,6 @@
%9Examples:%9
- /TOGGLE resolve_prefer_ipv6
/TOGGLE channels_rejoin_unavailable ON
%9See also:%9 SET
diff --git a/docs/help/in/window.in b/docs/help/in/window.in
index aa133766a..5a8ecbd0e 100644
--- a/docs/help/in/window.in
+++ b/docs/help/in/window.in
@@ -33,15 +33,16 @@
THEME: %|Applies or removes a per-window theme.
GROW: %|Increase the size of the active split window by the specified number of lines.
SHRINK: %|Decrease the size of the active split window by the specified number of lines.
- SIZE: %|Set the current split window size to the specified numer of lines.
+ SIZE: %|Set the current split window size to the specified number of lines.
BALANCE: %|Balance the heights of all split windows.
HIDE: %|Hides the current split window, or the split window specified by number or item name.
SHOW: %|Show the window specified by number or item name as a new split windows. It is made sticky when autostick_split_windows is turned on.
UP: %|Set the split window left or above the current one active. At the top, wraps to the bottom.
- DOWN: %|Set the split window right or below the current one active. At the bottom, wraps teft.
+ DOWN: %|Set the split window right or below the current one active. At the bottom, wraps left.
LEFT: %|Go to the previous window numerically that is part of the current sticky group (or not part of any sticky group).
RIGHT: %|Go to the next window numerically that is part of the current sticky group (or not part of any sticky group).
STICK: %|Make the currently active window sticky, or stick the window specified by number to the currently visible split window. Or turn off stickyness of the currently active window or the window specified by number.
+ HIDELEVEL: %|Changes the levels of text lines that should be hidden from view, or query the current hidden level.
MOVE LEFT: %|Move the window to the numerically previous location inside the current sticky group.
MOVE RIGHT: %|Move the window to the numerically next location inside the current sticky group.
MOVE UP: %|Move the current window to the sticky group of the previous split window. If no sticky group remains, the split window collapses.
@@ -52,6 +53,8 @@
%|Add the required arguments for the given command. Without arguments, the details (size, immortality, levels, server, name and sticky group) of the currently active window are displayed. If used with a number as argument, same as WINDOW REFNUM.
+ %|LEVEL and HIDELEVEL modify the currently set level. Without arguments, the current level is displayed. Levels listed starting with `+' are added to the current levels. Levels listed starting with `-' are removed from the current levels. To clear the levels, start the new level setting with `NONE'. Levels listed starting with `^' are either removed or added from the current setting, depending on whether they were previously set or not (since Irssi 1.4.4). Levels listed as is are also added to the current levels. Afterwards, the new level setting is displayed.
+
%9Description:%9
Manipulates the window layout and positioning attributes.
@@ -68,7 +71,8 @@
/WINDOW LOG OFF
/WINDOW LOG ON ~/logs/debug.log
/WINDOW LEVEL -ALL +NOTICES
+ /WINDOW HIDELEVEL ^JOINS ^PARTS ^QUITS
/WINDOW LOGFILE ~/logs/notices.log
-%9See also:%9 JOIN, LEVELS, LOG, QUERY
+%9See also:%9 JOIN, LEVELS, LOG, QUERY, SET window_default_level, SET window_default_hidelevel
diff --git a/docs/help/meson.build b/docs/help/meson.build
index 7fe95d435..6eaa30256 100644
--- a/docs/help/meson.build
+++ b/docs/help/meson.build
@@ -116,6 +116,7 @@ install_data(
'whowas',
'window',
),
- install_dir : helpdir)
+ install_dir : helpdir,
+)
# subdir('in')
diff --git a/docs/manual.txt b/docs/manual.txt
index 29065febb..073abe185 100644
--- a/docs/manual.txt
+++ b/docs/manual.txt
@@ -18,17 +18,17 @@
9. Text highlighting
10. Ignoring
11. Logging
-
- ( not written yet: )
12. Commands
- 13. Themes
14. Last log (currently text version only)
- 15. Nick and word completion
+ 15. Word completion
16. Recode
- 17. Windowing system (text version)
- 18. Keyboard (text version)
+ 18. Key bindings (text version)
19. Perl scripting
+ ( not written yet: )
+ 13. Themes
+ 17. Windowing system (text version)
+
0. Generic babbling
@@ -141,44 +141,7 @@
--hostname -h Specify what host name to use
- 2. Message levels
-
-
- Message levels (or in short, levels) are used almost everywhere.
- They describe what kind of messages we're dealing with. Here's a
- list of them all:
-
- CRAP - Can be almost anything
- MSGS - Private messages
- PUBLIC - Public messages in channel
- NOTICES - Notices
- SNOTES - Server notices
- CTCPS - CTCP messages
- ACTIONS - Actions (/me) - usually ORed with PUBLIC or MSGS
- JOINS - Someone joins a channel
- PARTS - Someone parts a channel
- QUITS - Someone quits IRC
- KICKS - Someone gets kicked from channel
- MODES - Channel mode is changed
- TOPICS - Channel topic is changed
- WALLOPS - Wallop is received
- INVITES - Invite is received
- NICKS - Someone changes nick
- DCC - DCC related messages
- DCCMSGS - DCC chat messages
- CLIENTNOTICES - Irssi's notices
- CLIENTERRORS - Irssi's error messages
- CLIENTCRAP - Some other messages from Irssi
-
- And a few special ones that could be included with the
- levels above:
-
- HILIGHT - Text is highlighted
- NOHILIGHT - Don't check highlighting for this message
- NO_ACT - Don't trigger channel activity when printing
- this message
- NEVER - Never ignore or log this message
-
+ 2. Message levels
3. Flood protection
@@ -252,47 +215,12 @@
Currently only messages, notices and ctcps are checked for
flooding.
- /SET flood_max_msgs = , default is 4
- /SET flood_timecheck = , default is 5 seconds
+ /SET flood_max_msgs , default is 4
+ /SET flood_timecheck , default is 5 seconds
If either of these is 0, the flood checking is disabled.
- 4. Configuration
-
- 4.1 Configuration files
-
- The configuration is saved to ~/.irssi/config file. You can edit
- it with text editor if you want, you can also add comments to it
- and they stay there even if /SAVE is used. Comments are the lines
- starting with # character. Any errors in config file are displayed
- at startup.
-
- Irssi uses it's own config library for handling the config file.
- The format is pretty much the same as in libPropList and should be
- easily understandable.
-
- You can reload the config file on the fly with /RELOAD command, you
- can also read a different config file with /RELOAD .
-
- If you change any settings, they aren't saved to file until you use
- /SAVE. You can save the config file to different place with
- /SAVE .
-
- 4.2 Settings
-
- You can view or change the settings with /SET command.
-
- /SET without any arguments displays all the settings.
- /SET displays settings which key (partly) matches
- /SET sets to
-
- Boolean settings accepts only values ON, OFF and TOGGLE. You can
- also use /TOGGLE command to change them, so /TOGGLE behaves
- like /SET TOGGLE. /TOGGLE also accepts arguments ON and OFF
- when /TOGGLE behaves exactly like /SET.
-
- Remember that changes are not saved until you use /SAVE!
-
+ 4. Configuration
5. Servers
@@ -349,7 +277,7 @@
after connecting to the network. This is useful for automatically
identifying yourself to NickServ, for example
- /NETWORK ADD -autosendcmd "/^msg NickServ identify secret" ExampleNet
+ /NETWORK ADD -autosendcmd "/^msg NickServ identify secret" liberachat
/NETWORK REMOVE
@@ -367,11 +295,11 @@
you setup the server using /SERVER ADD (see next section). If the
settings can't be found there either, Irssi will use the defaults:
- /SET default_nick = , defaults to user_name
- /SET alternate_nick = , defaults to _
- /SET user_name = , defaults to your login name
- /SET real_name = , taken from /etc/passwd by default
- /SET hostname = , what host name to use when connecting
+ /SET default_nick , defaults to user_name
+ /SET alternate_nick , defaults to _
+ /SET user_name , defaults to your login name
+ /SET real_name , taken from /etc/passwd by default
+ /SET hostname , what host name to use when connecting
/SET skip_motd ON|OFF|TOGGLE - Don't show server's MOTD
NOTE: /CONNECT is also a command for IRC operators to connect IRC
@@ -445,9 +373,6 @@
After connected to server, Irssi can automatically change your user
mode. You can set it with /SET usermode , default is +i.
- /SET resolve_prefer_ipv6 - If ON, prefer IPv6 for hosts that
- have both v4 and v6 addresses.
-
5.5 Automatic reconnecting
If you get disconnected from server, Irssi will try to reconnect
@@ -792,13 +717,7 @@
/SET massjoin_max_joins .
- 7. IRC commands and features (FIXME)
-
- 7.x Basic commands
-
- 7.x IRC operator commands
-
- 7.x Away features
+ 7. IRC commands and features
8. Notify list
@@ -846,9 +765,9 @@
/HILIGHT without any arguments displays list of the hilights.
-If is a
- number, Irssi will treat it as a MIRC color code. You can also use
- bolds (^B), underlines (^_) etc. as if you like.
+ If is a number, Irssi will treat it as a MIRC color
+ code. You can also use bolds (^B), underlines (^_) etc. as
+ if you like.
10. Ignoring
@@ -993,29 +912,24 @@ If is a
You can disable this feature by setting awaylog_level to NONE.
- 12. Commands
+ 12. Commands
- Any char in the `cmdchars' setting can begin a command. The
- syntax for a command is the following:
+ 13. Themes
- [][^]
+ 14. Last log
- If is repeated two times, alias expansion is
- disabled, enabled otherwise. If `^' is present, command output
- is disabled. If begins with a space, command lookup is
- inhibited and the data is sent to the active window item
- (useful to send a line that begins with ).
+ 15. Word completion
16. Recode
- irssi supports selective encoding of incoming/outgoing messages
+ Irssi supports selective encoding of incoming/outgoing messages
through the recode system. All incoming/outgoing messages can be
optionally converted to/from the charset specified by the
`term_charset' variable (which defaults to the locale encoding and
should _not_ be changed in most cases), by setting the `recode'
variable to 'ON'.
Since there is no way in IRC to know the encoding associated to a
- message, for incoming messages irssi uses the following algorithm:
+ message, for incoming messages Irssi uses the following algorithm:
if `recode_autodetect_utf8' is 'ON' and the message is valid UTF-8 the
encoding is assumed to be UTF-8.
@@ -1032,5 +946,9 @@ If is a
iconv specific extension to peform transliteration (locale dependent)
when a character is not representable in the destination encoding.
+ 18. Key bindings
+
+ 19. Scripting
+
.. no, the docs end here, I got bored of writing these after a few days and
haven't touched these since then.
diff --git a/docs/meson-macos-ar.txt b/docs/meson-macos-ar.txt
new file mode 100644
index 000000000..77e5cb8e2
--- /dev/null
+++ b/docs/meson-macos-ar.txt
@@ -0,0 +1,6 @@
+;; manual workaround for meson bug https://github.com/mesonbuild/meson/issues/11165
+;; fixes compilation with meson on apple macos
+;; usage: meson --native-file ./docs/meson-macos-ar.txt ...
+
+[binaries]
+ar = ['/bin/sh', '-c', 'ar=${AR:-ar}; ranlib=${RANLIB:-ranlib -c -}; case "x$1" in xcsr*) $ar "$@" && $ranlib "$2" || exit $?; ;; *) exec $ar "$@"; ;; esac;', 'ar']
diff --git a/docs/meson.build b/docs/meson.build
index a58faed34..f67612006 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -13,6 +13,7 @@ install_data(
'startup-HOWTO.html',
'startup-HOWTO.txt',
),
- install_dir : docdir)
+ install_dir : docdir,
+)
subdir('help')
diff --git a/docs/perl.txt b/docs/perl.txt
index 761b2f4de..b8e097c76 100644
--- a/docs/perl.txt
+++ b/docs/perl.txt
@@ -205,6 +205,12 @@ Window::command(cmd)
Windowitem::command(cmd)
Send a command `cmd' (in current channel). The '/' char isn't needed.
+version() - return client release date and time (format YYYYMMDD.hhmm)
+
+parse_special(cmd, data="", flags=0)
+Server::parse_special(cmd, data="", flags=0)
+Windowitem::parse_special(cmd, data="", flags=0)
+ evaluate a string with special vars
*** Themes
@@ -516,6 +522,8 @@ Connect->{}
address - Address where we connected (irc.blah.org)
port - Port where we connected
chatnet - Chat network
+ chosen_family - IP family chosen to connect to
+ ipaddr - IP address connected to
password - Password we used in connection.
wanted_nick - Nick which we would prefer to use
diff --git a/docs/proxy.txt b/docs/proxy.txt
index 9ed7ecdba..172770e89 100644
--- a/docs/proxy.txt
+++ b/docs/proxy.txt
@@ -24,7 +24,7 @@ You really should set some password for the proxy with:
Then you'll need to configure the ports/ircnets the proxy listens in,
something like:
- /SET irssiproxy_ports IRCnet=2777 EFNet=2778 ExampleNet=2779
+ /SET irssiproxy_ports IRCnet=2777 EFNet=2778 liberachat=2779
There we have 3 different irc networks answering in 3 ports. Note that
you'll have to make the correct /IRCNET ADD and /SERVER ADD commands to
diff --git a/docs/qna.html b/docs/qna.html
new file mode 100644
index 000000000..a61ee40d8
--- /dev/null
+++ b/docs/qna.html
@@ -0,0 +1,52 @@
+
+
+Right-aligned nicks
+To create a “tabular” effect of the chat view, or to align nick names in a column, you can use Irssi’s theme/format system. The basic commands are the following:
+/format own_msg {ownmsgnick $2 {ownnick $[-9]0}}$1
+/format own_msg_channel {ownmsgnick $3 {ownnick $[-9]0}{msgchannel $1}}$2
+/format pubmsg_me {pubmsgmenick $2 {menick $[-9]0}}$1
+/format pubmsg_me_channel {pubmsgmenick $3 {menick $[-9]0}{msgchannel $1}}$2
+/format pubmsg_hilight {pubmsghinick $0 $3 $[-9]1}$2
+/format pubmsg_hilight_channel {pubmsghinick $0 $4 $[-9]1{msgchannel $2}}$3
+/format pubmsg {pubmsgnick $2 {pubnick $[-9]0}}$1
+/format pubmsg_channel {pubmsgnick $3 {pubnick $[-9]0}{msgchannel $1}}$2
+
+
+These are copied from the default theme’s default values, which are responsible for displaying your own messages sent to a channel (own_msg) as well as received messages (pubmsg) and the two basic highlightings (me and hilight).
+Then, in front of the argument that contains the nick name ($0 in most cases, but $1 in pubmsg_hilight), an alignment modifier (see Appendix B: Special Variables and Expandos) has been added: [-9]. This means that the nicks will be right-aligned and truncated to 9 characters.
+Note: Modifiers only work in the /format section of a theme (this may change in the future)
+There are also some scripts that try to do the alignment for you, like: nm, nm2.
+There are also some nice themes that extend the alignment to further formats, like: weed.
+Automatic log-in to NickServ
+Please check here => Automatic log-in to NickServ
+CertFP Log-in
+CertFP, short for Certificate Finger Print, is another method to log you in to NickServ. Instead of a password, it uses a Client Certificate.
+In order to use it, you
+
+first need a certificate,
+then configure Irssi to use this certificate,
+and finally register the certificate with NickServ.
+
+Irssi does not have built-in certificate management commands, so you need to use an external tool like openssl to create the certificate.
+A step-by-step guide for the Libera Chat network can be found here => https://github.com/shabble/irssi-docs/wiki/liberachat_certfp
+It is necessary that the certificate be available as a file; PKCS#11 is not supported.
+Tor (The Onion Router)
+Tor is an overlay network for anonymous communication. It operates a local SOCKS proxy for applications to use.
+Unfortunately, Irssi currently does not support SOCKS proxies natively. As a workaround, you can install the ProxyChains-NG program (note, it must be the NG version).
+Afterwards, you can launch Irssi like this:
+
+Now your connections will go through the Proxy configured in ProxyChains-NG (Tor by default).
+IRC networks may have different requirements to be able to connect via Tor. For the Libera Chat network, you will first need to set up CertFP Log-in using a clearnet connection, and then connect to their Onion Service palladium.libera.chat. More detailed instructions can be found here => https://github.com/shabble/irssi-docs/wiki/liberator
+The following signatures were invalid: EXPKEYSIG
+If you see such a message
+Err:4 home:/ailin_nemui:/irssi-an InRelease
+ The following signatures were invalid: EXPKEYSIG EDB7AED941EEDB57 home:ailin_nemui OBS Project <home:ailin_nemui@build.opensuse.org>
+
+
+this means that the automatic signing key used by the Open Build Service expired. OBS renews the key periodically, but Debian does not support this.
+
+Fix
+Download the key again, following the regular OBS instructions. If it still does not work, verify if there is a second expired copy of the key in /etc/apt/trusted.gpg.d or in apt-key list and remove it as well.
+
\ No newline at end of file
diff --git a/docs/qna.txt b/docs/qna.txt
new file mode 100644
index 000000000..92f4f64c8
--- /dev/null
+++ b/docs/qna.txt
@@ -0,0 +1,111 @@
+# Right-aligned nicks #
+
+To create a “tabular” effect of the chat view, or to align nick names in a
+column, you can use Irssi’s theme/format system. The basic commands are the
+following:
+
+/format own_msg {ownmsgnick $2 {ownnick $[-9]0}}$1
+/format own_msg_channel {ownmsgnick $3 {ownnick $[-9]0}{msgchannel $1}}$2
+/format pubmsg_me {pubmsgmenick $2 {menick $[-9]0}}$1
+/format pubmsg_me_channel {pubmsgmenick $3 {menick $[-9]0}{msgchannel $1}}$2
+/format pubmsg_hilight {pubmsghinick $0 $3 $[-9]1}$2
+/format pubmsg_hilight_channel {pubmsghinick $0 $4 $[-9]1{msgchannel $2}}$3
+/format pubmsg {pubmsgnick $2 {pubnick $[-9]0}}$1
+/format pubmsg_channel {pubmsgnick $3 {pubnick $[-9]0}{msgchannel $1}}$2
+
+These are copied from the default theme’s default values, which are responsible
+for displaying your own messages sent to a channel (own_msg) as well as
+received messages (pubmsg) and the two basic highlightings (me and hilight).
+
+Then, in front of the argument that contains the nick name ($0 in most cases,
+but $1 in pubmsg_hilight), an alignment modifier (see [1]Appendix B: Special
+Variables and Expandos) has been added: [-9]. This means that the nicks will be
+right-aligned and truncated to 9 characters.
+
+Note: Modifiers only work in the /format section of a theme (this may change in
+the future)
+
+There are also some scripts that try to do the alignment for you, like: nm,
+nm2.
+
+There are also some nice themes that extend the alignment to further formats,
+like: [2]weed.
+
+# Automatic log-in to NickServ #
+
+Please check here => [3]Automatic log-in to NickServ
+
+# CertFP Log-in #
+
+CertFP, short for Certificate Finger Print, is another method to log you in to
+NickServ. Instead of a password, it uses a [4]Client Certificate.
+
+In order to use it, you
+
+ • first need a certificate,
+
+ • then configure Irssi to use this certificate,
+
+ • and finally register the certificate with NickServ.
+
+Irssi does not have built-in certificate management commands, so you need to
+use an external tool like openssl to create the certificate.
+
+A step-by-step guide for the Libera Chat network can be found here => [5]https:
+//github.com/shabble/irssi-docs/wiki/liberachat_certfp
+
+It is necessary that the certificate be available as a file; PKCS#11 is not
+supported.
+
+# Tor (The Onion Router) #
+
+[6]Tor is an overlay network for anonymous communication. It operates a local
+[7]SOCKS proxy for applications to use.
+
+Unfortunately, Irssi currently does not support SOCKS proxies natively. As a
+workaround, you can install the [8]ProxyChains-NG program (note, it must be the
+NG version).
+
+Afterwards, you can launch Irssi like this:
+
+proxychains4 irssi
+
+Now your connections will go through the Proxy configured in ProxyChains-NG
+(Tor by default).
+
+IRC networks may have different requirements to be able to connect via Tor. For
+the Libera Chat network, you will first need to set up [9]CertFP Log-in using a
+clearnet connection, and then connect to their [10]Onion Service
+palladium.libera.chat. More detailed instructions can be found here => [11]
+https://github.com/shabble/irssi-docs/wiki/liberator
+
+# The following signatures were invalid: EXPKEYSIG #
+
+If you see such a message
+
+Err:4 home:/ailin_nemui:/irssi-an InRelease
+ The following signatures were invalid: EXPKEYSIG EDB7AED941EEDB57 home:ailin_nemui OBS Project
+
+this means that the automatic signing key used by the Open Build Service
+expired. OBS renews the key periodically, but Debian does not support this.
+
+## Fix ##
+
+Download the key again, following the regular OBS instructions. If it still
+does not work, verify if there is a second expired copy of the key in /etc/apt/
+trusted.gpg.d or in apt-key list and remove it as well.
+
+
+References:
+
+[1] https://irssi.org/documentation/settings/#a-b
+[2] https://github.com/ronilaukkarinen/weed
+[3] https://irssi.org/documentation/manual/automation/#automatic-log-in-to-nickserv
+[4] https://en.wikipedia.org/wiki/Client_certificate
+[5] https://github.com/shabble/irssi-docs/wiki/liberachat_certfp
+[6] https://www.torproject.org/
+[7] https://en.wikipedia.org/wiki/SOCKS
+[8] https://github.com/rofl0r/proxychains-ng
+[9] https://irssi.org/documentation/qna/certfp/
+[10] https://libera.chat/guides/connect#accessing-liberachat-via-tor
+[11] https://github.com/shabble/irssi-docs/wiki/liberator
diff --git a/docs/signals.txt b/docs/signals.txt
index 1eefc7e01..81a1e3fac 100644
--- a/docs/signals.txt
+++ b/docs/signals.txt
@@ -151,6 +151,7 @@ irc.c:
"whois default event", SERVER_REC, char *args, char *sender_nick, char *sender_address
"server incoming", SERVER_REC, char *data
+ "server outgoing modify", SERVER_REC, GString *data, int crlf
(for perl parser..)
"redir ", SERVER_REC, char *args, char *sender_nick, char *sender_address
@@ -350,6 +351,7 @@ Text FE
gui-readline.c:
"gui key pressed", int key
+ "paste event", char *paste, char *arg
gui-printtext.c:
"beep"
@@ -358,6 +360,9 @@ gui-printtext.c:
textbuffer-view.c
"gui textbuffer line removed", TEXTBUFFER_VIEW_REC *view, LINE_REC *line, LINE_REC *prev_line
+textbuffer-formats.c
+ "gui render line text", TEXT_DEST_REC, GString *str, LINE_INFO_META_REC
+
Perl
----
diff --git a/docs/special_vars.txt b/docs/special_vars.txt
index 36517f78b..1101c8a69 100644
--- a/docs/special_vars.txt
+++ b/docs/special_vars.txt
@@ -94,6 +94,8 @@ $A .. $Z is important.
$winname window name
$itemname like $T, but use item's visible_name which may be
different (eg. $T = !12345chan, $itemname = !chan)
+ $abiversion IRSSI_ABI_VERSION
+ https://github.com/irssi/irssi/wiki/irssi_abi_version
For example, assume you have the following alias:
diff --git a/docs/startup-HOWTO.html b/docs/startup-HOWTO.html
index ecbeb4672..787094d0e 100644
--- a/docs/startup-HOWTO.html
+++ b/docs/startup-HOWTO.html
@@ -68,7 +68,7 @@ 1. First steps
And to connect to one of those networks and join a channel:
-/CONNECT ExampleNet
+/CONNECT liberachat
/JOIN #irssi
@@ -94,7 +94,7 @@ 1. First steps
If you have irssi 0.8.18 or higher and the irc network supports it, you can use SASL instead of nickserv, which is more reliable:
-/NETWORK ADD -sasl_username yourname -sasl_password yourpassword -sasl_mechanism PLAIN ExampleNet
+/NETWORK ADD -sasl_username yourname -sasl_password yourpassword -sasl_mechanism PLAIN liberachat
These commands have many more options, see their help for details:
@@ -226,7 +226,7 @@ 3. Server and channel automation
And finally channels:
-/CHANNEL ADD -auto -bots *!*user@host -botcmd "/^msg $0 op pass" #irssi efnet
+/CHANNEL ADD -auto -bots *!*bot@host.org -botcmd "/^msg $0 op pass" #irssi efnet
/CHANNEL ADD -auto #secret IRCnet password
@@ -395,7 +395,7 @@ 9. Changing keyboard bindings
/HELP bind tells pretty much everything there is to know about keyboard bindings. However, there’s the problem of how to bind some non-standard keys. They might differ a bit with each terminal, so you’ll need to find out what exactly the keypress produces. Easiest way to check that would be to see what it prints in cat. Here’s an example for pressing F1 key:
- [user@host] ~% cat
+ [cras@hurina] ~% cat
^[OP
@@ -515,11 +515,11 @@ 10. Proxies and IRC bouncers
SOCKS
-Irssi can be compiled with socks support (--with-socks option to configure), which requires “dante” and routes all connections through the proxy specified in the system-wide /etc/socks.conf. This method is known to have issues in Mac OS X.
+Using proxychains-ng is recommended for using irssi with a socks proxy.
-Note that /SET proxy settings don’t have anything to do with socks.
+Irssi does not support socks proxy natively.
-Using proxychains-ng is recommended over recompiling irssi.
+Note that /SET proxy settings don’t have anything to do with socks.
Others
@@ -683,4 +683,4 @@ 12. Statusbar
/STATUSBAR <name> REMOVE <item>
-For statusbar scripts, the item name is usually equivalent to the script name. The documentation of the script ought to tell you if this is not the case. For example, to add mail.pl before the window activity item, use: /STATUSBAR window ADD -before act mail.
\ No newline at end of file
+For statusbar scripts, the item name is usually equivalent to the script name. The documentation of the script ought to tell you if this is not the case. For example, to add mail.pl before the window activity item, use: /STATUSBAR window ADD -before act mail.
diff --git a/docs/startup-HOWTO.txt b/docs/startup-HOWTO.txt
index 84397f334..5cc86af37 100644
--- a/docs/startup-HOWTO.txt
+++ b/docs/startup-HOWTO.txt
@@ -43,7 +43,7 @@ has a few predefined networks, to list them:
And to connect to one of those networks and join a channel:
-/CONNECT LiberaChat
+/CONNECT liberachat
/JOIN #irssi
To add more networks:
@@ -67,7 +67,7 @@ wait for 2 seconds before joining channels:
If you have irssi 0.8.18 or higher and the irc network supports it, you can use
SASL instead of nickserv, which is more reliable:
-/NETWORK ADD -sasl_username yourname -sasl_password yourpassword -sasl_mechanism PLAIN ExampleNet
+/NETWORK ADD -sasl_username yourname -sasl_password yourpassword -sasl_mechanism PLAIN liberachat
These commands have many more options, see their help for details:
@@ -218,7 +218,7 @@ IRC network, other servers are automatically connected in same network if the
And finally channels:
-/CHANNEL ADD -auto -bots *!*user@host -botcmd "/^msg $0 op pass" #irssi efnet
+/CHANNEL ADD -auto -bots *!*bot@host.org -botcmd "/^msg $0 op pass" #irssi efnet
/CHANNEL ADD -auto #secret IRCnet password
-bots and -botcmd should be the only ones needing a bit of explaining. They’re
@@ -442,7 +442,7 @@ They might differ a bit with each terminal, so you’ll need to find out what
exactly the keypress produces. Easiest way to check that would be to see what
it prints in cat. Here’s an example for pressing F1 key:
- [user@host] ~% cat
+ [cras@hurina] ~% cat
^[OP
So in irssi you would use /BIND ^[OP /ECHO F1 pressed. If you use multiple
@@ -578,14 +578,11 @@ Irssi proxy works fine with other IRC clients as well.
SOCKS
-Irssi can be compiled with socks support (--with-socks option to configure),
-which requires “dante” and routes all connections through the proxy specified
-in the system-wide /etc/socks.conf. This method is known to have issues in Mac
-OS X.
+Using [4]proxychains-ng is recommended for using irssi with a socks proxy.
-Note that /SET proxy settings don’t have anything to do with socks.
+Irssi does not support socks proxy natively.
-Using [4]proxychains-ng is recommended over recompiling irssi.
+Note that /SET proxy settings don’t have anything to do with socks.
Others
diff --git a/irssi-1.pc.in b/irssi-1.pc.in
deleted file mode 100644
index a1c00f5c7..000000000
--- a/irssi-1.pc.in
+++ /dev/null
@@ -1,20 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-prog_libs="@PROG_LIBS@"
-common_libs="@COMMON_LIBS@"
-
-perl_link_libs="@PERL_LINK_LIBS@"
-perl_fe_link_libs="@PERL_FE_LINK_LIBS@"
-perl_link_flags="@PERL_LINK_FLAGS@"
-
-chat_modules="@CHAT_MODULES@"
-irc_modules="@irc_MODULES@"
-
-Name: Irssi
-Description: Irssi chat client
-Version: @PACKAGE_VERSION@
-Cflags: -I${includedir} @OPENSSL_CFLAGS@
-Requires: glib-2.0
\ No newline at end of file
diff --git a/irssi.conf b/irssi.conf
index 9faa89733..010520fd5 100644
--- a/irssi.conf
+++ b/irssi.conf
@@ -1,19 +1,18 @@
servers = (
- { address = "irc.dal.net"; chatnet = "DALnet"; port = "6667"; },
- { address = "ssl.efnet.org"; chatnet = "EFNet"; port = "9999"; use_tls = "yes"; tls_verify = "no"; },
- { address = "irc.esper.net"; chatnet = "EsperNet"; port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
- { address = "chat.freenode.net"; chatnet = "Freenode"; port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
- { address = "irc.gamesurge.net"; chatnet = "GameSurge"; port = "6667"; },
- { address = "ssl.ircnet.ovh"; chatnet = "IRCnet"; port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
- { address = "open.ircnet.net"; chatnet = "IRCnet"; port = "6667"; },
- { address = "irc.ircsource.net"; chatnet = "IRCSource"; port = "6667"; },
- { address = "irc.libera.chat"; chatnet = "LiberaChat"; port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
- { address = "irc.netfuze.net"; chatnet = "NetFuze"; port = "6667"; },
- { address = "irc.oftc.net"; chatnet = "OFTC"; port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
- { address = "irc.quakenet.org"; chatnet = "QuakeNet"; port = "6667"; },
- { address = "irc.rizon.net"; chatnet = "Rizon"; port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
- { address = "silc.silcnet.org"; chatnet = "SILC"; port = "706"; },
- { address = "irc.undernet.org"; chatnet = "Undernet"; port = "6667"; }
+ { address = "irc.dal.net"; chatnet = "DALnet"; port = "6667"; },
+ { address = "ssl.efnet.org"; chatnet = "EFNet"; port = "9999"; use_tls = "yes"; tls_verify = "no"; },
+ { address = "irc.esper.net"; chatnet = "EsperNet"; port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
+ { address = "irc.libera.chat"; chatnet = "liberachat";port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
+ { address = "irc.gamesurge.net"; chatnet = "GameSurge"; port = "6667"; },
+ { address = "ssl.ircnet.ovh"; chatnet = "IRCnet"; port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
+ { address = "open.ircnet.net"; chatnet = "IRCnet"; port = "6667"; },
+ { address = "irc.ircsource.net"; chatnet = "IRCSource"; port = "6667"; },
+ { address = "irc.netfuze.net"; chatnet = "NetFuze"; port = "6667"; },
+ { address = "irc.oftc.net"; chatnet = "OFTC"; port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
+ { address = "irc.quakenet.org"; chatnet = "QuakeNet"; port = "6667"; },
+ { address = "irc.rizon.net"; chatnet = "Rizon"; port = "6697"; use_tls = "yes"; tls_verify = "yes"; },
+ { address = "silc.silcnet.org"; chatnet = "SILC"; port = "706"; },
+ { address = "irc.undernet.org"; chatnet = "Undernet"; port = "6667"; }
);
chatnets = {
@@ -35,7 +34,7 @@ chatnets = {
max_msgs = "4";
max_whois = "1";
};
- Freenode = {
+ liberachat = {
type = "IRC";
max_kicks = "1";
max_msgs = "4";
@@ -59,12 +58,6 @@ chatnets = {
max_msgs = "4";
max_whois = "1";
};
- LiberaChat = {
- type = "IRC";
- max_kicks = "1";
- max_msgs = "4";
- max_whois = "1";
- };
NetFuze = {
type = "IRC";
max_kicks = "1";
@@ -101,16 +94,15 @@ chatnets = {
};
channels = (
- { name = "#lobby"; chatnet = "EsperNet"; autojoin = "No"; },
- { name = "#freenode"; chatnet = "Freenode"; autojoin = "No"; },
- { name = "#gamesurge"; chatnet = "GameSurge"; autojoin = "No"; },
- { name = "#irssi"; chatnet = "IRCNet"; autojoin = "No"; },
- { name = "#ircsource"; chatnet = "IRCSource"; autojoin = "No"; },
- { name = "#libera"; chatnet = "LiberaChat"; autojoin = "No"; },
- { name = "#irssi"; chatnet = "LiberaChat"; autojoin = "No"; },
- { name = "#netfuze"; chatnet = "NetFuze"; autojoin = "No"; },
- { name = "#oftc"; chatnet = "OFTC"; autojoin = "No"; },
- { name = "silc"; chatnet = "SILC"; autojoin = "No"; }
+ { name = "#lobby"; chatnet = "EsperNet"; autojoin = "No"; },
+ { name = "#libera"; chatnet = "liberachat";autojoin = "No"; },
+ { name = "#irssi"; chatnet = "liberachat";autojoin = "No"; },
+ { name = "#gamesurge"; chatnet = "GameSurge"; autojoin = "No"; },
+ { name = "#irssi"; chatnet = "IRCNet"; autojoin = "No"; },
+ { name = "#ircsource"; chatnet = "IRCSource"; autojoin = "No"; },
+ { name = "#netfuze"; chatnet = "NetFuze"; autojoin = "No"; },
+ { name = "#oftc"; chatnet = "OFTC"; autojoin = "No"; },
+ { name = "silc"; chatnet = "SILC"; autojoin = "No"; }
);
aliases = {
@@ -155,6 +147,7 @@ aliases = {
SAY = "MSG *";
SB = "SCROLLBACK";
SBAR = "STATUSBAR";
+ SHELP = "QUOTE HELP";
SIGNOFF = "QUIT";
SV = "MSG * Irssi $J ($V) - https://irssi.org";
T = "TOPIC";
diff --git a/m4/glib-2.0.m4 b/m4/glib-2.0.m4
deleted file mode 100644
index 5b7c84c0d..000000000
--- a/m4/glib-2.0.m4
+++ /dev/null
@@ -1,208 +0,0 @@
-# Configure paths for GLIB
-# Owen Taylor 1997-2001
-
-dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
-dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or
-dnl gthread is specified in MODULES, pass to pkg-config
-dnl
-AC_DEFUN([AM_PATH_GLIB_2_0],
-[dnl
-dnl Get the cflags and libraries from pkg-config
-dnl
-AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program],
- , enable_glibtest=yes)
-
- pkg_config_args=glib-2.0
- for module in . $4
- do
- case "$module" in
- gmodule)
- pkg_config_args="$pkg_config_args gmodule-2.0"
- ;;
- gmodule-no-export)
- pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
- ;;
- gobject)
- pkg_config_args="$pkg_config_args gobject-2.0"
- ;;
- gthread)
- pkg_config_args="$pkg_config_args gthread-2.0"
- ;;
- esac
- done
-
- PKG_PROG_PKG_CONFIG([0.7])
-
- no_glib=""
-
- if test "x$PKG_CONFIG" = x ; then
- no_glib=yes
- PKG_CONFIG=no
- fi
-
- min_glib_version=ifelse([$1], ,2.0.0,$1)
- AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
-
- if test "x$PKG_CONFIG" != xno ; then
- ## don't try to run the test against uninstalled libtool libs
- if $PKG_CONFIG --uninstalled $pkg_config_args; then
- echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
- enable_glibtest=no
- fi
-
- if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
- :
- else
- no_glib=yes
- fi
- fi
-
- if test x"$no_glib" = x ; then
- GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
- GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
- GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
-
- GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
- GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
- glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- if test "x$enable_glibtest" = "xyes" ; then
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $GLIB_CFLAGS"
- LIBS="$GLIB_LIBS $LIBS"
-dnl
-dnl Now check if the installed GLIB is sufficiently new. (Also sanity
-dnl checks the results of pkg-config to some extent)
-dnl
- rm -f conf.glibtest
- AC_TRY_RUN([
-#include
-#include
-#include
-
-int
-main ()
-{
- int major, minor, micro;
- char *tmp_version;
-
- system ("touch conf.glibtest");
-
- /* HP/UX 9 (%@#!) writes to sscanf strings */
- tmp_version = g_strdup("$min_glib_version");
- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
- printf("%s, bad version string\n", "$min_glib_version");
- exit(1);
- }
-
- if ((glib_major_version != $glib_config_major_version) ||
- (glib_minor_version != $glib_config_minor_version) ||
- (glib_micro_version != $glib_config_micro_version))
- {
- printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
- $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
- glib_major_version, glib_minor_version, glib_micro_version);
- printf ("*** was found! If pkg-config was correct, then it is best\n");
- printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
- printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
- printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
- printf("*** required on your system.\n");
- printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
- printf("*** to point to the correct configuration files\n");
- }
- else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
- (glib_minor_version != GLIB_MINOR_VERSION) ||
- (glib_micro_version != GLIB_MICRO_VERSION))
- {
- printf("*** GLIB header files (version %d.%d.%d) do not match\n",
- GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
- printf("*** library (version %d.%d.%d)\n",
- glib_major_version, glib_minor_version, glib_micro_version);
- }
- else
- {
- if ((glib_major_version > major) ||
- ((glib_major_version == major) && (glib_minor_version > minor)) ||
- ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
- glib_major_version, glib_minor_version, glib_micro_version);
- printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
- major, minor, micro);
- printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
- printf("***\n");
- printf("*** If you have already installed a sufficiently new version, this error\n");
- printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
- printf("*** being found. The easiest way to fix this is to remove the old version\n");
- printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
- printf("*** correct copy of pkg-config. (In this case, you will have to\n");
- printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
- printf("*** so that the correct libraries are found at run-time))\n");
- }
- }
- return 1;
-}
-],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- if test "x$no_glib" = x ; then
- AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
- ifelse([$2], , :, [$2])
- else
- AC_MSG_RESULT(no)
- if test "$PKG_CONFIG" = "no" ; then
- echo "*** A new enough version of pkg-config was not found."
- echo "*** See http://www.freedesktop.org/software/pkgconfig/"
- else
- if test -f conf.glibtest ; then
- :
- else
- echo "*** Could not run GLIB test program, checking why..."
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $GLIB_CFLAGS"
- LIBS="$LIBS $GLIB_LIBS"
- AC_TRY_LINK([
-#include
-#include
-], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
- [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding GLIB or finding the wrong"
- echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
- [ echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occurred. This usually means GLIB is incorrectly installed."])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- GLIB_CFLAGS=""
- GLIB_LIBS=""
- GLIB_GENMARSHAL=""
- GOBJECT_QUERY=""
- GLIB_MKENUMS=""
- ifelse([$3], , :, [$3])
- fi
- AC_SUBST(GLIB_CFLAGS)
- AC_SUBST(GLIB_LIBS)
- AC_SUBST(GLIB_GENMARSHAL)
- AC_SUBST(GOBJECT_QUERY)
- AC_SUBST(GLIB_MKENUMS)
- rm -f conf.glibtest
-])
diff --git a/m4/glibtests.m4 b/m4/glibtests.m4
deleted file mode 100644
index 7d5920a43..000000000
--- a/m4/glibtests.m4
+++ /dev/null
@@ -1,28 +0,0 @@
-dnl GLIB_TESTS
-dnl
-
-AC_DEFUN([GLIB_TESTS],
-[
- AC_ARG_ENABLE(installed-tests,
- AS_HELP_STRING([--enable-installed-tests],
- [Enable installation of some test cases]),
- [case ${enableval} in
- yes) ENABLE_INSTALLED_TESTS="1" ;;
- no) ENABLE_INSTALLED_TESTS="" ;;
- *) AC_MSG_ERROR([bad value ${enableval} for --enable-installed-tests]) ;;
- esac])
- AM_CONDITIONAL([ENABLE_INSTALLED_TESTS], test "$ENABLE_INSTALLED_TESTS" = "1")
- AC_ARG_ENABLE(always-build-tests,
- AS_HELP_STRING([--enable-always-build-tests],
- [Enable always building tests during 'make all']),
- [case ${enableval} in
- yes) ENABLE_ALWAYS_BUILD_TESTS="1" ;;
- no) ENABLE_ALWAYS_BUILD_TESTS="" ;;
- *) AC_MSG_ERROR([bad value ${enableval} for --enable-always-build-tests]) ;;
- esac])
- AM_CONDITIONAL([ENABLE_ALWAYS_BUILD_TESTS], test "$ENABLE_ALWAYS_BUILD_TESTS" = "1")
- if test "$ENABLE_INSTALLED_TESTS" = "1"; then
- AC_SUBST(installed_test_metadir, [${datadir}/installed-tests/]AC_PACKAGE_NAME)
- AC_SUBST(installed_testdir, [${libexecdir}/installed-tests/]AC_PACKAGE_NAME)
- fi
-])
diff --git a/m4/libgcrypt.m4 b/m4/libgcrypt.m4
deleted file mode 100644
index c67cfecef..000000000
--- a/m4/libgcrypt.m4
+++ /dev/null
@@ -1,143 +0,0 @@
-# libgcrypt.m4 - Autoconf macros to detect libgcrypt
-# Copyright (C) 2002, 2003, 2004, 2011, 2014 g10 Code GmbH
-#
-# This file is free software; as a special exception the author gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-#
-# This file is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
-# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-#
-# Last-changed: 2014-10-02
-
-
-dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION,
-dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
-dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS.
-dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed
-dnl with the API version to also check the API compatibility. Example:
-dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed
-dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using
-dnl this features allows to prevent build against newer versions of libgcrypt
-dnl with a changed API.
-dnl
-dnl If a prefix option is not used, the config script is first
-dnl searched in $SYSROOT/bin and then along $PATH. If the used
-dnl config script does not match the host specification the script
-dnl is added to the gpg_config_script_warn variable.
-dnl
-AC_DEFUN([AM_PATH_LIBGCRYPT],
-[ AC_REQUIRE([AC_CANONICAL_HOST])
- AC_ARG_WITH(libgcrypt-prefix,
- AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
- [prefix where LIBGCRYPT is installed (optional)]),
- libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
- if test x"${LIBGCRYPT_CONFIG}" = x ; then
- if test x"${libgcrypt_config_prefix}" != x ; then
- LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
- else
- case "${SYSROOT}" in
- /*)
- if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
- LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
- fi
- ;;
- '')
- ;;
- *)
- AC_MSG_WARN([Ignoring \$SYSROOT as it is not an absolute path.])
- ;;
- esac
- fi
- fi
-
- AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
- tmp=ifelse([$1], ,1:1.2.0,$1)
- if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
- req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
- min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
- else
- req_libgcrypt_api=0
- min_libgcrypt_version="$tmp"
- fi
-
- AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version)
- ok=no
- if test "$LIBGCRYPT_CONFIG" != "no" ; then
- req_major=`echo $min_libgcrypt_version | \
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
- req_minor=`echo $min_libgcrypt_version | \
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
- req_micro=`echo $min_libgcrypt_version | \
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
- libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
- major=`echo $libgcrypt_config_version | \
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
- minor=`echo $libgcrypt_config_version | \
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
- micro=`echo $libgcrypt_config_version | \
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
- if test "$major" -gt "$req_major"; then
- ok=yes
- else
- if test "$major" -eq "$req_major"; then
- if test "$minor" -gt "$req_minor"; then
- ok=yes
- else
- if test "$minor" -eq "$req_minor"; then
- if test "$micro" -ge "$req_micro"; then
- ok=yes
- fi
- fi
- fi
- fi
- fi
- fi
- if test $ok = yes; then
- AC_MSG_RESULT([yes ($libgcrypt_config_version)])
- else
- AC_MSG_RESULT(no)
- fi
- if test $ok = yes; then
- # If we have a recent libgcrypt, we should also check that the
- # API is compatible
- if test "$req_libgcrypt_api" -gt 0 ; then
- tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
- if test "$tmp" -gt 0 ; then
- AC_MSG_CHECKING([LIBGCRYPT API version])
- if test "$req_libgcrypt_api" -eq "$tmp" ; then
- AC_MSG_RESULT([okay])
- else
- ok=no
- AC_MSG_RESULT([does not match. want=$req_libgcrypt_api got=$tmp])
- fi
- fi
- fi
- fi
- if test $ok = yes; then
- LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
- LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
- ifelse([$2], , :, [$2])
- libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
- if test x"$libgcrypt_config_host" != xnone ; then
- if test x"$libgcrypt_config_host" != x"$host" ; then
- AC_MSG_WARN([[
-***
-*** The config script $LIBGCRYPT_CONFIG was
-*** built for $libgcrypt_config_host and thus may not match the
-*** used host $host.
-*** You may want to use the configure option --with-libgcrypt-prefix
-*** to specify a matching config script or use \$SYSROOT.
-***]])
- gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
- fi
- fi
- else
- LIBGCRYPT_CFLAGS=""
- LIBGCRYPT_LIBS=""
- ifelse([$3], , :, [$3])
- fi
- AC_SUBST(LIBGCRYPT_CFLAGS)
- AC_SUBST(LIBGCRYPT_LIBS)
-])
diff --git a/m4/libotr.m4 b/m4/libotr.m4
deleted file mode 100644
index 80b25f86b..000000000
--- a/m4/libotr.m4
+++ /dev/null
@@ -1,134 +0,0 @@
-dnl
-dnl Off-the-Record Messaging library
-dnl Copyright (C) 2004-2007 Ian Goldberg, Chris Alexander, Nikita Borisov
-dnl
-dnl
-dnl This library is free software; you can redistribute it and/or
-dnl modify it under the terms of version 2.1 of the GNU Lesser General
-dnl Public License as published by the Free Software Foundation.
-dnl
-dnl This library is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-dnl Lesser General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU Lesser General Public
-dnl License along with this library; if not, write to the Free Software
-dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-dnl
-
-dnl AM_PATH_LIBOTR([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
-dnl Test for libotr, and define LIBOTR_CFLAGS and LIBOTR_LIBS as appropriate.
-dnl enables arguments --with-libotr-prefix=
-dnl --with-libotr-inc-prefix=
-dnl
-dnl You must already have found libgcrypt with AM_PATH_LIBGCRYPT
-dnl
-dnl Adapted from alsa.m4, originally by
-dnl Richard Boulton
-dnl Christopher Lansdown
-dnl Jaroslav Kysela
-
-AC_DEFUN([AM_PATH_LIBOTR],
-[dnl Save the original CFLAGS, LDFLAGS, and LIBS
-libotr_save_CFLAGS="$CFLAGS"
-libotr_save_LDFLAGS="$LDFLAGS"
-libotr_save_LIBS="$LIBS"
-libotr_found=yes
-
-dnl
-dnl Get the cflags and libraries for libotr
-dnl
-AC_ARG_WITH(libotr-prefix,
-[ --with-libotr-prefix=PFX Prefix where libotr is installed(optional)],
-[libotr_prefix="$withval"], [libotr_prefix=""])
-
-AC_ARG_WITH(libotr-inc-prefix,
-[ --with-libotr-inc-prefix=PFX Prefix where libotr includes are (optional)],
-[libotr_inc_prefix="$withval"], [libotr_inc_prefix=""])
-
-dnl Add any special include directories
-AC_MSG_CHECKING(for libotr CFLAGS)
-if test "$libotr_inc_prefix" != "" ; then
- LIBOTR_CFLAGS="$LIBOTR_CFLAGS -I$libotr_inc_prefix"
- CFLAGS="$CFLAGS $LIBOTR_CFLAGS"
-fi
-AC_MSG_RESULT($LIBOTR_CFLAGS)
-
-dnl add any special lib dirs
-AC_MSG_CHECKING(for libotr LIBS)
-if test "$libotr_prefix" != "" ; then
- LIBOTR_LIBS="$LIBOTR_LIBS -L$libotr_prefix"
- LDFLAGS="$LDFLAGS $LIBOTR_LIBS"
-fi
-
-dnl add the libotr library
-LIBOTR_LIBS="$LIBOTR_LIBS -lotr"
-LIBS="$LIBOTR_LIBS $LIBS"
-AC_MSG_RESULT($LIBOTR_LIBS)
-
-dnl Check for a working version of libotr that is of the right version.
-min_libotr_version=ifelse([$1], ,3.0.0,$1)
-no_libotr=""
- libotr_min_major_version=`echo $min_libotr_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- libotr_min_minor_version=`echo $min_libotr_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- libotr_min_sub_version=`echo $min_libotr_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
-AC_MSG_CHECKING(for libotr headers version $libotr_min_major_version.x >= $min_libotr_version)
-
-AC_LANG_SAVE
-AC_LANG_C
-AC_TRY_COMPILE([
-#include
-#include
-], [
-# if(OTRL_VERSION_MAJOR != $libotr_min_major_version)
-# error not present
-# else
-
-# if(OTRL_VERSION_MINOR > $libotr_min_minor_version)
- exit(0);
-# else
-# if(OTRL_VERSION_MINOR < $libotr_min_minor_version)
-# error not present
-# endif
-
-# if(OTRL_VERSION_SUB < $libotr_min_sub_version)
-# error not present
-# endif
-# endif
-# endif
-exit(0);
-],
- [AC_MSG_RESULT(found.)],
- [AC_MSG_RESULT(not present.)
- ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libotr not found.)])
- libotr_found=no]
-)
-AC_LANG_RESTORE
-
-dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
-AC_CHECK_LIB([otr], [otrl_message_receiving],,
- [ifelse([$3], , [AC_MSG_ERROR(No linkable libotr was found.)])
- libotr_found=no],
- $LIBGCRYPT_LIBS
-)
-
-LDFLAGS="$libotr_save_LDFLAGS"
-LIBS="$libotr_save_LIBS"
-
-if test "x$libotr_found" = "xyes" ; then
- ifelse([$2], , :, [$2])
-else
- LIBOTR_CFLAGS=""
- LIBOTR_LIBS=""
- ifelse([$3], , :, [$3])
-fi
-
-dnl That should be it. Now just export our symbols:
-AC_SUBST(LIBOTR_CFLAGS)
-AC_SUBST(LIBOTR_LIBS)
-])
-
diff --git a/m4/pkg.m4 b/m4/pkg.m4
deleted file mode 100644
index 13a889017..000000000
--- a/m4/pkg.m4
+++ /dev/null
@@ -1,275 +0,0 @@
-# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
-# serial 12 (pkg-config-0.29.2)
-
-dnl Copyright © 2004 Scott James Remnant .
-dnl Copyright © 2012-2015 Dan Nicholson
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 2 of the License, or
-dnl (at your option) any later version.
-dnl
-dnl This program is distributed in the hope that it will be useful, but
-dnl WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-dnl General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-dnl 02111-1307, USA.
-dnl
-dnl As a special exception to the GNU General Public License, if you
-dnl distribute this file as part of a program that contains a
-dnl configuration script generated by Autoconf, you may include it under
-dnl the same distribution terms that you use for the rest of that
-dnl program.
-
-dnl PKG_PREREQ(MIN-VERSION)
-dnl -----------------------
-dnl Since: 0.29
-dnl
-dnl Verify that the version of the pkg-config macros are at least
-dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
-dnl installed version of pkg-config, this checks the developer's version
-dnl of pkg.m4 when generating configure.
-dnl
-dnl To ensure that this macro is defined, also add:
-dnl m4_ifndef([PKG_PREREQ],
-dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
-dnl
-dnl See the "Since" comment for each macro you use to see what version
-dnl of the macros you require.
-m4_defun([PKG_PREREQ],
-[m4_define([PKG_MACROS_VERSION], [0.29.2])
-m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
- [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
-])dnl PKG_PREREQ
-
-dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
-dnl ----------------------------------
-dnl Since: 0.16
-dnl
-dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
-dnl first found in the path. Checks that the version of pkg-config found
-dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
-dnl used since that's the first version where most current features of
-dnl pkg-config existed.
-AC_DEFUN([PKG_PROG_PKG_CONFIG],
-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
-m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
-m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
-AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
-AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
-
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
- AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
-fi
-if test -n "$PKG_CONFIG"; then
- _pkg_min_version=m4_default([$1], [0.9.0])
- AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- PKG_CONFIG=""
- fi
-fi[]dnl
-])dnl PKG_PROG_PKG_CONFIG
-
-dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-dnl -------------------------------------------------------------------
-dnl Since: 0.18
-dnl
-dnl Check to see whether a particular set of modules exists. Similar to
-dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
-dnl
-dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-dnl only at the first occurence in configure.ac, so if the first place
-dnl it's called might be skipped (such as if it is within an "if", you
-dnl have to call PKG_CHECK_EXISTS manually
-AC_DEFUN([PKG_CHECK_EXISTS],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-if test -n "$PKG_CONFIG" && \
- AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
- m4_default([$2], [:])
-m4_ifvaln([$3], [else
- $3])dnl
-fi])
-
-dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
-dnl ---------------------------------------------
-dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
-dnl pkg_failed based on the result.
-m4_define([_PKG_CONFIG],
-[if test -n "$$1"; then
- pkg_cv_[]$1="$$1"
- elif test -n "$PKG_CONFIG"; then
- PKG_CHECK_EXISTS([$3],
- [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes ],
- [pkg_failed=yes])
- else
- pkg_failed=untried
-fi[]dnl
-])dnl _PKG_CONFIG
-
-dnl _PKG_SHORT_ERRORS_SUPPORTED
-dnl ---------------------------
-dnl Internal check to see if pkg-config supports short errors.
-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi[]dnl
-])dnl _PKG_SHORT_ERRORS_SUPPORTED
-
-
-dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
-dnl [ACTION-IF-NOT-FOUND])
-dnl --------------------------------------------------------------
-dnl Since: 0.4.0
-dnl
-dnl Note that if there is a possibility the first call to
-dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
-dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
-AC_DEFUN([PKG_CHECK_MODULES],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
-
-pkg_failed=no
-AC_MSG_CHECKING([for $2])
-
-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
-_PKG_CONFIG([$1][_LIBS], [libs], [$2])
-
-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
-and $1[]_LIBS to avoid the need to call pkg-config.
-See the pkg-config man page for more details.])
-
-if test $pkg_failed = yes; then
- AC_MSG_RESULT([no])
- _PKG_SHORT_ERRORS_SUPPORTED
- if test $_pkg_short_errors_supported = yes; then
- $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
- else
- $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
-
- m4_default([$4], [AC_MSG_ERROR(
-[Package requirements ($2) were not met:
-
-$$1_PKG_ERRORS
-
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
-installed software in a non-standard prefix.
-
-_PKG_TEXT])[]dnl
- ])
-elif test $pkg_failed = untried; then
- AC_MSG_RESULT([no])
- m4_default([$4], [AC_MSG_FAILURE(
-[The pkg-config script could not be found or is too old. Make sure it
-is in your PATH or set the PKG_CONFIG environment variable to the full
-path to pkg-config.
-
-_PKG_TEXT
-
-To get pkg-config, see .])[]dnl
- ])
-else
- $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
- $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
- AC_MSG_RESULT([yes])
- $3
-fi[]dnl
-])dnl PKG_CHECK_MODULES
-
-
-dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
-dnl [ACTION-IF-NOT-FOUND])
-dnl ---------------------------------------------------------------------
-dnl Since: 0.29
-dnl
-dnl Checks for existence of MODULES and gathers its build flags with
-dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
-dnl and VARIABLE-PREFIX_LIBS from --libs.
-dnl
-dnl Note that if there is a possibility the first call to
-dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
-dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
-dnl configure.ac.
-AC_DEFUN([PKG_CHECK_MODULES_STATIC],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-_save_PKG_CONFIG=$PKG_CONFIG
-PKG_CONFIG="$PKG_CONFIG --static"
-PKG_CHECK_MODULES($@)
-PKG_CONFIG=$_save_PKG_CONFIG[]dnl
-])dnl PKG_CHECK_MODULES_STATIC
-
-
-dnl PKG_INSTALLDIR([DIRECTORY])
-dnl -------------------------
-dnl Since: 0.27
-dnl
-dnl Substitutes the variable pkgconfigdir as the location where a module
-dnl should install pkg-config .pc files. By default the directory is
-dnl $libdir/pkgconfig, but the default can be changed by passing
-dnl DIRECTORY. The user can override through the --with-pkgconfigdir
-dnl parameter.
-AC_DEFUN([PKG_INSTALLDIR],
-[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
-m4_pushdef([pkg_description],
- [pkg-config installation directory @<:@]pkg_default[@:>@])
-AC_ARG_WITH([pkgconfigdir],
- [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
- [with_pkgconfigdir=]pkg_default)
-AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
-m4_popdef([pkg_default])
-m4_popdef([pkg_description])
-])dnl PKG_INSTALLDIR
-
-
-dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
-dnl --------------------------------
-dnl Since: 0.27
-dnl
-dnl Substitutes the variable noarch_pkgconfigdir as the location where a
-dnl module should install arch-independent pkg-config .pc files. By
-dnl default the directory is $datadir/pkgconfig, but the default can be
-dnl changed by passing DIRECTORY. The user can override through the
-dnl --with-noarch-pkgconfigdir parameter.
-AC_DEFUN([PKG_NOARCH_INSTALLDIR],
-[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
-m4_pushdef([pkg_description],
- [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
-AC_ARG_WITH([noarch-pkgconfigdir],
- [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
- [with_noarch_pkgconfigdir=]pkg_default)
-AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
-m4_popdef([pkg_default])
-m4_popdef([pkg_description])
-])dnl PKG_NOARCH_INSTALLDIR
-
-
-dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
-dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-dnl -------------------------------------------
-dnl Since: 0.28
-dnl
-dnl Retrieves the value of the pkg-config variable for the given module.
-AC_DEFUN([PKG_CHECK_VAR],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
-
-_PKG_CONFIG([$1], [variable="][$3]["], [$2])
-AS_VAR_COPY([$1], [pkg_cv_][$1])
-
-AS_VAR_IF([$1], [""], [$5], [$4])dnl
-])dnl PKG_CHECK_VAR
diff --git a/meson.build b/meson.build
index 1a5182af1..bb6d28291 100644
--- a/meson.build
+++ b/meson.build
@@ -1,84 +1,137 @@
-project('irssi', 'c',
- version : '1.3-head',
- meson_version : '>=0.49',
- default_options : ['warning_level=1'])
+project(
+ 'irssi',
+ 'c',
+ version : '1.5-head',
+ meson_version : '>=0.53',
+ default_options : [ 'warning_level=1' ],
+)
############################
############################
-glib_internal_version = 'glib-2.58.3' # keep this in sync with subprojects/glib.wrap
+glib_internal_version = 'glib-2.74.7' # keep this in sync with subprojects/glib.wrap
+glib_pcre2_internal_version = 'pcre2-10.40'
+glib_libffi_internal_version = 'libffi'
cc = meson.get_compiler('c')
rootinc = include_directories('.')
-dep = []
-textui_dep = []
+dep = [ ]
+textui_dep = [ ]
need_dl_cross_link = false
+need_dl_cross_link_main = false
+dl_cross_irssi_main = [ ]
# The Android environment requires that all modules are linked to each other.
# See https://github.com/android/ndk/issues/201
if host_machine.system() == 'android'
need_dl_cross_link = true
+elif host_machine.system() == 'cygwin'
+ need_dl_cross_link = true
+ need_dl_cross_link_main = true
endif
-includedir = get_option('includedir')
-incdir = 'irssi'
-moduledir = get_option('libdir') / incdir / 'modules'
-helpdir = get_option('datadir') / incdir / 'help'
-themedir = get_option('datadir') / incdir / 'themes'
-scriptdir = get_option('datadir') / incdir / 'scripts'
-docdir = get_option('docdir') != '' ? get_option('docdir') : (get_option('datadir') / 'doc' / incdir)
-
-want_textui = get_option('without-textui') != 'yes'
-want_bot = get_option('with-bot') == 'yes'
-want_fuzzer = get_option('with-fuzzer') == 'yes'
-fuzzer_lib = get_option('with-fuzzer-lib')
+includedir = get_option('includedir')
+incdir = 'irssi'
+moduledir = get_option('libdir') / incdir / 'modules'
+helpdir = get_option('datadir') / incdir / 'help'
+themedir = get_option('datadir') / incdir / 'themes'
+scriptdir = get_option('datadir') / incdir / 'scripts'
+docdir = get_option('docdir') != '' ? get_option('docdir') : (get_option('datadir') / 'doc' / incdir)
+
+want_textui = get_option('without-textui') != 'yes'
+want_bot = get_option('with-bot') == 'yes'
+want_fuzzer = get_option('with-fuzzer') == 'yes'
+fuzzer_lib = get_option('with-fuzzer-lib')
fuzzer_link_language = get_option('fuzzer-link-language')
-want_proxy = get_option('with-proxy') == 'yes'
-want_truecolor = get_option('enable-true-color') == 'yes'
-want_gregex = get_option('disable-gregex') != 'yes'
+want_proxy = get_option('with-proxy') == 'yes'
-require_capsicum = get_option('with-capsicum') == 'yes'
-want_capsicum = get_option('with-capsicum') != 'no'
+require_capsicum = get_option('with-capsicum') == 'yes'
+want_capsicum = get_option('with-capsicum') != 'no'
require_libutf8proc = get_option('disable-utf8proc') == 'no'
-want_libutf8proc = get_option('disable-utf8proc') != 'yes'
+want_libutf8proc = get_option('disable-utf8proc') != 'yes'
-require_perl = get_option('with-perl') == 'yes'
-want_perl = get_option('with-perl') != 'no'
-with_perl_lib = get_option('with-perl-lib')
+require_perl = get_option('with-perl') == 'yes'
+want_perl = get_option('with-perl') != 'no'
+with_perl_lib = get_option('with-perl-lib')
-require_otr = get_option('with-otr') == 'yes'
-want_otr = get_option('with-otr') != 'no'
+require_otr = get_option('with-otr') == 'yes'
+want_otr = get_option('with-otr') != 'no'
-want_glib_internal = get_option('install-glib') != 'no'
+want_glib_internal = get_option('install-glib') != 'no'
require_glib_internal = get_option('install-glib') == 'force'
want_static_dependency = get_option('static-dependency') == 'yes'
-chat_modules = ['irc']
+package_version = get_option('PACKAGE_VERSION') != '' ? get_option('PACKAGE_VERSION') : meson.project_version()
+
+fs = import('fs')
+if fs.exists('config.status') or fs.exists('irssi-version.h') or fs.exists('default-config.h') or fs.exists('default-theme.h') or fs.exists('src/perl/irssi-core.pl.h') or fs.exists('src/perl/perl-signals-list.h') or fs.exists('irssi-config.h')
+ error('this tree has been configured with autotools, cannot proceed')
+endif
+
+UNSET = '=INVALID='
+UNSET_ARR = [ UNSET ]
+
+chat_modules = [ 'irc' ]
-run_command('mkdir', meson.current_build_dir() / incdir)
-run_command('ln', '-s', meson.current_source_dir() / 'src', meson.current_build_dir() / incdir)
-run_command('ln', '-s', meson.current_build_dir() / 'irssi-config.h', meson.current_build_dir() / incdir)
-run_command('ln', '-s', meson.current_build_dir() / 'irssi-version.h', meson.current_build_dir() / incdir)
+run_command(
+ 'mkdir',
+ meson.current_build_dir() / incdir,
+ check : false,
+)
+run_command(
+ 'ln',
+ '-s', meson.current_source_dir() / 'src',
+ meson.current_build_dir() / incdir,
+ check : false,
+)
+run_command(
+ 'ln',
+ '-s', meson.current_build_dir() / 'irssi-config.h',
+ meson.current_build_dir() / incdir,
+ check : false,
+)
+run_command(
+ 'ln',
+ '-s', meson.current_build_dir() / 'irssi-version.h',
+ meson.current_build_dir() / incdir,
+ check : false,
+)
-def_moduledir = '-D' + 'MODULEDIR' + '="' + (get_option('prefix') / moduledir) + '"'
+def_moduledir = '-D' + 'MODULEDIR' + '="' + (get_option('prefix') / moduledir) + '"'
def_sysconfdir = '-D' + 'SYSCONFDIR' + '="' + (get_option('prefix') / get_option('sysconfdir')) + '"'
-def_helpdir = '-D' + 'HELPDIR' + '="' + (get_option('prefix') / helpdir) + '"'
-def_themesdir = '-D' + 'THEMESDIR' + '="' + (get_option('prefix') / themedir) + '"'
-def_scriptdir = '-D' + 'SCRIPTDIR' + '="' + (get_option('prefix') / scriptdir) + '"'
+def_helpdir = '-D' + 'HELPDIR' + '="' + (get_option('prefix') / helpdir) + '"'
+def_themesdir = '-D' + 'THEMESDIR' + '="' + (get_option('prefix') / themedir) + '"'
+def_scriptdir = '-D' + 'SCRIPTDIR' + '="' + (get_option('prefix') / scriptdir) + '"'
def_suppress_printf_fallback = '-D' + 'SUPPRESS_PRINTF_FALLBACK'
+module_suffix = [ ]
+perl_module_suffix = [ ]
+# Meson uses the wrong module extensions on Mac.
+# https://gitlab.gnome.org/GNOME/glib/issues/520
+if [ 'darwin', 'ios' ].contains(host_machine.system())
+ module_suffix = 'so'
+ perl_module_suffix = 'bundle'
+endif
+
##############
# Help files #
##############
-build_perl = find_program('perl', native : true)
+build_perl = find_program(
+ 'perl',
+ native : true,
+)
if meson.is_cross_build()
cross_perl = find_program('perl')
else
cross_perl = build_perl
endif
-run_command(build_perl, files('utils/syntax.pl'))
+run_command(
+ build_perl,
+ files('utils/syntax.pl'),
+ check : true,
+)
###################
# irssi-version.h #
@@ -86,12 +139,12 @@ run_command(build_perl, files('utils/syntax.pl'))
env = find_program('env')
irssi_version_sh = find_program('utils/irssi-version.sh')
-irssi_version_h = custom_target('irssi-version.h',
+irssi_version_h = custom_target(
+ 'irssi-version.h',
build_by_default : true,
build_always_stale : true,
capture : true,
- command : [env, 'VERSION=' + meson.project_version(),
- irssi_version_sh, meson.current_source_dir()],
+ command : [ env, 'VERSION=' + meson.project_version(), irssi_version_sh, meson.current_source_dir() ],
output : 'irssi-version.h',
install : true,
install_dir : includedir / incdir,
@@ -102,22 +155,24 @@ irssi_version_h = custom_target('irssi-version.h',
####################
file2header = find_program('utils/file2header.sh')
-default_config_h = custom_target('default-config.h',
+default_config_h = custom_target(
+ 'default-config.h',
input : files('irssi.conf'),
output : 'default-config.h',
capture : true,
- command : [file2header, '@INPUT@', 'default_config'],
+ command : [ file2header, '@INPUT@', 'default_config' ],
)
###################
# default-theme.h #
###################
-default_theme_h = custom_target('default-theme.h',
+default_theme_h = custom_target(
+ 'default-theme.h',
input : files('themes/default.theme'),
output : 'default-theme.h',
capture : true,
- command : [file2header, '@INPUT@', 'default_theme'],
+ command : [ file2header, '@INPUT@', 'default_theme' ],
)
################
@@ -126,12 +181,18 @@ default_theme_h = custom_target('default-theme.h',
#### inet_addr ####
inet_addr_found = false
-foreach inet_addr_provider : ['', 'nsl']
- prov_lib = []
+foreach inet_addr_provider : [ '', 'nsl' ]
+ prov_lib = [ ]
if inet_addr_provider != ''
- prov_lib += cc.find_library(inet_addr_provider, required : false)
+ prov_lib += cc.find_library(
+ inet_addr_provider,
+ required : false,
+ )
endif
- if (prov_lib.length() == 0 or prov_lib[0].found()) and cc.has_function('inet_addr', dependencies : prov_lib)
+ if (prov_lib.length() == 0 or prov_lib[0].found()) and cc.has_function(
+ 'inet_addr',
+ dependencies : prov_lib,
+ )
dep += prov_lib
inet_addr_found = true
break
@@ -143,12 +204,18 @@ endif
#### socket ####
socket_found = false
-foreach socket_provider : ['', 'socket', 'network']
- prov_lib = []
+foreach socket_provider : [ '', 'socket', 'network' ]
+ prov_lib = [ ]
if socket_provider != ''
- prov_lib += cc.find_library(socket_provider, required : false)
+ prov_lib += cc.find_library(
+ socket_provider,
+ required : false,
+ )
endif
- if (prov_lib.length() == 0 or prov_lib[0].found()) and cc.has_function('socket', dependencies : prov_lib)
+ if (prov_lib.length() == 0 or prov_lib[0].found()) and cc.has_function(
+ 'socket',
+ dependencies : prov_lib,
+ )
dep += prov_lib
socket_found = true
break
@@ -158,7 +225,7 @@ if not socket_found
error('socket not found')
endif
-built_src = []
+built_src = [ ]
glib_internal = false
message('*** If you don\'t have GLib, you can run meson ... -Dinstall-glib=yes')
message('*** to download and build it automatically')
@@ -166,59 +233,82 @@ message('*** Or alternatively install your distribution\'s package')
message('*** On Debian: sudo apt-get install libglib2.0-dev')
message('*** On Redhat: dnf install glib2-devel')
if not require_glib_internal
- glib_dep = dependency('glib-2.0', version : '>=2.32', required : not want_glib_internal, static : want_static_dependency)
+ glib_dep = dependency(
+ 'glib-2.0',
+ version : '>=2.32',
+ required : not want_glib_internal,
+ static : want_static_dependency,
+ include_type : 'system',
+ )
else
- glib_dep = dependency('', required : false)
+ glib_dep = dependency(
+ '',
+ required : false,
+ )
endif
if not glib_dep.found()
glib_internal = true
meson_cmd = find_program('meson')
ninja = find_program('ninja')
- glib_internal_download_t = custom_target('glib-internal-download',
+ glib_internal_download_t = custom_target(
+ 'glib-internal-download',
command : [ meson_cmd, 'subprojects', 'download', 'glib', '--sourcedir', meson.current_source_dir() ],
console : true,
- output : ['glib-internal-download'],
+ output : [ 'glib-internal-download' ],
)
glib_internal_dependencies = [
dependency('threads'),
]
- glib_internal_configure_args = []
+ glib_internal_configure_args = [ ]
glib_internal_usr_local = false
if not cc.has_function('iconv_open')
- prov_lib = cc.find_library('iconv', required : false)
+ prov_lib = cc.find_library(
+ 'iconv',
+ required : false,
+ )
if not prov_lib.found()
- prov_lib = cc.find_library('iconv', dirs : '/usr/local/lib')
+ prov_lib = cc.find_library(
+ 'iconv',
+ dirs : '/usr/local/lib',
+ )
glib_internal_usr_local = true
endif
- if cc.has_function('libiconv_open', dependencies : prov_lib)
- glib_internal_configure_args += '-Diconv=gnu'
- else
- glib_internal_configure_args += '-Diconv=native'
- endif
glib_internal_dependencies += prov_lib
endif
if not cc.has_function('ngettext')
- prov_lib = cc.find_library('intl', required : false)
+ prov_lib = cc.find_library(
+ 'intl',
+ required : false,
+ )
if not prov_lib.found()
- prov_lib = cc.find_library('intl', dirs : '/usr/local/lib')
+ prov_lib = cc.find_library(
+ 'intl',
+ dirs : '/usr/local/lib',
+ )
glib_internal_usr_local = true
endif
glib_internal_dependencies += prov_lib
endif
if glib_internal_usr_local
- glib_internal_configure_args += ['-Dc_args=-I/usr/local/include', '-Dc_link_args=-L/usr/local/lib']
+ glib_internal_configure_args += [ '-Dc_args=-I/usr/local/include', '-Dc_link_args=-L/usr/local/lib' ]
endif
if not cc.has_function('getxattr') or not cc.has_header('sys/xattr.h')
if cc.has_header_symbol('attr/xattr.h', 'getxattr')
- prov_lib = cc.find_library('xattr', required : false)
+ prov_lib = cc.find_library(
+ 'xattr',
+ required : false,
+ )
else
- prov_lib = dependency('', required : false)
+ prov_lib = dependency(
+ '',
+ required : false,
+ )
endif
if prov_lib.found()
glib_internal_dependencies += prov_lib
@@ -227,53 +317,128 @@ if not glib_dep.found()
endif
endif
- glib_internal_configure_t = custom_target('glib-internal-configure',
- command : [ meson_cmd, 'setup', '--prefix=/irssi-glib-internal',
+ glib_internal_configure_t = custom_target(
+ 'glib-internal-configure',
+ command : [
+ meson_cmd,
+ 'setup',
+ '--prefix=/irssi-glib-internal',
'--buildtype=' + get_option('buildtype'),
- '-Dlibmount=false', '-Dselinux=false', '-Ddefault_library=static', '-Dinternal_pcre=true',
+ '-Dlibmount=disabled',
+ '-Dselinux=disabled',
+ '-Ddefault_library=static',
+ '-Dforce_fallback_for=pcre2,libffi',
glib_internal_configure_args,
(meson.current_build_dir() / 'build-subprojects' / 'glib'),
- (meson.current_source_dir() / 'subprojects' / glib_internal_version) ],
+ (meson.current_source_dir() / 'subprojects' / glib_internal_version),
+ ],
console : true,
- output : ['glib-internal-configure'],
- depends : glib_internal_download_t,)
- glib_internal_build_t = custom_target('glib-internal-build',
- command : [ ninja, '-C', meson.current_build_dir() / 'build-subprojects' / 'glib',
+ output : [ 'glib-internal-configure' ],
+ depends : glib_internal_download_t,
+ )
+ glib_internal_build_t = custom_target(
+ 'glib-internal-build',
+ command : [
+ ninja,
+ '-C', meson.current_build_dir() / 'build-subprojects' / 'glib',
+ 'subprojects' / glib_libffi_internal_version / 'src' / 'libffi.a',
+ 'subprojects' / glib_pcre2_internal_version / 'libpcre2-8.a',
'glib' / 'libglib-2.0.a',
- 'gmodule' / 'libgmodule-2.0.a'],
+ 'gmodule' / 'libgmodule-2.0.a',
+ 'gobject' / 'libgobject-2.0.a',
+ 'gio' / 'libgio-2.0.a',
+ ],
console : true,
- output : ['glib-internal-build'],
- depends : glib_internal_configure_t,)
+ output : [ 'glib-internal-build' ],
+ depends : glib_internal_configure_t,
+ )
glib_dep = declare_dependency(
dependencies : glib_internal_dependencies,
sources : glib_internal_build_t,
compile_args : [
- '-I' + (meson.current_source_dir() / 'subprojects' / glib_internal_version / 'glib'),
- '-I' + (meson.current_source_dir() / 'subprojects' / glib_internal_version),
- '-I' + (meson.current_build_dir() / 'build-subprojects' / 'glib' / 'glib'),
+ '-isystem' + (meson.current_source_dir() / 'subprojects' / glib_internal_version / 'glib'),
+ '-isystem' + (meson.current_source_dir() / 'subprojects' / glib_internal_version),
+ '-isystem' + (meson.current_build_dir() / 'build-subprojects' / 'glib' / 'glib'),
+ ],
+ link_args : [
+ meson.current_build_dir() / 'build-subprojects' / 'glib' / 'subprojects' / glib_pcre2_internal_version / 'libpcre2-8.a',
+ meson.current_build_dir() / 'build-subprojects' / 'glib' / 'glib' / 'libglib-2.0.a',
],
- link_args : [ meson.current_build_dir() / 'build-subprojects' / 'glib' / 'glib' / 'libglib-2.0.a' ],
)
built_src += glib_internal_build_t
- libdl_dep = []
- prov_lib = cc.find_library('dl', required : false)
- if prov_lib.found() and cc.has_function('dlopen', dependencies : prov_lib)
+ libdl_dep = [ ]
+ prov_lib = cc.find_library(
+ 'dl',
+ required : false,
+ )
+ if prov_lib.found() and cc.has_function(
+ 'dlopen',
+ dependencies : prov_lib,
+ )
libdl_dep += prov_lib
endif
- gmodule_dep = declare_dependency(sources : glib_internal_build_t,
+ gmodule_dep = declare_dependency(
+ sources : glib_internal_build_t,
dependencies : libdl_dep,
compile_args : [
- '-I' + (meson.current_source_dir() / 'subprojects' / glib_internal_version / 'gmodule'),
+ '-isystem' + (meson.current_source_dir() / 'subprojects' / glib_internal_version / 'gmodule'),
],
link_args : [ meson.current_build_dir() / 'build-subprojects' / 'glib' / 'gmodule' / 'libgmodule-2.0.a' ],
)
+ gobject_dep = declare_dependency(
+ sources : glib_internal_build_t,
+ compile_args : [
+ '-isystem' + (meson.current_build_dir() / 'build-subprojects' / 'glib'),
+ ],
+ link_args : [
+ meson.current_build_dir() / 'build-subprojects' / 'glib' / 'subprojects' / glib_libffi_internal_version / 'src' / 'libffi.a',
+ meson.current_build_dir() / 'build-subprojects' / 'glib' / 'gobject' / 'libgobject-2.0.a',
+ ],
+ )
+ gio_dep = declare_dependency(
+ sources : glib_internal_build_t,
+ dependencies : cc.find_library('z'),
+ compile_args : [
+ '-isystem' + (meson.current_source_dir() / 'subprojects' / glib_internal_version / 'gio'),
+ '-isystem' + (meson.current_build_dir() / 'build-subprojects' / 'glib'),
+ ],
+ link_args : [ meson.current_build_dir() / 'build-subprojects' / 'glib' / 'gio' / 'libgio-2.0.a' ],
+ )
else
- gmodule_dep = dependency('gmodule-2.0', static : want_static_dependency)
+ gmodule_dep = dependency(
+ 'gmodule-2.0',
+ static : want_static_dependency,
+ include_type : 'system',
+ )
+ gobject_dep = dependency(
+ 'gobject-2.0',
+ static : want_static_dependency,
+ include_type : 'system',
+ )
+ gio_dep = dependency(
+ 'gio-2.0',
+ static : want_static_dependency,
+ include_type : 'system',
+ )
endif
dep += glib_dep
dep += gmodule_dep
+dep += gobject_dep
+dep += gio_dep
-openssl_dep = dependency('openssl', static : want_static_dependency)
+if glib_internal and want_static_dependency and want_fuzzer
+ openssl_proj = subproject(
+ 'openssl',
+ default_options : [ 'default_library=static', 'asm=disabled' ],
+ )
+ openssl_dep = openssl_proj.get_variable('openssl_dep')
+else
+ openssl_dep = dependency(
+ 'openssl',
+ static : want_static_dependency,
+ include_type : 'system',
+ )
+endif
dep += openssl_dep
############
@@ -281,10 +446,16 @@ dep += openssl_dep
############
have_libutf8proc = false
-libutf8proc = []
+libutf8proc = [ ]
if want_libutf8proc
- libutf8proc = cc.find_library('utf8proc', required : require_libutf8proc)
- have_libutf8proc = cc.has_function('utf8proc_version', dependencies : libutf8proc)
+ libutf8proc = cc.find_library(
+ 'utf8proc',
+ required : require_libutf8proc,
+ )
+ have_libutf8proc = cc.has_function(
+ 'utf8proc_version',
+ dependencies : libutf8proc,
+ )
if have_libutf8proc
dep += libutf8proc
endif
@@ -299,9 +470,15 @@ endif
if want_textui
setupterm_found = false
- foreach setupterm_provider : ['tinfo', 'ncursesw', 'ncurses', 'terminfo']
- prov_lib = cc.find_library(setupterm_provider, required : false)
- if prov_lib.found() and cc.has_function('setupterm', dependencies : prov_lib)
+ foreach setupterm_provider : [ 'tinfo', 'ncursesw', 'ncurses', 'terminfo' ]
+ prov_lib = cc.find_library(
+ setupterm_provider,
+ required : false,
+ )
+ if prov_lib.found() and cc.has_function(
+ 'setupterm',
+ dependencies : prov_lib,
+ )
textui_dep += prov_lib
setupterm_found = true
break
@@ -318,19 +495,27 @@ endif
have_perl = false
if want_perl
- perl_cflags = []
- perl_ldflags = []
- perl_rpath_flags = []
+ perl_cflags = [ ]
+ perl_ldflags = [ ]
+ perl_rpath_flags = [ ]
perl_rpath = ''
#### ccopts ####
- perl_ccopts = meson.get_cross_property('perl_ccopts', false)
- if perl_ccopts == false
- res = run_command(cross_perl, '-MExtUtils::Embed', '-e', 'ccopts')
+ perl_ccopts = meson.get_cross_property('perl_ccopts', UNSET_ARR)
+ if perl_ccopts == UNSET_ARR
+ res = run_command(
+ cross_perl,
+ '-MExtUtils::Embed',
+ '-e', 'ccopts',
+ check : true,
+ )
perl_ccopts = res.stdout().strip().split()
endif
foreach fl : perl_ccopts
if fl.startswith('-D') or fl.startswith('-U') or fl.startswith('-I') or fl.startswith('-i') or fl.startswith('-f') or fl.startswith('-m')
+ if fl.startswith('-I')
+ fl = '-isystem' + fl.split('-I')[1]
+ endif
perl_cflags += fl
endif
endforeach
@@ -338,12 +523,17 @@ if want_perl
perl_cflags += cc.get_supported_arguments('-fPIC')
#### ldopts ####
- perl_ldopts = meson.get_cross_property('perl_ldopts', false)
- if perl_ldopts == false
- res = run_command(cross_perl, '-MExtUtils::Embed', '-e', 'ldopts')
+ perl_ldopts = meson.get_cross_property('perl_ldopts', UNSET_ARR)
+ if perl_ldopts == UNSET_ARR
+ res = run_command(
+ cross_perl,
+ '-MExtUtils::Embed',
+ '-e', 'ldopts',
+ check : true,
+ )
perl_ldopts = res.stdout().strip().split()
endif
- skip_libs = ['-ldb', '-ldbm', '-lndbm', '-lgdbm', '-lc', '-lposix', '-rdynamic']
+ skip_libs = [ '-ldb', '-ldbm', '-lndbm', '-lgdbm', '-lc', '-lposix', '-rdynamic' ]
foreach fl : perl_ldopts
if not fl.startswith('-A') and not skip_libs.contains(fl)
if fl.startswith('-Wl,-rpath,')
@@ -355,15 +545,28 @@ if want_perl
endif
endforeach
- perl_version = meson.get_cross_property('perl_version', false)
- if perl_version == false
- perl_version = run_command(cross_perl, '-V::version:').stdout().split('\'')[1]
+ perl_version = meson.get_cross_property('perl_version', UNSET)
+ if perl_version == UNSET
+ perl_version = run_command(
+ cross_perl,
+ '-V::version:',
+ check : true,
+ ).stdout().split('\'')[1]
+ endif
+
+ # disable clang warning
+ if perl_version.version_compare('<5.35.2')
+ perl_cflags += cc.get_supported_arguments('-Wno-compound-token-split-by-macro')
endif
- perl_dep = declare_dependency(compile_args : perl_cflags, link_args : perl_ldflags,
- version : perl_version)
+ perl_dep = declare_dependency(
+ compile_args : perl_cflags,
+ link_args : perl_ldflags,
+ version : perl_version,
+ )
####
- if not cc.links('''
+ if not cc.links(
+ '''
#include
#include
int main()
@@ -371,19 +574,27 @@ int main()
perl_alloc();
return 0;
}
-''', args : perl_cflags + perl_ldflags + perl_rpath_flags,
- name : 'working Perl support')
+''',
+ args : perl_cflags + perl_ldflags + perl_rpath_flags,
+ name : 'working Perl support',
+ )
if require_perl
error('error linking with perl libraries')
else
warning('error linking with perl libraries')
endif
else
- xsubpp_file_c = meson.get_cross_property('perl_xsubpp', false)
- if xsubpp_file_c == false
- xsubpp_file_c = run_command(build_perl, '-MExtUtils::ParseXS', '-Eprint $INC{"ExtUtils/ParseXS.pm"} =~ s{ParseXS\\.pm$}{xsubpp}r').stdout()
+ xsubpp_file_c = meson.get_cross_property('perl_xsubpp', UNSET)
+ if xsubpp_file_c == UNSET
+ xsubpp_file_c = run_command(
+ build_perl,
+ '-MExtUtils::ParseXS',
+ '-e($r = $INC{"ExtUtils/ParseXS.pm"}) =~ s{ParseXS\\.pm$}{xsubpp}; print $r',
+ check : true,
+ ).stdout()
endif
- xsubpp = generator(build_perl,
+ xsubpp = generator(
+ build_perl,
output : '@BASENAME@.c',
capture : true,
arguments : [ xsubpp_file_c, '@EXTRA_ARGS@', '@INPUT@' ],
@@ -391,31 +602,44 @@ int main()
xsubpp_file = files(xsubpp_file_c)
if with_perl_lib == 'module'
- perl_install_base = run_command(build_perl, '-MText::ParseWords=shellwords', '-e', 'grep { s/^INSTALL_BASE=// && print && exit } shellwords $ENV{PERL_MM_OPT}').stdout()
+ perl_install_base = run_command(
+ build_perl,
+ '-MText::ParseWords=shellwords',
+ '-e', 'grep { s/^INSTALL_BASE=// && print && exit } shellwords $ENV{PERL_MM_OPT}',
+ check : true,
+ ).stdout()
if perl_install_base == ''
with_perl_lib = ''
endif
endif
if with_perl_lib == ''
- if get_option('prefix') in ['/usr/local', 'C:/']
+ if get_option('prefix') in [ '/usr/local', 'C:/' ]
with_perl_lib = 'site'
- elif get_option('prefix') in ['/usr']
+ elif get_option('prefix') in [ '/usr' ]
with_perl_lib = 'vendor'
endif
endif
perlmoddir = ''
- if with_perl_lib in ['site', 'vendor', 'module']
+ if with_perl_lib in [ 'site', 'vendor', 'module' ]
set_perl_use_lib = false
perl_library_dir = with_perl_lib + ' default'
- if with_perl_lib in ['site', 'vendor']
- perlmoddir = meson.get_cross_property('perl_install' + with_perl_lib + 'arch', false)
- if perlmoddir == false
- perlmoddir = run_command(cross_perl, '-V::install' + with_perl_lib + 'arch:').stdout().split('\'')[1]
+ if with_perl_lib in [ 'site', 'vendor' ]
+ perlmoddir = meson.get_cross_property('perl_install' + with_perl_lib + 'arch', UNSET)
+ if perlmoddir == UNSET
+ perlmoddir = run_command(
+ cross_perl,
+ '-V::install' + with_perl_lib + 'arch:',
+ check : true,
+ ).stdout().split('\'')[1]
endif
elif with_perl_lib == 'module'
- perl_archname = meson.get_cross_property('perl_archname', false)
- if perl_archname == false
- perl_archname = run_command(cross_perl, '-V::archname:').stdout().split('\'')[1]
+ perl_archname = meson.get_cross_property('perl_archname', UNSET)
+ if perl_archname == UNSET
+ perl_archname = run_command(
+ cross_perl,
+ '-V::archname:',
+ check : true,
+ ).stdout().split('\'')[1]
endif
perlmoddir = perl_install_base / 'lib' / 'perl5' / perl_archname
endif
@@ -434,9 +658,14 @@ int main()
perl_use_lib = get_option('prefix') / perlmoddir
if set_perl_use_lib
- perl_inc = meson.get_cross_property('perl_inc', false)
- if perl_inc == false
- set_perl_use_lib = run_command(cross_perl, '-e', 'exit ! grep $_ eq $ARGV[0], grep /^\\//, @INC', perl_use_lib).returncode() != 0
+ perl_inc = meson.get_cross_property('perl_inc', UNSET_ARR)
+ if perl_inc == UNSET_ARR
+ set_perl_use_lib = run_command(
+ cross_perl,
+ '-e', 'exit ! grep $_ eq $ARGV[0], grep /^\\//, @INC',
+ perl_use_lib,
+ check : false,
+ ).returncode() != 0
else
set_perl_use_lib = not perl_inc.contains(perl_use_lib)
endif
@@ -462,8 +691,20 @@ endif
have_otr = false
if want_otr
- libgcrypt = dependency('libgcrypt', version : '>=1.2.0', required : require_otr, static : want_static_dependency)
- libotr = dependency('libotr', version : '>=4.1.0', required : require_otr, static : want_static_dependency)
+ libgcrypt = dependency(
+ 'libgcrypt',
+ version : '>=1.2.0',
+ required : require_otr,
+ static : want_static_dependency,
+ include_type : 'system',
+ )
+ libotr = dependency(
+ 'libotr',
+ version : '>=4.1.0',
+ required : require_otr,
+ static : want_static_dependency,
+ include_type : 'system',
+ )
if libgcrypt.found() and libotr.found()
dep += libgcrypt
dep += libotr
@@ -477,9 +718,19 @@ endif
have_capsicum = false
if want_capsicum
- if cc.has_function('cap_enter', dependencies : cc.find_library('c'))
- libnv = cc.find_library('nv', required : require_capsicum)
- nvlist_create_found = libnv.found() and cc.has_function('nvlist_create', dependencies : libnv)
+ if cc.has_function(
+ 'cap_enter',
+ dependencies : cc.find_library('c'),
+ )
+ libnv = cc.find_library(
+ 'nv',
+ required : require_capsicum,
+ )
+ nvlist_create_found = libnv.found() and cc.has_function(
+ 'nvlist_create',
+ dependencies : libnv,
+ prefix : '#include ',
+ )
if nvlist_create_found
dep += libnv
have_capsicum = true
@@ -496,11 +747,14 @@ if want_capsicum
endif
# dependency helper sets
-dep_cflagsonly = []
+dep_cflagsonly = [ ]
foreach d : dep
- dep_cflagsonly += d.partial_dependency(includes : true, compile_args : true)
+ dep_cflagsonly += d.partial_dependency(
+ includes : true,
+ compile_args : true,
+ )
endforeach
-dl_cross_dep = []
+dl_cross_dep = [ ]
if need_dl_cross_link
dl_cross_dep = dep
endif
@@ -511,12 +765,19 @@ endif
conf = configuration_data()
-conf.set('HAVE_CAPSICUM', have_capsicum, description : 'Build with Capsicum support')
+conf.set(
+ 'HAVE_CAPSICUM',
+ have_capsicum,
+ description : 'Build with Capsicum support',
+)
conf.set('HAVE_GMODULE', true)
-conf.set('HAVE_SOCKS', false, description : 'Build with socks support')
-conf.set('TERM_TRUECOLOR', want_truecolor, description : 'true color support in terminal')
-conf.set('USE_GREGEX', want_gregex, description : 'use GRegex for regular expressions')
-conf.set10('_DARWIN_USE_64_BIT_INODE', true, description : 'Enable large inode numbers on Mac OS X 10.5.')
+conf.set('TERM_TRUECOLOR', true)
+conf.set('USE_GREGEX', true)
+conf.set10(
+ '_DARWIN_USE_64_BIT_INODE',
+ true,
+ description : 'Enable large inode numbers on Mac OS X 10.5.',
+)
conf.set_quoted('FHS_PREFIX', get_option('fhs-prefix'))
headers = [
@@ -530,29 +791,110 @@ headers = [
]
foreach h : headers
if cc.has_header(h)
- conf.set('HAVE_' + h.underscorify().to_upper(), 1, description : 'Define to 1 if you have the <' + h + '> header file.')
+ conf.set(
+ 'HAVE_' + h.underscorify().to_upper(),
+ 1,
+ description : 'Define to 1 if you have the <' + h + '> header file.',
+ )
endif
endforeach
+if want_textui and conf.get('HAVE_TERM_H', 0) == 1
+ if cc.links(
+ '''
+#include
+#include
+int main (void) {
+ return tputs("x", 1, putchar);
+}
+''',
+ args : '-pedantic-errors',
+ dependencies : textui_dep,
+ name : 'Curses working',
+ )
+ # ok
+ else
+ has_curses_h = cc.has_header('curses.h')
+ if has_curses_h and cc.links(
+ '''
+#include
+#include
+int main (void) {
+ return tputs("x", 1, putchar);
+}
+''',
+ args : '-pedantic-errors',
+ dependencies : textui_dep,
+ name : 'Curses working with curses.h',
+ )
+ conf.set(
+ 'NEED_CURSES_H',
+ 1,
+ description : 'tputs needs curses.h',
+ )
+ else
+ if has_curses_h and cc.links(
+ '''
+#include
+#include
+int char_putchar (char c) {
+ return putchar(c);
+}
+int main (void) {
+ return tputs("x", 1, char_putchar);
+}
+''',
+ args : '-pedantic-errors',
+ dependencies : textui_dep,
+ name : 'Curses with tputs third argument arg char',
+ )
+ conf.set(
+ 'NEED_CURSES_H',
+ 1,
+ description : 'tputs needs curses.h',
+ )
+ conf.set(
+ 'TPUTS_SVR4',
+ 1,
+ description : 'third argument of tputs has the type int (*)(char)',
+ )
+ else
+ error('could not link terminfo')
+ endif
+ endif
+ endif
+endif
+
conf.set('HAVE_LIBUTF8PROC', have_libutf8proc)
-conf.set_quoted('PACKAGE_VERSION', meson.project_version())
+conf.set_quoted('PACKAGE_VERSION', package_version)
conf.set_quoted('PACKAGE_TARNAME', meson.project_name())
-configure_file(output : 'irssi-config.h',
+configure_file(
+ output : 'irssi-config.h',
configuration : conf,
- install_dir : includedir / incdir)
+ install_dir : includedir / incdir,
+)
##########
# CFLAGS #
##########
#### warnings ####
-add_project_arguments(cc.get_supported_arguments('-Werror=declaration-after-statement'), language : 'c')
+add_project_arguments(
+ cc.get_supported_arguments('-Werror=declaration-after-statement'),
+ language : 'c',
+)
#### personality ####
-add_project_arguments(cc.get_supported_arguments('-fno-strict-aliasing'), language : 'c')
+add_project_arguments(
+ cc.get_supported_arguments('-fno-strict-aliasing'),
+ language : 'c',
+)
if get_option('buildtype').contains('debug')
- add_project_arguments(cc.get_supported_arguments('-fno-omit-frame-pointer'), language : 'c')
+ add_project_arguments(
+ cc.get_supported_arguments('-fno-omit-frame-pointer'),
+ language : 'c',
+ )
endif
if want_fuzzer
@@ -560,7 +902,10 @@ if want_fuzzer
if not cc.has_argument('-fsanitize=fuzzer-no-link')
error('compiler does not support -fsanitize=fuzzer-no-link, try clang?')
endif
- add_project_arguments('-fsanitize=fuzzer-no-link', language : 'c')
+ add_project_arguments(
+ '-fsanitize=fuzzer-no-link',
+ language : 'c',
+ )
endif
if fuzzer_link_language != 'c'
add_languages(fuzzer_link_language)
@@ -572,11 +917,29 @@ endif
##############
pc = import('pkgconfig')
-pc_requires = []
+pc_requires = [ ]
if not glib_internal
pc_requires += glib_dep
endif
-pc.generate(filebase : 'irssi-1', name : 'Irssi', description : 'Irssi chat client', requires : pc_requires)
+signalsfile = docdir / 'signals.txt'
+if signalsfile.startswith('/')
+ signalsfile = signalsfile.split(get_option('prefix'))
+ if signalsfile[0] == ''
+ signalsfile = '${prefix}' + signalsfile[1]
+ else
+ signalsfile = signalsfile[0]
+ endif
+else
+ signalsfile = '${prefix}' / signalsfile
+endif
+pc.generate(
+ filebase : 'irssi-1',
+ name : 'Irssi',
+ description : 'Irssi chat client',
+ version : package_version,
+ requires : pc_requires,
+ variables : [ 'irssimoduledir=${libdir}' / incdir / 'modules', 'signalsfile=' + signalsfile ],
+)
###########
# irssi.1 #
@@ -616,8 +979,6 @@ if have_perl
endif
message('Install prefix ................... : ' + get_option('prefix'))
message('')
-message('Building with true color support.. : ' + want_truecolor.to_string('yes', 'no'))
-message('Building with GRegex ............. : ' + want_gregex.to_string('yes', 'no'))
message('Building with Capsicum ........... : ' + have_capsicum.to_string('yes', 'no'))
message('Building with utf8proc ........... : ' + have_libutf8proc.to_string('yes', 'no'))
message('Building with OTR support ........ : ' + have_otr.to_string('yes', 'no'))
diff --git a/meson_options.txt b/meson_options.txt
index 5dc9c5143..a5b4ffbbc 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -7,11 +7,10 @@ option('with-proxy', type : 'combo', description : 'Build irssi-proxy',
option('with-perl-lib', type : 'string', description : 'Specify where to install the Perl libraries for Irssi')
option('with-perl', type : 'combo', description : 'Build with Perl support', choices : ['auto', 'yes', 'no'])
option('with-otr', type : 'combo', description : 'Build with OTR support', choices : ['auto', 'yes', 'no'])
-option('enable-true-color', type : 'combo', description : 'Build with true color support in terminal', choices : ['no', 'yes'])
-option('disable-gregex', type : 'combo', description : 'Build without GRegex (fall back to regex.h)', choices : ['no', 'yes'])
option('disable-utf8proc', type : 'combo', description : 'Build without Julia\'s utf8proc', choices : ['auto', 'yes', 'no'])
option('with-capsicum', type : 'combo', description : 'Build with Capsicum support', choices : ['auto', 'yes', 'no'])
option('static-dependency', type : 'combo', description : 'Request static dependencies', choices : ['no', 'yes'])
option('install-glib', type : 'combo', description : 'Download and install GLib for you', choices : ['no', 'yes', 'force'])
option('docdir', type : 'string', description : 'Documentation directory')
option('fhs-prefix', type : 'string', description : 'System prefix for Termux')
+option('PACKAGE_VERSION', type : 'string', description : 'Override PACKAGE_VERSION in tarballs')
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
deleted file mode 100644
index 42b3ea7ba..000000000
--- a/scripts/Makefile.am
+++ /dev/null
@@ -1,18 +0,0 @@
-SUBDIRS = examples
-
-scriptdir = $(datadir)/irssi/scripts
-
-script_DATA = \
- autoop.pl \
- autorejoin.pl \
- buf.pl \
- dns.pl \
- kills.pl \
- mail.pl \
- mlock.pl \
- quitmsg.pl \
- scriptassist.pl \
- usercount.pl
-
-EXTRA_DIST = $(script_DATA) \
- meson.build
diff --git a/scripts/autoop.pl b/scripts/autoop.pl
index b72def157..ce37e7053 100644
--- a/scripts/autoop.pl
+++ b/scripts/autoop.pl
@@ -5,7 +5,7 @@
use strict;
use vars qw($VERSION %IRSSI);
-$VERSION = "1.10";
+$VERSION = "1.11";
%IRSSI = (
authors => 'Timo Sirainen & Jostein Kjønigsen',
name => 'autoop',
@@ -98,10 +98,11 @@ sub load_autoops {
%opnicks = ();
open(CONF, "<", "$file") or return;
while (my $line = ) {
- if ($line !=~ /^\s*$/) {
- cmd_autoop($line);
- $count++;
- }
+ chomp($line);
+ if ($line !~ /^\s*$/) {
+ cmd_autoop($line);
+ $count++;
+ }
}
close(CONF);
diff --git a/scripts/examples/Makefile.am b/scripts/examples/Makefile.am
deleted file mode 100644
index c8d8c8e06..000000000
--- a/scripts/examples/Makefile.am
+++ /dev/null
@@ -1,8 +0,0 @@
-scriptdir = $(datadir)/irssi/scripts
-
-script_DATA = \
- command.pl \
- msg-event.pl \
- redirect.pl
-
-EXTRA_DIST = $(script_DATA)
diff --git a/scripts/mail.pl b/scripts/mail.pl
index 23f99c01e..bf14503a2 100644
--- a/scripts/mail.pl
+++ b/scripts/mail.pl
@@ -1,6 +1,6 @@
use strict;
use vars qw($VERSION %IRSSI);
-$VERSION = "2.92";
+$VERSION = "2.93";
%IRSSI = (
authors => "Timo Sirainen, Matti Hiljanen, Joost Vunderink, Bart Matthaei",
contact => "tss\@iki.fi, matti\@hiljanen.com, joost\@carnique.nl, bart\@dreamflow.nl",
@@ -63,8 +63,8 @@ sub cmd_print_help {
"/MAILBOX SHOW\n".
" - Shows a list of the defined mailboxes.\n\n".
"Use the following commands to change the behaviour:\n\n".
- "/SET MAILDIRMODE on|off\n".
- " - If maildirmode is on, the mailboxes in the list are assumed to be ".
+ "/SET MAILDIR_MODE on|off\n".
+ " - If maildir_mode is on, the mailboxes in the list are assumed to be ".
"directories. Otherwise they are assumed to be spool files.\n".
" Default: off.\n".
"/SET MAIL_OLDNOTNEW on|off\n".
diff --git a/scripts/meson.build b/scripts/meson.build
index 072ac3ea5..10fdc34bc 100644
--- a/scripts/meson.build
+++ b/scripts/meson.build
@@ -11,4 +11,5 @@ install_data(
'scriptassist.pl',
'usercount.pl',
),
- install_dir : scriptdir)
+ install_dir : scriptdir,
+)
diff --git a/scripts/quitmsg.pl b/scripts/quitmsg.pl
index e289468ca..102d9aa5c 100644
--- a/scripts/quitmsg.pl
+++ b/scripts/quitmsg.pl
@@ -6,36 +6,27 @@
use strict;
use vars qw($VERSION %IRSSI);
-$VERSION = "1.00";
+$VERSION = "1.01";
%IRSSI = (
authors => 'Timo Sirainen',
name => 'quitmsg',
description => 'Random quit messages',
license => 'Public Domain',
- changed => 'Sun Mar 10 23:18 EET 2002'
+ changed => 'Mon Jul 22 20:00 EET 2020'
);
-my $quitfile = glob "~/.irssi/irssi.quit";
+my $quitfile = Irssi::get_irssi_dir() . "/irssi.quit";
sub cmd_quit {
my ($data, $server, $channel) = @_;
return if ($data ne "");
+
+ open (my $fh, "<", $quitfile) || return;
+ my @lines = <$fh>;
- open (f, "<", $quitfile) || return;
- my $lines = 0; while() { $lines++; };
-
- my $line = int(rand($lines))+1;
-
- my $quitmsg;
- seek(f, 0, 0); $. = 0;
- while() {
- next if ($. != $line);
-
- chomp;
- $quitmsg = $_;
- last;
- }
- close(f);
+ my $quitmsg = $lines[int(rand(@lines))];
+ chomp($quitmsg);
+ close($fh);
foreach my $server (Irssi::servers) {
$server->command("/disconnect ".$server->{tag}." $quitmsg");
diff --git a/scripts/scriptassist.pl b/scripts/scriptassist.pl
index 536ef33a1..665615dbf 100644
--- a/scripts/scriptassist.pl
+++ b/scripts/scriptassist.pl
@@ -5,7 +5,7 @@
use strict;
-our $VERSION = '2003020807';
+our $VERSION = '2023111700';
our %IRSSI = (
authors => 'Stefan \'tommie\' Tomanek',
contact => 'stefan@pico.ruhr.de',
@@ -22,13 +22,18 @@
use Irssi 20020324;
use CPAN::Meta::YAML;
use LWP::UserAgent;
+use Hash::Util qw(lock_ref_keys);
+use JSON::PP;
use POSIX;
+use version;
# GnuPG is not always needed
$have_gpg = 0;
eval "use GnuPG qw(:algo :trust);";
$have_gpg = 1 if not ($@);
+my $irssi_version = qv('v'.Irssi::parse_special('$J') =~ s/[^.\d].*//r);
+
sub show_help {
my $help = "scriptassist $VERSION
/scriptassist check
@@ -39,15 +44,15 @@ sub show_help {
Search the script database
/scriptassist info
Display information about
-".#/scriptassist ratings
-# Retrieve the average ratings of the the scripts
-#/scriptassist top
-# Retrieve the first top rated scripts
-"/scriptassist new
+/scriptassist ratings
+ Retrieve the average ratings of the scripts
+/scriptassist top
+ Retrieve the first top rated scripts
+/scriptassist new
Display the newest scripts
-".#/scriptassist rate )?\s*(
\s*){0,3}
<.*?)\sclass="(?:[^"]*\s+)*(?:highlighter-rouge|highlight)"(.*?>)}{\1\2}g;'
+s{(\s*)?\s*((\r?\n)*\s*\s*)?( \s*){0,3}<.*?)\sclass="(?:[^"]*\s+)*(?:highlighter-rouge|highlight)"(.*?>)}{\1\2}g;
+s{}{}g;
+s{(.*?)}{\1}g;'
srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.
srcdir="$srcdir"/..
-if test ! -f "$srcdir"/configure.ac; then
+if test ! -f "$srcdir"/irssi.conf; then
echo -n "**Error**: Directory \`$srcdir' does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
@@ -45,6 +48,7 @@ else
any=false
fi
+addheadermark="perl -p -e s{\\K}{(q:#:x\$1).q: :}ge;s{(?=)}{q: :.(q:#:x\$1)}ge"
if type w3m >/dev/null 2>&1 ; then
converter="w3m -o display_link_number=1 -dump -T text/html"
any=true
@@ -83,25 +87,33 @@ download_it() {
mv "$3".tmp "$3"
}
-download_it "FAQ" "$faq" "$srcdir"/docs/faq.html
-download_it "Startup How-To" "$howto" "$srcdir"/docs/startup-HOWTO.html
-download_it "Design" "$design" "$srcdir"/docs/design.html
+download_it_nested() {
+ name=$1; shift
+ src=$1; shift
+ dest=$1; shift
+ download_it "$name" "$src" "$dest".nest
+ echo > "$dest"
+ eval $(perl -n -0777 -e 'print qq{download_it "\$name ($2)" "\${src}$1/" "\${dest}.$1";
+cat "\${dest}.$1" >> "\${dest}.tmp";
+rm "\${dest}.$1";\n}
+ while(m{(.*?)}g)' "$dest".nest)
+ rm "$dest".nest
+ perl -i -0777 -p -e 's{}{}g;s{\A}{\n}' "$dest".tmp
+ mv "$dest".tmp "$dest"
+}
+
+download_it_nested "QNA" "$qna" "$srcdir"/docs/qna.html
+download_it "New users guide" "$howto" "$srcdir"/docs/New-users.html
+#download_it "Design" "$design" "$srcdir"/docs/design.html
# .html -> .txt with lynx or elinks
-echo "Documentation: html -> txt..."
-
-cat "$srcdir"/docs/faq.html \
- | LC_ALL=en_IE.utf8 $converter \
- | perl -pe '
- s/^ *//;
- if ($_ eq "\n" && $state eq "Q") { $_ = ""; }
- elsif (/^([QA]):/) { $state = $1 }
- elsif ($_ ne "\n") { $_ = " $_"; };
-' > "$srcdir"/docs/faq.txt
-
-cat "$srcdir"/docs/startup-HOWTO.html \
- | perl -pe "s/\\bhref=([\"\'])#.*?\\1//" \
- | LC_ALL=en_IE.utf8 $converter > "$srcdir"/docs/startup-HOWTO.txt
-
-cat "$srcdir"/docs/design.html \
- | LC_ALL=en_IE.utf8 $converter > "$srcdir"/docs/design.txt
+echo "Documentation: html -> txt... [converter: $converter]"
+
+cat "$srcdir"/docs/qna.html \
+ | $addheadermark | $converter > "$srcdir"/docs/qna.txt
+
+cat "$srcdir"/docs/New-users.html \
+ | $addheadermark | $converter > "$srcdir"/docs/New-users.txt
+
+#cat "$srcdir"/docs/design.html \
+# | $addheadermark | $converter > "$srcdir"/docs/design.txt
diff --git a/utils/syncscripts.sh b/utils/syncscripts.sh
index 533b77ccb..5df1d036b 100755
--- a/utils/syncscripts.sh
+++ b/utils/syncscripts.sh
@@ -9,7 +9,7 @@ srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.
srcdir="$srcdir"/..
-if test ! -f "$srcdir"/configure.ac; then
+if test ! -f "$srcdir"/irssi.conf; then
echo -n "**Error**: Directory \`$srcdir' does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
diff --git a/utils/tap-driver.sh b/utils/tap-driver.sh
deleted file mode 100755
index 19aa531de..000000000
--- a/utils/tap-driver.sh
+++ /dev/null
@@ -1,652 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2011-2013 Free Software Foundation, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# This file is maintained in Automake, please report
-# bugs to or send patches to
-# .
-
-scriptversion=2011-12-27.17; # UTC
-
-# Make unconditional expansion of undefined variables an error. This
-# helps a lot in preventing typo-related bugs.
-set -u
-
-me=tap-driver.sh
-
-fatal ()
-{
- echo "$me: fatal: $*" >&2
- exit 1
-}
-
-usage_error ()
-{
- echo "$me: $*" >&2
- print_usage >&2
- exit 2
-}
-
-print_usage ()
-{
- cat <
- #
- trap : 1 3 2 13 15
- if test $merge -gt 0; then
- exec 2>&1
- else
- exec 2>&3
- fi
- "$@"
- echo $?
- ) | LC_ALL=C ${AM_TAP_AWK-awk} \
- -v me="$me" \
- -v test_script_name="$test_name" \
- -v log_file="$log_file" \
- -v trs_file="$trs_file" \
- -v expect_failure="$expect_failure" \
- -v merge="$merge" \
- -v ignore_exit="$ignore_exit" \
- -v comments="$comments" \
- -v diag_string="$diag_string" \
-'
-# FIXME: the usages of "cat >&3" below could be optimized when using
-# FIXME: GNU awk, and/on on systems that supports /dev/fd/.
-
-# Implementation note: in what follows, `result_obj` will be an
-# associative array that (partly) simulates a TAP result object
-# from the `TAP::Parser` perl module.
-
-## ----------- ##
-## FUNCTIONS ##
-## ----------- ##
-
-function fatal(msg)
-{
- print me ": " msg | "cat >&2"
- exit 1
-}
-
-function abort(where)
-{
- fatal("internal error " where)
-}
-
-# Convert a boolean to a "yes"/"no" string.
-function yn(bool)
-{
- return bool ? "yes" : "no";
-}
-
-function add_test_result(result)
-{
- if (!test_results_index)
- test_results_index = 0
- test_results_list[test_results_index] = result
- test_results_index += 1
- test_results_seen[result] = 1;
-}
-
-# Whether the test script should be re-run by "make recheck".
-function must_recheck()
-{
- for (k in test_results_seen)
- if (k != "XFAIL" && k != "PASS" && k != "SKIP")
- return 1
- return 0
-}
-
-# Whether the content of the log file associated to this test should
-# be copied into the "global" test-suite.log.
-function copy_in_global_log()
-{
- for (k in test_results_seen)
- if (k != "PASS")
- return 1
- return 0
-}
-
-# FIXME: this can certainly be improved ...
-function get_global_test_result()
-{
- if ("ERROR" in test_results_seen)
- return "ERROR"
- if ("FAIL" in test_results_seen || "XPASS" in test_results_seen)
- return "FAIL"
- all_skipped = 1
- for (k in test_results_seen)
- if (k != "SKIP")
- all_skipped = 0
- if (all_skipped)
- return "SKIP"
- return "PASS";
-}
-
-function stringify_result_obj(result_obj)
-{
- if (result_obj["is_unplanned"] || result_obj["number"] != testno)
- return "ERROR"
-
- if (plan_seen == LATE_PLAN)
- return "ERROR"
-
- if (result_obj["directive"] == "TODO")
- return result_obj["is_ok"] ? "XPASS" : "XFAIL"
-
- if (result_obj["directive"] == "SKIP")
- return result_obj["is_ok"] ? "SKIP" : COOKED_FAIL;
-
- if (length(result_obj["directive"]))
- abort("in function stringify_result_obj()")
-
- return result_obj["is_ok"] ? COOKED_PASS : COOKED_FAIL
-}
-
-function decorate_result(result)
-{
- color_name = color_for_result[result]
- if (color_name)
- return color_map[color_name] "" result "" color_map["std"]
- # If we are not using colorized output, or if we do not know how
- # to colorize the given result, we should return it unchanged.
- return result
-}
-
-function report(result, details)
-{
- if (result ~ /^(X?(PASS|FAIL)|SKIP|ERROR)/)
- {
- msg = ": " test_script_name
- add_test_result(result)
- }
- else if (result == "#")
- {
- msg = " " test_script_name ":"
- }
- else
- {
- abort("in function report()")
- }
- if (length(details))
- msg = msg " " details
- # Output on console might be colorized.
- print decorate_result(result) msg
- # Log the result in the log file too, to help debugging (this is
- # especially true when said result is a TAP error or "Bail out!").
- print result msg | "cat >&3";
-}
-
-function testsuite_error(error_message)
-{
- report("ERROR", "- " error_message)
-}
-
-function handle_tap_result()
-{
- details = result_obj["number"];
- if (length(result_obj["description"]))
- details = details " " result_obj["description"]
-
- if (plan_seen == LATE_PLAN)
- {
- details = details " # AFTER LATE PLAN";
- }
- else if (result_obj["is_unplanned"])
- {
- details = details " # UNPLANNED";
- }
- else if (result_obj["number"] != testno)
- {
- details = sprintf("%s # OUT-OF-ORDER (expecting %d)",
- details, testno);
- }
- else if (result_obj["directive"])
- {
- details = details " # " result_obj["directive"];
- if (length(result_obj["explanation"]))
- details = details " " result_obj["explanation"]
- }
-
- report(stringify_result_obj(result_obj), details)
-}
-
-# `skip_reason` should be empty whenever planned > 0.
-function handle_tap_plan(planned, skip_reason)
-{
- planned += 0 # Avoid getting confused if, say, `planned` is "00"
- if (length(skip_reason) && planned > 0)
- abort("in function handle_tap_plan()")
- if (plan_seen)
- {
- # Error, only one plan per stream is acceptable.
- testsuite_error("multiple test plans")
- return;
- }
- planned_tests = planned
- # The TAP plan can come before or after *all* the TAP results; we speak
- # respectively of an "early" or a "late" plan. If we see the plan line
- # after at least one TAP result has been seen, assume we have a late
- # plan; in this case, any further test result seen after the plan will
- # be flagged as an error.
- plan_seen = (testno >= 1 ? LATE_PLAN : EARLY_PLAN)
- # If testno > 0, we have an error ("too many tests run") that will be
- # automatically dealt with later, so do not worry about it here. If
- # $plan_seen is true, we have an error due to a repeated plan, and that
- # has already been dealt with above. Otherwise, we have a valid "plan
- # with SKIP" specification, and should report it as a particular kind
- # of SKIP result.
- if (planned == 0 && testno == 0)
- {
- if (length(skip_reason))
- skip_reason = "- " skip_reason;
- report("SKIP", skip_reason);
- }
-}
-
-function extract_tap_comment(line)
-{
- if (index(line, diag_string) == 1)
- {
- # Strip leading `diag_string` from `line`.
- line = substr(line, length(diag_string) + 1)
- # And strip any leading and trailing whitespace left.
- sub("^[ \t]*", "", line)
- sub("[ \t]*$", "", line)
- # Return what is left (if any).
- return line;
- }
- return "";
-}
-
-# When this function is called, we know that line is a TAP result line,
-# so that it matches the (perl) RE "^(not )?ok\b".
-function setup_result_obj(line)
-{
- # Get the result, and remove it from the line.
- result_obj["is_ok"] = (substr(line, 1, 2) == "ok" ? 1 : 0)
- sub("^(not )?ok[ \t]*", "", line)
-
- # If the result has an explicit number, get it and strip it; otherwise,
- # automatically assing the next progresive number to it.
- if (line ~ /^[0-9]+$/ || line ~ /^[0-9]+[^a-zA-Z0-9_]/)
- {
- match(line, "^[0-9]+")
- # The final `+ 0` is to normalize numbers with leading zeros.
- result_obj["number"] = substr(line, 1, RLENGTH) + 0
- line = substr(line, RLENGTH + 1)
- }
- else
- {
- result_obj["number"] = testno
- }
-
- if (plan_seen == LATE_PLAN)
- # No further test results are acceptable after a "late" TAP plan
- # has been seen.
- result_obj["is_unplanned"] = 1
- else if (plan_seen && testno > planned_tests)
- result_obj["is_unplanned"] = 1
- else
- result_obj["is_unplanned"] = 0
-
- # Strip trailing and leading whitespace.
- sub("^[ \t]*", "", line)
- sub("[ \t]*$", "", line)
-
- # This will have to be corrected if we have a "TODO"/"SKIP" directive.
- result_obj["description"] = line
- result_obj["directive"] = ""
- result_obj["explanation"] = ""
-
- if (index(line, "#") == 0)
- return # No possible directive, nothing more to do.
-
- # Directives are case-insensitive.
- rx = "[ \t]*#[ \t]*([tT][oO][dD][oO]|[sS][kK][iI][pP])[ \t]*"
-
- # See whether we have the directive, and if yes, where.
- pos = match(line, rx "$")
- if (!pos)
- pos = match(line, rx "[^a-zA-Z0-9_]")
-
- # If there was no TAP directive, we have nothing more to do.
- if (!pos)
- return
-
- # Let`s now see if the TAP directive has been escaped. For example:
- # escaped: ok \# SKIP
- # not escaped: ok \\# SKIP
- # escaped: ok \\\\\# SKIP
- # not escaped: ok \ # SKIP
- if (substr(line, pos, 1) == "#")
- {
- bslash_count = 0
- for (i = pos; i > 1 && substr(line, i - 1, 1) == "\\"; i--)
- bslash_count += 1
- if (bslash_count % 2)
- return # Directive was escaped.
- }
-
- # Strip the directive and its explanation (if any) from the test
- # description.
- result_obj["description"] = substr(line, 1, pos - 1)
- # Now remove the test description from the line, that has been dealt
- # with already.
- line = substr(line, pos)
- # Strip the directive, and save its value (normalized to upper case).
- sub("^[ \t]*#[ \t]*", "", line)
- result_obj["directive"] = toupper(substr(line, 1, 4))
- line = substr(line, 5)
- # Now get the explanation for the directive (if any), with leading
- # and trailing whitespace removed.
- sub("^[ \t]*", "", line)
- sub("[ \t]*$", "", line)
- result_obj["explanation"] = line
-}
-
-function get_test_exit_message(status)
-{
- if (status == 0)
- return ""
- if (status !~ /^[1-9][0-9]*$/)
- abort("getting exit status")
- if (status < 127)
- exit_details = ""
- else if (status == 127)
- exit_details = " (command not found?)"
- else if (status >= 128 && status <= 255)
- exit_details = sprintf(" (terminated by signal %d?)", status - 128)
- else if (status > 256 && status <= 384)
- # We used to report an "abnormal termination" here, but some Korn
- # shells, when a child process die due to signal number n, can leave
- # in $? an exit status of 256+n instead of the more standard 128+n.
- # Apparently, both behaviours are allowed by POSIX (2008), so be
- # prepared to handle them both. See also Austing Group report ID
- # 0000051
- exit_details = sprintf(" (terminated by signal %d?)", status - 256)
- else
- # Never seen in practice.
- exit_details = " (abnormal termination)"
- return sprintf("exited with status %d%s", status, exit_details)
-}
-
-function write_test_results()
-{
- print ":global-test-result: " get_global_test_result() > trs_file
- print ":recheck: " yn(must_recheck()) > trs_file
- print ":copy-in-global-log: " yn(copy_in_global_log()) > trs_file
- for (i = 0; i < test_results_index; i += 1)
- print ":test-result: " test_results_list[i] > trs_file
- close(trs_file);
-}
-
-BEGIN {
-
-## ------- ##
-## SETUP ##
-## ------- ##
-
-'"$init_colors"'
-
-# Properly initialized once the TAP plan is seen.
-planned_tests = 0
-
-COOKED_PASS = expect_failure ? "XPASS": "PASS";
-COOKED_FAIL = expect_failure ? "XFAIL": "FAIL";
-
-# Enumeration-like constants to remember which kind of plan (if any)
-# has been seen. It is important that NO_PLAN evaluates "false" as
-# a boolean.
-NO_PLAN = 0
-EARLY_PLAN = 1
-LATE_PLAN = 2
-
-testno = 0 # Number of test results seen so far.
-bailed_out = 0 # Whether a "Bail out!" directive has been seen.
-
-# Whether the TAP plan has been seen or not, and if yes, which kind
-# it is ("early" is seen before any test result, "late" otherwise).
-plan_seen = NO_PLAN
-
-## --------- ##
-## PARSING ##
-## --------- ##
-
-is_first_read = 1
-
-while (1)
- {
- # Involutions required so that we are able to read the exit status
- # from the last input line.
- st = getline
- if (st < 0) # I/O error.
- fatal("I/O error while reading from input stream")
- else if (st == 0) # End-of-input
- {
- if (is_first_read)
- abort("in input loop: only one input line")
- break
- }
- if (is_first_read)
- {
- is_first_read = 0
- nextline = $0
- continue
- }
- else
- {
- curline = nextline
- nextline = $0
- $0 = curline
- }
- # Copy any input line verbatim into the log file.
- print | "cat >&3"
- # Parsing of TAP input should stop after a "Bail out!" directive.
- if (bailed_out)
- continue
-
- # TAP test result.
- if ($0 ~ /^(not )?ok$/ || $0 ~ /^(not )?ok[^a-zA-Z0-9_]/)
- {
- testno += 1
- setup_result_obj($0)
- handle_tap_result()
- }
- # TAP plan (normal or "SKIP" without explanation).
- else if ($0 ~ /^1\.\.[0-9]+[ \t]*$/)
- {
- # The next two lines will put the number of planned tests in $0.
- sub("^1\\.\\.", "")
- sub("[^0-9]*$", "")
- handle_tap_plan($0, "")
- continue
- }
- # TAP "SKIP" plan, with an explanation.
- else if ($0 ~ /^1\.\.0+[ \t]*#/)
- {
- # The next lines will put the skip explanation in $0, stripping
- # any leading and trailing whitespace. This is a little more
- # tricky in truth, since we want to also strip a potential leading
- # "SKIP" string from the message.
- sub("^[^#]*#[ \t]*(SKIP[: \t][ \t]*)?", "")
- sub("[ \t]*$", "");
- handle_tap_plan(0, $0)
- }
- # "Bail out!" magic.
- # Older versions of prove and TAP::Harness (e.g., 3.17) did not
- # recognize a "Bail out!" directive when preceded by leading
- # whitespace, but more modern versions (e.g., 3.23) do. So we
- # emulate the latter, "more modern" behaviour.
- else if ($0 ~ /^[ \t]*Bail out!/)
- {
- bailed_out = 1
- # Get the bailout message (if any), with leading and trailing
- # whitespace stripped. The message remains stored in `$0`.
- sub("^[ \t]*Bail out![ \t]*", "");
- sub("[ \t]*$", "");
- # Format the error message for the
- bailout_message = "Bail out!"
- if (length($0))
- bailout_message = bailout_message " " $0
- testsuite_error(bailout_message)
- }
- # Maybe we have too look for dianogtic comments too.
- else if (comments != 0)
- {
- comment = extract_tap_comment($0);
- if (length(comment))
- report("#", comment);
- }
- }
-
-## -------- ##
-## FINISH ##
-## -------- ##
-
-# A "Bail out!" directive should cause us to ignore any following TAP
-# error, as well as a non-zero exit status from the TAP producer.
-if (!bailed_out)
- {
- if (!plan_seen)
- {
- testsuite_error("missing test plan")
- }
- else if (planned_tests != testno)
- {
- bad_amount = testno > planned_tests ? "many" : "few"
- testsuite_error(sprintf("too %s tests run (expected %d, got %d)",
- bad_amount, planned_tests, testno))
- }
- if (!ignore_exit)
- {
- # Fetch exit status from the last line.
- exit_message = get_test_exit_message(nextline)
- if (exit_message)
- testsuite_error(exit_message)
- }
- }
-
-write_test_results()
-
-exit 0
-
-} # End of "BEGIN" block.
-'
-
-# TODO: document that we consume the file descriptor 3 :-(
-} 3>"$log_file"
-
-test $? -eq 0 || fatal "I/O or internal error"
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/utils/tap-test b/utils/tap-test
deleted file mode 100755
index b3ef8b048..000000000
--- a/utils/tap-test
+++ /dev/null
@@ -1,23 +0,0 @@
-#! /bin/sh
-
-# run a GTest in tap mode. The test binary is passed as $1
-
-t="$1"; shift
-if ${PKG_CONFIG:-pkg-config} --atleast-version 2.40 glib-2.0; then
-exec "$t" -k --tap "$@"
-else # GTest does not support tap yet
- (((("$t" "$@"; echo $? >&3) | ${AM_TAP_AWK:-awk} '
-{
- if (/: /) {
- i++
- ok = /: OK/
- sub(/:/, " #")
- print (ok ? "ok " : "not ok ") i " " $0
- } else {
- print "# " $0
- }
-} END {
- print 1 ".." i
-}
-' >&4) 3>&1) | (read xs; exit $xs)) 4>&1
-fi