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
1diff --git a/debian/README.Debian b/debian/README.Debian
2index 13220d4..ce92a33 100644
3--- a/debian/README.Debian
4+++ b/debian/README.Debian
5@@ -11,9 +11,14 @@ cacti for Debian
6 and load up the cacti skeleton. Assuming you chose a database and
7 user both named 'cacti' and your database is on localhost:
8
9- mysql -u root -p -e "create database cacti"
10- mysql -u root -p -e "grant all privileges on cacti.* to cacti@localhost identified by 'yourpasswordhere'; flush privileges"
11- cat /usr/share/doc/cacti/cacti.sql | mysql -u cacti -p cacti
12+ mysql -u root (-p) -e "create database cacti"
13+ mysql -u root (-p) -e "create user 'cacti'@'localhost';"
14+ mysql -u root (-p) -e "alter user 'cacti'@'localhost' identified with 'sha256_password';
15+ mysql -u root (-p) -e "alter user 'cacti'@'localhost' identified by 'yourpasswordhere';"
16+ mysql -u root (-p) -e "grant all privileges on cacti.* to 'cacti'@'localhost';"
17+ mysql -u root (-p) -e "flush privileges;"
18+
19+ cat /usr/share/doc/cacti/cacti.sql | mysql -u cacti -p cacti
20
21 Next, go to http://$yourhost/cacti/, and follow the on-screen directions.
22 The default login/password is admin/admin.
23diff --git a/debian/cacti.config b/debian/cacti.config
24index 3d5b0a2..a1ffaa2 100644
25--- a/debian/cacti.config
26+++ b/debian/cacti.config
27@@ -13,6 +13,7 @@ if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
28 dbc_first_version="0.8.6g-3"
29 dbc_load_include="php:/etc/cacti/debian.php"
30 dbc_load_include_args="--dbname=database_default --dbpass=database_password --dbuser=database_username --dbserver=database_hostname --dbport=database_port"
31+ dbc_authplugin="sha256_password"
32 dbc_go cacti $@
33 fi
34
35diff --git a/debian/changelog b/debian/changelog
36index 7c07282..2cc00c4 100644
37--- a/debian/changelog
38+++ b/debian/changelog
39@@ -1,3 +1,11 @@
40+cacti (1.2.20+ds1-2ubuntu1) kinetic; urgency=medium
41+
42+ * Merge with Debian unstable (LP: #1972833). Remaining changes:
43+ - General installing instructions update for NO_AUTO_CREATE_USER.
44+ - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
45+
46+ -- Athos Ribeiro <athos.ribeiro@canonical.com> Tue, 10 May 2022 10:03:33 -0300
47+
48 cacti (1.2.20+ds1-2) unstable; urgency=medium
49
50 * Revert "Replace dependency on libjs-d3 by node-d3" (Opens: #913385)
51@@ -24,6 +32,15 @@ cacti (1.2.20+ds1-1) unstable; urgency=medium
52
53 -- Paul Gevers <elbrus@debian.org> Thu, 14 Apr 2022 10:16:39 +0200
54
55+cacti (1.2.19+ds1-2ubuntu1) jammy; urgency=medium
56+
57+ * Merge with Debian unstable. (LP: #1964653)
58+ Remaining changes:
59+ - General installing instructions update for NO_AUTO_CREATE_USER.
60+ - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
61+
62+ -- Bryce Harrington <bryce@canonical.com> Thu, 10 Mar 2022 18:27:38 -0800
63+
64 cacti (1.2.19+ds1-2) unstable; urgency=medium
65
66 * Support cacti on PHP8.1 by incorporating upstream patches
67@@ -46,6 +63,21 @@ cacti (1.2.19+ds1-1) unstable; urgency=medium
68
69 -- Paul Gevers <elbrus@debian.org> Mon, 22 Nov 2021 20:30:48 +0100
70
71+cacti (1.2.16+ds1-2ubuntu1) hirsute; urgency=medium
72+
73+ * Merge with Debian unstable. Remaining changes:
74+ - General installing instructions update for NO_AUTO_CREATE_USER.
75+ - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
76+ * Dropped:
77+ - d/p/fix-32bit-ip-conversion.patch: fix netmask generation on 32bit
78+ architectures (LP #1865067)
79+ [Fixed in 1.2.11]
80+ - d/p/0001-PHP-7.4-Array-and-string-offset-access-syntax-with-c.patch
81+ + Fix deprecated curly bracket style syntax
82+ [Fixed in 1.2.11]
83+
84+ -- Bryce Harrington <bryce@canonical.com> Wed, 20 Jan 2021 12:17:39 -0800
85+
86 cacti (1.2.16+ds1-2) unstable; urgency=medium
87
88 * Add 0001-Fixing-Issue-4022.patch (Closes: #979998)
89@@ -113,6 +145,20 @@ cacti (1.2.11+ds1-1) unstable; urgency=medium
90
91 -- Paul Gevers <elbrus@debian.org> Tue, 07 Apr 2020 22:22:16 +0200
92
93+cacti (1.2.10+ds1-1ubuntu1) focal; urgency=medium
94+
95+ * Merge with Debian unstable. Remaining changes:
96+ - General installing instructions update for NO_AUTO_CREATE_USER.
97+ (refreshed when merging with debian 1.2.9+ds1-1)
98+ - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
99+ (refreshed when merging with debian 1.2.9+ds1-1)
100+ - d/p/fix-32bit-ip-conversion.patch: fix netmask generation on 32bit
101+ architectures (LP #1865067)
102+ * d/p/0001-PHP-7.4-Array-and-string-offset-access-syntax-with-c.patch
103+ - Fix deprecated curly bracket style syntax
104+
105+ -- Bryce Harrington <bryce@canonical.com> Mon, 23 Mar 2020 22:08:43 +0000
106+
107 cacti (1.2.10+ds1-1) unstable; urgency=medium
108
109 * New upstream version 1.2.10
110@@ -122,6 +168,26 @@ cacti (1.2.10+ds1-1) unstable; urgency=medium
111
112 -- Paul Gevers <elbrus@debian.org> Sun, 08 Mar 2020 21:26:46 +0100
113
114+cacti (1.2.9+ds1-1ubuntu2) focal; urgency=medium
115+
116+ * d/p/fix-32bit-ip-conversion.patch: fix netmask generation on 32bit
117+ architectures (LP: #1865067)
118+
119+ -- Andreas Hasenack <andreas@canonical.com> Mon, 02 Mar 2020 14:52:15 -0300
120+
121+cacti (1.2.9+ds1-1ubuntu1) focal; urgency=medium
122+
123+ * Merge with Debian unstable (LP: #1863739). Remaining changes:
124+ - General installing instructions update for NO_AUTO_CREATE_USER.
125+ - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
126+ * Dropped changes [upstream]:
127+ - MySQL 8 change needs: NO_AUTO_CREATE_USER and grouping keyword.
128+ * Dropped changes [debian]:
129+ - Replace php-php-gettext dependency in order to fix translations
130+ (LP #1844070)
131+
132+ -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Tue, 18 Feb 2020 13:28:26 +0000
133+
134 cacti (1.2.9+ds1-1) unstable; urgency=medium
135
136 * New upstream version 1.2.9+ds1
137@@ -184,6 +250,31 @@ cacti (1.2.6+ds1-1) unstable; urgency=medium
138
139 -- Paul Gevers <elbrus@debian.org> Thu, 05 Sep 2019 17:47:08 +0200
140
141+cacti (1.2.4+ds1-2ubuntu3) eoan; urgency=medium
142+
143+ * Replace php-php-gettext dependency in order to fix translations
144+ (LP: #1844070)
145+
146+ -- Graham Inggs <ginggs@ubuntu.com> Thu, 19 Sep 2019 10:30:52 +0000
147+
148+cacti (1.2.4+ds1-2ubuntu2) eoan; urgency=medium
149+
150+ * Fix CREATE FUNCTION errors if binary logging is enabled:
151+ - d/p/MySQL-8-change-needs-NO_AUTO_CREATE_USER_and_groupin.patch
152+ - d/cacti.admin.sql
153+ - d/cacti.admin.rm.sql
154+
155+ -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Fri, 09 Aug 2019 06:10:31 +0000
156+
157+cacti (1.2.4+ds1-2ubuntu1) eoan; urgency=medium
158+
159+ * Fixes for MySQL upstream updates. (Closes: #933683)
160+ - General installing instructions update for NO_AUTO_CREATE_USER.
161+ - Use new dbconfig "dbc_authplugin" variable to mitigate MySQL 8 issues.
162+ - Debian Instructions have to contain workaround for NO_AUTO_CREATE_USER.
163+
164+ -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Thu, 08 Aug 2019 09:42:54 -0300
165+
166 cacti (1.2.4+ds1-2) unstable; urgency=medium
167
168 * tests: add new IMPORT messages to ignore filter
169diff --git a/debian/control b/debian/control
170index 6e2070f..b66c1e1 100644
171--- a/debian/control
172+++ b/debian/control
173@@ -1,7 +1,8 @@
174 Source: cacti
175 Section: web
176 Priority: optional
177-Maintainer: Cacti Maintainer <pkg-cacti-maint@lists.alioth.debian.org>
178+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
179+XSBC-Original-Maintainer: Cacti Maintainer <pkg-cacti-maint@lists.alioth.debian.org>
180 Uploaders: Paul Gevers <elbrus@debian.org>
181 Build-Depends: debhelper-compat (= 13),
182 dh-linktree (>=0.5~),
183diff --git a/debian/patches/general-instructions-no-auto-create-user.patch b/debian/patches/general-instructions-no-auto-create-user.patch
184new file mode 100644
185index 0000000..208b5bd
186--- /dev/null
187+++ b/debian/patches/general-instructions-no-auto-create-user.patch
188@@ -0,0 +1,39 @@
189+From cbb63ddf62e01dfb8f9df81de8f087764bceecc3 Mon Sep 17 00:00:00 2001
190+From: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
191+Date: Fri, 9 Aug 2019 16:25:49 +0000
192+Subject: [PATCH] General installing instructions update for
193+ NO_AUTO_CREATE_USER
194+
195+After MySQL 8 started using NO_AUTO_CREATE_USER by default, the general
196+installing instructions need update to instruct one on how to proper
197+create the user separately from the ALTER SQL command given by example.
198+
199+Signed-off-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
200+
201+Author: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
202+Forwarded: https://salsa.debian.org/cacti-team/cacti/merge_requests/1
203+Bug: https://github.com/Cacti/cacti/issues/2872
204+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933683
205+---
206+ docs-source/General-Installing-Instructions.md | 10 +++++++---
207+ 1 file changed, 7 insertions(+), 3 deletions(-)
208+
209+--- a/docs-source/General-Installing-Instructions.md
210++++ b/docs-source/General-Installing-Instructions.md
211+@@ -251,9 +251,13 @@
212+
213+ ```sql
214+ shell> mysql --user=root mysql
215+- MySQL> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
216+- MySQL> GRANT SELECT ON mysql.time_zone_name TO cactiuser@localhost IDENTIFIED BY 'somepassword';
217+- MySQL> flush privileges;
218++ mysql> CREATE DATABASE cacti
219++ mysql> CREATE USER 'cacti'@'localhost';
220++ mysql> ALTER USER 'cacti'@'localhost' IDENTIFIED WITH 'sha256_password';
221++ mysql> ALTER USER 'cacti'@'localhost' IDENTIFIED BY 'somepassword';
222++ mysql> GRANT ALL PRIVILEGES ON cacti.* to 'cacti'@'localhost';
223++ mysql> GRANT SELECT ON mysql.time_zone_name TO 'cacti'@'localhost';
224++ mysql> FLUSH PRIVILEGES;
225+ ```
226+
227+ Note that if your `root` (or equivalent) user does not have `SUPER` permissions,
228diff --git a/debian/patches/series b/debian/patches/series
229index abb272a..ee07943 100644
230--- a/debian/patches/series
231+++ b/debian/patches/series
232@@ -11,3 +11,6 @@ update-check_all_pages-for-1.2.20.patch
233 prevent-errors-while-editing-new-users.patch
234 0001-push_out_hosts.php-is-missing-its-header.patch
235 fix-CRLF-line-ends.patch
236+
237+# Ubuntu patches:
238+general-instructions-no-auto-create-user.patch

Subscribers

People subscribed via source and target branches