Merge ~athos-ribeiro/ubuntu/+source/civicrm:merge-lp1978501-kinetic into ubuntu/+source/civicrm:debian/sid

Proposed by Athos Ribeiro
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merge reported by: Athos Ribeiro
Merged at revision: 154a1b756b70179687a58db77ba79a5e73e504b7
Proposed branch: ~athos-ribeiro/ubuntu/+source/civicrm:merge-lp1978501-kinetic
Merge into: ubuntu/+source/civicrm:debian/sid
Diff against target: 150 lines (+109/-1)
4 files modified
debian/changelog (+23/-0)
debian/control (+2/-1)
debian/patches/alllow_psr_log_3.patch (+83/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Bryce Harrington (community) Approve
Canonical Server Reporter Pending
Canonical Server Reporter Pending
Canonical Server Reporter Pending
Canonical Server Pending
Review via email: mp+424594@code.launchpad.net

Description of the change

Merge for new civirm package.

I replaced the current delta in favor of the upstream change addressing the PSR transition.

PPA: https://launchpad.net/~athos-ribeiro/+archive/ubuntu/lp1978501-merge-civicrm-kinetic/+packages

There is no DEP8 test suite for this package.

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

Looks good, thanks for updating to the newer patch.

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

Thanks Bryce!

Uploaded

$ dput ubuntu ../civicrm_5.50.1+dfsg1-1ubuntu1_source.changes
D: Setting host argument.
Checking signature on .changes
gpg: ../civicrm_5.50.1+dfsg1-1ubuntu1_source.changes: Valid signature from 033C4CA276024834
Checking signature on .dsc
gpg: ../civicrm_5.50.1+dfsg1-1ubuntu1.dsc: Valid signature from 033C4CA276024834
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading civicrm_5.50.1+dfsg1-1ubuntu1.dsc: done.
  Uploading civicrm_5.50.1+dfsg1.orig-l10n.tar.xz: done.
  Uploading civicrm_5.50.1+dfsg1.orig-wordpress.tar.xz: done.
  Uploading civicrm_5.50.1+dfsg1.orig.tar.xz: done.
  Uploading civicrm_5.50.1+dfsg1-1ubuntu1.debian.tar.xz: done.
  Uploading civicrm_5.50.1+dfsg1-1ubuntu1_source.buildinfo: done.
  Uploading civicrm_5.50.1+dfsg1-1ubuntu1_source.changes: done.
Successfully uploaded packages.

Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: athos-ribeiro, bryce
Uploaders: athos-ribeiro, bryce
MP auto-approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 60c64ae..3064555 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,14 @@
6+civicrm (5.50.1+dfsg1-1ubuntu1) kinetic; urgency=medium
7+
8+ * Merge with Debian unstable (LP: #1978501).
9+ * Dropped changes:
10+ - d/p/use-php-psr-log-3.patch: use psr/log 3.
11+ [ Drop in favor of upstream patch ]
12+ * New changes:
13+ - d/p/allow_psr_log_3.patch: allow psr/log up to version 3.
14+
15+ -- Athos Ribeiro <athos.ribeiro@canonical.com> Mon, 13 Jun 2022 17:51:09 -0300
16+
17 civicrm (5.50.1+dfsg1-1) unstable; urgency=medium
18
19 * New upstream release.
20@@ -9,6 +20,18 @@ civicrm (5.50.1+dfsg1-1) unstable; urgency=medium
21
22 -- Dmitry Smirnov <onlyjob@debian.org> Sat, 11 Jun 2022 13:34:01 +1000
23
24+civicrm (5.33.2+dfsg1-1ubuntu1) jammy; urgency=medium
25+
26+ * d/p/use-php-psr-log-3.patch: use psr/log 3.
27+
28+ -- Athos Ribeiro <athos.ribeiro@canonical.com> Mon, 04 Apr 2022 17:50:56 -0300
29+
30+civicrm (5.33.2+dfsg1-1build1) jammy; urgency=medium
31+
32+ * No change rebuild for symfony 5.4 and php-psr-log 3
33+
34+ -- Bryce Harrington <bryce@canonical.com> Fri, 25 Feb 2022 06:28:35 +0000
35+
36 civicrm (5.33.2+dfsg1-1) unstable; urgency=medium
37
38 * New upstream release.
39diff --git a/debian/control b/debian/control
40index 54b34e4..461c71c 100644
41--- a/debian/control
42+++ b/debian/control
43@@ -2,7 +2,8 @@ Source: civicrm
44 Section: web
45 Priority: optional
46 Standards-Version: 4.6.1
47-Maintainer: Dmitry Smirnov <onlyjob@debian.org>
48+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
49+XSBC-Original-Maintainer: Dmitry Smirnov <onlyjob@debian.org>
50 Build-Depends: debhelper-compat (= 12)
51 ,dh-linktree
52 ,phpab
53diff --git a/debian/patches/alllow_psr_log_3.patch b/debian/patches/alllow_psr_log_3.patch
54new file mode 100644
55index 0000000..f8b61fb
56--- /dev/null
57+++ b/debian/patches/alllow_psr_log_3.patch
58@@ -0,0 +1,83 @@
59+From ada741b8c7ccec08e2a89389a8bde651d62ea2a0 Mon Sep 17 00:00:00 2001
60+From: demeritcowboy <demeritcowboy@hotmail.com>
61+Date: Mon, 9 May 2022 08:39:44 -0400
62+Subject: allow more log
63+
64+Last-Update: 2022-06-13
65+Origin: upstream, https://github.com/civicrm/civicrm-core/commit/ada741b8c7ccec08e2a89389a8bde651d62ea2a0
66+---
67+ CRM/Core/Error/Log.php | 2 +-
68+ CRM/Utils/EchoLogger.php | 2 +-
69+ CRM/Utils/SystemLogger.php | 2 +-
70+ Civi/Api4/Action/System/RotateKey.php | 2 +-
71+ composer.json | 2 +-
72+ 5 files changed, 5 insertions(+), 5 deletions(-)
73+
74+diff --git a/CRM/Core/Error/Log.php b/CRM/Core/Error/Log.php
75+index 9904045ad1..964c7ed0ac 100644
76+--- a/CRM/Core/Error/Log.php
77++++ b/CRM/Core/Error/Log.php
78+@@ -52,7 +52,7 @@ class CRM_Core_Error_Log extends \Psr\Log\AbstractLogger {
79+ * @param string $message
80+ * @param array $context
81+ */
82+- public function log($level, $message, array $context = []) {
83++ public function log($level, $message, array $context = []): void {
84+ // FIXME: This flattens a $context a bit prematurely. When integrating
85+ // with external/CMS logs, we should pass through $context.
86+ if (!empty($context)) {
87+diff --git a/CRM/Utils/EchoLogger.php b/CRM/Utils/EchoLogger.php
88+index c6db7c04b7..1bad4ae9ea 100644
89+--- a/CRM/Utils/EchoLogger.php
90++++ b/CRM/Utils/EchoLogger.php
91+@@ -23,7 +23,7 @@ class CRM_Utils_EchoLogger extends Psr\Log\AbstractLogger implements \Psr\Log\Lo
92+ * @param string $message
93+ * @param array $context
94+ */
95+- public function log($level, $message, array $context = []) {
96++ public function log($level, $message, array $context = []): void {
97+ echo $message . "\n";
98+ }
99+
100+diff --git a/CRM/Utils/SystemLogger.php b/CRM/Utils/SystemLogger.php
101+index eefdaffe5c..25d7356ae2 100644
102+--- a/CRM/Utils/SystemLogger.php
103++++ b/CRM/Utils/SystemLogger.php
104+@@ -23,7 +23,7 @@ class CRM_Utils_SystemLogger extends Psr\Log\AbstractLogger implements \Psr\Log\
105+ * @param string $message
106+ * @param array $context
107+ */
108+- public function log($level, $message, array $context = []) {
109++ public function log($level, $message, array $context = []): void {
110+ if (!isset($context['hostname'])) {
111+ $context['hostname'] = CRM_Utils_System::ipAddress();
112+ }
113+diff --git a/Civi/Api4/Action/System/RotateKey.php b/Civi/Api4/Action/System/RotateKey.php
114+index c904a2c0e4..7afc9b204e 100644
115+--- a/Civi/Api4/Action/System/RotateKey.php
116++++ b/Civi/Api4/Action/System/RotateKey.php
117+@@ -60,7 +60,7 @@ class RotateKey extends AbstractAction {
118+ * @param string $message
119+ * @param array $context
120+ */
121+- public function log($level, $message, array $context = []) {
122++ public function log($level, $message, array $context = []): void {
123+ $evalVar = function($m) use ($context) {
124+ return $context[$m[1]] ?? '';
125+ };
126+diff --git a/composer.json b/composer.json
127+index e2edf902b4..43f5f96eff 100644
128+--- a/composer.json
129++++ b/composer.json
130+@@ -59,7 +59,7 @@
131+ "symfony/filesystem": "~3.0 || ~4.4",
132+ "symfony/process": "~3.0 || ~4.4",
133+ "symfony/var-dumper": "~3.0 || ~4.4 || ~5.1",
134+- "psr/log": "~1.0",
135++ "psr/log": "~1.0 || ~2.0 || ~3.0",
136+ "symfony/finder": "~3.0 || ~4.4",
137+ "tecnickcom/tcpdf" : "6.4.*",
138+ "totten/ca-config": "~22.05",
139+--
140+2.36.1
141+
142diff --git a/debian/patches/series b/debian/patches/series
143index 6be9cc6..71ab7a1 100644
144--- a/debian/patches/series
145+++ b/debian/patches/series
146@@ -4,3 +4,4 @@ GenericHookEvent_nowarning.patch
147 PHP-HTMLPurifier.patch
148 ##defaults.patch
149 wordpress_preload.patch
150+alllow_psr_log_3.patch

Subscribers

People subscribed via source and target branches