diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d50a963..454357d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,14 +59,15 @@ jobs: - ubuntu:22.04 - ubuntu:20.04 - ubuntu:18.04 + - debian:bookworm - debian:bullseye - debian:buster - - centos:centos7 - rockylinux:9 - rockylinux:8 + - centos:centos7 - fedora:37 - fedora:36 - - alpine:3.17 + - alpine:3.18 container: image: ${{ matrix.container }} diff --git a/.github/workflows/ostypevars.sh b/.github/workflows/ostypevars.sh index 6ccdefb..1acb8f9 100644 --- a/.github/workflows/ostypevars.sh +++ b/.github/workflows/ostypevars.sh @@ -131,6 +131,20 @@ elif [ "${CI_OSTYPE}" = "ubuntu:18.04" ] || [ "${CI_OSTYPE}" = "ubuntu:bionic" ] PKG_EXT="deb" IS_OS_UBUNTU=1 +elif [ "${CI_OSTYPE}" = "debian:12" ] || [ "${CI_OSTYPE}" = "debian:bookworm" ]; then + DIST_TAG="debian/bookworm" + INSTALL_PKG_LIST="git autoconf autotools-dev make dh-make fakeroot dpkg-dev devscripts pkg-config ruby-dev rubygems rubygems-integration procps" + INSTALLER_BIN="apt-get" + UPDATE_CMD="update" + UPDATE_CMD_ARG="" + INSTALL_CMD="install" + INSTALL_CMD_ARG="" + INSTALL_AUTO_ARG="-y" + INSTALL_QUIET_ARG="-qq" + PKG_OUTPUT_DIR="debian_build" + PKG_EXT="deb" + IS_OS_DEBIAN=1 + elif [ "${CI_OSTYPE}" = "debian:11" ] || [ "${CI_OSTYPE}" = "debian:bullseye" ]; then DIST_TAG="debian/bullseye" INSTALL_PKG_LIST="git autoconf autotools-dev make dh-make fakeroot dpkg-dev devscripts pkg-config ruby-dev rubygems rubygems-integration procps" @@ -229,8 +243,8 @@ elif [ "${CI_OSTYPE}" = "fedora:36" ]; then PKG_EXT="rpm" IS_OS_FEDORA=1 -elif [ "${CI_OSTYPE}" = "alpine:3.17" ]; then - DIST_TAG="alpine/v3.17" +elif [ "${CI_OSTYPE}" = "alpine:3.18" ]; then + DIST_TAG="alpine/v3.18" INSTALL_PKG_LIST="bash sudo alpine-sdk automake autoconf musl-locales ruby-dev procps" INSTALLER_BIN="apk" UPDATE_CMD="update" diff --git a/buildutils/make_variables.sh b/buildutils/make_variables.sh index f6727cb..7eb1cbb 100755 --- a/buildutils/make_variables.sh +++ b/buildutils/make_variables.sh @@ -205,7 +205,7 @@ elif [ "${PRGMODE}" = "DEBHELPER" ]; then # That string is depended debhelper package version and os etc. # (if not ubuntu/debian os, returns default string) # - OS_ID_STRING=$(grep '^ID[[:space:]]*=[[:space:]]*' /etc/os-release | sed -e 's|^ID[[:space:]]*=[[:space:]]*||g' -e 's|^[[:space:]]*||g' -e 's|[[:space:]]*$||g') + OS_ID_STRING=$(grep '^ID[[:space:]]*=[[:space:]]*' /etc/os-release | sed -e 's|^ID[[:space:]]*=[[:space:]]*||g' -e 's|^[[:space:]]*||g' -e 's|[[:space:]]*$||g' -e 's|"||g') DEBHELPER_MAJOR_VER=$(apt-cache show debhelper 2>/dev/null | grep Version 2>/dev/null | awk '{print $2}' 2>/dev/null | sed -e 's/\..*/ /g' 2>/dev/null) @@ -220,10 +220,10 @@ elif [ "${PRGMODE}" = "DEBHELPER" ]; then fi if [ -n "${OS_ID_STRING}" ]; then - if [ "${OS_ID_STRING}" = "debian" ]; then + if echo "${OS_ID_STRING}" | grep -q -i "debian"; then RESULT="debhelper (>= 9.20160709)${DEB_WITH_SYSTEMD_STRING}, autotools-dev" - elif [ "${OS_ID_STRING}" = "ubuntu" ]; then + elif echo "${OS_ID_STRING}" | grep -q -i "ubuntu"; then if [ "${DEBHELPER_MAJOR_VER}" -lt 10 ]; then RESULT="debhelper (>= 9.20160709)${DEB_WITH_SYSTEMD_STRING}, autotools-dev" else @@ -243,7 +243,7 @@ elif [ "${PRGMODE}" = "RPMGROUP" ]; then # Fedora rpm does not need "Group" key in spec file. # If not fedora, returns "NEEDRPMGROUP", and you must replace this string in configure.ac # - if grep -q '^ID[[:space:]]*=[[:space:]]*["]*fedora["]*[[:space:]]*$' /etc/os-release; then + if grep -q -i '^ID[[:space:]]*=[[:space:]]*["]*fedora["]*[[:space:]]*$' /etc/os-release; then RESULT="" else RESULT="NEEDRPMGROUP"