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
diff --git a/debian/changelog b/debian/changelog
index 693e59c..b7c1c89 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
1clamav (0.102.1+dfsg-1ubuntu1) focal; urgency=medium
2
3 * Merge with Debian unstable. Remaining changes:
4 - clamav-daemon may fail to start due to options removed in new version
5 and manually edited configuration file. (LP #1783632)
6 + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
7 add patch from Debian stretch to simply warn about removed options.
8
9 -- Lucas Kanashiro <lucas.kanashiro@canonical.com> Thu, 05 Dec 2019 18:01:14 -0300
10
1clamav (0.102.1+dfsg-1) unstable; urgency=medium11clamav (0.102.1+dfsg-1) unstable; urgency=medium
212
3 * Import 0.102.1 (Closes: #945265)13 * Import 0.102.1 (Closes: #945265)
@@ -9,6 +19,16 @@ clamav (0.102.1+dfsg-1) unstable; urgency=medium
919
10 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 30 Nov 2019 19:22:15 +010020 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 30 Nov 2019 19:22:15 +0100
1121
22clamav (0.101.4+dfsg-1ubuntu1) eoan; urgency=low
23
24 * Merge from Debian unstable. Remaining changes:
25 - clamav-daemon may fail to start due to options removed in new version
26 and manually edited configuration file. (LP #1783632)
27 + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
28 add patch from Debian stretch to simply warn about removed options.
29
30 -- Gianfranco Costamagna <locutusofborg@debian.org> Sun, 25 Aug 2019 23:25:27 +0200
31
12clamav (0.101.4+dfsg-1) unstable; urgency=medium32clamav (0.101.4+dfsg-1) unstable; urgency=medium
1333
14 * Import 0.101.434 * Import 0.101.4
@@ -20,6 +40,16 @@ clamav (0.101.4+dfsg-1) unstable; urgency=medium
2040
21 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sun, 25 Aug 2019 12:38:25 +020041 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sun, 25 Aug 2019 12:38:25 +0200
2242
43clamav (0.101.2+dfsg-3ubuntu1) eoan; urgency=low
44
45 * Merge from Debian unstable. Remaining changes:
46 - clamav-daemon may fail to start due to options removed in new version
47 and manually edited configuration file. (LP #1783632)
48 + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
49 add patch from Debian stretch to simply warn about removed options.
50
51 -- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 07 Aug 2019 08:54:47 +0200
52
23clamav (0.101.2+dfsg-3) unstable; urgency=medium53clamav (0.101.2+dfsg-3) unstable; urgency=medium
2454
25 * Cherry-pick a fix from 0.101.3 to address a vulnerability to55 * Cherry-pick a fix from 0.101.3 to address a vulnerability to
@@ -27,6 +57,16 @@ clamav (0.101.2+dfsg-3) unstable; urgency=medium
2757
28 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Tue, 06 Aug 2019 21:42:06 +020058 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Tue, 06 Aug 2019 21:42:06 +0200
2959
60clamav (0.101.2+dfsg-2ubuntu1) eoan; urgency=low
61
62 * Merge from Debian unstable. Remaining changes:
63 - clamav-daemon may fail to start due to options removed in new version
64 and manually edited configuration file. (LP #1783632)
65 + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
66 add patch from Debian stretch to simply warn about removed options.
67
68 -- Gianfranco Costamagna <locutusofborg@debian.org> Sat, 03 Aug 2019 10:20:31 +0200
69
30clamav (0.101.2+dfsg-2) unstable; urgency=medium70clamav (0.101.2+dfsg-2) unstable; urgency=medium
3171
32 * Remove python from build-depends:72 * Remove python from build-depends:
@@ -36,6 +76,22 @@ clamav (0.101.2+dfsg-2) unstable; urgency=medium
3676
37 -- Scott Kitterman <scott@kitterman.com> Fri, 02 Aug 2019 09:20:43 -040077 -- Scott Kitterman <scott@kitterman.com> Fri, 02 Aug 2019 09:20:43 -0400
3878
79clamav (0.101.2+dfsg-1ubuntu2) eoan; urgency=medium
80
81 * Rebuild against new libjson-c4.
82
83 -- Gianfranco Costamagna <locutusofborg@debian.org> Sat, 29 Jun 2019 13:48:24 +0200
84
85clamav (0.101.2+dfsg-1ubuntu1) eoan; urgency=medium
86
87 * Sync with Debian. Remaining change:
88 - clamav-daemon may fail to start due to options removed in new version
89 and manually edited configuration file. (LP #1783632)
90 + debian/patches/Deprecate-unused-options-instead-of-removing-it.patch:
91 add patch from Debian stretch to simply warn about removed options.
92
93 -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Tue, 23 Apr 2019 11:40:41 -0400
94
39clamav (0.101.2+dfsg-1) unstable; urgency=high95clamav (0.101.2+dfsg-1) unstable; urgency=high
4096
41 * Import 0.101.297 * Import 0.101.2
diff --git a/debian/control b/debian/control
index e37ebab..5b5f5dc 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
1Source: clamav1Source: clamav
2Section: utils2Section: utils
3Priority: optional3Priority: optional
4Maintainer: ClamAV Team <pkg-clamav-devel@lists.alioth.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: ClamAV Team <pkg-clamav-devel@lists.alioth.debian.org>
5Uploaders: Michael Meskes <meskes@debian.org>,6Uploaders: Michael Meskes <meskes@debian.org>,
6 Michael Tautschnig <mt@debian.org>,7 Michael Tautschnig <mt@debian.org>,
7 Scott Kitterman <scott@kitterman.com>,8 Scott Kitterman <scott@kitterman.com>,
diff --git a/debian/patches/Deprecate-unused-options-instead-of-removing-it.patch b/debian/patches/Deprecate-unused-options-instead-of-removing-it.patch
8new file mode 1006449new file mode 100644
index 0000000..2a005ae
--- /dev/null
+++ b/debian/patches/Deprecate-unused-options-instead-of-removing-it.patch
@@ -0,0 +1,54 @@
1Description: Deprecate unused options instead of removing it
2 Refresh Debian patch from Sebastian Andrzej Siewior <sebastian@breakpoint.cc>,
3 original description below:
4 .
5 The following options were removed:
6 - StatsHostID
7 - StatsEnabled
8 - StatsPEDisabled
9 - StatsTimeout
10 - SubmitDetectionStats
11 - DetectionStatsCountry
12 - DetectionStatsHostID
13 .
14 and if they remain in the config file (during automatic upgrade without
15 user action which would be required by ucf) then clamav will refuse the
16 start. By marking them as deprecated clamav will point it out and
17 continue. This patch will be dropped by moving to next Debian stable
18 version (the user is expected to edit the config manually at this
19 point if it did not happen earlier).
20Author: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
21Origin: upstream
22Bug: https://bugs.debian.org/902290
23Bug-Ubuntu: https://bugs.launchpad.net/bugs/1783632
24Reviewed-by: Lucas Kanashiro <lucas.kanashiro@canonical.com>
25Last-Update: 2019-12-05
26---
27This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
28
29--- a/shared/optparser.c
30+++ b/shared/optparser.c
31@@ -587,6 +587,23 @@
32 {"TCPSocket", NULL, 0, CLOPT_TYPE_NUMBER, MATCH_NUMBER, -1, NULL, 0, OPT_MILTER | OPT_DEPRECATED, "", ""},
33 {"TemporaryDirectory", NULL, 0, CLOPT_TYPE_STRING, NULL, -1, NULL, 0, OPT_MILTER | OPT_DEPRECATED, "", ""},
34
35+ /* Deprecated stats options - avoid breakage during upgrades from old Ubuntu releases */
36+
37+ { "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" },
38+
39+ { "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" },
40+
41+ { "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" },
42+
43+ { "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" },
44+
45+ { "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" },
46+
47+ { "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" },
48+
49+ { "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" },
50+
51+
52 {NULL, NULL, 0, 0, NULL, 0, NULL, 0, 0, NULL, NULL}};
53 const struct clam_option *clam_options = __clam_options;
54
diff --git a/debian/patches/series b/debian/patches/series
index 28004d0..1e4a08e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ clamd_dont_depend_on_clamav_demon_socket.patch
4Add-support-for-LLVM-3.7.patch4Add-support-for-LLVM-3.7.patch
5Add-support-for-LLVM-3.8.patch5Add-support-for-LLVM-3.8.patch
6Add-support-for-LLVM-3.9.patch6Add-support-for-LLVM-3.9.patch
7Deprecate-unused-options-instead-of-removing-it.patch

Subscribers

People subscribed via source and target branches