summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-13 08:20:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-13 08:20:31 +0000
commitb5ce9313381502ff993b6d8c59fd1e2da4e4d499 (patch)
tree2eb34738e3f1db6855b2153eb9f53aa4f7027212
parentAdding upstream version 26.4.9. (diff)
downloadgalera-4-b5ce9313381502ff993b6d8c59fd1e2da4e4d499.tar.xz
galera-4-b5ce9313381502ff993b6d8c59fd1e2da4e4d499.zip
Adding debian version 26.4.9-1.debian/26.4.9-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/changelog316
-rw-r--r--debian/control67
-rw-r--r--debian/copyright431
-rw-r--r--debian/galera-4.docs2
-rw-r--r--debian/galera-4.install1
-rw-r--r--debian/galera-4.links1
-rw-r--r--debian/galera-4.lintian-overrides18
l---------debian/galera-arbitrator-4.garb.default1
l---------debian/galera-arbitrator-4.garb.init1
l---------debian/galera-arbitrator-4.garb.service1
-rw-r--r--debian/galera-arbitrator-4.install2
-rw-r--r--debian/galera-arbitrator-4.links1
-rw-r--r--debian/galera-arbitrator-4.lintian-overrides3
-rw-r--r--debian/galera-arbitrator-4.manpages2
-rw-r--r--debian/gbp.conf10
-rwxr-xr-xdebian/rules25
-rw-r--r--debian/salsa-ci.yml162
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control3
-rwxr-xr-xdebian/tests/smoke13
-rw-r--r--debian/upstream/metadata4
-rw-r--r--debian/upstream/signing-key.asc30
-rw-r--r--debian/watch3
23 files changed, 1098 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..46a6b15
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,316 @@
+galera-4 (26.4.9-1) unstable; urgency=medium
+
+ [ Otto Kekäläinen ]
+ * New upstream release 26.4.9. Includes multiple bug fixes, see
+ https://github.com/codership/documentation/blob/master/release-notes/release-notes-galera-26.4.9.txt
+ * Restore CK_TIMEOUT_MULTIPLIER in debian rules to avoid unnecassary
+ test failures due to slow builders
+
+ [ Andreas Beckmann ]
+ * Solve circular Conflicts with galera-3 by no longer providing a virtual
+ galera package (Closes: #990708)
+
+ -- Otto Kekäläinen <otto@debian.org> Wed, 28 Jul 2021 08:45:27 -0700
+
+galera-4 (26.4.8-1) unstable; urgency=medium
+
+ * New upstream release 26.4.8
+ * Remove patches applied upstream
+ * Drop SConstruct patch for i386 as SCons is not used for builds anymore
+ * Bugfix: Don't uninstall MariaDB on Galera 3 to 4 upgrade (Closes: #988089)
+ This ensures the Buster installs of mariadb-server-10.3 (that depend on
+ galera-3) correctly upgrade to Bullseye installs of mariadb-server-10.5
+ (that depend on galera-4).
+
+ -- Otto Kekäläinen <otto@debian.org> Tue, 25 May 2021 20:38:32 -0700
+
+galera-4 (26.4.7-3) unstable; urgency=medium
+
+ * Revised atomics patch to fix multiple FTBFS
+ * Update standards-version to 4.5.1 (no changes)
+
+ -- Otto Kekäläinen <otto@debian.org> Sat, 20 Feb 2021 21:26:46 +0200
+
+galera-4 (26.4.7-2) unstable; urgency=medium
+
+ [ Helmut Grohne ]
+ * Fix new CMake definitions to correctly use CMAKE_OBJDUMP (Closes: #981652)
+
+ [ Otto Kekäläinen ]
+ * Backport atomics patch from upstream to fix multiple FTBFS
+
+ -- Otto Kekäläinen <otto@debian.org> Fri, 05 Feb 2021 12:24:44 +0200
+
+galera-4 (26.4.7-1) unstable; urgency=medium
+
+ * New upstream version 26.4.7
+ * Remove arm64 crc32 patch that was applied upstream
+ * Build with CMake instead of SCons, as now done in upstream
+ * Install libgalera_smm.so the only way upstream now does it
+ * Also sync all other relevant changes done in debian/ upstream
+
+ -- Otto Kekäläinen <otto@debian.org> Mon, 01 Feb 2021 18:27:19 +0200
+
+galera-4 (26.4.6-1) unstable; urgency=medium
+
+ [ Debian Janitor ]
+ * Set upstream metadata fields: Bug-Submit, Repository.
+
+ [ Otto Kekäläinen ]
+ * New upstream version 26.4.6
+ * Apply the test timeout multiplier on all architectures
+ * Remove d/copyright references to crc32 library now removed upstream
+ * Fix arm64 build failure due to crc32 issue
+ * Fix i386 builds by forcing Scons to use DEB_HOST_ARCH if available
+
+ -- Otto Kekäläinen <otto@debian.org> Sat, 07 Nov 2020 20:26:19 +0200
+
+galera-4 (26.4.5-1) unstable; urgency=medium
+
+ * New upstream version 26.4.5. This is the first official release for
+ general availability.
+ * Remove all patches as they have been applied upstream.
+
+ -- Otto Kekäläinen <otto@debian.org> Fri, 29 May 2020 23:39:16 +0300
+
+galera-4 (26.4.3-4) unstable; urgency=medium
+
+ [ Otto Kekäläinen ]
+ * Remove unused Lintian override binary-file-built-without-LFS-support
+ * Enable hardening=+all to fix Lintian warning hardening-no-bindnow
+ * Include systemd service definition in Debian packaging
+ * Add man page for garb-systemd
+ * Add minor systemd service definition fixes
+ * Add Rules-Requires-Root definition to control file
+
+ [ Faustin Lammler ]
+ * Fix systemd unit and start script
+
+ -- Otto Kekäläinen <otto@debian.org> Sun, 23 Feb 2020 10:46:37 +0200
+
+galera-4 (26.4.3-3) unstable; urgency=medium
+
+ * No-change, source-only upload after previous binary upload to NEW.
+
+ -- Otto Kekäläinen <otto@debian.org> Thu, 02 Jan 2020 10:20:27 +0200
+
+galera-4 (26.4.3-2) unstable; urgency=medium
+
+ * Rename galera-arbitrator-4 -> -3 forgotten form previous upload
+ * Add proper conflicts/replaces to older Galera versions
+ * Extend Salsa-CI tests with upgrade scenarios
+
+ -- Otto Kekäläinen <otto@debian.org> Mon, 30 Dec 2019 11:56:34 +0200
+
+galera-4 (26.4.3-1) unstable; urgency=medium
+
+ * New upstream version 26.4.3
+ * Refresh patches after 26.4.3 import
+ * Rename galera-3 -> galera-4 after Galera 4 import
+
+ -- Otto Kekäläinen <otto@debian.org> Sun, 22 Dec 2019 12:06:07 +0200
+
+galera-3 (25.3.28-2) unstable; urgency=low
+
+ [ Debian Janitor ]
+ * Use secure URI in debian/watch.
+ * Update standards version to 4.4.1, no changes needed.
+ * Bump debhelper from old 9 to 12.
+ * Fix field name typos in debian/copyright.
+ * Remove obsolete fields Name, Contact from debian/upstream/metadata.
+
+ -- Otto Kekäläinen <otto@debian.org> Mon, 16 Dec 2019 21:32:17 +0200
+
+galera-3 (25.3.28-1) unstable; urgency=medium
+
+ * New upstream version 25.3.28 (Closes: #940200)
+ * Remove patch for #927846 as it was applied upstream.
+ * Mark autopkgtests with new 'superficial' as it applies to this package
+
+ -- Otto Kekäläinen <otto@debian.org> Mon, 16 Sep 2019 19:17:31 +0300
+
+galera-3 (25.3.27-1) unstable; urgency=medium
+
+ * New upstream version 25.3.27
+ * Include full CC-BY-SA-3.0 license in debian/copyright to satisfy Lintian
+ * Drop manual dbgsym creation as this is nowadays automatic
+ * Apply upstream patch for FTBFS on hppa, hurd and kfreebsd-*
+ (Closes: #927846)
+
+ -- Otto Kekäläinen <otto@debian.org> Sat, 27 Jul 2019 16:33:43 -0300
+
+galera-3 (25.3.26-1) unstable; urgency=medium
+
+ * New upstream version 25.3.26
+
+ -- Otto Kekäläinen <otto@debian.org> Tue, 23 Apr 2019 13:23:35 +0300
+
+galera-3 (25.3.25-2) unstable; urgency=low
+
+ [ Giovanni Mascellani ]
+ * Hopefully fix FTBFS on mipsel (Closes: #920209)
+
+ -- Otto Kekäläinen <otto@debian.org> Sat, 30 Mar 2019 16:22:23 +0200
+
+galera-3 (25.3.25-1) unstable; urgency=low
+
+ [ Otto Kekäläinen ]
+ * New upstream version 25.3.25
+
+ [ Logan Rosen ]
+ * Fix FTBFS against system asio by using bundled version instead
+ (Closes: #914112)
+
+ [ Samuel Thibault ]
+ * Fix FTBFS on hurd-i386 (Closes: #906305)
+ * Do not assume timestamps are strictly monotonous (Closes: #856237)
+ * Fix FTBFS on kfreebsd (Closes: #906081)
+
+ -- Otto Kekäläinen <otto@debian.org> Wed, 09 Jan 2019 00:39:48 +0100
+
+galera-3 (25.3.24-1) unstable; urgency=medium
+
+ [ Otto Kekäläinen ]
+ * New upstream version 25.3.24
+ * Add .gitlab-ci.yml copied from Salsa-CI team's example
+ * Add rudimentary autopkgtests
+ * Make build reproducible by forcing an empty GNU build-id
+ * Explicitly forbid tests if DEB_BUILD_OPTIONS has nocheck
+ * Add d/upstream/metadata file
+ * Update http -> https addresses where available
+ * Add 'terse' support in DEB_BUILD_OPTIONS
+ * Replace buildflags.mk with full default.mk dpkg settings
+ * Drop usage of _SYSTEMCTL_SKIP_REDIRECT from init script (Closes: #910471)
+ * Debian Policy 4.0.1: use priority 'optional' instead of 'extra'
+
+ [ Dimitri John Ledkov ]
+ * Do not run testsuite on armhf with arm64 kernel due to bus errors
+
+ [ Daniel Kahn Gillmor ]
+ * Modernize debugging symbols
+
+ -- Otto Kekäläinen <otto@debian.org> Mon, 15 Oct 2018 16:24:30 +0300
+
+galera-3 (25.3.23-1) unstable; urgency=low
+
+ * Update VCS-* links to point to Salsa
+ * New upstream version 25.3.23
+ - Includes GCC-7 build fix (Closes: #853410)
+ * Fix Lintian complaints
+ * Use dh --list-missing to detect extra files that might belong in package
+
+ -- Otto Kekäläinen <otto@debian.org> Sun, 04 Mar 2018 01:12:52 +0200
+
+galera-3 (25.3.22-1) unstable; urgency=low
+
+ * Update download URL and add check authenticity with PGP signature
+ * New upstream version 25.3.22
+ * Update Debian standards version to to 4.1.1
+
+ -- Otto Kekäläinen <otto@debian.org> Tue, 21 Nov 2017 11:57:30 +0100
+
+galera-3 (25.3.20-1) unstable; urgency=low
+
+ * Update Vcs-* URLs to use secure connections
+ * New upstream release 25.3.20
+ * Include patch to avoid unaligned access, which fixes the regression
+ in the armhf build (Closes: #855657)
+
+ -- Otto Kekäläinen <otto@debian.org> Thu, 09 Mar 2017 18:41:42 +0200
+
+galera-3 (25.3.19-2) unstable; urgency=low
+
+ * Backport upstream fix for OpenSSL SSL_R_SHORT_READ
+
+ -- Otto Kekäläinen <otto@debian.org> Fri, 11 Nov 2016 21:38:04 +0200
+
+galera-3 (25.3.19-1) unstable; urgency=low
+
+ * New upstream release 25.3.19
+ * Make garb depend on lsb-base as uses /lib/lsb/init-functions
+
+ -- Otto Kekäläinen <otto@debian.org> Thu, 10 Nov 2016 23:02:48 +0200
+
+galera-3 (25.3.17-1) unstable; urgency=low
+
+ * New upstream release
+ - Fixes a GCC6/C++11 compatibility issue (Closes: #812052)
+
+ -- Otto Kekäläinen <otto@debian.org> Mon, 15 Aug 2016 21:04:56 +0300
+
+galera-3 (25.3.16-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Otto Kekäläinen <otto@debian.org> Mon, 30 May 2016 23:28:41 +0300
+
+galera-3 (25.3.15-1) unstable; urgency=low
+
+ * New upstream release
+ - Remove all obsolete patches
+
+ -- Otto Kekäläinen <otto@debian.org> Wed, 16 Mar 2016 20:37:10 +0200
+
+galera-3 (25.3.14-2~exp1) experimental; urgency=low
+
+ * Update standards version, vcs-link to use https and maintainer e-mail
+ * Add patch to fix build regression on s390x
+
+ -- Otto Kekäläinen <otto@debian.org> Sun, 06 Mar 2016 00:09:49 +0200
+
+galera-3 (25.3.14-1) unstable; urgency=low
+
+ * New upstream release
+ * Ran wrap-and-sort
+
+ -- Otto Kekäläinen <otto@seravo.fi> Sun, 07 Feb 2016 22:09:15 +0200
+
+galera-3 (25.3.13-2) unstable; urgency=low
+
+ * Added libasio-dev as build dependency. The new upstream SConscript will
+ automatically use system ASIO if the provided version is recent enough
+ (Closes: #804336).
+ * Make GFDL link explicit and other Lintian fixes
+ * Update git-buildpackage config to allow fix branches etc
+
+ -- Otto Kekäläinen <otto@seravo.fi> Thu, 31 Dec 2015 23:45:17 +0200
+
+galera-3 (25.3.13-1) unstable; urgency=low
+
+ * Import new upstream release and drop patches that have become obsolete
+
+ -- Otto Kekäläinen <otto@seravo.fi> Fri, 27 Nov 2015 22:48:00 +0200
+
+galera-3 (25.3.12-3) unstable; urgency=low
+
+ * Update patches with proper DEP-3 compliant headers
+ * Add patch to fix build error after SSLv3 deprication (Closes: #804336)
+
+ -- Otto Kekäläinen <otto@seravo.fi> Fri, 13 Nov 2015 15:41:29 +0200
+
+galera-3 (25.3.12-2) unstable; urgency=low
+
+ * Backport upstream commit as patch to fix multiple build problems
+ (Closes: #799150)
+ * Backport upstream commit as patch to fix x32 build problems
+
+ -- Otto Kekäläinen <otto@seravo.fi> Sun, 20 Sep 2015 23:27:16 +0300
+
+galera-3 (25.3.12-1) unstable; urgency=low
+
+ * Import new upstream release
+ - Fixes GCC 5 building and PRETTY_FUNCTION error (Closes: #797238)
+ - Fixes for pthread build issues on different platforms
+ * Add lintian override as garbd is intentionally not started upon installation
+ * Print in build log env info to help debug builds on different platforms
+ * Update gdb.conf to have tags signed by default
+ * Print config.log contents in build log for easier debugging of Debian builds
+ * Print config.log if build fails
+
+ -- Otto Kekäläinen <otto@seravo.fi> Sun, 06 Sep 2015 20:45:43 +0300
+
+galera-3 (25.3.10-1) unstable; urgency=low
+
+ * Initial upload (Closes: #562666)
+
+ -- Otto Kekäläinen <otto@seravo.fi> Fri, 01 May 2015 20:15:51 +0300
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..475eeb3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,67 @@
+Source: galera-4
+Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>
+Uploaders: Otto Kekäläinen <otto@debian.org>
+Section: database
+Priority: optional
+Standards-Version: 4.5.1
+Rules-Requires-Root: no
+Build-Depends: check,
+ cmake (>= 2.8),
+ debhelper-compat (= 12),
+ libboost-dev (>= 1.41),
+ libboost-program-options-dev (>= 1.41),
+ libssl-dev
+Homepage: https://www.galeracluster.com/
+Vcs-Browser: https://salsa.debian.org/mariadb-team/galera-4
+Vcs-Git: https://salsa.debian.org/mariadb-team/galera-4.git
+
+Package: galera-4
+Architecture: any
+Section: libs
+Depends: ${misc:Depends},
+ ${shlibs:Depends}
+Conflicts: garbd-2,
+ garbd-3,
+ garbd2,
+ garbd3,
+ percona-galera-3,
+ percona-galera-4,
+ percona-xtradb-cluster-galera,
+ percona-xtradb-cluster-galera-2.x,
+ percona-xtradb-cluster-galera-3.x,
+ percona-xtradb-cluster-galera-4.x,
+ percona-xtradb-cluster-garbd-2.x,
+ percona-xtradb-cluster-garbd-3.x
+Provides: galera4,
+ percona-xtradb-cluster-galera-26,
+ wsrep
+Breaks: galera-3 (<< 26.4)
+Replaces: galera-3 (<< 26.4)
+Description: Replication framework for transactional applications
+ Galera is a fast synchronous multimaster wsrep provider (replication engine)
+ for transactional databases and similar applications. For more information
+ about wsrep API see https://github.com/codership/wsrep-API. For a description
+ of Galera replication engine see http://galeracluster.com.
+ .
+ This package contains the Galera library/plugin.
+
+Package: galera-arbitrator-4
+Architecture: any
+Conflicts: galera-arbitrator-3,
+ garbd-2,
+ garbd2,
+ percona-galera-arbitrator-3,
+ percona-galera-arbitrator-4,
+ percona-xtradb-cluster-garbd-2.x
+Breaks: percona-xtradb-cluster-galera-2.x
+Replaces: percona-xtradb-cluster-galera-2.x
+Depends: lsb-base (>= 3.0-6),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: Galera arbitrator daemon
+ Galera is a fast synchronous multimaster wsrep provider (replication engine)
+ for transactional databases and similar applications. For more information
+ about wsrep API see https://github.com/codership/wsrep-API. For a description
+ of Galera replication engine see http://galeracluster.com.
+ .
+ This package contains the Galera arbitrator daemon (garbd).
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a9cc502
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,431 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Galera replication - a write set (wsrep) provider
+Upstream-Contact: Codership Oy <info@codership.com>
+Source: https://github.com/codership/galera
+Comment:
+ Codership have added an additional clause to cover use of OpenSSL with
+ Galera under the GPL-2 license. This is committed to the 2.x branch
+ upstream:
+ .
+ https://bazaar.launchpad.net/~codership/galera/2.x/revision/167
+
+Files: *
+Copyright: 2007-2015 Codership Oy <info@codership.com>
+License: GPL-2
+ On Debian based systems the full text of the GNU General Public License version
+ 2 can be found in the file `/usr/share/common-licenses/GPL-2`.
+ .
+ In addition, as a special exception, the copyright holders give
+ permission to link the code of portions of this program with the
+ OpenSSL project's "OpenSSL" library (or with modified versions of it
+ that use the same license as the "OpenSSL" library), and distribute
+ the linked executables. You must obey the GNU General Public License
+ in all respects for all of the code used other than "OpenSSL". If you
+ modify this file, you may extend this exception to your version of the
+ file, but you are not obligated to do so. If you do not wish to do
+ so, delete this exception statement from your version.
+
+Files: asio/*
+Copyright: 2003-2011 Christopher M. Kohlhoff (chris at kohlhoff dot com),
+ 2008 Rep Invariant Systems, Inc. (info@repinvariant.com),
+ 2005 Stefan Arentz (stefan at soze dot com)
+License: other
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+Files: docs/*
+Copyright: 2014 Codership Oy <info@codership.com>
+ 2007-2011 by the Sphinx team, see AUTHORS
+License: GFDL-1.1+ or CC-BY-SA-3.0
+
+License: GFDL-1.1+
+ Permission is granted to copy, distribute and/or modify this
+ document under the terms of the GNU Free Documentation
+ License (GFDL), Version 1.1 or any later version published
+ by the Free Software Foundation with no Invariant Sections,
+ no Front-Cover Texts, and no Back-Cover Texts.
+ .
+ The full text of the GFDL is distributed as in
+ /usr/share/common-licenses/GFDL-1.2 on Debian systems.
+
+License: CC-BY-SA-3.0
+ Creative Commons Legal Code
+ .
+ Attribution-ShareAlike 3.0 Unported
+ .
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
+ LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
+ REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR
+ DAMAGES RESULTING FROM ITS USE.
+ .
+ License
+ .
+ THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
+ COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
+ COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
+ AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
+ .
+ BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
+ TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY
+ BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS
+ CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
+ CONDITIONS.
+ .
+ 1. Definitions
+ .
+ a. "Adaptation" means a work based upon the Work, or upon the Work and
+ other pre-existing works, such as a translation, adaptation,
+ derivative work, arrangement of music or other alterations of a
+ literary or artistic work, or phonogram or performance and includes
+ cinematographic adaptations or any other form in which the Work may be
+ recast, transformed, or adapted including in any form recognizably
+ derived from the original, except that a work that constitutes a
+ Collection will not be considered an Adaptation for the purpose of
+ this License. For the avoidance of doubt, where the Work is a musical
+ work, performance or phonogram, the synchronization of the Work in
+ timed-relation with a moving image ("synching") will be considered an
+ Adaptation for the purpose of this License.
+ b. "Collection" means a collection of literary or artistic works, such as
+ encyclopedias and anthologies, or performances, phonograms or
+ broadcasts, or other works or subject matter other than works listed
+ in Section 1(f) below, which, by reason of the selection and
+ arrangement of their contents, constitute intellectual creations, in
+ which the Work is included in its entirety in unmodified form along
+ with one or more other contributions, each constituting separate and
+ independent works in themselves, which together are assembled into a
+ collective whole. A work that constitutes a Collection will not be
+ considered an Adaptation (as defined below) for the purposes of this
+ License.
+ c. "Creative Commons Compatible License" means a license that is listed
+ at https://creativecommons.org/compatiblelicenses that has been
+ approved by Creative Commons as being essentially equivalent to this
+ License, including, at a minimum, because that license: (i) contains
+ terms that have the same purpose, meaning and effect as the License
+ Elements of this License; and, (ii) explicitly permits the relicensing
+ of adaptations of works made available under that license under this
+ License or a Creative Commons jurisdiction license with the same
+ License Elements as this License.
+ d. "Distribute" means to make available to the public the original and
+ copies of the Work or Adaptation, as appropriate, through sale or
+ other transfer of ownership.
+ e. "License Elements" means the following high-level license attributes
+ as selected by Licensor and indicated in the title of this License:
+ Attribution, ShareAlike.
+ f. "Licensor" means the individual, individuals, entity or entities that
+ offer(s) the Work under the terms of this License.
+ g. "Original Author" means, in the case of a literary or artistic work,
+ the individual, individuals, entity or entities who created the Work
+ or if no individual or entity can be identified, the publisher; and in
+ addition (i) in the case of a performance the actors, singers,
+ musicians, dancers, and other persons who act, sing, deliver, declaim,
+ play in, interpret or otherwise perform literary or artistic works or
+ expressions of folklore; (ii) in the case of a phonogram the producer
+ being the person or legal entity who first fixes the sounds of a
+ performance or other sounds; and, (iii) in the case of broadcasts, the
+ organization that transmits the broadcast.
+ h. "Work" means the literary and/or artistic work offered under the terms
+ of this License including without limitation any production in the
+ literary, scientific and artistic domain, whatever may be the mode or
+ form of its expression including digital form, such as a book,
+ pamphlet and other writing; a lecture, address, sermon or other work
+ of the same nature; a dramatic or dramatico-musical work; a
+ choreographic work or entertainment in dumb show; a musical
+ composition with or without words; a cinematographic work to which are
+ assimilated works expressed by a process analogous to cinematography;
+ a work of drawing, painting, architecture, sculpture, engraving or
+ lithography; a photographic work to which are assimilated works
+ expressed by a process analogous to photography; a work of applied
+ art; an illustration, map, plan, sketch or three-dimensional work
+ relative to geography, topography, architecture or science; a
+ performance; a broadcast; a phonogram; a compilation of data to the
+ extent it is protected as a copyrightable work; or a work performed by
+ a variety or circus performer to the extent it is not otherwise
+ considered a literary or artistic work.
+ i. "You" means an individual or entity exercising rights under this
+ License who has not previously violated the terms of this License with
+ respect to the Work, or who has received express permission from the
+ Licensor to exercise rights under this License despite a previous
+ violation.
+ j. "Publicly Perform" means to perform public recitations of the Work and
+ to communicate to the public those public recitations, by any means or
+ process, including by wire or wireless means or public digital
+ performances; to make available to the public Works in such a way that
+ members of the public may access these Works from a place and at a
+ place individually chosen by them; to perform the Work to the public
+ by any means or process and the communication to the public of the
+ performances of the Work, including by public digital performance; to
+ broadcast and rebroadcast the Work by any means including signs,
+ sounds or images.
+ k. "Reproduce" means to make copies of the Work by any means including
+ without limitation by sound or visual recordings and the right of
+ fixation and reproducing fixations of the Work, including storage of a
+ protected performance or phonogram in digital form or other electronic
+ medium.
+ .
+ 2. Fair Dealing Rights. Nothing in this License is intended to reduce,
+ limit, or restrict any uses free from copyright or rights arising from
+ limitations or exceptions that are provided for in connection with the
+ copyright protection under copyright law or other applicable laws.
+ .
+ 3. License Grant. Subject to the terms and conditions of this License,
+ Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
+ perpetual (for the duration of the applicable copyright) license to
+ exercise the rights in the Work as stated below:
+ .
+ a. to Reproduce the Work, to incorporate the Work into one or more
+ Collections, and to Reproduce the Work as incorporated in the
+ Collections;
+ b. to create and Reproduce Adaptations provided that any such Adaptation,
+ including any translation in any medium, takes reasonable steps to
+ clearly label, demarcate or otherwise identify that changes were made
+ to the original Work. For example, a translation could be marked "The
+ original work was translated from English to Spanish," or a
+ modification could indicate "The original work has been modified.";
+ c. to Distribute and Publicly Perform the Work including as incorporated
+ in Collections; and,
+ d. to Distribute and Publicly Perform Adaptations.
+ e. For the avoidance of doubt:
+ .
+ i. Non-waivable Compulsory License Schemes. In those jurisdictions in
+ which the right to collect royalties through any statutory or
+ compulsory licensing scheme cannot be waived, the Licensor
+ reserves the exclusive right to collect such royalties for any
+ exercise by You of the rights granted under this License;
+ ii. Waivable Compulsory License Schemes. In those jurisdictions in
+ which the right to collect royalties through any statutory or
+ compulsory licensing scheme can be waived, the Licensor waives the
+ exclusive right to collect such royalties for any exercise by You
+ of the rights granted under this License; and,
+ iii. Voluntary License Schemes. The Licensor waives the right to
+ collect royalties, whether individually or, in the event that the
+ Licensor is a member of a collecting society that administers
+ voluntary licensing schemes, via that society, from any exercise
+ by You of the rights granted under this License.
+ .
+ The above rights may be exercised in all media and formats whether now
+ known or hereafter devised. The above rights include the right to make
+ such modifications as are technically necessary to exercise the rights in
+ other media and formats. Subject to Section 8(f), all rights not expressly
+ granted by Licensor are hereby reserved.
+ .
+ 4. Restrictions. The license granted in Section 3 above is expressly made
+ subject to and limited by the following restrictions:
+ .
+ a. You may Distribute or Publicly Perform the Work only under the terms
+ of this License. You must include a copy of, or the Uniform Resource
+ Identifier (URI) for, this License with every copy of the Work You
+ Distribute or Publicly Perform. You may not offer or impose any terms
+ on the Work that restrict the terms of this License or the ability of
+ the recipient of the Work to exercise the rights granted to that
+ recipient under the terms of the License. You may not sublicense the
+ Work. You must keep intact all notices that refer to this License and
+ to the disclaimer of warranties with every copy of the Work You
+ Distribute or Publicly Perform. When You Distribute or Publicly
+ Perform the Work, You may not impose any effective technological
+ measures on the Work that restrict the ability of a recipient of the
+ Work from You to exercise the rights granted to that recipient under
+ the terms of the License. This Section 4(a) applies to the Work as
+ incorporated in a Collection, but this does not require the Collection
+ apart from the Work itself to be made subject to the terms of this
+ License. If You create a Collection, upon notice from any Licensor You
+ must, to the extent practicable, remove from the Collection any credit
+ as required by Section 4(c), as requested. If You create an
+ Adaptation, upon notice from any Licensor You must, to the extent
+ practicable, remove from the Adaptation any credit as required by
+ Section 4(c), as requested.
+ b. You may Distribute or Publicly Perform an Adaptation only under the
+ terms of: (i) this License; (ii) a later version of this License with
+ the same License Elements as this License; (iii) a Creative Commons
+ jurisdiction license (either this or a later license version) that
+ contains the same License Elements as this License (e.g.,
+ Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible
+ License. If you license the Adaptation under one of the licenses
+ mentioned in (iv), you must comply with the terms of that license. If
+ you license the Adaptation under the terms of any of the licenses
+ mentioned in (i), (ii) or (iii) (the "Applicable License"), you must
+ comply with the terms of the Applicable License generally and the
+ following provisions: (I) You must include a copy of, or the URI for,
+ the Applicable License with every copy of each Adaptation You
+ Distribute or Publicly Perform; (II) You may not offer or impose any
+ terms on the Adaptation that restrict the terms of the Applicable
+ License or the ability of the recipient of the Adaptation to exercise
+ the rights granted to that recipient under the terms of the Applicable
+ License; (III) You must keep intact all notices that refer to the
+ Applicable License and to the disclaimer of warranties with every copy
+ of the Work as included in the Adaptation You Distribute or Publicly
+ Perform; (IV) when You Distribute or Publicly Perform the Adaptation,
+ You may not impose any effective technological measures on the
+ Adaptation that restrict the ability of a recipient of the Adaptation
+ from You to exercise the rights granted to that recipient under the
+ terms of the Applicable License. This Section 4(b) applies to the
+ Adaptation as incorporated in a Collection, but this does not require
+ the Collection apart from the Adaptation itself to be made subject to
+ the terms of the Applicable License.
+ c. If You Distribute, or Publicly Perform the Work or any Adaptations or
+ Collections, You must, unless a request has been made pursuant to
+ Section 4(a), keep intact all copyright notices for the Work and
+ provide, reasonable to the medium or means You are utilizing: (i) the
+ name of the Original Author (or pseudonym, if applicable) if supplied,
+ and/or if the Original Author and/or Licensor designate another party
+ or parties (e.g., a sponsor institute, publishing entity, journal) for
+ attribution ("Attribution Parties") in Licensor's copyright notice,
+ terms of service or by other reasonable means, the name of such party
+ or parties; (ii) the title of the Work if supplied; (iii) to the
+ extent reasonably practicable, the URI, if any, that Licensor
+ specifies to be associated with the Work, unless such URI does not
+ refer to the copyright notice or licensing information for the Work;
+ and (iv) , consistent with Ssection 3(b), in the case of an
+ Adaptation, a credit identifying the use of the Work in the Adaptation
+ (e.g., "French translation of the Work by Original Author," or
+ "Screenplay based on original Work by Original Author"). The credit
+ required by this Section 4(c) may be implemented in any reasonable
+ manner; provided, however, that in the case of a Adaptation or
+ Collection, at a minimum such credit will appear, if a credit for all
+ contributing authors of the Adaptation or Collection appears, then as
+ part of these credits and in a manner at least as prominent as the
+ credits for the other contributing authors. For the avoidance of
+ doubt, You may only use the credit required by this Section for the
+ purpose of attribution in the manner set out above and, by exercising
+ Your rights under this License, You may not implicitly or explicitly
+ assert or imply any connection with, sponsorship or endorsement by the
+ Original Author, Licensor and/or Attribution Parties, as appropriate,
+ of You or Your use of the Work, without the separate, express prior
+ written permission of the Original Author, Licensor and/or Attribution
+ Parties.
+ d. Except as otherwise agreed in writing by the Licensor or as may be
+ otherwise permitted by applicable law, if You Reproduce, Distribute or
+ Publicly Perform the Work either by itself or as part of any
+ Adaptations or Collections, You must not distort, mutilate, modify or
+ take other derogatory action in relation to the Work which would be
+ prejudicial to the Original Author's honor or reputation. Licensor
+ agrees that in those jurisdictions (e.g. Japan), in which any exercise
+ of the right granted in Section 3(b) of this License (the right to
+ make Adaptations) would be deemed to be a distortion, mutilation,
+ modification or other derogatory action prejudicial to the Original
+ Author's honor and reputation, the Licensor will waive or not assert,
+ as appropriate, this Section, to the fullest extent permitted by the
+ applicable national law, to enable You to reasonably exercise Your
+ right under Section 3(b) of this License (right to make Adaptations)
+ but not otherwise.
+ .
+ 5. Representations, Warranties and Disclaimer
+ .
+ UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR
+ OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY
+ KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE,
+ INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF
+ LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS,
+ WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION
+ OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
+ .
+ 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE
+ LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR
+ ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
+ ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS
+ BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ .
+ 7. Termination
+ .
+ a. This License and the rights granted hereunder will terminate
+ automatically upon any breach by You of the terms of this License.
+ Individuals or entities who have received Adaptations or Collections
+ from You under this License, however, will not have their licenses
+ terminated provided such individuals or entities remain in full
+ compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will
+ survive any termination of this License.
+ b. Subject to the above terms and conditions, the license granted here is
+ perpetual (for the duration of the applicable copyright in the Work).
+ Notwithstanding the above, Licensor reserves the right to release the
+ Work under different license terms or to stop distributing the Work at
+ any time; provided, however that any such election will not serve to
+ withdraw this License (or any other license that has been, or is
+ required to be, granted under the terms of this License), and this
+ License will continue in full force and effect unless terminated as
+ stated above.
+ .
+ 8. Miscellaneous
+ .
+ a. Each time You Distribute or Publicly Perform the Work or a Collection,
+ the Licensor offers to the recipient a license to the Work on the same
+ terms and conditions as the license granted to You under this License.
+ b. Each time You Distribute or Publicly Perform an Adaptation, Licensor
+ offers to the recipient a license to the original Work on the same
+ terms and conditions as the license granted to You under this License.
+ c. If any provision of this License is invalid or unenforceable under
+ applicable law, it shall not affect the validity or enforceability of
+ the remainder of the terms of this License, and without further action
+ by the parties to this agreement, such provision shall be reformed to
+ the minimum extent necessary to make such provision valid and
+ enforceable.
+ d. No term or provision of this License shall be deemed waived and no
+ breach consented to unless such waiver or consent shall be in writing
+ and signed by the party to be charged with such waiver or consent.
+ e. This License constitutes the entire agreement between the parties with
+ respect to the Work licensed here. There are no understandings,
+ agreements or representations with respect to the Work not specified
+ here. Licensor shall not be bound by any additional provisions that
+ may appear in any communication from You. This License may not be
+ modified without the mutual written agreement of the Licensor and You.
+ f. The rights granted under, and the subject matter referenced, in this
+ License were drafted utilizing the terminology of the Berne Convention
+ for the Protection of Literary and Artistic Works (as amended on
+ September 28, 1979), the Rome Convention of 1961, the WIPO Copyright
+ Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996
+ and the Universal Copyright Convention (as revised on July 24, 1971).
+ These rights and subject matter take effect in the relevant
+ jurisdiction in which the License terms are sought to be enforced
+ according to the corresponding provisions of the implementation of
+ those treaty provisions in the applicable national law. If the
+ standard suite of rights granted under applicable copyright law
+ includes additional rights not granted under this License, such
+ additional rights are deemed to be included in the License; this
+ License is not intended to restrict the license of any rights under
+ applicable law.
+ .
+ .
+ Creative Commons Notice
+ .
+ Creative Commons is not a party to this License, and makes no warranty
+ whatsoever in connection with the Work. Creative Commons will not be
+ liable to You or any party on any legal theory for any damages
+ whatsoever, including without limitation any general, special,
+ incidental or consequential damages arising in connection to this
+ license. Notwithstanding the foregoing two (2) sentences, if Creative
+ Commons has expressly identified itself as the Licensor hereunder, it
+ shall have all rights and obligations of Licensor.
+ .
+ Except for the limited purpose of indicating to the public that the
+ Work is licensed under the CCPL, Creative Commons does not authorize
+ the use by either party of the trademark "Creative Commons" or any
+ related trademark or logo of Creative Commons without the prior
+ written consent of Creative Commons. Any permitted use will be in
+ compliance with Creative Commons' then-current trademark usage
+ guidelines, as may be published on its website or otherwise made
+ available upon request from time to time. For the avoidance of doubt,
+ this trademark restriction does not form part of the License.
+ .
+ Creative Commons may be contacted at https://creativecommons.org/.
diff --git a/debian/galera-4.docs b/debian/galera-4.docs
new file mode 100644
index 0000000..5c57217
--- /dev/null
+++ b/debian/galera-4.docs
@@ -0,0 +1,2 @@
+AUTHORS
+scripts/packages/README
diff --git a/debian/galera-4.install b/debian/galera-4.install
new file mode 100644
index 0000000..fc7761c
--- /dev/null
+++ b/debian/galera-4.install
@@ -0,0 +1 @@
+usr/lib/libgalera_smm.so
diff --git a/debian/galera-4.links b/debian/galera-4.links
new file mode 100644
index 0000000..e5f17f6
--- /dev/null
+++ b/debian/galera-4.links
@@ -0,0 +1 @@
+usr/lib/libgalera_smm.so usr/lib/galera/libgalera_smm.so
diff --git a/debian/galera-4.lintian-overrides b/debian/galera-4.lintian-overrides
new file mode 100644
index 0000000..fc6ce15
--- /dev/null
+++ b/debian/galera-4.lintian-overrides
@@ -0,0 +1,18 @@
+#Teemu Ollakka Nov 17th, 2020:
+# SONAME is useful only for libraries which are intended to be linked
+# against, but not so much for libraries which are loaded dynamically
+# during runtime.
+#
+# Debian policy about shared libraries:
+# https://www.debian.org/doc/debian-policy/ch-sharedlibs.html
+#
+# "Shared libraries that are internal to a particular package or that are
+# only loaded as dynamic modules are not covered by this section and are
+# not subject to its requirements."
+#
+# This seems also be the approach CMake has taken, see for example
+# https://stackoverflow.com/a/42186654
+galera-4: sharedobject-in-library-directory-missing-soname usr/lib/libgalera_smm.so
+
+# File used to reside in /usr/lib/galera/, so keep link for backwards compat
+galera-4: breakout-link usr/lib/galera/libgalera_smm.so -> usr/lib/libgalera_smm.so
diff --git a/debian/galera-arbitrator-4.garb.default b/debian/galera-arbitrator-4.garb.default
new file mode 120000
index 0000000..bb51b0d
--- /dev/null
+++ b/debian/galera-arbitrator-4.garb.default
@@ -0,0 +1 @@
+../garb/files/garb.cnf \ No newline at end of file
diff --git a/debian/galera-arbitrator-4.garb.init b/debian/galera-arbitrator-4.garb.init
new file mode 120000
index 0000000..521c0c6
--- /dev/null
+++ b/debian/galera-arbitrator-4.garb.init
@@ -0,0 +1 @@
+../garb/files/garb.sh \ No newline at end of file
diff --git a/debian/galera-arbitrator-4.garb.service b/debian/galera-arbitrator-4.garb.service
new file mode 120000
index 0000000..05cd333
--- /dev/null
+++ b/debian/galera-arbitrator-4.garb.service
@@ -0,0 +1 @@
+../garb/files/garb.service \ No newline at end of file
diff --git a/debian/galera-arbitrator-4.install b/debian/galera-arbitrator-4.install
new file mode 100644
index 0000000..726607b
--- /dev/null
+++ b/debian/galera-arbitrator-4.install
@@ -0,0 +1,2 @@
+garb/files/garb-systemd usr/bin
+usr/bin/garbd
diff --git a/debian/galera-arbitrator-4.links b/debian/galera-arbitrator-4.links
new file mode 100644
index 0000000..1dd2f26
--- /dev/null
+++ b/debian/galera-arbitrator-4.links
@@ -0,0 +1 @@
+lib/systemd/system/garb.service lib/systemd/system/garbd.service
diff --git a/debian/galera-arbitrator-4.lintian-overrides b/debian/galera-arbitrator-4.lintian-overrides
new file mode 100644
index 0000000..1e3d8d4
--- /dev/null
+++ b/debian/galera-arbitrator-4.lintian-overrides
@@ -0,0 +1,3 @@
+# garbd is intentionally not started automatically upon installation,
+# see https://github.com/codership/galera/issues/266
+galera-arbitrator-4: script-in-etc-init.d-not-registered-via-update-rc.d etc/init.d/garb
diff --git a/debian/galera-arbitrator-4.manpages b/debian/galera-arbitrator-4.manpages
new file mode 100644
index 0000000..9b01e7d
--- /dev/null
+++ b/debian/galera-arbitrator-4.manpages
@@ -0,0 +1,2 @@
+man/garb-systemd.8
+man/garbd.8
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..72fc02a
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,10 @@
+[DEFAULT]
+# Ignore requirement to use branch name 'master' to make it easier
+# for contributors to work with feature and bugfix branches
+ignore-branch = True
+
+# Always use pristine tar
+pristine-tar = True
+
+# Sign tags
+sign-tags = True \ No newline at end of file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..afc22f6
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+# Enable Debian Hardening
+# https://wiki.debian.org/Hardening
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDFLAGS = 1
+# Include all defaults, including buildflags.mk
+include /usr/share/dpkg/default.mk
+
+# Set unit test timeout multiplier to make slow tests
+# pass on loaded builders.
+export CK_TIMEOUT_MULTIPLIER=5
+
+override_dh_auto_test:
+ dh_auto_test -O--no-parallel -- ARGS=--output-on-failure
+
+# Start earlier than MySQL which has value 19
+override_dh_installinit-arch:
+ dh_installinit -n --name=garb -- defaults 18 22
+
+override_dh_installsystemd:
+ dh_installsystemd --name=garb
+
+%:
+ dh $@
diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
new file mode 100644
index 0000000..4ed1041
--- /dev/null
+++ b/debian/salsa-ci.yml
@@ -0,0 +1,162 @@
+# Inlude Salsa-CI as a base
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
+
+variables:
+ SALSA_CI_DISABLE_MISSING_BREAKS: 0
+ SALSA_CI_DISABLE_RC_BUGS: 0
+
+stages:
+ - provisioning
+ - build
+ - test # Stage referenced by Salsa-CI template reprotest stanza, so must exist
+ - publish # Stage referenced by Salsa-CI template aptly stanza, so must exist even though not used
+ - upgrade in Sid
+ - upgrade from Buster/Stretch
+
+build buster-backports:
+ extends: .build-package
+ variables:
+ RELEASE: buster-backports
+
+# Since SCons changed to CMake >= 3.8, that build dependency can no longer be satisfied on Stretch
+#build stretch-backports:
+# extends: .build-package
+# variables:
+# RELEASE: stretch-backports
+
+# Reprotests started failing in January 2021 on Galera version that previously passed
+reprotest:
+ allow_failure: true
+
+# Define snippets used to construct jobs
+.test-prepare-container: &test-prepare-container |
+ cd ${WORKING_DIR} # Don't repeat this step, it's just cd ./debian/output
+ # Enable automatic restarts from maint scripts
+ sed -i "s/101/0/g" -i /usr/sbin/policy-rc.d
+ # Fake /sbin/runlevel to avoid warnings of "invoke-rc.d: could not determine current runlevel"
+ echo -e '#!/bin/sh\necho "N 5"' > /sbin/runlevel; chmod +x /sbin/runlevel
+ # Avoid the warnings of "debconf: unable to initialize frontend: Dialog"
+ echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
+ # Prime the apt cache so later apt commands can run
+ apt-get update
+
+# In addition to Salsa-CI, also run these fully Galera specific build jobs
+galera-4.x to galera-4.y upgrade:
+ stage: upgrade in Sid
+ needs:
+ - job: build
+ artifacts: true
+ image: debian:sid
+ artifacts:
+ when: always
+ name: "$CI_BUILD_NAME"
+ paths:
+ - ${WORKING_DIR}/debug
+ script:
+ - *test-prepare-container
+ # Install almost everything currently in Debian Buster
+ - apt-get install -y galera-4 galera-arbitrator-4
+ # Verify installation of Galera from Buster
+ - dpkg -l | grep -iE 'maria|mysql|galera' # List installed
+ # Install MariaDB built in this commit
+ - apt-get install -y ./*.deb
+ # Verify installation of Galera built in this commit
+ - dpkg -l | grep -iE 'maria|mysql|galera' # List installed
+ variables:
+ GIT_STRATEGY: none
+ except:
+ variables:
+ - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
+
+galera-3 buster to galera-4 upgrade:
+ stage: upgrade from Buster/Stretch
+ needs:
+ - job: build
+ artifacts: true
+ image: debian:buster
+ script:
+ - *test-prepare-container
+ # Install almost everything currently in Debian Buster
+ - apt-get install -y 'galera-*'
+ # Verify installation of Galera from Buster
+ - dpkg -l | grep -iE 'maria|mysql|galera' # List installed
+ # Install Galera built in this commit
+ # Replace any old repos with just Sid
+ - echo 'deb http://deb.debian.org/debian sid main' > /etc/apt/sources.list
+ # Upgrade minimal stack first
+ - apt-get update; apt-get install -y apt
+ # Install MariaDB built in this commit
+ - apt-get install -y ./*.deb
+ # Verify installation of Galera built in this commit
+ - dpkg -l | grep -iE 'maria|mysql|galera' # List installed
+ variables:
+ GIT_STRATEGY: none
+ except:
+ variables:
+ - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
+
+galera-3 stretch to galera-4 upgrade:
+ stage: upgrade from Buster/Stretch
+ needs:
+ - job: build
+ artifacts: true
+ image: debian:stretch
+ script:
+ - *test-prepare-container
+ # Install almost everything currently in Debian Buster
+ - apt-get install -y 'galera-*'
+ # Verify installation of Galera from Buster
+ - dpkg -l | grep -iE 'maria|mysql|galera' # List installed
+ # Install Galera built in this commit
+ # Replace any old repos with just Sid
+ - echo 'deb http://deb.debian.org/debian sid main' > /etc/apt/sources.list; apt-get update
+ # Upgrade minimal stack first
+ # Due to Bug#972552, libnss-nis fails with exit code 100, so install it here
+ # as a separate step that is safe to ignore
+ - apt-get install -y apt libnss-nis || true
+ # Install MariaDB built in this commit
+ - apt-get install -y ./*.deb
+ # Verify installation of Galera built in this commit
+ - dpkg -l | grep -iE 'maria|mysql|galera' # List installed
+ variables:
+ GIT_STRATEGY: none
+ except:
+ variables:
+ - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
+
+mariadb-10.3 buster dist-upgrade:
+ stage: upgrade from Buster/Stretch
+ needs:
+ - job: build
+ artifacts: true
+ image: debian:buster
+ script:
+ - *test-prepare-container
+ # Install almost everything Galera currently in Debian Buster
+ # and the MariaDB Server 10.3 which uses Galera
+ - apt-get install -y 'galera-*' mariadb-server
+ - dpkg -l | grep -iE 'maria|mysql|galera' # List installed
+ # Verify MariaDB is running and Galera plugin is visible
+ - mariadb -e "SHOW PLUGINS;" mysql | grep -i wsrep
+ # Add newly built packages as repository
+ - apt-get install -y apt-utils
+ - apt-ftparchive packages . > Packages
+ - echo "deb [trusted=yes] file:$(pwd) ./" > /etc/apt/sources.list.d/local.list
+ # Replace any old repos with just Sid
+ - echo 'deb http://deb.debian.org/debian sid main' > /etc/apt/sources.list; apt-get update
+ # Start with regular upgrade
+ - apt-get upgrade -y # mysql-common and mariadb-common upgrade
+ # Verify server still works
+ - /etc/init.d/mysql restart && sleep 10 && mariadb -e "SHOW PLUGINS;" mysql | grep -i wsrep
+ # Upgrade to Galera built in this commit via dist-upgrade
+ - apt-get dist-upgrade -y
+ - dpkg -l | grep -iE 'maria|mysql|galera' # List installed
+ # Verify MariaDB is running and Galera plugin is visible
+ - mariadb -e "SHOW PLUGINS;" mysql | grep -i wsrep
+ variables:
+ GIT_STRATEGY: none
+ except:
+ variables:
+ - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..021c9de
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: smoke
+Depends: galera-arbitrator-4
+Restrictions: allow-stderr superficial
diff --git a/debian/tests/smoke b/debian/tests/smoke
new file mode 100755
index 0000000..e48dc95
--- /dev/null
+++ b/debian/tests/smoke
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -ex
+
+# dep8 smoke test for Galera
+# Author: Otto Kekäläinen <otto@debian.org>
+#
+# This very simple test just checks that the binary starts and prints out
+# the usage instructions, detected by keyword "usage".
+#
+# Use the virtual framebuffer to wrap trend, otherwise it will just print
+# the error message: freeglut (trend): failed to open display 'none'
+
+garbd --help 2>&1 | grep Usage
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..98a0cb9
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,4 @@
+Bug-Database: https://github.com/codership/galera/issues
+Bug-Submit: https://github.com/codership/galera/issues/new
+Repository: https://github.com/codership/galera.git
+Repository-Browse: https://github.com/codership/galera
diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..b40f385
--- /dev/null
+++ b/debian/upstream/signing-key.asc
@@ -0,0 +1,30 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1
+
+mQENBFSC9PABCADViCrLIvhcuppbuFaCRiZYLvCoZ8st9uMwrofvbVbokWFZgwq/
+tGzCi4o2O042hZS1q9FrB5au8u/Hj/NtGHLXpuSo6IvsAE+dkhSOKvBHxjvVLhbR
+WYA4EmHAMiCVTYI71MGSrsWcAm0aBwtieXiMavo46cjscQGuXh2qiHuH8UQk3sW0
+1yHngS27zg5tXHa1OXL1AwN9fnINoyHfMv0Qtt7xVjTW8YCJqESuK8rVAhI53hBM
+FEhVRkay2y07olHXD40Q1/+pZ/Bzo5t6VZVOidiml/Euu2QWEvVKVKEe8zhEXkJr
+ZdwTe4gIlsF78gD6uycllurMl0QFM+uhcUyhABEBAAG0JUNvZGVyc2hpcCBPeSA8
+aW5mb0BnYWxlcmFjbHVzdGVyLmNvbT6JATgEEwECACIFAlSC9PACGwMGCwkIBwMC
+BhUIAgkKCwQWAgMBAh4BAheAAAoJENZpAX68Gd26ovwIAMEm1mBMvMjrB9N6vbZx
+nuxWmbW2IqINbL5oSsk7+wn0tZteywk+BWNuiU7mVVChuIRl/PtbETUyJkf7SDNx
+qk7JGtMjL5fZZ/mcwC/vCLVjJHIgkuFodqnnJ40kp2+pwrn5+Xp5H6Z6dLwTBFv4
+IW34SgKlH63+xYVPImBsse8a9b7UwevWpoY+NNGDTaGdvGk6hJd2teuU5f7DbVe9
+9WFbdoLt4f0ZZhEW1IWbyW4s6JWrOhnd7EpzrSzwAA+MyETbGkyXBmaAybYGtE3/
+XdZzyvQcgBkYHOVHy/AJnW6bRrTfiUVGqF5TCFbTAcw0flwV4PkyJVszbhySRhUh
+oHS5AQ0EVIL08AEIANKaVOsr6NVO1Dnn367JiXf+52dAMcuIvd8y9UY7RP3ONdRB
+XbwmnknQDrVTAblWxH3lZdsjQwJkmM7l0ryKWhJMYsarbjIHTkKXdT5juskm0PXg
+gPj+xJm9ejNBWj7IpPicILBJmvIs3DtQ9LGYkyxCmABBycw0OkXiJAODj3AB2f7+
+D7PEMwwGH1KZDPD5PX54IXThHwzsakRa2qApyk8/K8NN6uBOhVXSx4MAbzTwf5U6
+zRlN/HO6Rd2vRBA15VkaJWwPlQAGSVLyApkUB/CXh7bwB0Bdp2ttZnaYVI4IHqyB
+Vi5b0VY1bBYZplGhnB91avSX/jiL1fQVnnbOAOMAEQEAAYkBHwQYAQIACQUCVIL0
+8AIbDAAKCRDWaQF+vBnduqSlCADPD52hKg1DNmBRJ3dHM5qx3K5evbGTsyi5G2ol
+G0C03VJbovZ6UTI+34dsw5YaRfxHmjsO7sH+PAk/4F+xOHz+Q7I7MRITTgV+tlcl
+LSE6riAFllfIvCm2zPwViUwLJfurqINOke010szCw+gynJgp40M1YFGwu2wSeWaN
+7SO8eIe7BqaJ0tgh8INLbh2QhLpvszZTWrKEOE7ReLwzo9uB7Le09D3uTussGrNk
+3/lvP1T0Y+McC3Js00nprdUgk17tDDmt+ikl2IWO02litImXQexEeRoA1YiagJX0
+CCJXr6iFgKG+7gpDxa0H49GuJPK86jYQi2/0CQeSCnWWZkJq
+=Qon/
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..1415ce4
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=pgpsigurlmangle=s/$/.asc/ \
+ https://releases.galeracluster.com/galera-4/source/galera-4-(.+).tar.gz