diff -u check-mk-1.2.6p12/debian/changelog check-mk-1.2.6p12/debian/changelog --- check-mk-1.2.6p12/debian/changelog +++ check-mk-1.2.6p12/debian/changelog @@ -1,3 +1,9 @@ +check-mk (1.2.6p12-1haw1) xenial; urgency=medium + + * Added patch to fix downtime.h's scheduled_downtime_struct (LP: #1372284) + + -- Haw Loeung Fri, 17 Feb 2017 16:59:45 +1100 + check-mk (1.2.6p12-1) xenial; urgency=medium [ Matt Taggart ] diff -u check-mk-1.2.6p12/debian/patches/00list check-mk-1.2.6p12/debian/patches/00list --- check-mk-1.2.6p12/debian/patches/00list +++ check-mk-1.2.6p12/debian/patches/00list @@ -2,0 +3 @@ +03_fix_livestatus_downtime only in patch2: unchanged: --- check-mk-1.2.6p12.orig/debian/patches/03_fix_livestatus_downtime.dpatch +++ check-mk-1.2.6p12/debian/patches/03_fix_livestatus_downtime.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_fix_livestatus_downtime.dpatch by Haw Loeung +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix livestatus scheduled_downtime_struct - LP:1372284 + +@DPATCH@ + +--- pkg-check_mk/setup.sh 2017-02-17 16:22:29.871869640 +1100 ++++ pkg-check_mk/setup.sh 2017-02-17 16:30:22.019025547 +1100 +@@ -569,6 +569,12 @@ compile_livestatus () + tar xvzf $SRCDIR/livestatus.tar.gz -C $D + sed -i '/Boston/ a\ + #include ' livestatus.src/src/TableStatus.cc livestatus.src/src/TableLog.cc ++ sed -i '/time_t start_time;/ a\ ++ time_t flex_downtime_start;' livestatus.src/nagios/downtime.h ++ sed -i '/int is_in_effect;/d' livestatus.src/nagios/downtime.h ++ sed -i '/unsigned long downtime_id;/ a\ ++ int is_in_effect;; \ ++ int start_notification_sent;' livestatus.src/nagios/downtime.h + pushd $D + + local CONFIGURE_OPTS=""