@cryptotaxi247 / netdata-1 / commits / 899b8b142

Add support for openSUSE 15.5 (#15189)

Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>

Tasos Katsoulas committed Jun 14, 2023 at 17:44 UTC 899b8b142fc59b44928c65b5250ac24ed579d607
4 files changed +11 -4
.github/data/distros.yml
+6
@@ -177,6 +177,12 @@ include:
177 - aarch64
178 test:
179 ebpf-core: true
180 + - <<: *opensuse
181 + version: "15.5"
182 + base_image: opensuse/leap:15.5
183 + packages:
184 + <<: *opensuse_packages
185 + repo_distro: opensuse/15.5
186
187 - &oracle
188 distro: oraclelinux
.github/scripts/pkg-test.sh
+2 -2
@@ -82,10 +82,10 @@ install_suse_like() {
82
83 # Install Netdata
84 # Strange quoting is required here so that glob matching works.
85 - zypper install -y --allow-unsigned-rpm /netdata/artifacts/netdata*.rpm || exit 1
85 + zypper install -y --allow-downgrade --allow-unsigned-rpm /netdata/artifacts/netdata*.rpm || exit 1
86
87 # Install testing tools
88 - zypper install -y --no-recommends curl netcat-openbsd jq || exit 1
88 + zypper install -y --allow-downgrade --no-recommends curl netcat-openbsd jq || exit 1
89 }
90
91 dump_log() {
packaging/PLATFORM_SUPPORT.md
+1
@@ -69,6 +69,7 @@ to work on these platforms with minimal user effort.
69 | Fedora | 38 | x86\_64, AArch64 | |
70 | Fedora | 37 | x86\_64, AArch64 | |
71 | openSUSE | Leap 15.4 | x86\_64, AArch64 | |
72 +| openSUSE | Leap 15.5 | x86\_64, AArch64 | |
73 | Oracle Linux | 9.x | x86\_64, AArch64 | |
74 | Oracle Linux | 8.x | x86\_64, AArch64 | |
75 | Red Hat Enterprise Linux | 9.x | x86\_64, AArch64 | |
packaging/installer/install-required-packages.sh
+2 -2
@@ -1723,6 +1723,7 @@ install_zypper() {
1723 fi
1724
1725 local opts="--ignore-unknown"
1726 + local install_opts="--allow-downgrade"
1727 if [ "${NON_INTERACTIVE}" -eq 1 ]; then
1728 echo >&2 "Running in non-interactive mode"
1729 # http://unix.stackexchange.com/questions/82016/how-to-use-zypper-in-bash-scripts-for-someone-coming-from-apt-get
@@ -1730,9 +1731,8 @@ install_zypper() {
1731 fi
1732
1733 read -r -a zypper_opts <<< "$opts"
1733 -
1734 # install the required packages
1735 - run ${sudo} zypper "${zypper_opts[@]}" install "${@}"
1735 + run ${sudo} zypper "${zypper_opts[@]}" install "${install_opts}" "${@}"
1736 }
1737
1738 # -----------------------------------------------------------------------------