Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package dqlite for openSUSE:Factory checked in at 2023-11-06 21:15:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dqlite (Old) and /work/SRC/openSUSE:Factory/.dqlite.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dqlite" Mon Nov 6 21:15:01 2023 rev:8 rq:1123663 version:1.16.0 Changes: -------- --- /work/SRC/openSUSE:Factory/dqlite/dqlite.changes 2023-06-27 23:18:01.739872645 +0200 +++ /work/SRC/openSUSE:Factory/.dqlite.new.17445/dqlite.changes 2023-11-06 21:15:17.901517477 +0100 @@ -1,0 +2,6 @@ +Mon Nov 6 17:34:37 UTC 2023 - Andreas Stieger <[email protected]> + +- Update to 1.16.0: + * expose one new API, dqlite_node_set_auto_recovery + +------------------------------------------------------------------- Old: ---- dqlite-1.15.1.tar.gz New: ---- dqlite-1.16.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dqlite.spec ++++++ --- /var/tmp/diff_new_pack.n9VgBT/_old 2023-11-06 21:15:18.513540006 +0100 +++ /var/tmp/diff_new_pack.n9VgBT/_new 2023-11-06 21:15:18.513540006 +0100 @@ -18,7 +18,7 @@ %define lname libdqlite0 Name: dqlite -Version: 1.15.1 +Version: 1.16.0 Release: 0 Summary: Distributed SQLite License: LGPL-3.0-only WITH LGPL-3.0-linking-exception ++++++ dqlite-1.15.1.tar.gz -> dqlite-1.16.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dqlite-1.15.1/.github/workflows/build-and-test.yml new/dqlite-1.16.0/.github/workflows/build-and-test.yml --- old/dqlite-1.15.1/.github/workflows/build-and-test.yml 2023-06-14 22:13:00.000000000 +0200 +++ new/dqlite-1.16.0/.github/workflows/build-and-test.yml 2023-09-21 17:30:22.000000000 +0200 @@ -21,7 +21,7 @@ runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup dependencies run: | sudo apt update diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dqlite-1.15.1/.github/workflows/coverity.yml new/dqlite-1.16.0/.github/workflows/coverity.yml --- old/dqlite-1.15.1/.github/workflows/coverity.yml 2023-06-14 22:13:00.000000000 +0200 +++ new/dqlite-1.16.0/.github/workflows/coverity.yml 2023-09-21 17:30:22.000000000 +0200 @@ -9,7 +9,7 @@ runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download Coverity Build Tool run: | diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dqlite-1.15.1/.github/workflows/linting.yml new/dqlite-1.16.0/.github/workflows/linting.yml --- old/dqlite-1.15.1/.github/workflows/linting.yml 2023-06-14 22:13:00.000000000 +0200 +++ new/dqlite-1.16.0/.github/workflows/linting.yml 2023-09-21 17:30:22.000000000 +0200 @@ -9,7 +9,7 @@ runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: DoozyX/[email protected] with: source: 'src test include' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dqlite-1.15.1/.github/workflows/packages.yml new/dqlite-1.16.0/.github/workflows/packages.yml --- old/dqlite-1.15.1/.github/workflows/packages.yml 2023-06-14 22:13:00.000000000 +0200 +++ new/dqlite-1.16.0/.github/workflows/packages.yml 2023-09-21 17:30:22.000000000 +0200 @@ -3,14 +3,17 @@ - push jobs: build: + if: github.repository == 'canonical/dqlite' strategy: fail-fast: false matrix: target: - focal - jammy - - kinetic + - lunar runs-on: ubuntu-20.04 + environment: + name: ppa steps: - name: Clone the repositories run: | @@ -20,12 +23,24 @@ - name: Setup dependencies run: | sudo apt-get update -qq - sudo apt-get install -qq debhelper devscripts + sudo apt-get install -qq debhelper devscripts gnupg + + - name: Setup GPG signing key + env: + PPA_SECRET_KEY: ${{ secrets.PPA_SECRET_KEY }} + run: | + echo "$PPA_SECRET_KEY" > private-key.asc + gpg --import --batch private-key.asc + + - name: Delete GPG signing key file + if: always() + run: | + rm -f private-key.asc - name: Build source package env: DEBFULLNAME: "Github Actions" - DEBEMAIL: "[email protected]" + DEBEMAIL: "[email protected]" TARGET: ${{ matrix.target }} run: | cp -R dqlite-ppa/debian dqlite/ @@ -36,15 +51,8 @@ --package dqlite \ --newversion ${VERSION}~${TARGET}1 \ "Automatic build from Github" - debuild -S -sa -us -uc -d + debuild -S -sa -d -k${{ vars.PPA_PUBLIC_KEY }} - - name: Upload artifacts - uses: actions/upload-artifact@v3 - with: - name: debian-${{ matrix.target }} - if-no-files-found: error - path: | - *.buildinfo - *.changes - *.dsc - *.tar.* + - name: Upload to Launchpad + run: | + dput -U -u ppa:dqlite/dev *.changes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dqlite-1.15.1/README.md new/dqlite-1.16.0/README.md --- old/dqlite-1.15.1/README.md 2023-06-14 22:13:00.000000000 +0200 +++ new/dqlite-1.16.0/README.md 2023-09-21 17:30:22.000000000 +0200 @@ -81,6 +81,12 @@ Your distribution should already provide you with a pre-built libuv shared library and libsqlite3-dev. +For the Debian-based Linux distros you can install the build dependencies with: + +``` +sudo apt install autoconf libuv1-dev liblz4-dev libtool pkg-config build-essential libsqlite3-dev +``` + To build the raft library: ``` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dqlite-1.15.1/README_CH.md new/dqlite-1.16.0/README_CH.md --- old/dqlite-1.15.1/README_CH.md 2023-06-14 22:13:00.000000000 +0200 +++ new/dqlite-1.16.0/README_CH.md 2023-09-21 17:30:22.000000000 +0200 @@ -61,6 +61,12 @@ æ¨çlinuxåè¡çåºè¯¥å·²ç»ä¸ºæ¨æä¾äºé¢æå»ºç libuv å ±äº«åºå libsqlite3-dev,å°±ä¸éè¦å¨ä¸è½½äºï¼å¦åè¿éè¦ä¸è½½è¿ä¸¤ä¸ªä¾èµã +对äºåºäº Debian ç Linux åè¡çï¼æ¨å¯ä»¥ä½¿ç¨ä»¥ä¸å½ä»¤å®è£ æå»ºä¾èµé¡¹ï¼ + +``` +sudo apt install autoconf libuv1-dev liblz4-dev libtool pkg-config build-essential libsqlite3-dev +``` + ç¼è¯raftåºè¿è¡å¦ä¸å½ä»¤ï¼ ```bash diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dqlite-1.15.1/configure.ac new/dqlite-1.16.0/configure.ac --- old/dqlite-1.15.1/configure.ac 2023-06-14 22:13:00.000000000 +0200 +++ new/dqlite-1.16.0/configure.ac 2023-09-21 17:30:22.000000000 +0200 @@ -1,5 +1,5 @@ AC_PREREQ(2.60) -AC_INIT([libdqlite], [1.14.0], [https://github.com/canonical/dqlite]) +AC_INIT([libdqlite], [1.16.0], [https://github.com/canonical/dqlite]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([ac]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dqlite-1.15.1/include/dqlite.h new/dqlite-1.16.0/include/dqlite.h --- old/dqlite-1.15.1/include/dqlite.h 2023-06-14 22:13:00.000000000 +0200 +++ new/dqlite-1.16.0/include/dqlite.h 2023-09-21 17:30:22.000000000 +0200 @@ -26,7 +26,7 @@ * Version. */ #define DQLITE_VERSION_MAJOR 1 -#define DQLITE_VERSION_MINOR 14 +#define DQLITE_VERSION_MINOR 16 #define DQLITE_VERSION_RELEASE 0 #define DQLITE_VERSION_NUMBER \ (DQLITE_VERSION_MAJOR * 100 * 100 + DQLITE_VERSION_MINOR * 100 + \ @@ -431,6 +431,20 @@ DQLITE_API int dqlite_node_set_target_standbys(dqlite_node *n, int standbys); /** + * Enable or disable auto-recovery for corrupted disk files. + * + * When auto-recovery is enabled, files in the data directory that are + * determined to be corrupt may be removed by dqlite at startup. This allows + * the node to start up successfully in more situations, but comes at the cost + * of possible data loss, and may mask bugs. + * + * This must be called before dqlite_node_start. + * + * Auto-recovery is enabled by default. + */ +DQLITE_API int dqlite_node_set_auto_recovery(dqlite_node *n, bool enabled); + +/** * Enable automatic role management on the server side for this node. * * When automatic role management is enabled, servers in a dqlite cluster will diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dqlite-1.15.1/src/server.c new/dqlite-1.16.0/src/server.c --- old/dqlite-1.15.1/src/server.c 2023-06-14 22:13:00.000000000 +0200 +++ new/dqlite-1.16.0/src/server.c 2023-09-21 17:30:22.000000000 +0200 @@ -757,6 +757,12 @@ return 0; } +int dqlite_node_set_auto_recovery(dqlite_node *n, bool enabled) +{ + raft_uv_set_auto_recovery(&n->raft_io, enabled); + return 0; +} + const char *dqlite_node_errmsg(dqlite_node *n) { if (n != NULL) {
