Opened 7 years ago

Closed 7 years ago

#45935 closed defect (fixed)

Failure upgrading clamav

Reported by: graziosi.angelo@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: haspatch Cc: captainproton1971 (Captain Proton)
Port: clamav

Description

Just a few minutes ago:

$ sudo port outdated
The following installed ports are outdated:
clamav                         0.98.4_1 < 0.98.5_0
gcc49                          4.9.1_1 < 4.9.2_0
libffi                         3.1_4 < 3.2.1_0
libgcc                         4.9.1_1 < 4.9.2_0

$ sudo port upgrade outdated
--->  Computing dependencies for clamav
--->  Fetching archive for clamav
--->  Attempting to fetch clamav-0.98.5_0.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/clamav
--->  Attempting to fetch clamav-0.98.5_0.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/clamav
--->  Attempting to fetch clamav-0.98.5_0.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/clamav
--->  Fetching distfiles for clamav
--->  Attempting to fetch clamav-0.98.5.tar.gz from http://garr.dl.sourceforge.net/clamav
--->  Verifying checksums for clamav
--->  Extracting clamav
--->  Applying patches to clamav
--->  Configuring clamav
--->  Building clamav
Error: org.macports.build for port clamav returned: command execution failed
Please see the log file for port clamav for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_clamav/clamav/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

main.log attached

Attachments (2)

clamav_main.log.bz2 (41.8 KB) - added by graziosi.angelo@… 7 years ago.
clamav.diff (490 bytes) - added by ryandesign (Ryan Schmidt) 7 years ago.

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by graziosi.angelo@…

Attachment: clamav_main.log.bz2 added

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: dluke@… removed
Owner: changed from macports-tickets@… to dluke@…

comment:2 Changed 7 years ago by captainproton1971 (Captain Proton)

Cc: captainproton1971@… added

Cc Me!

comment:3 Changed 7 years ago by gnw3

clamav builds seem to use headers files from the currently installed version rather that from the new version. Try deactivating clamav before building from source to ensure that the new headers are used.

comment:4 in reply to:  3 Changed 7 years ago by danielluke (Daniel J. Luke)

Replying to gnwiii@…:

clamav builds seem to use headers files from the currently installed version rather that from the new version. Try deactivating clamav before building from source to ensure that the new headers are used.

Yep - I replicated this problem this morning (when trac was down) and can confirm that deactivating first is a good workaround. (trace mode should work too, but I didn't test it).

Changed 7 years ago by ryandesign (Ryan Schmidt)

Attachment: clamav.diff added

comment:5 Changed 7 years ago by ryandesign (Ryan Schmidt)

Keywords: haspatch added

The attached diff works around the problem, until a better solution (e.g. reordering the -I flags) can be found.

comment:6 Changed 7 years ago by danielluke (Daniel J. Luke)

thanks Ryan, r128380

comment:7 Changed 7 years ago by danielluke (Daniel J. Luke)

Note that upstream's install instructions say to uninstall clamav before building/installing a new clamav - so even if we get this fixed and get them to include the fix, it's likely that the problem will return.

Here's to hoping we get trace mode working to the point where it can be always running by default :)

comment:8 Changed 7 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.