You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2021/04/21 18:02:21 UTC

[couchdb-pkg] branch main updated: Fixes for bullseye

This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git


The following commit(s) were added to refs/heads/main by this push:
     new cff02c2  Fixes for bullseye
cff02c2 is described below

commit cff02c2226249267ec85fad2c5b72b159b9002e4
Author: Joan Touzet <wo...@apache.org>
AuthorDate: Wed Apr 21 11:02:13 2021 -0700

    Fixes for bullseye
---
 Makefile          | 25 +++++++++++++++++++++++++
 bin/detect-os.sh  |  6 +++++-
 build.sh          |  2 +-
 debian/control.in |  1 -
 4 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 768d43b..4404621 100644
--- a/Makefile
+++ b/Makefile
@@ -83,6 +83,31 @@ ppc64le-debian-buster: buster
 
 buster: debian
 
+# Debian 11 - bullseye
+debian-bullseye: PLATFORM=bullseye
+debian-bullseye: DIST=debian-bullseye
+debian-bullseye: SPIDERMONKEY=libmozjs-78-0
+debian-bullseye: SPIDERMONKEY_DEV=libmozjs-78-dev
+debian-bullseye: SM_VER=78
+debian-bullseye: bullseye
+
+arm64v8-debian-bullseye: aarch64-debian-bullseye
+aarch64-debian-bullseye: PLATFORM=bullseye
+aarch64-debian-bullseye: DIST=debian-bullseye
+aarch64-debian-bullseye: SPIDERMONKEY=libmozjs-78-0
+aarch64-debian-bullseye: SPIDERMONKEY_DEV=libmozjs-78-dev
+aarch64-debian-bullseye: SM_VER=78
+aarch64-debian-bullseye: bullseye
+
+ppc64le-debian-bullseye: PLATFORM=bullseye
+ppc64le-debian-bullseye: DIST=debian-bullseye
+ppc64le-debian-bullseye: SPIDERMONKEY=libmozjs-78-0
+ppc64le-debian-bullseye: SPIDERMONKEY_DEV=libmozjs-78-dev
+ppc64le-debian-bullseye: SM_VER=78
+ppc64le-debian-bullseye: bullseye
+
+bullseye: debian
+
 
 # Ubuntu 16.04 (Xenial)
 ubuntu-xenial: PLATFORM=xenial
diff --git a/bin/detect-os.sh b/bin/detect-os.sh
index 83ffb51..8359d24 100755
--- a/bin/detect-os.sh
+++ b/bin/detect-os.sh
@@ -82,10 +82,13 @@ case "${OSTYPE}" in
       if [[ ${PRETTY_NAME} =~ "Ubuntu" ]]; then
         # Ubuntu keeps changing the format of /etc/os-release's VERSION, and
         # the codename is buried. Boo. Let's use a fancy regex.
+        VERSION_ID=${VERSION_ID:-$(dpkg --status tzdata|grep Provides|cut -f2 -d'-')}
         VERSION_CODENAME=${VERSION_CODENAME:-$(echo ${VERSION} | sed -E 's/([0-9.]+)\W+([A-Za-z\,]+)\W+\(?(\w+)(.*)/\L\3/')}
         DISTRIB_CODENAME=${DISTRIB_CODENAME:-${VERSION_CODENAME}}
       elif [[ ${PRETTY_NAME} =~ "Debian" ]]; then
-        VERSION_CODENAME=${VERSION_CODENAME:-$(echo ${VERSION} | sed -E 's/(.*)\(([^\]+)\)/\2/')}
+        VERSION_ID=${VERSION_ID:-$(dpkg --status tzdata|grep Provides|cut -f2 -d'-')}
+        VERSION=${VERSION:-${VERSION_ID}}
+        VERSION_CODENAME=${VERSION_CODENAME:-$(echo ${VERSION} | sed -E 's/(.*)\(([^\]+)\)/\2/' | sed -E 's/(.*)\/.*/\1/')}
         DISTRIB_CODENAME=${DISTRIB_CODENAME:-${VERSION_CODENAME}}
       else
         echo "Unknown Debian-like OS ${PRETTY_NAME}, aborting..."
@@ -96,6 +99,7 @@ case "${OSTYPE}" in
       echo "Detected distribution: ${ID}, version ${VERSION_ID} (${VERSION_CODENAME})"
     else
       echo "Unable to determine Linux distribution! Aborting."
+      echo "Detected: ID=${ID}, VERSION_ID=${VERSION_ID}, VERSION_CODENAME=(${VERSION_CODENAME})"
       exit 1
     fi
     ;;
diff --git a/build.sh b/build.sh
index 1842361..b2b3513 100755
--- a/build.sh
+++ b/build.sh
@@ -28,7 +28,7 @@ set -e
 SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
 # TODO derive these by interrogating the couchdb-ci repo rather than hard coding the list...
-DEBIANS="debian-stretch debian-buster"
+DEBIANS="debian-stretch debian-buster debian-bullseye"
 UBUNTUS="ubuntu-xenial ubuntu-bionic ubuntu-focal"
 CENTOSES="centos-7 centos-8"
 XPLAT_BASE="debian-buster"
diff --git a/debian/control.in b/debian/control.in
index a5e6e71..03437f9 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -5,7 +5,6 @@ Maintainer: CouchDB Developers <de...@couchdb.apache.org>
 Standards-Version: 3.9.6
 Build-Depends: debhelper (>= 9),
                dh-exec,
-               dh-systemd (>= 1.5),
                erlang-dev (>= 1:19.2.1) | esl-erlang (>= 1:19.2.1),
                erlang-crypto | esl-erlang,
                erlang-dialyzer | esl-erlang,