diff --git a/.matrix.yml b/.matrix.yml index 189d6350f98..f61e86d7202 100644 --- a/.matrix.yml +++ b/.matrix.yml @@ -18,6 +18,17 @@ OS: - bareos xUbuntu: + "22.04": + TYPE: deb + IMAGE: "ubuntu22.04" + ARCH: + - x86_64 + PROJECTPACKAGES: + x86_64: + - bareos + - bareos-webui + - bareos-vmware + - python-bareos "20.04": TYPE: deb IMAGE: "ubuntu20.04" @@ -43,9 +54,9 @@ OS: - python-bareos openSUSE: - "Leap_15.3": + "Leap_15.4": TYPE: rpm - IMAGE: opensuse-leap153 + IMAGE: opensuse-leap154 ARCH: - x86_64 PROJECTPACKAGES: @@ -53,9 +64,9 @@ OS: - bareos - python-bareos - "Leap_15.2": + "Leap_15.3": TYPE: rpm - IMAGE: opensuse-leap152 + IMAGE: opensuse-leap153 ARCH: - x86_64 PROJECTPACKAGES: @@ -115,18 +126,18 @@ OS: - python-bareos Fedora: - "35": + "36": TYPE: rpm - IMAGE: fedora35 + IMAGE: fedora36 ARCH: - x86_64 PROJECTPACKAGES: x86_64: - bareos - python-bareos - "34": + "35": TYPE: rpm - IMAGE: fedora34 + IMAGE: fedora35 ARCH: - x86_64 PROJECTPACKAGES: @@ -158,6 +169,16 @@ OS: - python-bareos EL: + "9": + TYPE: rpm + IMAGE: centos9 + ARCH: + - x86_64 + PROJECTPACKAGES: + x86_64: + - bareos + - bareos-vmware + - python-bareos "8": TYPE: rpm IMAGE: rocky8 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e7b4ee52e8..27e327d0e7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ and since Bareos version 20 this project adheres to [Semantic Versioning](https: - systemtest py*plug-fd-contrib-bareos_tasks_mysql [PR #768] - webui: introduce rerun of multiple jobs at once [PR #1109] - dird: console: add the ability to rerun multiple commas separated jobids [PR #1170] +- build: Add support for Ubuntu 22.04, Fedora 36, EL 9, openSUSE 15.4 [PR #1179] ### Fixed - python plugins: store architecture specific modules in sitearch (instead of sitelib) [PR #698] diff --git a/core/cmake/BareosFindAllLibraries.cmake b/core/cmake/BareosFindAllLibraries.cmake index ac75b293b15..d1e43eb10d8 100644 --- a/core/cmake/BareosFindAllLibraries.cmake +++ b/core/cmake/BareosFindAllLibraries.cmake @@ -1,6 +1,6 @@ # BAREOSĀ® - Backup Archiving REcovery Open Sourced # -# Copyright (C) 2017-2021 Bareos GmbH & Co. KG +# Copyright (C) 2017-2022 Bareos GmbH & Co. KG # # This program is Free Software; you can redistribute it and/or # modify it under the terms of version three of the GNU Affero General Public @@ -23,6 +23,8 @@ if(${SYSTEMD_FOUND}) endif() option(ENABLE_PYTHON "Enable Python support" ON) +option(ENABLE_PYTHON2 "Enable Python2 support" ON) + if(NOT ENABLE_PYTHON) set(HAVE_PYTHON 0) set(Python2_FOUND 0) @@ -42,7 +44,11 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") set(Python3_FOUND 0) else() - find_package(Python2 COMPONENTS Interpreter Development) + if(ENABLE_PYTHON2) + find_package(Python2 COMPONENTS Interpreter Development) + else() + set(Python2_FOUND 0) + endif() find_package(Python3 COMPONENTS Interpreter Development) set(Python3_VERSION_MAJOR diff --git a/core/platforms/packaging/bareos.spec b/core/platforms/packaging/bareos.spec index e006cafeb4a..65b998d269b 100644 --- a/core/platforms/packaging/bareos.spec +++ b/core/platforms/packaging/bareos.spec @@ -1,7 +1,7 @@ # # spec file for package bareos # Copyright (c) 2011-2012 Bruno Friedmann (Ioda-Net) and Philipp Storz (dass IT) -# 2013-2021 Bareos GmbH & Co KG +# 2013-2022 Bareos GmbH & Co KG # Name: bareos @@ -45,6 +45,7 @@ Vendor: The Bareos Team %define install_suse_fw 0 %define systemd_support 0 %define python_plugins 1 +%define python2_available 1 %define contrib 1 # cmake build directory @@ -122,13 +123,18 @@ BuildRequires: devtoolset-8-gcc BuildRequires: devtoolset-8-gcc-c++ %endif -%if 0%{?sle_version} >= 150300 || 0%{?suse_version} > 1500 +%if 0%{?sle_version} == 150400 +BuildRequires: gcc11 +BuildRequires: gcc11-c++ +%else + %if 0%{?sle_version} == 150300 || 0%{?suse_version} > 1500 BuildRequires: gcc10 BuildRequires: gcc10-c++ -%else - %if 0%{?suse_version} + %else + %if 0%{?suse_version} BuildRequires: gcc9 BuildRequires: gcc9-c++ + %endif %endif %endif @@ -155,7 +161,7 @@ BuildRequires: librados-devel BuildRequires: librados2-devel BuildRequires: libcephfs1-devel %else - %if 0%{?rhel} == 8 + %if 0%{?rhel} == 8 || 0%{?rhel} == 9 BuildRequires: librados-devel BuildRequires: libradosstriper-devel BuildRequires: libcephfs-devel @@ -208,15 +214,14 @@ BuildRequires: qt-devel %endif %endif - %if 0%{?python_plugins} -%if 0%{?centos_version} >= 800 || 0%{?rhel_version} >= 800 || 0%{?fedora} >= 31 + %if 0%{?fedora} >= 36 || 0%{?rhel_version} >= 900 || 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400 +%define python2_available 0 + %endif + %if 0%{python2_available} BuildRequires: python2-devel >= 2.6 + %endif BuildRequires: python3-devel >= 3.4 -%else -BuildRequires: python-devel >= 2.6 -BuildRequires: python3-devel >= 3.4 -%endif %endif %if 0%{?suse_version} @@ -249,7 +254,9 @@ BuildRequires: passwd # Some magic to be able to determine what platform we are running on. %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version} +%if 0%{?centos_version} < 900 BuildRequires: redhat-lsb +%endif # older versions require additional release packages %if 0%{?rhel_version} && 0%{?rhel_version} <= 600 @@ -462,6 +469,7 @@ Provides: %{name}-tray-monitor-qt %endif %if 0%{?python_plugins} + %if 0%{?python2_available} %package director-python2-plugin Summary: Python plugin for Bareos Director daemon Group: Productivity/Archiving/Backup @@ -469,7 +477,7 @@ Requires: bareos-director = %{version} Requires: bareos-director-python-plugins-common = %{version} Provides: bareos-director-python-plugin Obsoletes: bareos-director-python-plugin <= %{version} - + %endif %package director-python3-plugin Summary: Python plugin for Bareos Director daemon Group: Productivity/Archiving/Backup @@ -484,6 +492,7 @@ Group: Productivity/Archiving/Backup Requires: bareos-director = %{version} + %if 0%{?python2_available} %package filedaemon-python2-plugin Summary: Python plugin for Bareos File daemon Group: Productivity/Archiving/Backup @@ -491,7 +500,7 @@ Requires: bareos-filedaemon = %{version} Requires: bareos-filedaemon-python-plugins-common = %{version} Provides: bareos-filedaemon-python-plugin Obsoletes: bareos-filedaemon-python-plugin <= %{version} - + %endif %package filedaemon-python3-plugin Summary: Python plugin for Bareos File daemon Group: Productivity/Archiving/Backup @@ -544,6 +553,7 @@ Requires: bareos-filedaemon = %{version} Requires: bareos-filedaemon-python-plugin = %{version} + %if 0%{?python2_available} %package storage-python2-plugin Summary: Python plugin for Bareos Storage daemon Group: Productivity/Archiving/Backup @@ -551,7 +561,7 @@ Requires: bareos-storage = %{version} Requires: bareos-storage-python-plugins-common = %{version} Provides: bareos-storage-python-plugin Obsoletes: bareos-storage-python-plugin <= %{version} - + %endif %package storage-python3-plugin Summary: Python plugin for Bareos Storage daemon Group: Productivity/Archiving/Backup @@ -606,11 +616,12 @@ Keeps bareos/plugins/vmware_plugin subdirectory, which have been used in Bareos # VMware Plugin END %endif + %if 0%{python2_available} %description director-python2-plugin %{dscr} This package contains the python plugin for the director daemon - + %endif %description director-python3-plugin %{dscr} @@ -621,11 +632,12 @@ This package contains the python 3 plugin for the director daemon This package contains the common files for the python 2 and python 3 director plugins. + %if 0%{python2_available} %description filedaemon-python2-plugin %{dscr} This package contains the python plugin for the file daemon - + %endif %description filedaemon-python3-plugin %{dscr} @@ -667,11 +679,12 @@ This package contains the Percona python plugin for the file daemon This package contains the Mariabackup python plugin for the file daemon + %if 0%{python2_available} %description storage-python2-plugin %{dscr} This package contains the python plugin for the storage daemon - + %endif %description storage-python3-plugin %{dscr} @@ -766,7 +779,7 @@ BuildRequires: httpd-devel %define _apache_conf_dir /etc/httpd/conf.d/ %define www_daemon_user apache %define www_daemon_group apache -%if 0%{?fedora_version} >= 33 +%if 0%{?fedora_version} >= 33 || 0%{?rhel_version} >= 900 Requires: php-fpm %else Requires: mod_php @@ -947,13 +960,18 @@ source /opt/rh/devtoolset-8/enable %endif # use modern compiler on suse -%if 0%{?sle_version} >= 150300 || 0%{?suse_version} > 1500 +%if 0%{?sle_version} == 150400 +CC=gcc-11 ; export CC +CXX=g++-11 ; export CXX +%else + %if 0%{?sle_version} == 150300 || 0%{?suse_version} > 1500 CC=gcc-10 ; export CC CXX=g++-10 ; export CXX -%else - %if 0%{?suse_version} + %else + %if 0%{?suse_version} CC=gcc-9 ; export CC CXX=g++-9 ; export CXX + %endif %endif %endif @@ -1032,7 +1050,10 @@ cmake .. \ -Dincludes=yes \ -Ddefault_db_backend="XXX_REPLACE_WITH_DATABASE_DRIVER_XXX" \ -Dwebuiconfdir=%{_sysconfdir}/bareos-webui \ - -DVERSION_STRING=%version + -DVERSION_STRING=%version \ + %if !0%{python2_available} + -DENABLE_PYTHON2=no \ + %endif #Add flags %__make CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}; @@ -1561,11 +1582,12 @@ mkdir -p %{?buildroot}/%{_libdir}/bareos/plugins/vmware_plugin %endif %if 0%{?python_plugins} + %if 0%{python2_available} %files filedaemon-python2-plugin %defattr(-, root, root) %{plugin_dir}/python-fd.so %{python2_sitearch}/bareosfd*.so - + %endif %files filedaemon-python3-plugin %defattr(-, root, root) %{plugin_dir}/python3-fd.so @@ -1620,11 +1642,12 @@ mkdir -p %{?buildroot}/%{_libdir}/bareos/plugins/vmware_plugin %{plugin_dir}/BareosFdPluginMariabackup.py* + %if 0%{python2_available} %files director-python2-plugin %defattr(-, root, root) %{plugin_dir}/python-dir.so %{python2_sitearch}/bareosdir*.so - + %endif %files director-python3-plugin %defattr(-, root, root) %{plugin_dir}/python3-dir.so @@ -1635,11 +1658,12 @@ mkdir -p %{?buildroot}/%{_libdir}/bareos/plugins/vmware_plugin %{plugin_dir}/bareos-dir-class-plugin.py* %{plugin_dir}/BareosDirWrapper.py* + %if 0%{python2_available} %files storage-python2-plugin %defattr(-, root, root) %{plugin_dir}/python-sd.so %{python2_sitearch}/bareossd*.so - + %endif %files storage-python3-plugin %defattr(-, root, root) %{plugin_dir}/python3-sd.so diff --git a/core/src/droplet/libdroplet/CMakeLists.txt b/core/src/droplet/libdroplet/CMakeLists.txt index 17832c1a9c6..b146f52fba8 100644 --- a/core/src/droplet/libdroplet/CMakeLists.txt +++ b/core/src/droplet/libdroplet/CMakeLists.txt @@ -1,6 +1,6 @@ # BAREOSĀ® - Backup Archiving REcovery Open Sourced # -# Copyright (C) 2020-2020 Bareos GmbH & Co. KG +# Copyright (C) 2020-2022 Bareos GmbH & Co. KG # # This program is Free Software; you can redistribute it and/or # modify it under the terms of version three of the GNU Affero General Public @@ -98,6 +98,9 @@ add_library( src/backend/posix/replyparser.c ) +# openssl 3.0 +target_compile_options(droplet PUBLIC -Wno-deprecated-declarations) + target_include_directories( droplet PUBLIC include ${LIBXML2_INCLUDE_DIR} ${JSONC_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR} diff --git a/core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h b/core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h index 7d2886a28fd..6d1ee072a23 100644 --- a/core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h +++ b/core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h @@ -77,9 +77,9 @@ /* idempotence symbol used in my style header file. */ #ifndef DONE_STYLE - typedef unsigned long ulong; -typedef unsigned bool; +# include "stdbool.h" +// typedef unsigned bool; typedef unsigned char* p_ubyte_; # ifndef TRUE diff --git a/core/src/lib/CMakeLists.txt b/core/src/lib/CMakeLists.txt index 96b3d0492fa..fbcdab962d4 100644 --- a/core/src/lib/CMakeLists.txt +++ b/core/src/lib/CMakeLists.txt @@ -140,6 +140,9 @@ endif() add_library(bareos SHARED ${BAREOS_SRCS} $) +# openssl 3.0 +target_compile_options(bareos PUBLIC -Wno-deprecated-declarations) + add_library(version-obj OBJECT version.cc) target_compile_definitions( version-obj diff --git a/debian/control b/debian/control index afc744252bd..18151cabb24 100644 --- a/debian/control +++ b/debian/control @@ -42,7 +42,7 @@ Build-Depends: acl-dev, ncurses-dev, pkg-config, po-debconf (>= 0.8.2), - python-dev, + python-dev , zlib1g-dev, systemd, dh-systemd , diff --git a/debian/control.src b/debian/control.src index 1c011056ede..006f42042db 100644 --- a/debian/control.src +++ b/debian/control.src @@ -34,7 +34,7 @@ Build-Depends: acl-dev, ncurses-dev, pkg-config, po-debconf (>= 0.8.2), - python-dev, + python-dev , zlib1g-dev, systemd, dh-systemd , diff --git a/docs/pkglists/EL_9.x86_64 b/docs/pkglists/EL_9.x86_64 new file mode 100644 index 00000000000..7840ce62d80 --- /dev/null +++ b/docs/pkglists/EL_9.x86_64 @@ -0,0 +1,66 @@ +debug/x86_64/bareos-bconsole-debuginfo +debug/x86_64/bareos-common-debuginfo +debug/x86_64/bareos-database-common-debuginfo +debug/x86_64/bareos-database-postgresql-debuginfo +debug/x86_64/bareos-database-tools-debuginfo +debug/x86_64/bareos-debuginfo +debug/x86_64/bareos-debugsource +debug/x86_64/bareos-director-debuginfo +debug/x86_64/bareos-director-python3-plugin-debuginfo +debug/x86_64/bareos-filedaemon-ceph-plugin-debuginfo +debug/x86_64/bareos-filedaemon-debuginfo +debug/x86_64/bareos-filedaemon-glusterfs-plugin-debuginfo +debug/x86_64/bareos-filedaemon-python3-plugin-debuginfo +debug/x86_64/bareos-storage-ceph-debuginfo +debug/x86_64/bareos-storage-debuginfo +debug/x86_64/bareos-storage-droplet-debuginfo +debug/x86_64/bareos-storage-fifo-debuginfo +debug/x86_64/bareos-storage-glusterfs-debuginfo +debug/x86_64/bareos-storage-python3-plugin-debuginfo +debug/x86_64/bareos-storage-tape-debuginfo +debug/x86_64/bareos-tools-debuginfo +debug/x86_64/bareos-traymonitor-debuginfo +debug/x86_64/bareos-vadp-dumper-debuginfo +noarch/python3-bareos +src/bareos +src/bareos-vmware-vix-disklib +src/python-bareos +x86_64/bareos +x86_64/bareos-bconsole +x86_64/bareos-client +x86_64/bareos-common +x86_64/bareos-contrib-director-python-plugins +x86_64/bareos-contrib-filedaemon-python-plugins +x86_64/bareos-contrib-tools +x86_64/bareos-database-common +x86_64/bareos-database-postgresql +x86_64/bareos-database-tools +x86_64/bareos-director +x86_64/bareos-director-python-plugins-common +x86_64/bareos-director-python3-plugin +x86_64/bareos-filedaemon +x86_64/bareos-filedaemon-ceph-plugin +x86_64/bareos-filedaemon-glusterfs-plugin +x86_64/bareos-filedaemon-ldap-python-plugin +x86_64/bareos-filedaemon-libcloud-python-plugin +x86_64/bareos-filedaemon-mariabackup-python-plugin +x86_64/bareos-filedaemon-ovirt-python-plugin +x86_64/bareos-filedaemon-percona-xtrabackup-python-plugin +x86_64/bareos-filedaemon-postgresql-python-plugin +x86_64/bareos-filedaemon-python-plugins-common +x86_64/bareos-filedaemon-python3-plugin +x86_64/bareos-storage +x86_64/bareos-storage-ceph +x86_64/bareos-storage-droplet +x86_64/bareos-storage-fifo +x86_64/bareos-storage-glusterfs +x86_64/bareos-storage-python-plugins-common +x86_64/bareos-storage-python3-plugin +x86_64/bareos-storage-tape +x86_64/bareos-tools +x86_64/bareos-traymonitor +x86_64/bareos-vadp-dumper +x86_64/bareos-vmware-plugin +x86_64/bareos-vmware-plugin-compat +x86_64/bareos-vmware-vix-disklib +x86_64/bareos-webui diff --git a/docs/pkglists/Fedora_36.x86_64 b/docs/pkglists/Fedora_36.x86_64 new file mode 100644 index 00000000000..6ffb9aa68f9 --- /dev/null +++ b/docs/pkglists/Fedora_36.x86_64 @@ -0,0 +1,56 @@ +debug/x86_64/bareos-bconsole-debuginfo +debug/x86_64/bareos-common-debuginfo +debug/x86_64/bareos-database-common-debuginfo +debug/x86_64/bareos-database-postgresql-debuginfo +debug/x86_64/bareos-database-tools-debuginfo +debug/x86_64/bareos-debuginfo +debug/x86_64/bareos-debugsource +debug/x86_64/bareos-director-debuginfo +debug/x86_64/bareos-director-python3-plugin-debuginfo +debug/x86_64/bareos-filedaemon-debuginfo +debug/x86_64/bareos-filedaemon-glusterfs-plugin-debuginfo +debug/x86_64/bareos-filedaemon-python3-plugin-debuginfo +debug/x86_64/bareos-storage-debuginfo +debug/x86_64/bareos-storage-droplet-debuginfo +debug/x86_64/bareos-storage-fifo-debuginfo +debug/x86_64/bareos-storage-glusterfs-debuginfo +debug/x86_64/bareos-storage-python3-plugin-debuginfo +debug/x86_64/bareos-storage-tape-debuginfo +debug/x86_64/bareos-tools-debuginfo +debug/x86_64/bareos-traymonitor-debuginfo +noarch/python3-bareos +src/bareos +src/python-bareos +x86_64/bareos +x86_64/bareos-bconsole +x86_64/bareos-client +x86_64/bareos-common +x86_64/bareos-contrib-director-python-plugins +x86_64/bareos-contrib-filedaemon-python-plugins +x86_64/bareos-contrib-tools +x86_64/bareos-database-common +x86_64/bareos-database-postgresql +x86_64/bareos-database-tools +x86_64/bareos-director +x86_64/bareos-director-python-plugins-common +x86_64/bareos-director-python3-plugin +x86_64/bareos-filedaemon +x86_64/bareos-filedaemon-glusterfs-plugin +x86_64/bareos-filedaemon-ldap-python-plugin +x86_64/bareos-filedaemon-libcloud-python-plugin +x86_64/bareos-filedaemon-mariabackup-python-plugin +x86_64/bareos-filedaemon-ovirt-python-plugin +x86_64/bareos-filedaemon-percona-xtrabackup-python-plugin +x86_64/bareos-filedaemon-postgresql-python-plugin +x86_64/bareos-filedaemon-python-plugins-common +x86_64/bareos-filedaemon-python3-plugin +x86_64/bareos-storage +x86_64/bareos-storage-droplet +x86_64/bareos-storage-fifo +x86_64/bareos-storage-glusterfs +x86_64/bareos-storage-python-plugins-common +x86_64/bareos-storage-python3-plugin +x86_64/bareos-storage-tape +x86_64/bareos-tools +x86_64/bareos-traymonitor +x86_64/bareos-webui diff --git a/docs/pkglists/openSUSE_Leap_15.4.x86_64 b/docs/pkglists/openSUSE_Leap_15.4.x86_64 new file mode 100644 index 00000000000..4ba3b9d3320 --- /dev/null +++ b/docs/pkglists/openSUSE_Leap_15.4.x86_64 @@ -0,0 +1,56 @@ +debug/x86_64/bareos-bconsole-debuginfo +debug/x86_64/bareos-common-debuginfo +debug/x86_64/bareos-database-common-debuginfo +debug/x86_64/bareos-database-postgresql-debuginfo +debug/x86_64/bareos-database-tools-debuginfo +debug/x86_64/bareos-debuginfo +debug/x86_64/bareos-debugsource +debug/x86_64/bareos-director-debuginfo +debug/x86_64/bareos-director-python3-plugin-debuginfo +debug/x86_64/bareos-filedaemon-ceph-plugin-debuginfo +debug/x86_64/bareos-filedaemon-debuginfo +debug/x86_64/bareos-filedaemon-python3-plugin-debuginfo +debug/x86_64/bareos-storage-ceph-debuginfo +debug/x86_64/bareos-storage-debuginfo +debug/x86_64/bareos-storage-droplet-debuginfo +debug/x86_64/bareos-storage-fifo-debuginfo +debug/x86_64/bareos-storage-python3-plugin-debuginfo +debug/x86_64/bareos-storage-tape-debuginfo +debug/x86_64/bareos-tools-debuginfo +debug/x86_64/bareos-traymonitor-debuginfo +noarch/python3-bareos +src/bareos +src/python-bareos +x86_64/bareos +x86_64/bareos-bconsole +x86_64/bareos-client +x86_64/bareos-common +x86_64/bareos-contrib-director-python-plugins +x86_64/bareos-contrib-filedaemon-python-plugins +x86_64/bareos-contrib-tools +x86_64/bareos-database-common +x86_64/bareos-database-postgresql +x86_64/bareos-database-tools +x86_64/bareos-director +x86_64/bareos-director-python-plugins-common +x86_64/bareos-director-python3-plugin +x86_64/bareos-filedaemon +x86_64/bareos-filedaemon-ceph-plugin +x86_64/bareos-filedaemon-ldap-python-plugin +x86_64/bareos-filedaemon-libcloud-python-plugin +x86_64/bareos-filedaemon-mariabackup-python-plugin +x86_64/bareos-filedaemon-ovirt-python-plugin +x86_64/bareos-filedaemon-percona-xtrabackup-python-plugin +x86_64/bareos-filedaemon-postgresql-python-plugin +x86_64/bareos-filedaemon-python-plugins-common +x86_64/bareos-filedaemon-python3-plugin +x86_64/bareos-storage +x86_64/bareos-storage-ceph +x86_64/bareos-storage-droplet +x86_64/bareos-storage-fifo +x86_64/bareos-storage-python-plugins-common +x86_64/bareos-storage-python3-plugin +x86_64/bareos-storage-tape +x86_64/bareos-tools +x86_64/bareos-traymonitor +x86_64/bareos-webui diff --git a/docs/pkglists/xUbuntu_22.04.x86_64 b/docs/pkglists/xUbuntu_22.04.x86_64 new file mode 100644 index 00000000000..5923b238202 --- /dev/null +++ b/docs/pkglists/xUbuntu_22.04.x86_64 @@ -0,0 +1,38 @@ +all/bareos-webui +all/python-bareos +all/python3-bareos +amd64/bareos +amd64/bareos-bconsole +amd64/bareos-client +amd64/bareos-common +amd64/bareos-contrib-director-python-plugins +amd64/bareos-contrib-filedaemon-python-plugins +amd64/bareos-contrib-tools +amd64/bareos-database-common +amd64/bareos-database-postgresql +amd64/bareos-database-tools +amd64/bareos-dbg +amd64/bareos-director +amd64/bareos-director-python-plugins-common +amd64/bareos-director-python3-plugin +amd64/bareos-filedaemon +amd64/bareos-filedaemon-ceph-plugin +amd64/bareos-filedaemon-ldap-python-plugin +amd64/bareos-filedaemon-libcloud-python-plugin +amd64/bareos-filedaemon-mariabackup-python-plugin +amd64/bareos-filedaemon-percona-xtrabackup-python-plugin +amd64/bareos-filedaemon-postgresql-python-plugin +amd64/bareos-filedaemon-python-plugins-common +amd64/bareos-filedaemon-python3-plugin +amd64/bareos-storage +amd64/bareos-storage-ceph +amd64/bareos-storage-droplet +amd64/bareos-storage-fifo +amd64/bareos-storage-python-plugins-common +amd64/bareos-storage-python3-plugin +amd64/bareos-storage-tape +amd64/bareos-tools +amd64/bareos-traymonitor +amd64/bareos-vadp-dumper +amd64/bareos-vmware-plugin +amd64/bareos-vmware-vix-disklib diff --git a/python-bareos/debian/control b/python-bareos/debian/control index 8bd60922cac..096b65ad326 100644 --- a/python-bareos/debian/control +++ b/python-bareos/debian/control @@ -2,7 +2,10 @@ Source: python-bareos Maintainer: Bareos Team Section: python Priority: optional -Build-Depends: debhelper (>= 7.4.3), python-all (>= 2.6.6-3), python-setuptools (>= 0.6b3), python3-all, python3-setuptools +Build-Depends: debhelper (>= 7.4.3), + python-all (>= 2.6.6-3) , + python-setuptools (>= 0.6b3) , + python3-all, python3-setuptools Standards-Version: 3.9.1 Package: python-bareos diff --git a/python-bareos/packaging/python-bareos.spec b/python-bareos/packaging/python-bareos.spec index f15c07e56c7..2dfe23ba561 100644 --- a/python-bareos/packaging/python-bareos.spec +++ b/python-bareos/packaging/python-bareos.spec @@ -29,7 +29,7 @@ %define python2_build_requires python-rpm-macros python2-rpm-macros python-devel python-setuptools %endif -%if 0%{?fedora} >= 35 || 0%{?suse_version} >= 1550 +%if 0%{?fedora} >= 35 || 0%{?rhel_version} >= 900 || 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400 %define skip_python2 1 %endif diff --git a/systemtests/tests/py2plug-fd-contrib-bareos_tasks_mysql/mysqldefaults.in b/systemtests/tests/py2plug-fd-contrib-bareos_tasks_mysql/mysqldefaults.in index e0ed0a9ea13..df8e0046811 100644 --- a/systemtests/tests/py2plug-fd-contrib-bareos_tasks_mysql/mysqldefaults.in +++ b/systemtests/tests/py2plug-fd-contrib-bareos_tasks_mysql/mysqldefaults.in @@ -8,3 +8,5 @@ socket=@dbHost@/mysql.sock datadir=@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/mysql/data # Write test-local pid file pid-file=@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/mysql/mysqld.pid +# Workaround for Ubuntu 22 +innodb-use-native-aio = OFF diff --git a/systemtests/tests/py3plug-fd-contrib-mysql_dump/mysqldefaults.in b/systemtests/tests/py3plug-fd-contrib-mysql_dump/mysqldefaults.in index e0ed0a9ea13..df8e0046811 100644 --- a/systemtests/tests/py3plug-fd-contrib-mysql_dump/mysqldefaults.in +++ b/systemtests/tests/py3plug-fd-contrib-mysql_dump/mysqldefaults.in @@ -8,3 +8,5 @@ socket=@dbHost@/mysql.sock datadir=@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/mysql/data # Write test-local pid file pid-file=@PROJECT_BINARY_DIR@/tests/@TEST_NAME@/mysql/mysqld.pid +# Workaround for Ubuntu 22 +innodb-use-native-aio = OFF diff --git a/systemtests/tests/reload/reload_test_functions b/systemtests/tests/reload/reload_test_functions index 0879a087bc5..2fd906e2cfb 100644 --- a/systemtests/tests/reload/reload_test_functions +++ b/systemtests/tests/reload/reload_test_functions @@ -20,10 +20,11 @@ start_director() { "${rscripts}/bareos-ctl-dir" start "$director_debug_level" case $(uname -s) in SunOS) - director_pid=$(pgrep -f ${BAREOS_DIRECTOR_BINARY}) - ;; - *) + director_pid=$(pgrep -f ${BAREOS_DIRECTOR_BINARY}) ;; + FreeBSD) director_pid=$(pidof ${BAREOS_DIRECTOR_BINARY});; + *) + director_pid=$(pidof $(basename ${BAREOS_DIRECTOR_BINARY}));; esac if [ -z "$director_pid" ]; then