Merge ~racb/ubuntu/+source/bacula:merge into ubuntu/+source/bacula:debian/sid

Proposed by Robie Basak
Status: Work in progress
Proposed branch: ~racb/ubuntu/+source/bacula:merge
Merge into: ubuntu/+source/bacula:debian/sid
Diff against target: 255 lines (+84/-16)
10 files modified
debian/bacula-console-qt.postinst (+2/-2)
debian/bacula-console.postinst (+2/-2)
debian/bacula-director.postinst (+2/-2)
debian/bacula-fd.postinst (+2/-2)
debian/bacula-sd.postinst (+4/-2)
debian/bacula-tray-monitor.postinst (+2/-2)
debian/changelog (+49/-0)
debian/control (+2/-1)
debian/tests/backup-test (+16/-0)
debian/tests/control (+3/-3)
Reviewer Review Type Date Requested Status
Andreas Hasenack Needs Information
Canonical Server Pending
git-ubuntu developers Pending
Review via email: mp+380163@code.launchpad.net

Description of the change

Merge latest bacula (9.4.2->9.4.4). Upstream changes: https://www.bacula.org/git/cgit.cgi/bacula/log/?h=Branch-9.4

Build and autopkgtest passes locally on amd64.

To post a comment you must log in.
Revision history for this message
Robie Basak (racb) wrote :

Hold review please. Debian responded to my patch and applied https://salsa.debian.org/bacula-team/bacula/-/commit/0fc482983a142b19f107e37ab0011b0b1806496d, which touches a bunch of other files too that evidently aren't in the test paths. I should replace my fix with a cherry-pick of the upstream commit.

Revision history for this message
Robie Basak (racb) wrote :

Branch updated. You may resume the review. Thanks!

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The merge looks fine, so +1 from that perspective.

Did you check all the upstream changes, though? Some look like new features and would require an FFe for this upload:

9.4.4:
- looks fine

9.4.3:
 - baculum: Add capability to use many ACL Console directives in one config
  resource
 - baculum: Add client ls command to openapi file
 - baculum: Add text box list control to support directives that can be defined
  multiple times in one resource
 - baculum: Add cancel button to last step new job wizard
 - baculum: Change PoolType field from text box into combo box
 - baculum: Add support to multiple schedule run directives
and so on

Otherwise we keep the mysql8 delta, and apply the protected_regular=2 fix to the maintainerscripts.

review: Needs Information

Unmerged commits

0c74920... by Robie Basak

Finalise changelog

8b487c6... by Robie Basak

update-maintainer

b0589e3... by Robie Basak

reconstruct-changelog

2c09d99... by Robie Basak

merge-changelogs

9cc50ca... by Carsten Leonhardt <email address hidden>

Make installation of bacula-sd possible on systems with
protected_regular=2 set (Closes: #953030).

Based on a patch by Robie Basak.

2d4db33... by Robie Basak

    - d/t/control: some dbconfig-common output goes to stderr. This is not a
      failure, so instruct the autopkgtest machinery accordingly.

742a186... by Robie Basak

    - d/t/backup-test: fix test failures caused by test dependency installation
      misordering by reinstalling the required database schema at the start of
      the test. This is a workaround for Debian bug 923444.

115ddd7... by Carsten Leonhardt <email address hidden>

Import patches-unapplied version 9.4.4-2 to debian/sid

Imported using git-ubuntu import.

Changelog parent: eafe1b26d1e8681841b24aea9a7dbaab20404537

New changelog entries:
  * Upload to unstable.

eafe1b2... by Carsten Leonhardt <email address hidden>

Import patches-unapplied version 9.4.4-1 to debian/experimental

Imported using git-ubuntu import.

Changelog parent: f320e4c79fa55669b008fee99b2c97205d094412

New changelog entries:
  [ Carsten Leonhardt, Sven Hartge ]
  * New upstream version 9.4.4
  [ Carsten Leonhardt ]
  * Remove the transitional bacula-director-common package
  * Remove the make_bacula_catalog_awk scripts

f320e4c... by Carsten Leonhardt <email address hidden>

Import patches-unapplied version 9.4.2-2 to debian/sid

Imported using git-ubuntu import.

Changelog parent: d2bcf61ada1d376f637fce9fdc908a7350f7a83a

New changelog entries:
  [ Carsten Leonhardt ]
  * Update debian/copyright to include list of authors
  [ Sven Hartge ]
  * wrap-and-sort Debian control files
  * Switch to debhelper-compat virtual package

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/bacula-console-qt.postinst b/debian/bacula-console-qt.postinst
2index 3c2f825..386fb88 100644
3--- a/debian/bacula-console-qt.postinst
4+++ b/debian/bacula-console-qt.postinst
5@@ -15,11 +15,11 @@ case "$1" in
6 # create new bat.conf using the template
7 TMP_CONFIG="$(mktemp -p /tmp $PKG_NAME.conf.ucftmp-XXXXXXXXXX)"
8 chmod 640 $TMP_CONFIG
9- chown root:bacula $TMP_CONFIG
10-
11 sed -e s~@debian_basename@~`hostname`~ \
12 -e s~XXX_DIRPASSWORD_XXX~$DIRPASSWD~ \
13 $TEMPLATE > $TMP_CONFIG
14+ chown root:bacula $TMP_CONFIG
15+
16 # let ucf handle the conffile and register it
17 ucf --debconf-ok --three-way $TMP_CONFIG $TARGET
18 ucfr $PKG_NAME $TARGET
19diff --git a/debian/bacula-console.postinst b/debian/bacula-console.postinst
20index 8a35c00..f8d5bae 100644
21--- a/debian/bacula-console.postinst
22+++ b/debian/bacula-console.postinst
23@@ -15,11 +15,11 @@ case "$1" in
24 # create new bconsole.conf using the template
25 TMP_CONFIG="$(mktemp -p /tmp $PKG_NAME.conf.ucftmp-XXXXXXXXXX)"
26 chmod 640 $TMP_CONFIG
27- chown root:bacula $TMP_CONFIG
28-
29 sed -e s~@debian_basename@~`hostname`~ \
30 -e s~XXX_DIRPASSWORD_XXX~$DIRPASSWD~ \
31 $TEMPLATE > $TMP_CONFIG
32+ chown root:bacula $TMP_CONFIG
33+
34 # let ucf handle the conffile and register it
35 ucf --debconf-ok --three-way $TMP_CONFIG $TARGET
36 ucfr $PKG_NAME $TARGET
37diff --git a/debian/bacula-director.postinst b/debian/bacula-director.postinst
38index 9e0cdec..ee629e5 100644
39--- a/debian/bacula-director.postinst
40+++ b/debian/bacula-director.postinst
41@@ -27,8 +27,6 @@ case "$1" in
42 # create new bacula-dir.conf using the template
43 TMP_CONFIG="$(mktemp -p /tmp $PKG_NAME.conf.ucftmp-XXXXXXXXXX)"
44 chmod 640 $TMP_CONFIG
45- chown root:bacula $TMP_CONFIG
46-
47 sed -e s~XXX_DIRPASSWORD_XXX~$DIRPASSWD~ \
48 -e s~XXX_MONDIRPASSWORD_XXX~$DIRMPASSWD~ \
49 -e s~XXX_SDPASSWORD_XXX~$SDPASSWD~ \
50@@ -59,6 +57,8 @@ case "$1" in
51 ;;
52 esac
53 fi
54+ chown root:bacula $TMP_CONFIG
55+
56 # let ucf handle the conffile and register it
57 ucf --debconf-ok --three-way $TMP_CONFIG $TARGET
58 ucfr $PKG_NAME $TARGET
59diff --git a/debian/bacula-fd.postinst b/debian/bacula-fd.postinst
60index 8529173..f2a229e 100644
61--- a/debian/bacula-fd.postinst
62+++ b/debian/bacula-fd.postinst
63@@ -15,12 +15,12 @@ case "$1" in
64 # create new bacula-fd.conf using the template
65 TMP_CONFIG="$(mktemp -p /tmp $PKG_NAME.conf.ucftmp-XXXXXXXXXX)"
66 chmod 640 $TMP_CONFIG
67- chown root:bacula $TMP_CONFIG
68-
69 sed -e s~@debian_basename@~`hostname`~ \
70 -e s~XXX_FDPASSWORD_XXX~$FDPASSWD~ \
71 -e s~XXX_MONFDPASSWORD_XXX~$FDMPASSWD~ \
72 $TEMPLATE > $TMP_CONFIG
73+ chown root:bacula $TMP_CONFIG
74+
75 # let ucf handle the conffile and register it
76 ucf --debconf-ok --three-way $TMP_CONFIG $TARGET
77 ucfr $PKG_NAME $TARGET
78diff --git a/debian/bacula-sd.postinst b/debian/bacula-sd.postinst
79index 1ed67ff..1465d6f 100644
80--- a/debian/bacula-sd.postinst
81+++ b/debian/bacula-sd.postinst
82@@ -15,12 +15,14 @@ case "$1" in
83 # create new bacula-sd.conf using the template
84 TMP_CONFIG="$(mktemp -p /tmp $PKG_NAME.conf.ucftmp-XXXXXXXXXX)"
85 chmod 640 $TMP_CONFIG
86- chown bacula:bacula $TMP_CONFIG
87-
88 sed -e s~@debian_basename@~`hostname`~ \
89 -e s~XXX_SDPASSWORD_XXX~$SDPASSWD~ \
90 -e s~XXX_MONSDPASSWORD_XXX~$SDMPASSWD~ \
91 $TEMPLATE > $TMP_CONFIG
92+ # change owner of file to bacula only after we wrote to it as root
93+ # cf. bug #953030
94+ chown bacula:bacula $TMP_CONFIG
95+
96 # let ucf handle the conffile and register it
97 ucf --debconf-ok --three-way $TMP_CONFIG $TARGET
98 ucfr $PKG_NAME $TARGET
99diff --git a/debian/bacula-tray-monitor.postinst b/debian/bacula-tray-monitor.postinst
100index 0440a9d..341152a 100644
101--- a/debian/bacula-tray-monitor.postinst
102+++ b/debian/bacula-tray-monitor.postinst
103@@ -15,13 +15,13 @@ case "$1" in
104 # create new bacula-tray-monitor.conf using the template
105 TMP_CONFIG="$(mktemp -p /tmp $PKG_NAME.conf.ucftmp-XXXXXXXXXX)"
106 chmod 640 $TMP_CONFIG
107- chown root:bacula $TMP_CONFIG
108-
109 sed -e s~@debian_basename@~`hostname`~ \
110 -e s~XXX_MONDIRPASSWORD_XXX~$DIRMPASSWD~ \
111 -e s~XXX_MONFDPASSWORD_XXX~$FDMPASSWD~ \
112 -e s~XXX_MONSDPASSWORD_XXX~$SDMPASSWD~ \
113 $TEMPLATE > $TMP_CONFIG
114+ chown root:bacula $TMP_CONFIG
115+
116 # let ucf handle the conffile and register it
117 ucf --debconf-ok --three-way $TMP_CONFIG $TARGET
118 ucfr $PKG_NAME $TARGET
119diff --git a/debian/changelog b/debian/changelog
120index 463f9ed..2c49093 100644
121--- a/debian/changelog
122+++ b/debian/changelog
123@@ -1,3 +1,21 @@
124+bacula (9.4.4-2ubuntu1) focal; urgency=medium
125+
126+ * Merge with Debian unstable. Remaining changes:
127+ - d/t/backup-test: fix test failures caused by test dependency installation
128+ misordering by reinstalling the required database schema at the start of
129+ the test. This is a workaround for Debian bug 923444.
130+ - d/t/control: some dbconfig-common output goes to stderr. This is not a
131+ failure, so instruct the autopkgtest machinery accordingly.
132+ * Drop changes (applied upstream):
133+ - debian/patches/debian/mysql-8-compat: Fix compatibility with MySQL 8 by
134+ using bool instead of my_bool.
135+ * Various postinsts in d/: change temporary file ownership after writing
136+ to avoid protected_regular=2 world-writeable sticky denials. Closes:
137+ #953030. Cherry-picked from Debian VCS 0fc4829. Thanks to Carsten
138+ Leonhardt.
139+
140+ -- Robie Basak <robie.basak@ubuntu.com> Tue, 03 Mar 2020 11:24:56 +0000
141+
142 bacula (9.4.4-2) unstable; urgency=medium
143
144 * Upload to unstable.
145@@ -15,6 +33,30 @@ bacula (9.4.4-1) experimental; urgency=medium
146
147 -- Carsten Leonhardt <leo@debian.org> Wed, 19 Jun 2019 23:08:15 +0200
148
149+bacula (9.4.2-2ubuntu3) eoan; urgency=medium
150+
151+ * d/t/backup-test: fix test failures caused by test dependency installation
152+ misordering by reinstalling the required database schema at the start of
153+ the test. This is a workaround for Debian bug 923444.
154+ * d/t/control: some dbconfig-common output goes to stderr. This is not a
155+ failure, so instruct the autopkgtest machinery accordingly.
156+
157+ -- Robie Basak <robie.basak@ubuntu.com> Wed, 28 Aug 2019 13:00:33 +0000
158+
159+bacula (9.4.2-2ubuntu2) eoan; urgency=medium
160+
161+ * No change rebuild for libmysqlclient21.
162+
163+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 15 Aug 2019 09:32:44 +0200
164+
165+bacula (9.4.2-2ubuntu1) disco; urgency=medium
166+
167+ * Merge from Debian unstable. Remaining changes:
168+ - debian/patches/debian/mysql-8-compat: Fix compatibility with MySQL 8 by
169+ using bool instead of my_bool.
170+
171+ -- Logan Rosen <logan@ubuntu.com> Sun, 03 Mar 2019 15:17:26 -0500
172+
173 bacula (9.4.2-2) unstable; urgency=medium
174
175 [ Carsten Leonhardt ]
176@@ -26,6 +68,12 @@ bacula (9.4.2-2) unstable; urgency=medium
177
178 -- Carsten Leonhardt <leo@debian.org> Thu, 28 Feb 2019 12:05:39 +0100
179
180+bacula (9.4.2-1ubuntu1) disco; urgency=medium
181+
182+ * Fix compatibility with MySQL 8 by using bool instead of my_bool.
183+
184+ -- Logan Rosen <logan@ubuntu.com> Sat, 23 Feb 2019 23:16:05 -0500
185+
186 bacula (9.4.2-1) unstable; urgency=medium
187
188 [ Carsten Leonhardt ]
189@@ -2630,3 +2678,4 @@ bacula (1.32f-4-1) unstable; urgency=low
190 * Initial Packaging: 12 binary packages built
191
192 -- José Luis Tallón <jltallon@adv-solutions.net> Wed, 18 Feb 2004 00:04:11 +0100
193+
194diff --git a/debian/control b/debian/control
195index 9e13a46..df28412 100644
196--- a/debian/control
197+++ b/debian/control
198@@ -1,7 +1,8 @@
199 Source: bacula
200 Section: admin
201 Priority: optional
202-Maintainer: Debian Bacula Team <pkg-bacula-devel@lists.alioth.debian.org>
203+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
204+XSBC-Original-Maintainer: Debian Bacula Team <pkg-bacula-devel@lists.alioth.debian.org>
205 Uploaders: Carsten Leonhardt <leo@debian.org>
206 Build-Depends: autoconf,
207 bc,
208diff --git a/debian/tests/backup-test b/debian/tests/backup-test
209index 2e0c616..7c09956 100755
210--- a/debian/tests/backup-test
211+++ b/debian/tests/backup-test
212@@ -10,6 +10,22 @@ BASH_XTRACEFD="3"
213 # Activate Tracing and exit-on-error
214 set -ex
215
216+# Workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923444
217+apt-get -y install debconf-utils
218+# If we don't reset some password fields we get a password mismatch error on
219+# the subsequent database reinstallation. For the purposes of this workaround
220+# in this isolated test environment it's easier just to reset them all.
221+debconf-get-selections|awk '$3=="password"{print}'|debconf-set-selections
222+for pkg in bacula-director-mysql bacula-director-pgsql; do
223+ # This test script is used in multiple cases; we want to only reinstall the
224+ # database if its package is installed.
225+ pkg_status=`dpkg-query --showformat '${db:Status-Status}' -W "$pkg" 2>/dev/null || true`
226+ if [ "$pkg_status" = "installed" ]; then
227+ echo "$pkg $pkg/dbconfig-reinstall boolean true"|debconf-set-selections
228+ DEBIAN_FRONTEND=noninteractive dpkg-reconfigure "$pkg"
229+ fi
230+done
231+
232 echo "start testing ... "
233 echo "USER: ${USER}"
234
235diff --git a/debian/tests/control b/debian/tests/control
236index ead3052..a9c5087 100644
237--- a/debian/tests/control
238+++ b/debian/tests/control
239@@ -1,13 +1,13 @@
240 Tests: backup-test-pgsql, program-test-pgsql
241-Restrictions: breaks-testbed needs-root
242+Restrictions: breaks-testbed needs-root allow-stderr
243 Depends: postgresql
244
245 Tests: backup-test-mysql, program-test-mysql
246-Restrictions: breaks-testbed needs-root
247+Restrictions: breaks-testbed needs-root allow-stderr
248 Depends: bacula,
249 bacula-director-mysql,
250 default-mysql-server | virtual-mysql-server
251
252 Tests: backup-test-sqlite3, program-test-sqlite3
253-Restrictions: breaks-testbed needs-root
254+Restrictions: breaks-testbed needs-root allow-stderr
255 Depends: bacula, bacula-director-sqlite3

Subscribers

People subscribed via source and target branches