Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
provision: Add support for debian bullseye.
Gaurav Pandey78524d4f87f3
diff --git a/docs/development/setup-advanced.md b/docs/development/setup-advanced.mdindex bb83aa137aa..d063b0b90bf 100644--- a/docs/development/setup-advanced.md+++ b/docs/development/setup-advanced.md@@ -14,7 +14,7 @@ If you'd like to install a Zulip development environment on a computerthat's running one of:* Ubuntu 20.04 Focal, 18.04 Bionic-* Debian 10 Buster+* Debian 10 Buster, 11 Bullseye (beta)* CentOS 7 (beta)* Fedora 33 (beta)* RHEL 7 (beta)diff --git a/docs/development/setup-vagrant.md b/docs/development/setup-vagrant.mdindex ba0eb7d0018..850a6577bf6 100644--- a/docs/development/setup-vagrant.md+++ b/docs/development/setup-vagrant.md@@ -49,7 +49,7 @@ a proxy to access the internet.)- **All**: 2GB available RAM, Active broadband internet connection, [GitHub account][set-up-git].- **macOS**: macOS (10.11 El Capitan or newer recommended)- **Ubuntu LTS**: 20.04 or 18.04- - or **Debian**: 10 "buster"+ - or **Debian**: 10 "buster" or 11 "bullseye"- **Windows**: Windows 64-bit (Win 10 recommended), hardwarevirtualization enabled (VT-x or AMD-V), administrator access.diff --git a/scripts/lib/setup-apt-repo b/scripts/lib/setup-apt-repoindex 3d5c762194c..0be865f3e3c 100755--- a/scripts/lib/setup-apt-repo+++ b/scripts/lib/setup-apt-repo@@ -67,7 +67,7 @@ deb-src http://apt.postgresql.org/pub/repos/apt/ $release-pgdg maindeb http://ppa.launchpad.net/groonga/ppa/ubuntu $release maindeb-src http://ppa.launchpad.net/groonga/ppa/ubuntu $release mainEOF-elif [[ "$release" =~ ^(buster)$ ]]; then+elif [[ "$release" =~ ^(buster|bullseye)$ ]]; thendistribution=debianapt-key add "$SCRIPTS_PATH"/setup/pgdg.asccat >$SOURCES_FILE <<EOFdiff --git a/scripts/lib/setup-apt-repo-ksplice b/scripts/lib/setup-apt-repo-kspliceindex d29ff6f2728..34bb24e1380 100755--- a/scripts/lib/setup-apt-repo-ksplice+++ b/scripts/lib/setup-apt-repo-ksplice@@ -56,7 +56,7 @@ apt-get -y install "${pre_setup_deps[@]}"SCRIPTS_PATH="$(cd "$(dirname "$(dirname "$0")")" && pwd)"release=$(lsb_release -sc)-if [[ "$release" =~ ^(buster|bionic|cosmic|disco|eoan|focal|groovy)$ ]]; then+if [[ "$release" =~ ^(buster|bullseye|bionic|cosmic|disco|eoan|focal|groovy)$ ]]; thenapt-key add "$SCRIPTS_PATH"/setup/ksplice.asccat >$SOURCES_FILE <<EOFdeb http://www.ksplice.com/apt $release ksplicediff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.pyindex 958e5662d5d..71f30c4296d 100755--- a/scripts/lib/zulip_tools.py+++ b/scripts/lib/zulip_tools.py@@ -425,6 +425,11 @@ def parse_os_release() -> Dict[str, str]:continuek, v = line.split("=", 1)[distro_info[k]] = shlex.split(v)+ if distro_info["PRETTY_NAME"] == "Debian GNU/Linux bullseye/sid":+ # This hack can be removed once bullseye releases and reports+ # its VERSION_ID in /etc/os-release.+ distro_info["VERSION_CODENAME"] = "bullseye"+ distro_info["VERSION_ID"] = "11"return distro_infodiff --git a/tools/lib/provision.py b/tools/lib/provision.pyindex 730507ee4b8..563c3256025 100755--- a/tools/lib/provision.py+++ b/tools/lib/provision.py@@ -97,6 +97,8 @@ vendor = distro_info["ID"]os_version = distro_info["VERSION_ID"]if vendor == "debian" and os_version == "10": # busterPOSTGRESQL_VERSION = "11"+elif vendor == "debian" and os_version == "11": # bullseye+ POSTGRESQL_VERSION = "13"elif vendor == "ubuntu" and os_version in ["18.04", "18.10"]: # bionic, cosmicPOSTGRESQL_VERSION = "10"elif vendor == "ubuntu" and os_version in ["19.04", "19.10"]: # disco, eoan@@ -197,8 +199,17 @@ if vendor == "debian" and os_version in [] or vendor == "ubuntu" and os_version*VENV_DEPENDENCIES,]elif "debian" in os_families():+ DEBIAN_DEPENDECIES = UBUNTU_COMMON_APT_DEPENDENCIES+ # The below condition is required since libappindicator is+ # not available for bullseye (sid). "libgroonga1" is an+ # additional depedency for postgresql-13-pgdg-pgroonga.+ #+ # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895037+ if distro_info["VERSION_CODENAME"] == "bullseye":+ DEBIAN_DEPENDECIES.remove("libappindicator1")+ DEBIAN_DEPENDECIES.append("libgroonga0")SYSTEM_DEPENDENCIES = [- *UBUNTU_COMMON_APT_DEPENDENCIES,+ *DEBIAN_DEPENDECIES,f"postgresql-{POSTGRESQL_VERSION}",f"postgresql-{POSTGRESQL_VERSION}-pgdg-pgroonga",*VENV_DEPENDENCIES,