Skip to content

Commit

Permalink
Add support for Erlang/OTP 27
Browse files Browse the repository at this point in the history
Add OTP 27 to the github workflow yaml file. Supporting OTP 27 means
we no longer support OTP 22, so remove 22.x from the github yaml file
and fix README files, documentation, configure.ac and rebar.config to
require 23.0 as the minimum OTP version.
  • Loading branch information
vinoski committed Jul 13, 2024
1 parent 54e3c7c commit 3fa8f11
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
fail-fast: false
matrix:
otp:
- "27.0"
- "26.2"
- "26.1"
- "26.0"
Expand All @@ -29,10 +30,6 @@ jobs:
- "23.2"
- "23.1"
- "23.0"
- "22.3"
- "22.2"
- "22.1"
- "22.0"
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Prepare build

Get and install an Erlang system (http://www.erlang.org).

**To compile Yaws, Erlang/OTP 22.0 or higher is required.**
**To compile Yaws, Erlang/OTP 23.0 or higher is required.**

If you've cloned the source from github and you want to build using autotools,
note there is no ./configure script in the source, so create one:
Expand Down
2 changes: 1 addition & 1 deletion README.osx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Homebrew on OSX

If you develop on OS X, the Yaws formula works correctly for users of
Erlang/OTP 22.0 and above. To install please run:
Erlang/OTP 23.0 and above. To install please run:

brew install yaws

Expand Down
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ dnl Get ERTS version.
ERLANG_CHECK_ERTS
ERLANG_CHECK_RELEASE

dnl Require Erlang >=22.0 (ERTS 10.4) is required.
AX_COMPARE_VERSION([${ERLANG_ERTS_VER}], [ge], [10.4],
dnl Require Erlang >=23.0 (ERTS 11.0) is required.
AX_COMPARE_VERSION([${ERLANG_ERTS_VER}], [ge], [11.0],
[],
[AC_MSG_ERROR([Erlang 22.0 or higher is required but only Erlang $ERLANG_RELEASE was found!])])
[AC_MSG_ERROR([Erlang 23.0 or higher is required but only Erlang $ERLANG_RELEASE was found!])])

dnl Determine directories for installation.
if test "x${prefix}" != "xNONE" -a "x${ERLANG_INSTALL_LIB_DIR}" = "x"; then
Expand Down
2 changes: 1 addition & 1 deletion doc/yaws.tex
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ \subsection{Compile and Install}

To compile and install a \Yaws\ release
one of the prerequisites is a properly installed \Erlang\ system. \Yaws\
runs on \Erlang\/OTP releases 22.0 and newer. Get \Erlang\ from
runs on \Erlang\/OTP releases 23.0 and newer. Get \Erlang\ from
\url{http://www.erlang.org/}

Compile and install is straight forward:
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
{require_min_otp_vsn, "22.0"}.
{require_min_otp_vsn, "23.0"}.

{sub_dirs, ["rel"]}.

Expand Down

0 comments on commit 3fa8f11

Please sign in to comment.