Opened 4 years ago

Closed 4 years ago

#62078 closed defect (fixed)

clamav-server won't install (on Apple MacBook Air M1 on x86_64)

Reported by: jaroel (Roel Bruggink) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: clamav-server

Description

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@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).

Attachments (2)

clamd.conf.macports.rej (891 bytes) - added by jaroel (Roel Bruggink) 4 years ago.
main.log (51.6 KB) - added by jaroel (Roel Bruggink) 4 years ago.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by jaroel (Roel Bruggink)

Attachment: clamd.conf.macports.rej added

Changed 4 years ago by jaroel (Roel Bruggink)

Attachment: main.log added

comment:1 Changed 4 years ago by jmroot (Joshua Root)

Owner: set to essandess
Status: newassigned

comment:3 Changed 4 years ago by Apex-Heavy

Its not just the M1. I'm on an iMac Late 2015 running 11.2.1 and have the same issue...

Last edited 4 years ago by Apex-Heavy (previous) (diff)

comment:4 Changed 4 years ago by essandess (Steve Smith)

Resolution: fixed
Status: assignedclosed

In b80481e48b9bda371602cc24182b892dac5fde0c/macports-ports (master):

clamav-server: Bugfix

Note: See TracTickets for help on using tickets.