Merge ~lucaskanashiro/ubuntu/+source/clamav:focal-merge into ubuntu/+source/clamav:debian/sid

Proposed by Lucas Kanashiro
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 57085200da0d41f91fe18143c23d89c62746256f
Merge reported by: Andreas Hasenack
Merged at revision: 57085200da0d41f91fe18143c23d89c62746256f
Proposed branch: ~lucaskanashiro/ubuntu/+source/clamav:focal-merge
Merge into: ubuntu/+source/clamav:debian/sid
Diff against target: 175 lines (+113/-1)
4 files modified
debian/changelog (+56/-0)
debian/control (+2/-1)
debian/patches/Deprecate-unused-options-instead-of-removing-it.patch (+54/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Christian Ehrhardt  (community) Approve
Andreas Hasenack Pending
Canonical Server Pending
Review via email: mp+376437@code.launchpad.net

Description of the change

Merge version 0.102.1+dfsg-1 from Debian. We carry a small delta and I kept it to avoid possible issues when users upgrade their system from old Ubuntu releases (we might want to drop it after LTS release). Following is the delta:

   - clamav-daemon may fail to start due to options removed in new version
      and manually edited configuration file. (LP #1783632)
      + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
        add patch from Debian stretch to simply warn about removed options.

The existent patch didn't apply in the new upstream release, so I refreshed it but the content is still the same.

It built fine in all architectures: https://launchpad.net/~lucaskanashiro/+archive/ubuntu/focal-clamav-merge/

And the DEP-8 tests are also passing successfully in a local setup (amd64):

autopkgtest [18:41:05]: @@@@@@@@@@@@@@@@@@@@ summary
clamd PASS
client PASS
milter PASS

To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Changelog:
- [√] old content and logical tag match as expected
      You had none but it was easy enought to check still.
- [√] changelog entry correct version and targeted codename
- [√] changelog entries correct
- [√] update-maintainer has been run
      Interesting here is that 0.101.4+dfsg-1ubuntu1 didn't have that :-/

Actual changes:
- [√] no major upstream changes to consider
- [√] no further upstream version to consider
- [√] debian changes look safe

Old Delta:
- [√] nothing to drop yet
- [√] changes forwarded upstream/debian (n/a in this case)

New Delta:
- [√] refreshed patch LGTM (thanks for keeping patch and refresh separate commits and adding headers)

Build/Test:
- [√] build is ok
- [√] sanity checks test fine

Once this is complete you might ping security as they usually push the new versions to all active releases.

review: Approve
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for the merge!

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

To ssh://git.launchpad.net/~usd-import-team/ubuntu/+source/clamav
 * [new tag] upload/0.102.1+dfsg-1ubuntu1 -> upload/0.102.1+dfsg-1ubuntu1

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading clamav_0.102.1+dfsg-1ubuntu1.dsc: done.
  Uploading clamav_0.102.1+dfsg.orig.tar.xz: done.
  Uploading clamav_0.102.1+dfsg-1ubuntu1.debian.tar.xz: done.
  Uploading clamav_0.102.1+dfsg-1ubuntu1_source.buildinfo: done.
  Uploading clamav_0.102.1+dfsg-1ubuntu1_source.changes: done.
Successfully uploaded packages.

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

This migrated in focal.

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 693e59c..b7c1c89 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,13 @@
6+clamav (0.102.1+dfsg-1ubuntu1) focal; urgency=medium
7+
8+ * Merge with Debian unstable. Remaining changes:
9+ - clamav-daemon may fail to start due to options removed in new version
10+ and manually edited configuration file. (LP #1783632)
11+ + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
12+ add patch from Debian stretch to simply warn about removed options.
13+
14+ -- Lucas Kanashiro <lucas.kanashiro@canonical.com> Thu, 05 Dec 2019 18:01:14 -0300
15+
16 clamav (0.102.1+dfsg-1) unstable; urgency=medium
17
18 * Import 0.102.1 (Closes: #945265)
19@@ -9,6 +19,16 @@ clamav (0.102.1+dfsg-1) unstable; urgency=medium
20
21 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 30 Nov 2019 19:22:15 +0100
22
23+clamav (0.101.4+dfsg-1ubuntu1) eoan; urgency=low
24+
25+ * Merge from Debian unstable. Remaining changes:
26+ - clamav-daemon may fail to start due to options removed in new version
27+ and manually edited configuration file. (LP #1783632)
28+ + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
29+ add patch from Debian stretch to simply warn about removed options.
30+
31+ -- Gianfranco Costamagna <locutusofborg@debian.org> Sun, 25 Aug 2019 23:25:27 +0200
32+
33 clamav (0.101.4+dfsg-1) unstable; urgency=medium
34
35 * Import 0.101.4
36@@ -20,6 +40,16 @@ clamav (0.101.4+dfsg-1) unstable; urgency=medium
37
38 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sun, 25 Aug 2019 12:38:25 +0200
39
40+clamav (0.101.2+dfsg-3ubuntu1) eoan; urgency=low
41+
42+ * Merge from Debian unstable. Remaining changes:
43+ - clamav-daemon may fail to start due to options removed in new version
44+ and manually edited configuration file. (LP #1783632)
45+ + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
46+ add patch from Debian stretch to simply warn about removed options.
47+
48+ -- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 07 Aug 2019 08:54:47 +0200
49+
50 clamav (0.101.2+dfsg-3) unstable; urgency=medium
51
52 * Cherry-pick a fix from 0.101.3 to address a vulnerability to
53@@ -27,6 +57,16 @@ clamav (0.101.2+dfsg-3) unstable; urgency=medium
54
55 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Tue, 06 Aug 2019 21:42:06 +0200
56
57+clamav (0.101.2+dfsg-2ubuntu1) eoan; urgency=low
58+
59+ * Merge from Debian unstable. Remaining changes:
60+ - clamav-daemon may fail to start due to options removed in new version
61+ and manually edited configuration file. (LP #1783632)
62+ + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
63+ add patch from Debian stretch to simply warn about removed options.
64+
65+ -- Gianfranco Costamagna <locutusofborg@debian.org> Sat, 03 Aug 2019 10:20:31 +0200
66+
67 clamav (0.101.2+dfsg-2) unstable; urgency=medium
68
69 * Remove python from build-depends:
70@@ -36,6 +76,22 @@ clamav (0.101.2+dfsg-2) unstable; urgency=medium
71
72 -- Scott Kitterman <scott@kitterman.com> Fri, 02 Aug 2019 09:20:43 -0400
73
74+clamav (0.101.2+dfsg-1ubuntu2) eoan; urgency=medium
75+
76+ * Rebuild against new libjson-c4.
77+
78+ -- Gianfranco Costamagna <locutusofborg@debian.org> Sat, 29 Jun 2019 13:48:24 +0200
79+
80+clamav (0.101.2+dfsg-1ubuntu1) eoan; urgency=medium
81+
82+ * Sync with Debian. Remaining change:
83+ - clamav-daemon may fail to start due to options removed in new version
84+ and manually edited configuration file. (LP #1783632)
85+ + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
86+ add patch from Debian stretch to simply warn about removed options.
87+
88+ -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Tue, 23 Apr 2019 11:40:41 -0400
89+
90 clamav (0.101.2+dfsg-1) unstable; urgency=high
91
92 * Import 0.101.2
93diff --git a/debian/control b/debian/control
94index e37ebab..5b5f5dc 100644
95--- a/debian/control
96+++ b/debian/control
97@@ -1,7 +1,8 @@
98 Source: clamav
99 Section: utils
100 Priority: optional
101-Maintainer: ClamAV Team <pkg-clamav-devel@lists.alioth.debian.org>
102+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
103+XSBC-Original-Maintainer: ClamAV Team <pkg-clamav-devel@lists.alioth.debian.org>
104 Uploaders: Michael Meskes <meskes@debian.org>,
105 Michael Tautschnig <mt@debian.org>,
106 Scott Kitterman <scott@kitterman.com>,
107diff --git a/debian/patches/Deprecate-unused-options-instead-of-removing-it.patch b/debian/patches/Deprecate-unused-options-instead-of-removing-it.patch
108new file mode 100644
109index 0000000..2a005ae
110--- /dev/null
111+++ b/debian/patches/Deprecate-unused-options-instead-of-removing-it.patch
112@@ -0,0 +1,54 @@
113+Description: Deprecate unused options instead of removing it
114+ Refresh Debian patch from Sebastian Andrzej Siewior <sebastian@breakpoint.cc>,
115+ original description below:
116+ .
117+ The following options were removed:
118+ - StatsHostID
119+ - StatsEnabled
120+ - StatsPEDisabled
121+ - StatsTimeout
122+ - SubmitDetectionStats
123+ - DetectionStatsCountry
124+ - DetectionStatsHostID
125+ .
126+ and if they remain in the config file (during automatic upgrade without
127+ user action which would be required by ucf) then clamav will refuse the
128+ start. By marking them as deprecated clamav will point it out and
129+ continue. This patch will be dropped by moving to next Debian stable
130+ version (the user is expected to edit the config manually at this
131+ point if it did not happen earlier).
132+Author: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
133+Origin: upstream
134+Bug: https://bugs.debian.org/902290
135+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1783632
136+Reviewed-by: Lucas Kanashiro <lucas.kanashiro@canonical.com>
137+Last-Update: 2019-12-05
138+---
139+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
140+
141+--- a/shared/optparser.c
142++++ b/shared/optparser.c
143+@@ -587,6 +587,23 @@
144+ {"TCPSocket", NULL, 0, CLOPT_TYPE_NUMBER, MATCH_NUMBER, -1, NULL, 0, OPT_MILTER | OPT_DEPRECATED, "", ""},
145+ {"TemporaryDirectory", NULL, 0, CLOPT_TYPE_STRING, NULL, -1, NULL, 0, OPT_MILTER | OPT_DEPRECATED, "", ""},
146+
147++ /* Deprecated stats options - avoid breakage during upgrades from old Ubuntu releases */
148++
149++ { "StatsHostID", "stats-host-id", 0, CLOPT_TYPE_STRING, NULL, -1, NULL, 0, OPT_FRESHCLAM | OPT_CLAMD | OPT_CLAMSCAN | OPT_DEPRECATED, "HostID in the form of an UUID to use when submitting statistical information. See the clamscan manpage for more information.", "default" },
150++
151++ { "StatsEnabled", "enable-stats", 0, CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMD | OPT_FRESHCLAM | OPT_CLAMSCAN | OPT_DEPRECATED, "Enable submission of statistical data", "yes" },
152++
153++ { "StatsPEDisabled", "disable-pe-stats", 0, CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMD | OPT_CLAMSCAN | OPT_DEPRECATED, "Disable submission of PE section statistical data", "no" },
154++
155++ { "StatsTimeout", "stats-timeout", 0, CLOPT_TYPE_NUMBER, MATCH_NUMBER, -1, NULL, 0, OPT_CLAMD | OPT_CLAMSCAN | OPT_FRESHCLAM | OPT_DEPRECATED, "Timeout in seconds to timeout communication with the stats server.", "10" },
156++
157++ { "SubmitDetectionStats", NULL, 0, CLOPT_TYPE_STRING, NULL, -1, NULL, 0, OPT_FRESHCLAM | OPT_DEPRECATED, "When enabled freshclam will submit statistics to the ClamAV Project about\nthe latest virus detections in your environment. The ClamAV maintainers\nwill then use this data to determine what types of malware are the most\ndetected in the field and in what geographic area they are.\nFreshclam will connect to clamd in order to get recent statistics.", "/path/to/clamd.conf" },
158++
159++ { "DetectionStatsCountry", NULL, 0, CLOPT_TYPE_STRING, NULL, -1, NULL, 0, OPT_FRESHCLAM | OPT_DEPRECATED, "Country of origin of malware/detection statistics (for statistical\npurposes only). The statistics collector at ClamAV.net will look up\nyour IP address to determine the geographical origin of the malware\nreported by your installation. If this installation is mainly used to\nscan data which comes from a different location, please enable this\noption and enter a two-letter code (see http://www.iana.org/domains/root/db/)\nof the country of origin.", "country-code" },
160++
161++ { "DetectionStatsHostID", NULL, 0, CLOPT_TYPE_STRING, NULL, -1, NULL, 0, OPT_FRESHCLAM | OPT_DEPRECATED, "This option enables support for our \"Personal Statistics\" service.\nWhen this option is enabled, the information on malware detected by\nyour clamd installation is made available to you through our website.\nTo get your HostID, log on http://www.stats.clamav.net and add a new\nhost to your host list. Once you have the HostID, uncomment this option\nand paste the HostID here. As soon as your freshclam starts submitting\ninformation to our stats collecting service, you will be able to view\nthe statistics of this clamd installation by logging into\nhttp://www.stats.clamav.net with the same credentials you used to\ngenerate the HostID. For more information refer to:\nhttp://www.clamav.net/doc/cctts.html\nThis feature requires SubmitDetectionStats to be enabled.", "unique-id" },
162++
163++
164+ {NULL, NULL, 0, 0, NULL, 0, NULL, 0, 0, NULL, NULL}};
165+ const struct clam_option *clam_options = __clam_options;
166+
167diff --git a/debian/patches/series b/debian/patches/series
168index 28004d0..1e4a08e 100644
169--- a/debian/patches/series
170+++ b/debian/patches/series
171@@ -4,3 +4,4 @@ clamd_dont_depend_on_clamav_demon_socket.patch
172 Add-support-for-LLVM-3.7.patch
173 Add-support-for-LLVM-3.8.patch
174 Add-support-for-LLVM-3.9.patch
175+Deprecate-unused-options-instead-of-removing-it.patch

Subscribers

People subscribed via source and target branches