Merge ~bryce/ubuntu/+source/clamav:merge-v1.0.5adfsg-1.1-noble into ubuntu/+source/clamav:debian/sid

Proposed by Bryce Harrington
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merge reported by: git-ubuntu bot
Merged at revision: 2e8b31ce0954b960dd6b0ef1302b3c06f9ad3372
Proposed branch: ~bryce/ubuntu/+source/clamav:merge-v1.0.5adfsg-1.1-noble
Merge into: ubuntu/+source/clamav:debian/sid
Diff against target: 487 lines (+310/-54)
7 files modified
debian/changelog (+159/-0)
debian/clamav-base.postinst.in (+1/-1)
debian/clamav-freshclam-ifupdown (+104/-52)
debian/clamav-freshclam.links (+3/-0)
debian/control (+2/-1)
debian/patches/resolve-armhf-ftbfs.patch (+40/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Andreas Hasenack Approve
Canonical Server Reporter Pending
Canonical Server packageset reviewers Pending
Review via email: mp+461761@code.launchpad.net

Description of the change

Merge clamav 1.0.5+dfsg-1.1 to bring in the t64 changes.

For the security merge, it appears they also refreshed po files, which caused conflicts on rebase. The changes appear to be file formatting rather than changed translations, though, so I just dropped the po changes in the logical and things went fine thereafter.

PPA: https://launchpad.net/~bryce/+archive/ubuntu/clamav-merge-v1.0.5adfsg-1.1

PPA is still building, so no autopkgtests at this time.

To post a comment you must log in.
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

checking this out

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

I think you should have kept the po changes in the logical tag, and dropped them later on when applying on top of debian/new.

Logical should show what the delta is at that version, and it does have the po changes (which I also think were added by mistake). But they should be dropped at rebase on top of new/debian time, not in logical.

I would add a "[previously undocumented]" line to the commit that you split out about the pos, and then drop it when rebasing on new/debian, possibly with a comment ("* Dropped: previously added PO update, apparently by mistake"). You could also ping Marc to see if he remember what that was about.

review: Needs Fixing
24136f1... by Bryce Harrington

merge-changelogs

bff6267... by Bryce Harrington

reconstruct-changelog

2e8b31c... by Bryce Harrington

update-maintainer

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

I redid the merge with keeping the po for logical tag and then dropping it before the rebase. I've also listed it explicitly as Dropped.

Since the PPA failed to build due to known issue of missing deps on armhf I didn't bother updating it.

I'll ping Marc about this MP in case he has an opinion on the po change inclusion.

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

Marc answered this po change gets automatically applied by the builders, and will come back. So seems fine to omit.

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

+1

range-diff ok
debian changes ok
build failing is unfortunately expected for now :)

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

Approvers: bryce, ahasenack
Uploaders: bryce, ahasenack
MP auto-approved

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

I'll save it for next merge, but Marc suggests looking at this:

maybe this in rules:
    # Update .po files for debconf.
    debconf-updatepo

I don't know what side-effects that might have so am reluctant to introduce it past FF in an LTS but may give it a go next cycle.

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

Thanks for the review; uploaded:

Successfully signed dsc, buildinfo, changes files
Vcs-Git: https://git.launchpad.net/~bryce/ubuntu/+source/clamav
Vcs-Git-Commit: 2e8b31ce0954b960dd6b0ef1302b3c06f9ad3372
Vcs-Git-Ref: refs/heads/merge-v1.0.5adfsg-1.1-noble
$ dput ubuntu ../clamav_1.0.5+dfsg-1.1ubuntu1_source.changes
gpg: ../clamav_1.0.5+dfsg-1.1ubuntu1_source.changes: Valid signature from E603B2578FB8F0FB
gpg: ../clamav_1.0.5+dfsg-1.1ubuntu1.dsc: Valid signature from E603B2578FB8F0FB
D: Setting host argument.
Checking signature on .changes
Checking signature on .dsc
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading clamav_1.0.5+dfsg-1.1ubuntu1.dsc: done.
  Uploading clamav_1.0.5+dfsg.orig.tar.xz: done.
  Uploading clamav_1.0.5+dfsg-1.1ubuntu1.debian.tar.xz: done.
  Uploading clamav_1.0.5+dfsg-1.1ubuntu1_source.buildinfo: done.
  Uploading clamav_1.0.5+dfsg-1.1ubuntu1_source.changes: done.
Successfully uploaded packages.

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 6efb773..63722cc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,24 @@
1clamav (1.0.5+dfsg-1.1ubuntu1) noble; urgency=medium
2
3 * Merge with Debian unstable. Remaining changes:
4 - d/p/resolve-armhf-ftbfs.patch: resolve armhf failure to build from
5 source.
6 - clamav-base.postinst.in: Quell warning from check for clamav user
7 (LP 1920217).
8 - Extend ifupdown script to support networkd-dispatcher.
9 + d/clamav-freshclam-ifupdown: Modernize some parts of
10 the script. Implement support for networkd-dispatcher.
11 + d/clamav-freshclam.links: Install the
12 clamav-freshclam-ifupdown script inside the proper
13 /usr/lib/networkd-dispatcher/{off,routable}.d/
14 directories. (LP 1718227)
15 * Dropped:
16 - po files update
17 [previously undocumented]
18 [causes merge conflict on rebase]
19
20 -- Bryce Harrington <bryce@canonical.com> Tue, 05 Mar 2024 11:00:58 -0800
21
1clamav (1.0.5+dfsg-1.1) unstable; urgency=medium22clamav (1.0.5+dfsg-1.1) unstable; urgency=medium
223
3 * Non-maintainer upload.24 * Non-maintainer upload.
@@ -5,6 +26,30 @@ clamav (1.0.5+dfsg-1.1) unstable; urgency=medium
526
6 -- Steve Langasek <vorlon@debian.org> Wed, 28 Feb 2024 15:44:10 +000027 -- Steve Langasek <vorlon@debian.org> Wed, 28 Feb 2024 15:44:10 +0000
728
29clamav (1.0.5+dfsg-1ubuntu2) noble; urgency=medium
30
31 * No-change rebuild against libssl3t64
32
33 -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 04 Mar 2024 17:34:24 +0000
34
35clamav (1.0.5+dfsg-1ubuntu1) noble; urgency=medium
36
37 * Merge with Debian unstable as security update.
38 Remaining changes:
39 - Extend ifupdown script to support networkd-dispatcher.
40 + d/clamav-freshclam-ifupdown: Modernize some parts of
41 the script. Implement support for networkd-dispatcher.
42 + d/clamav-freshclam.links: Install the
43 clamav-freshclam-ifupdown script inside the proper
44 /usr/lib/networkd-dispatcher/{off,routable}.d/
45 directories. (LP: 1718227)
46 - clamav-base.postinst.in: Quell warning from check for clamav user
47 (LP: 1920217).
48 - d/p/resolve-armhf-ftbfs.patch: resolve armhf failure to build from
49 source.
50
51 -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Mon, 12 Feb 2024 09:36:24 -0500
52
8clamav (1.0.5+dfsg-1) unstable; urgency=medium53clamav (1.0.5+dfsg-1) unstable; urgency=medium
954
10 * Import 1.0.4 (Closes: #1063479).55 * Import 1.0.4 (Closes: #1063479).
@@ -25,6 +70,42 @@ clamav (1.0.4+dfsg-1) unstable; urgency=medium
2570
26 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 20 Jan 2024 11:57:33 +010071 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 20 Jan 2024 11:57:33 +0100
2772
73clamav (1.0.4+dfsg-0ubuntu1) noble; urgency=medium
74
75 * Updated to version 1.0.4 to fix db compatibility. (LP: #2046581)
76 - debian/rules: bump CL_FLEVEL to 164.
77 - debian/libclamav11.symbols: updated CLAMAV_PRIVATE symbols to new
78 version.
79 - debian/series/cargo-Remove-windows-referenfes.patch: disabled as
80 the mentioned files aren't being removed by the debian/get_orig.sh
81 script, so I assume the Debian maintainer is using a different script
82 to generate the dfsg tarball.
83 - debian/series/Freshclam-remove-curl-result-warning.patch: removed,
84 included in new version.
85 - Updated patches for new version:
86 + libclamav-Sort-libclamav.map-and-libfreshclam.map.patch
87 + libclamav-Add-missing-symbols.patch
88
89 -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Thu, 04 Jan 2024 11:04:58 -0500
90
91clamav (1.0.3+dfsg-2ubuntu1) noble; urgency=medium
92
93 * Merge with Debian unstable as security update (LP: #2040372).
94 Remaining changes:
95 - Extend ifupdown script to support networkd-dispatcher.
96 + d/clamav-freshclam-ifupdown: Modernize some parts of
97 the script. Implement support for networkd-dispatcher.
98 + d/clamav-freshclam.links: Install the
99 clamav-freshclam-ifupdown script inside the proper
100 /usr/lib/networkd-dispatcher/{off,routable}.d/
101 directories. (LP: 1718227)
102 - clamav-base.postinst.in: Quell warning from check for clamav user
103 (LP: 1920217).
104 - d/p/resolve-armhf-ftbfs.patch: resolve armhf failure to build from
105 source.
106
107 -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Tue, 12 Dec 2023 10:24:25 -0500
108
28clamav (1.0.3+dfsg-2) unstable; urgency=medium109clamav (1.0.3+dfsg-2) unstable; urgency=medium
29110
30 * Remove unnecessary warning messages in freshclam during update.111 * Remove unnecessary warning messages in freshclam during update.
@@ -37,6 +118,29 @@ clamav (1.0.3+dfsg-1) unstable; urgency=medium
37118
38 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 09 Sep 2023 10:18:34 +0200119 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 09 Sep 2023 10:18:34 +0200
39120
121clamav (1.0.2+dfsg-1ubuntu1) mantic; urgency=medium
122
123 [ Marc Deslauriers ]
124 * Merge with Debian unstable as security update (LP: #2031565).
125 Remaining changes:
126 - Extend ifupdown script to support networkd-dispatcher.
127 + d/clamav-freshclam-ifupdown: Modernize some parts of
128 the script. Implement support for networkd-dispatcher.
129 + d/clamav-freshclam.links: Install the
130 clamav-freshclam-ifupdown script inside the proper
131 /usr/lib/networkd-dispatcher/{off,routable}.d/
132 directories. (LP: 1718227)
133 - clamav-base.postinst.in: Quell warning from check for clamav user
134 (LP: 1920217).
135 - CVE-2023-20197
136 - CVE-2023-20212
137
138 [ Vladimir Petko ]
139 * d/p/resolve-armhf-ftbfs.patch: resolve armhf failure to build from
140 source.
141
142 -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Wed, 23 Aug 2023 10:44:37 -0400
143
40clamav (1.0.2+dfsg-1) unstable; urgency=medium144clamav (1.0.2+dfsg-1) unstable; urgency=medium
41145
42 * Import 1.0.2 (Closes: #1050057)146 * Import 1.0.2 (Closes: #1050057)
@@ -50,6 +154,21 @@ clamav (1.0.2+dfsg-1) unstable; urgency=medium
50154
51 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 19 Aug 2023 19:07:32 +0200155 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 19 Aug 2023 19:07:32 +0200
52156
157clamav (1.0.1+dfsg-2ubuntu1) mantic; urgency=medium
158
159 * Merge with Debian unstable (LP: #2018063). Remaining changes:
160 - Extend ifupdown script to support networkd-dispatcher.
161 + d/clamav-freshclam-ifupdown: Modernize some parts of
162 the script. Implement support for networkd-dispatcher.
163 + d/clamav-freshclam.links: Install the
164 clamav-freshclam-ifupdown script inside the proper
165 /usr/lib/networkd-dispatcher/{off,routable}.d/
166 directories.(LP: #1718227)
167 - clamav-base.postinst.in: Quell warning from check for clamav user
168 (LP: #1920217).
169
170 -- Vladimir Petko <vladimir.petko@canonical.com> Mon, 31 Jul 2023 09:11:40 +1200
171
53clamav (1.0.1+dfsg-2) unstable; urgency=medium172clamav (1.0.1+dfsg-2) unstable; urgency=medium
54173
55 * Depend on latest libtfm1 (Closes: #1031896, #1027010).174 * Depend on latest libtfm1 (Closes: #1031896, #1027010).
@@ -134,6 +253,39 @@ clamav (1.0.0+dfsg-1) experimental; urgency=medium
134253
135 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 31 Dec 2022 13:44:59 +0100254 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sat, 31 Dec 2022 13:44:59 +0100
136255
256clamav (0.103.8+dfsg-0ubuntu2) mantic; urgency=medium
257
258 * Extend ifupdown script to support networkd-dispatcher.
259 - d/clamav-freshclam-ifupdown: Modernize some parts of
260 the script. Implement support for networkd-dispatcher.
261 - d/clamav-freshclam.links: Install the
262 clamav-freshclam-ifupdown script inside the proper
263 /usr/lib/networkd-dispatcher/{off,routable}.d/
264 directories.
265 (LP: #1718227)
266
267 -- Sergio Durigan Junior <sergio.durigan@canonical.com> Fri, 12 May 2023 15:58:29 -0400
268
269clamav (0.103.8+dfsg-0ubuntu1) lunar; urgency=medium
270
271 * Updated to version 0.103.8 to fix security issues.
272 - debian/rules: bump CL_FLEVEL to 129.
273 - debian/libclamav9.symbols: updated CLAMAV_PRIVATE symbols to new
274 version.
275 - CVE-2023-20032, CVE-2023-20052
276
277 -- David Fernandez Gonzalez <david.fernandezgonzalez@canonical.com> Fri, 24 Feb 2023 09:27:20 +0100
278
279clamav (0.103.7+dfsg-1ubuntu1) lunar; urgency=medium
280
281 * Merge with Debian unstable (LP: #1993390). Remaining changes:
282 - clamav-base.postinst.in: Quell warning from check for clamav user
283 (LP #1920217)
284 * Dropped:
285 - Update translations
286
287 -- Bryce Harrington <bryce@canonical.com> Fri, 18 Nov 2022 23:35:15 -0800
288
137clamav (0.103.7+dfsg-1) unstable; urgency=medium289clamav (0.103.7+dfsg-1) unstable; urgency=medium
138290
139 * Import 0.103.7291 * Import 0.103.7
@@ -141,6 +293,13 @@ clamav (0.103.7+dfsg-1) unstable; urgency=medium
141293
142 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sun, 14 Aug 2022 21:33:51 +0200294 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sun, 14 Aug 2022 21:33:51 +0200
143295
296clamav (0.103.6+dfsg-1ubuntu1) kinetic; urgency=medium
297
298 * clamav-base.postinst.in: Quell warning from check for clamav user
299 (LP: #1920217)
300
301 -- Bryce Harrington <bryce@canonical.com> Wed, 18 May 2022 17:26:41 -0700
302
144clamav (0.103.6+dfsg-1) unstable; urgency=medium303clamav (0.103.6+dfsg-1) unstable; urgency=medium
145304
146 * Import 0.103.6305 * Import 0.103.6
diff --git a/debian/clamav-base.postinst.in b/debian/clamav-base.postinst.in
index 89c116f..f3d1da9 100644
--- a/debian/clamav-base.postinst.in
+++ b/debian/clamav-base.postinst.in
@@ -32,7 +32,7 @@ case "$1" in
3232
33 # Set up the clamav user on new install33 # Set up the clamav user on new install
34 if [ -z "$2" ]; then34 if [ -z "$2" ]; then
35 if ! id clamav; then35 if ! getent passwd clamav >/dev/null; then
36 adduser --system --no-create-home --quiet \36 adduser --system --no-create-home --quiet \
37 --disabled-password --disabled-login \37 --disabled-password --disabled-login \
38 --shell /bin/false --group --home /var/lib/clamav clamav38 --shell /bin/false --group --home /var/lib/clamav clamav
diff --git a/debian/clamav-freshclam-ifupdown b/debian/clamav-freshclam-ifupdown
index 875c0cc..232fd79 100755
--- a/debian/clamav-freshclam-ifupdown
+++ b/debian/clamav-freshclam-ifupdown
@@ -1,16 +1,25 @@
1#!/bin/sh1#!/bin/sh
2# 2004-01-25, Thomas Lamy <thomas.lamy@in-online.net>2# 2004-01-25, Thomas Lamy <thomas.lamy@in-online.net>
3# From Magnus Ekdahl's <magnus@debian.org> clamav-freshclam-handledaemon(8)3# From Magnus Ekdahl's <magnus@debian.org> clamav-freshclam-handledaemon(8)
4# Adjust to be networkd-dispatcher compatible by
5# Sergio Durigan Junior <sergiodj@debian.org>
46
5set -e7set -e
68
7[ -e /var/lib/clamav/interface ] || exit 09[ -f /var/lib/clamav/interface ] || exit 0
10
11if [ -d /run/systemd/system ]; then
12 INIT='systemctl'
13 INIT_SUFFIX='clamav-freshclam'
14else
15 INIT='invoke-rc.d clamav-freshclam'
16 INIT_SUFFIX=''
17fi
818
9INIT=invoke-rc.d clamav-freshclam
10CLAMAV_CONF_FILE=/etc/clamav/clamd.conf19CLAMAV_CONF_FILE=/etc/clamav/clamd.conf
11FRESHCLAM_CONF_FILE=/etc/clamav/freshclam.conf20FRESHCLAM_CONF_FILE=/etc/clamav/freshclam.conf
1221
13INTERNETIFACE=`cat /var/lib/clamav/interface`22INTERNETIFACE=$(cat /var/lib/clamav/interface)
1423
15if grep -q freshclam /proc/*/stat 2>/dev/null; then24if grep -q freshclam /proc/*/stat 2>/dev/null; then
16 IS_RUNNING=true25 IS_RUNNING=true
@@ -18,61 +27,104 @@ else
18 IS_RUNNING=false27 IS_RUNNING=false
19fi28fi
2029
21# $IFACE is set by ifup/down, $PPP_IFACE by pppd 30handle_ifupdown ()
22[ -n "$PPP_IFACE" ] && IFACE=$PPP_IFACE31{
32 # $IFACE is set by ifup/down, $PPP_IFACE by pppd
33 [ -n "$PPP_IFACE" ] && IFACE=$PPP_IFACE
2334
24# This is sloppy - woody's pppd exports variables, while sid's passes them as 35 # This is sloppy - woody's pppd exports variables, while sid's passes them as
25# arguments and exports them.36 # arguments and exports them.
2637
27if [ "$1" = "$IFACE" ]; then # We're called by sid's pppd38 if [ "$1" = "$IFACE" ]; then # We're called by sid's pppd
28 shift 6 # and we already know the interface39 shift 6 # and we already know the interface
29fi # Dump the arguments passed.40 fi # Dump the arguments passed.
41
42 if [ -z "$1" ]; then
43 case $(dirname "$0") in
44 */if-up.d|*/ip-up.d)
45 # Short circuit and exit early if freshclam is already running
46 [ "$IS_RUNNING" = 'true' ] && exit 0
47 for interface in $INTERNETIFACE; do
48 if [ "$interface" = "$IFACE" ]; then
49 FMODE=start
50 break
51 else
52 FMODE=skip
53 fi
54 done
55 ;;
56 */if-down.d|*/ip-down.d)
57 # Short circuit and exit early if freshclam is not already running
58 [ "$IS_RUNNING" = 'false' ] && exit 0
59 for interface in $INTERNETIFACE; do
60 if [ "$interface" = "$IFACE" ]; then
61 FMODE=stop
62 break
63 else
64 FMODE=skip
65 fi
66 done
67 ;;
68 *)
69 FMODE=skip
70 ;;
71 esac
72 else
73 FMODE="$1"
74 fi
75
76 case "$FMODE" in
77 start|stop)
78 IFACE="$IFACE" $INIT $FMODE $INIT_SUFFIX
79 ;;
80 skip)
81 ;;
82 *)
83 echo "Usage: $0 {start|stop|skip}" >&2
84 exit 1
85 ;;
86 esac
87}
88
89handle_networkd_dispatcher ()
90{
91 FOUND_IFACE=false
3092
31if [ -z "$1" ]; then
32 case $(dirname "$0") in
33 */if-up.d|*/ip-up.d)
34 # Short circuit and exit early if freshclam is already running
35 [ "$IS_RUNNING" = 'true' ] && exit 0
36 for interface in $INTERNETIFACE; do
37 if [ "$interface" = "$IFACE" ]; then
38 FMODE=start
39 break
40 else
41 FMODE=skip
42 fi
43 done
44 ;;
45 */if-down.d|*/ip-down.d)
46 # Short circuit and exit early if freshclam is not already running
47 [ "$IS_RUNNING" = 'false' ] && exit 0
48 for interface in $INTERNETIFACE; do93 for interface in $INTERNETIFACE; do
49 if [ "$interface" = "$IFACE" ]; then94 if [ "$interface" = "$IFACE" ]; then
50 FMODE=stop95 FOUND_IFACE=true
51 break96 break
52 else97 fi
53 FMODE=skip
54 fi
55 done98 done
56 ;;99
57 *)100 [ "$FOUND_IFACE" = 'false' ] && return
58 FMODE=skip101
59 ;;102 FMODE=""
60 esac103
104 case "$STATE" in
105 "off")
106 if [ "$IS_RUNNING" = 'true' ]; then
107 FMODE="stop"
108 fi
109 ;;
110 "routable")
111 if [ "$IS_RUNNING" = 'false' ]; then
112 FMODE="start"
113 fi
114 ;;
115 *)
116 return
117 esac
118
119 if [ -n "$FMODE" ]; then
120 IFACE="$IFACE" $INIT $FMODE $INIT_SUFFIX
121 fi
122}
123
124if [ -n "$STATE" ]; then
125 handle_networkd_dispatcher "$@"
61else126else
62 FMODE="$1"127 handle_ifupdown "$@"
63fi128fi
64129
65case "$FMODE" in
66 start|stop)
67 IFACE="$IFACE" $INIT $FMODE
68 ;;
69 skip)
70 ;;
71 *)
72 echo "Usage: $0 {start|stop|skip}" >&2
73 exit 1
74 ;;
75esac
76
77exit 0130exit 0
78
diff --git a/debian/clamav-freshclam.links b/debian/clamav-freshclam.links
index 78dfff6..3f0cfff 100644
--- a/debian/clamav-freshclam.links
+++ b/debian/clamav-freshclam.links
@@ -1 +1,4 @@
1/usr/share/doc/clamav-base/README.Debian.gz /usr/share/doc/clamav-freshclam/README.Debian.gz1/usr/share/doc/clamav-base/README.Debian.gz /usr/share/doc/clamav-freshclam/README.Debian.gz
2/usr/share/doc/clamav-base/NEWS.gz /usr/share/doc/clamav-freshclam/NEWS.gz
3/etc/network/if-up.d/clamav-freshclam-ifupdown /usr/lib/networkd-dispatcher/routable.d/clamav-freshclam
4/etc/network/if-down.d/clamav-freshclam-ifupdown /usr/lib/networkd-dispatcher/off.d/clamav-freshclam
diff --git a/debian/control b/debian/control
index 171daa5..7f7093c 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/resolve-armhf-ftbfs.patch b/debian/patches/resolve-armhf-ftbfs.patch
8new file mode 1006449new file mode 100644
index 0000000..4141f54
--- /dev/null
+++ b/debian/patches/resolve-armhf-ftbfs.patch
@@ -0,0 +1,40 @@
1Description: resolve armhf failure to build from source.
2Author: Vladimir Petko <vladimir.petko@canonical.com>
3
4--- a/libclamav/special.c
5+++ b/libclamav/special.c
6@@ -48,7 +48,8 @@
7
8 int cli_check_mydoom_log(cli_ctx *ctx)
9 {
10- const uint32_t *record;
11+ const uint32_t record[16];
12+ const uint32_t mask = 0xffffffff;
13 uint32_t check, key;
14 fmap_t *map = ctx->fmap;
15 unsigned int blocks = map->len / (8 * 4);
16@@ -59,14 +60,20 @@
17 if (blocks > 5)
18 blocks = 5;
19
20- record = fmap_need_off_once(map, 0, 8 * 4 * blocks);
21- if (!record)
22+ // returns unaligned memory block
23+ const char* data = fmap_need_off_once(map, 0, 8 * 4 * blocks);
24+ if (!data)
25 return CL_CLEAN;
26+
27 while (blocks) { /* This wasn't probably intended but that's what the current code does anyway */
28- if (record[--blocks] == 0xffffffff)
29+ unsigned int offset = --blocks;
30+ offset *=sizeof(uint32_t);
31+ // safe (but slow) on unaligned memory
32+ if (!memcmp(&data[offset], &mask, sizeof(uint32_t)))
33 return CL_CLEAN;
34 }
35-
36+ // copy into aligned array to perform bit operations
37+ memcpy(record, data, sizeof(record));
38 key = ~be32_to_host(record[0]);
39 check = (be32_to_host(record[1]) ^ key) +
40 (be32_to_host(record[2]) ^ key) +
diff --git a/debian/patches/series b/debian/patches/series
index 959f698..04964a7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ libclamav-pe-Use-endian-wrapper-in-more-places.patch
6Add-an-option-to-avoid-setting-RPATH-on-unix-systems.patch6Add-an-option-to-avoid-setting-RPATH-on-unix-systems.patch
7libclamav-Use-OpenSSL-BN-instead-tomfastmath.patch7libclamav-Use-OpenSSL-BN-instead-tomfastmath.patch
8Remove-bundled-tomfastmath-library.patch8Remove-bundled-tomfastmath-library.patch
9resolve-armhf-ftbfs.patch

Subscribers

People subscribed via source and target branches