[MacPorts] #62078: clamav-server won't install (on Apple MacBook Air M1 on x86_64)
MacPorts
noreply at macports.org
Mon Jan 18 11:30:14 UTC 2021
#62078: clamav-server won't install (on Apple MacBook Air M1 on x86_64)
--------------------+---------------------------
Reporter: jaroel | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: clamav-server
--------------------+---------------------------
I'm running on an Apple MacBook Air (M1, 2020) w/ macOS Big Sur (11.1),
with a MacPorts-installed fish shell in x86_64 arch.
{{{
roel at Roels-MacBook-Air /o/l/v/m/b/_/c/w/d/o/l/etc> arch
i386
}}}
I ran the following:
{{{
sudo port install clamav-server
---> Computing dependencies for clamav-server
---> Fetching archive for clamav-server
---> Attempting to fetch clamav-
server-0.101.2_3+sanesecurity+scan_schedule_access.darwin_20.noarch.tbz2
from https://lil.fr.packages.macports.org/clamav-server
---> Attempting to fetch clamav-
server-0.101.2_3+sanesecurity+scan_schedule_access.darwin_20.noarch.tbz2
from https://mse.uk.packages.macports.org/clamav-server
---> Attempting to fetch clamav-
server-0.101.2_3+sanesecurity+scan_schedule_access.darwin_20.noarch.tbz2
from https://cph.dk.packages.macports.org/clamav-server
---> Staging clamav-server into destroot
Error: Failed to destroot clamav-server: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_sysutils_clamav-server/clamav-
server/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port clamav-server failed
}}}
The log file shows the following (stripped):
{{{
:info:destroot xinstall: /opt/local/etc/clamd.conf.sample ->
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_sysutils_clamav-server/clamav-
server/work/destroot/opt/local/etc/clamd.conf.macports
:debug:destroot system -W
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_sysutils_clamav-server/clamav-
server/work/destroot/opt/local: /usr/bin/patch -p0
./etc/clamd.conf.macports
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/sysutils
/clamav-server/files/patch-etc-clamd-conf-macports.diff
:info:destroot patching file ./etc/clamd.conf.macports
:info:destroot Hunk #3 FAILED at 66.
:info:destroot Hunk #4 succeeded at 93 (offset 3 lines).
:info:destroot Hunk #5 succeeded at 140 (offset 3 lines).
:info:destroot Hunk #6 succeeded at 180 (offset 3 lines).
:info:destroot Hunk #7 succeeded at 316 (offset 13 lines).
:info:destroot Hunk #8 succeeded at 333 (offset 13 lines).
:info:destroot Hunk #9 succeeded at 349 (offset 13 lines).
:info:destroot 1 out of 9 hunks FAILED -- saving rejects to file
./etc/clamd.conf.macports.rej
:info:destroot Command failed: /usr/bin/patch -p0
./etc/clamd.conf.macports
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/sysutils
/clamav-server/files/patch-etc-clamd-conf-macports.diff
:info:destroot Exit code: 1
:error:destroot Failed to destroot clamav-server: command execution failed
:debug:destroot Error code: NONE
:debug:destroot Backtrace: command execution failed
:debug:destroot while executing
:debug:destroot "$procedure $targetname"
:error:destroot See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_sysutils_clamav-server/clamav-
server/main.log for details.
}}}
Content of
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_sysutils_clamav-server/clamav-
server/work/destroot/opt/local/etc/clamd.conf.macports.rej':
{{{
***************
*** 66,77 ****
# Log additional information about the infected file, such as its
# size and hash, together with the virus name.
- #ExtendedDetectionInfo yes
# This option allows you to save a process identifier of the listening
# daemon (main thread).
# Default: disabled
- #PidFile /var/run/clamd.pid
# Optional path to the global temporary directory.
# Default: system specific (usually /tmp or /var/tmp).
--- 66,77 ----
# Log additional information about the infected file, such as its
# size and hash, together with the virus name.
+ ExtendedDetectionInfo yes
# This option allows you to save a process identifier of the listening
# daemon (main thread).
# Default: disabled
+ PidFile @PREFIX@/var/run/clamav/clamd.pid
# Optional path to the global temporary directory.
# Default: system specific (usually /tmp or /var/tmp).
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62078>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list