Merge ~athos-ribeiro/ubuntu/+source/cacti:merge-lp1972833-kinetic into ubuntu/+source/cacti:debian/sid

Proposed by Athos Ribeiro
Status: Merged
Merge reported by: Athos Ribeiro
Merged at revision: 4eac95f8bb3be3fd7ae0a74e23c492f12dad440d
Proposed branch: ~athos-ribeiro/ubuntu/+source/cacti:merge-lp1972833-kinetic
Merge into: ubuntu/+source/cacti:debian/sid
Diff against target: 238 lines (+144/-4)
6 files modified
debian/README.Debian (+8/-3)
debian/cacti.config (+1/-0)
debian/changelog (+91/-0)
debian/control (+2/-1)
debian/patches/general-instructions-no-auto-create-user.patch (+39/-0)
debian/patches/series (+3/-0)
Reviewer Review Type Date Requested Status
Bryce Harrington (community) Approve
Canonical Server Pending
git-ubuntu import Pending
Review via email: mp+421869@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Merge cacti from Debian unstable for kinetic (LP: #1972833)

A PPA with the proposed merge is available at https://launchpad.net/~athos-ribeiro/+archive/ubuntu/cacti-lp1972833-kinetic/+packages

The autopkgtest suite fail due to the issues (partially) addressed in the package delta. This is not a regression, as observed in https://autopkgtest.ubuntu.com/packages/c/cacti/jammy/amd64

Revision history for this message
Bryce Harrington (bryce) wrote :

Looks like the delta already was forwarded by Rafael but has not moved ahead since then. So, carrying the changes forward another release is fine. LGTM, +1.

Sounds like debian / upstream aren't opposed to the changes, just haven't picked them up. Some day might be worth looping back into that discussion.

review: Approve
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks, Bryce!

Uploaded

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/README.Debian b/debian/README.Debian
index 13220d4..ce92a33 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -11,9 +11,14 @@ cacti for Debian
11 and load up the cacti skeleton. Assuming you chose a database and11 and load up the cacti skeleton. Assuming you chose a database and
12 user both named 'cacti' and your database is on localhost:12 user both named 'cacti' and your database is on localhost:
1313
14 mysql -u root -p -e "create database cacti"14 mysql -u root (-p) -e "create database cacti"
15 mysql -u root -p -e "grant all privileges on cacti.* to cacti@localhost identified by 'yourpasswordhere'; flush privileges"15 mysql -u root (-p) -e "create user 'cacti'@'localhost';"
16 cat /usr/share/doc/cacti/cacti.sql | mysql -u cacti -p cacti 16 mysql -u root (-p) -e "alter user 'cacti'@'localhost' identified with 'sha256_password';
17 mysql -u root (-p) -e "alter user 'cacti'@'localhost' identified by 'yourpasswordhere';"
18 mysql -u root (-p) -e "grant all privileges on cacti.* to 'cacti'@'localhost';"
19 mysql -u root (-p) -e "flush privileges;"
20
21 cat /usr/share/doc/cacti/cacti.sql | mysql -u cacti -p cacti
1722
18 Next, go to http://$yourhost/cacti/, and follow the on-screen directions.23 Next, go to http://$yourhost/cacti/, and follow the on-screen directions.
19 The default login/password is admin/admin.24 The default login/password is admin/admin.
diff --git a/debian/cacti.config b/debian/cacti.config
index 3d5b0a2..a1ffaa2 100644
--- a/debian/cacti.config
+++ b/debian/cacti.config
@@ -13,6 +13,7 @@ if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
13 dbc_first_version="0.8.6g-3"13 dbc_first_version="0.8.6g-3"
14 dbc_load_include="php:/etc/cacti/debian.php"14 dbc_load_include="php:/etc/cacti/debian.php"
15 dbc_load_include_args="--dbname=database_default --dbpass=database_password --dbuser=database_username --dbserver=database_hostname --dbport=database_port"15 dbc_load_include_args="--dbname=database_default --dbpass=database_password --dbuser=database_username --dbserver=database_hostname --dbport=database_port"
16 dbc_authplugin="sha256_password"
16 dbc_go cacti $@17 dbc_go cacti $@
17fi18fi
1819
diff --git a/debian/changelog b/debian/changelog
index 7c07282..2cc00c4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
1cacti (1.2.20+ds1-2ubuntu1) kinetic; urgency=medium
2
3 * Merge with Debian unstable (LP: #1972833). Remaining changes:
4 - General installing instructions update for NO_AUTO_CREATE_USER.
5 - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
6
7 -- Athos Ribeiro <athos.ribeiro@canonical.com> Tue, 10 May 2022 10:03:33 -0300
8
1cacti (1.2.20+ds1-2) unstable; urgency=medium9cacti (1.2.20+ds1-2) unstable; urgency=medium
210
3 * Revert "Replace dependency on libjs-d3 by node-d3" (Opens: #913385)11 * Revert "Replace dependency on libjs-d3 by node-d3" (Opens: #913385)
@@ -24,6 +32,15 @@ cacti (1.2.20+ds1-1) unstable; urgency=medium
2432
25 -- Paul Gevers <elbrus@debian.org> Thu, 14 Apr 2022 10:16:39 +020033 -- Paul Gevers <elbrus@debian.org> Thu, 14 Apr 2022 10:16:39 +0200
2634
35cacti (1.2.19+ds1-2ubuntu1) jammy; urgency=medium
36
37 * Merge with Debian unstable. (LP: #1964653)
38 Remaining changes:
39 - General installing instructions update for NO_AUTO_CREATE_USER.
40 - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
41
42 -- Bryce Harrington <bryce@canonical.com> Thu, 10 Mar 2022 18:27:38 -0800
43
27cacti (1.2.19+ds1-2) unstable; urgency=medium44cacti (1.2.19+ds1-2) unstable; urgency=medium
2845
29 * Support cacti on PHP8.1 by incorporating upstream patches46 * Support cacti on PHP8.1 by incorporating upstream patches
@@ -46,6 +63,21 @@ cacti (1.2.19+ds1-1) unstable; urgency=medium
4663
47 -- Paul Gevers <elbrus@debian.org> Mon, 22 Nov 2021 20:30:48 +010064 -- Paul Gevers <elbrus@debian.org> Mon, 22 Nov 2021 20:30:48 +0100
4865
66cacti (1.2.16+ds1-2ubuntu1) hirsute; urgency=medium
67
68 * Merge with Debian unstable. Remaining changes:
69 - General installing instructions update for NO_AUTO_CREATE_USER.
70 - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
71 * Dropped:
72 - d/p/fix-32bit-ip-conversion.patch: fix netmask generation on 32bit
73 architectures (LP #1865067)
74 [Fixed in 1.2.11]
75 - d/p/0001-PHP-7.4-Array-and-string-offset-access-syntax-with-c.patch
76 + Fix deprecated curly bracket style syntax
77 [Fixed in 1.2.11]
78
79 -- Bryce Harrington <bryce@canonical.com> Wed, 20 Jan 2021 12:17:39 -0800
80
49cacti (1.2.16+ds1-2) unstable; urgency=medium81cacti (1.2.16+ds1-2) unstable; urgency=medium
5082
51 * Add 0001-Fixing-Issue-4022.patch (Closes: #979998)83 * Add 0001-Fixing-Issue-4022.patch (Closes: #979998)
@@ -113,6 +145,20 @@ cacti (1.2.11+ds1-1) unstable; urgency=medium
113145
114 -- Paul Gevers <elbrus@debian.org> Tue, 07 Apr 2020 22:22:16 +0200146 -- Paul Gevers <elbrus@debian.org> Tue, 07 Apr 2020 22:22:16 +0200
115147
148cacti (1.2.10+ds1-1ubuntu1) focal; urgency=medium
149
150 * Merge with Debian unstable. Remaining changes:
151 - General installing instructions update for NO_AUTO_CREATE_USER.
152 (refreshed when merging with debian 1.2.9+ds1-1)
153 - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
154 (refreshed when merging with debian 1.2.9+ds1-1)
155 - d/p/fix-32bit-ip-conversion.patch: fix netmask generation on 32bit
156 architectures (LP #1865067)
157 * d/p/0001-PHP-7.4-Array-and-string-offset-access-syntax-with-c.patch
158 - Fix deprecated curly bracket style syntax
159
160 -- Bryce Harrington <bryce@canonical.com> Mon, 23 Mar 2020 22:08:43 +0000
161
116cacti (1.2.10+ds1-1) unstable; urgency=medium162cacti (1.2.10+ds1-1) unstable; urgency=medium
117163
118 * New upstream version 1.2.10164 * New upstream version 1.2.10
@@ -122,6 +168,26 @@ cacti (1.2.10+ds1-1) unstable; urgency=medium
122168
123 -- Paul Gevers <elbrus@debian.org> Sun, 08 Mar 2020 21:26:46 +0100169 -- Paul Gevers <elbrus@debian.org> Sun, 08 Mar 2020 21:26:46 +0100
124170
171cacti (1.2.9+ds1-1ubuntu2) focal; urgency=medium
172
173 * d/p/fix-32bit-ip-conversion.patch: fix netmask generation on 32bit
174 architectures (LP: #1865067)
175
176 -- Andreas Hasenack <andreas@canonical.com> Mon, 02 Mar 2020 14:52:15 -0300
177
178cacti (1.2.9+ds1-1ubuntu1) focal; urgency=medium
179
180 * Merge with Debian unstable (LP: #1863739). Remaining changes:
181 - General installing instructions update for NO_AUTO_CREATE_USER.
182 - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
183 * Dropped changes [upstream]:
184 - MySQL 8 change needs: NO_AUTO_CREATE_USER and grouping keyword.
185 * Dropped changes [debian]:
186 - Replace php-php-gettext dependency in order to fix translations
187 (LP #1844070)
188
189 -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Tue, 18 Feb 2020 13:28:26 +0000
190
125cacti (1.2.9+ds1-1) unstable; urgency=medium191cacti (1.2.9+ds1-1) unstable; urgency=medium
126192
127 * New upstream version 1.2.9+ds1193 * New upstream version 1.2.9+ds1
@@ -184,6 +250,31 @@ cacti (1.2.6+ds1-1) unstable; urgency=medium
184250
185 -- Paul Gevers <elbrus@debian.org> Thu, 05 Sep 2019 17:47:08 +0200251 -- Paul Gevers <elbrus@debian.org> Thu, 05 Sep 2019 17:47:08 +0200
186252
253cacti (1.2.4+ds1-2ubuntu3) eoan; urgency=medium
254
255 * Replace php-php-gettext dependency in order to fix translations
256 (LP: #1844070)
257
258 -- Graham Inggs <ginggs@ubuntu.com> Thu, 19 Sep 2019 10:30:52 +0000
259
260cacti (1.2.4+ds1-2ubuntu2) eoan; urgency=medium
261
262 * Fix CREATE FUNCTION errors if binary logging is enabled:
263 - d/p/MySQL-8-change-needs-NO_AUTO_CREATE_USER_and_groupin.patch
264 - d/cacti.admin.sql
265 - d/cacti.admin.rm.sql
266
267 -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Fri, 09 Aug 2019 06:10:31 +0000
268
269cacti (1.2.4+ds1-2ubuntu1) eoan; urgency=medium
270
271 * Fixes for MySQL upstream updates. (Closes: #933683)
272 - General installing instructions update for NO_AUTO_CREATE_USER.
273 - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
274 - Debian Instructions have to contain workaround for NO_AUTO_CREATE_USER.
275
276 -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Thu, 08 Aug 2019 09:42:54 -0300
277
187cacti (1.2.4+ds1-2) unstable; urgency=medium278cacti (1.2.4+ds1-2) unstable; urgency=medium
188279
189 * tests: add new IMPORT messages to ignore filter280 * tests: add new IMPORT messages to ignore filter
diff --git a/debian/control b/debian/control
index 6e2070f..b66c1e1 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
1Source: cacti1Source: cacti
2Section: web2Section: web
3Priority: optional3Priority: optional
4Maintainer: Cacti Maintainer <pkg-cacti-maint@lists.alioth.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Cacti Maintainer <pkg-cacti-maint@lists.alioth.debian.org>
5Uploaders: Paul Gevers <elbrus@debian.org>6Uploaders: Paul Gevers <elbrus@debian.org>
6Build-Depends: debhelper-compat (= 13),7Build-Depends: debhelper-compat (= 13),
7 dh-linktree (>=0.5~),8 dh-linktree (>=0.5~),
diff --git a/debian/patches/general-instructions-no-auto-create-user.patch b/debian/patches/general-instructions-no-auto-create-user.patch
8new file mode 1006449new file mode 100644
index 0000000..208b5bd
--- /dev/null
+++ b/debian/patches/general-instructions-no-auto-create-user.patch
@@ -0,0 +1,39 @@
1From cbb63ddf62e01dfb8f9df81de8f087764bceecc3 Mon Sep 17 00:00:00 2001
2From: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
3Date: Fri, 9 Aug 2019 16:25:49 +0000
4Subject: [PATCH] General installing instructions update for
5 NO_AUTO_CREATE_USER
6
7After MySQL 8 started using NO_AUTO_CREATE_USER by default, the general
8installing instructions need update to instruct one on how to proper
9create the user separately from the ALTER SQL command given by example.
10
11Signed-off-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
12
13Author: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
14Forwarded: https://salsa.debian.org/cacti-team/cacti/merge_requests/1
15Bug: https://github.com/Cacti/cacti/issues/2872
16Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933683
17---
18 docs-source/General-Installing-Instructions.md | 10 +++++++---
19 1 file changed, 7 insertions(+), 3 deletions(-)
20
21--- a/docs-source/General-Installing-Instructions.md
22+++ b/docs-source/General-Installing-Instructions.md
23@@ -251,9 +251,13 @@
24
25 ```sql
26 shell> mysql --user=root mysql
27- MySQL> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
28- MySQL> GRANT SELECT ON mysql.time_zone_name TO cactiuser@localhost IDENTIFIED BY 'somepassword';
29- MySQL> flush privileges;
30+ mysql> CREATE DATABASE cacti
31+ mysql> CREATE USER 'cacti'@'localhost';
32+ mysql> ALTER USER 'cacti'@'localhost' IDENTIFIED WITH 'sha256_password';
33+ mysql> ALTER USER 'cacti'@'localhost' IDENTIFIED BY 'somepassword';
34+ mysql> GRANT ALL PRIVILEGES ON cacti.* to 'cacti'@'localhost';
35+ mysql> GRANT SELECT ON mysql.time_zone_name TO 'cacti'@'localhost';
36+ mysql> FLUSH PRIVILEGES;
37 ```
38
39 Note that if your `root` (or equivalent) user does not have `SUPER` permissions,
diff --git a/debian/patches/series b/debian/patches/series
index abb272a..ee07943 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,6 @@ update-check_all_pages-for-1.2.20.patch
11prevent-errors-while-editing-new-users.patch11prevent-errors-while-editing-new-users.patch
120001-push_out_hosts.php-is-missing-its-header.patch120001-push_out_hosts.php-is-missing-its-header.patch
13fix-CRLF-line-ends.patch13fix-CRLF-line-ends.patch
14
15# Ubuntu patches:
16general-instructions-no-auto-create-user.patch

Subscribers

People subscribed via source and target branches