diff options
author | Jonas Smedegaard <dr@jones.dk> | 2016-12-21 22:21:36 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2016-12-21 23:53:51 +0100 |
commit | 176a1fcdf53f54c92fbc57f49f610bb7c91ec8f4 (patch) | |
tree | 9257afc86da77a10ab8ff9fe69c4a938c44669a4 /debian/patches/020161125~ad22be4.patch | |
parent | af78b62e3216e39aa013f877d24fdfd989736df7 (diff) | |
download | biboumi-176a1fcdf53f54c92fbc57f49f610bb7c91ec8f4.tar.gz biboumi-176a1fcdf53f54c92fbc57f49f610bb7c91ec8f4.tar.bz2 biboumi-176a1fcdf53f54c92fbc57f49f610bb7c91ec8f4.tar.xz biboumi-176a1fcdf53f54c92fbc57f49f610bb7c91ec8f4.zip |
Add some bugfix patches cherry-picked upstream.
Diffstat (limited to 'debian/patches/020161125~ad22be4.patch')
-rw-r--r-- | debian/patches/020161125~ad22be4.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/020161125~ad22be4.patch b/debian/patches/020161125~ad22be4.patch new file mode 100644 index 0000000..46013bc --- /dev/null +++ b/debian/patches/020161125~ad22be4.patch @@ -0,0 +1,38 @@ +Description: Do not fail to build if litesql is not there +Origin: upstream, https://lab.louiz.org/louiz/biboumi/commit/ad22be4 +Author: louiz’ <louiz@louiz.org> +Forwarded: yes +Last-Update: 2016-12-21 + +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -12,7 +12,9 @@ + + #include <atomic> + #include <signal.h> +-#include <litesql.hpp> ++#ifdef USE_DATABASE ++# include <litesql.hpp> ++#endif + + // A flag set by the SIGINT signal handler. + static std::atomic<bool> stop(false); +@@ -83,11 +85,14 @@ + if (hostname.empty()) + return config_help("hostname"); + ++ ++#ifdef USE_DATABASE + try { +- open_database(); +- } catch (const litesql::DatabaseError&) { +- return 1; +- } ++ open_database(); ++ } catch (const litesql::DatabaseError&) { ++ return 1; ++ } ++#endif + + // Block the signals we want to manage. They will be unblocked only during + // the epoll_pwait or ppoll calls. This avoids some race conditions, |