Opened 10 years ago

Closed 10 years ago

#44702 closed defect (fixed)

p5.16-mail-clamav 0.290.0_3 Checksum error

Reported by: KiyoshiGotow Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: smwardle, dbevans (David B. Evans)
Port: p5-mail-clamav

Description

I have tried to install p5.16-mail-clamav, but failed. The output from terminal was as follows. The version of my OS and Xcode is 10.8.5 and 5.1.1, respectively. No directory of "p5.16-mail-clamav" was created under /opt/local/macports/software. I have tried to find the directory of p5.16-mail-clamav on mirror site such as http://packages.macports.org/p5.16-mail-clamav, but failed.

$ sudo port install p5.16-mail-clamav
Password:
--->  Computing dependencies for p5.16-mail-clamav
--->  Fetching archive for p5.16-mail-clamav
--->  Attempting to fetch p5.16-mail-clamav-0.290.0_3.darwin_12.x86_64.tbz2 from http://packages.macports.org/p5.16-mail-clamav
--->  Attempting to fetch p5.16-mail-clamav-0.290.0_3.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/p5.16-mail-clamav
--->  Attempting to fetch p5.16-mail-clamav-0.290.0_3.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/p5.16-mail-clamav
--->  Fetching distfiles for p5.16-mail-clamav
--->  Verifying checksums for p5.16-mail-clamav
Error: Checksum (md5) mismatch for Mail-ClamAV-0.29.tar.gz
Error: Checksum (sha1) mismatch for Mail-ClamAV-0.29.tar.gz
Error: org.macports.checksum for port p5.16-mail-clamav returned: Unable to verify file checksums
Please see the log file for port p5.16-mail-clamav for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-mail-clamav/p5.16-mail-clamav/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port p5.16-mail-clamav failed

Attachments (5)

main.log (19.9 KB) - added by KiyoshiGotow 10 years ago.
main.2.log (30.6 KB) - added by KiyoshiGotow 10 years ago.
main.3.log (30.6 KB) - added by KiyoshiGotow 10 years ago.
main.140825.log (30.6 KB) - added by KiyoshiGotow 10 years ago.
main.4.log (25.9 KB) - added by hbsimon (Horst Simon) 10 years ago.

Download all attachments as: .zip

Change History (25)

Changed 10 years ago by KiyoshiGotow

Attachment: main.log added

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

I'm not able to reproduce this problem. Perhaps you got an incomplete download. Could you clean it out and try again:

sudo port clean --all p5.16-mail-clamav
sudo port install p5.16-mail-clamav

If that again fails, please show us the transcript so that we can see what server the bad file came from.

comment:2 in reply to:  1 Changed 10 years ago by KiyoshiGotow

Thank you for your advice. I cleaned the port and got warning. Though I tried to install port, I got error message which differs from previous one.
The output from terminal is as follows.

$ sudo port clean --all p5.16-mail-clamav
Password:
--->  Cleaning p5.16-mail-clamav
Warning: Distfiles directory '/opt/local/var/macports/distfiles/perl5' may contain distfiles needed for other ports, use the -f flag to force removal
$ sudo port install p5.16-mail-clamav
--->  Computing dependencies for p5.16-mail-clamav
--->  Fetching archive for p5.16-mail-clamav
--->  Attempting to fetch p5.16-mail-clamav-0.290.0_3.darwin_12.x86_64.tbz2 from http://packages.macports.org/p5.16-mail-clamav
--->  Attempting to fetch p5.16-mail-clamav-0.290.0_3.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/p5.16-mail-clamav
--->  Attempting to fetch p5.16-mail-clamav-0.290.0_3.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/p5.16-mail-clamav
--->  Fetching distfiles for p5.16-mail-clamav
--->  Attempting to fetch Mail-ClamAV-0.29.tar.gz from http://cjj.kr.distfiles.macports.org/perl5
--->  Verifying checksums for p5.16-mail-clamav
--->  Extracting p5.16-mail-clamav
--->  Applying patches to p5.16-mail-clamav
--->  Configuring p5.16-mail-clamav
--->  Building p5.16-mail-clamav
Error: org.macports.build for port p5.16-mail-clamav returned: command execution failed
Please see the log file for port p5.16-mail-clamav for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-mail-clamav/p5.16-mail-clamav/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port p5.16-mail-clamav failed

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, so this time you received the file with the right checksum, but it failed to build. Please attach the main.log file so we can see why it failed to build.

Changed 10 years ago by KiyoshiGotow

Attachment: main.2.log added

Changed 10 years ago by KiyoshiGotow

Attachment: main.3.log added

comment:4 in reply to:  3 Changed 10 years ago by KiyoshiGotow

Thank you for your reply.
I registered the newer main.log file as main.2.log. The main.3.log file is the same as main.2.log. Please forgive my inexperience.

comment:5 Changed 10 years ago by smwardle

Cc: steve@… added

Cc Me!

comment:6 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, this log says:

:info:build /opt/local/bin/perl5.16 -Mblib -MInline=NOISY,_INSTALL_ -MMail::ClamAV -e1 0.29 blib/arch
:info:build Error. You have specified 'C' as an Inline programming language.
:info:build
:info:build I currently only know about the following languages:
:info:build     Foo, foo
:info:build
:info:build If you have installed a support module for this language, try deleting the
:info:build config-darwin-thread-multi-2level-5.016003 file from the following Inline DIRECTORY, and run again:
:info:build
:info:build     /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-mail-clamav/p5.16-mail-clamav/work/Mail-ClamAV-0.29/_Inline
:info:build
:info:build (And if that works, please file a bug report.)

I get this too... I'm not sure of the solution. It seems like maybe we need to make a port p5-inline-c, and make that a dependency of p5-mail-clamav, but then I don't understand why this problem is only showing up now; the port hasn't been updated in over 5 years and presumably worked back then.

comment:7 in reply to:  6 Changed 10 years ago by dm@…

Replying to ryandesign@…:

Ok, this log says: ...

I have the same problem with p5.12-mail-clamav and p5.16-mail-clamav. I am not able to uprade amavis-new. Thank You.

Last edited 10 years ago by dm@… (previous) (diff)

Changed 10 years ago by KiyoshiGotow

Attachment: main.140825.log added

comment:8 in reply to:  6 Changed 10 years ago by KiyoshiGotow

Replying to ryandesign@…:

I upgraded p5.16-inline from 0.740.0_0 to 0.760.0_0. I tried to install p5.16-mail-clamav after cleaning port, though, I got an error message almost the same before. I uploaded the main.log as main.140825.log.
I am not able to upgrade amavisd-new, either.

comment:9 Changed 10 years ago by jmroot (Joshua Root)

Port: p5-mail-clamav added

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

Cc: devans@… added

Upstream removed Inline::C from Inline in version 0.56 (http://cpansearch.perl.org/src/INGY/Inline-0.76/Changes), so this has been broken since the version bump in r123914.

comment:11 in reply to:  10 Changed 10 years ago by dbevans (David B. Evans)

Replying to dluke@…:

Upstream removed Inline::C from Inline in version 0.56 (http://cpansearch.perl.org/src/INGY/Inline-0.76/Changes), so this has been broken since the version bump in r123914.

New port p5-inline-c committed in r124724.

comment:12 Changed 10 years ago by dbevans (David B. Evans)

p5-mail-clamav dependencies updated in r124725 to depend on p5-inline-c rather than p5-inline. Port now builds for me.

Changed 10 years ago by hbsimon (Horst Simon)

Attachment: main.4.log added

comment:13 Changed 10 years ago by hbsimon (Horst Simon)

Port does not build for me I am still getting error: :info:build Error. You have specified 'C' as an Inline programming language. :info:build :info:build I currently only know about the following languages: :info:build Foo, foo

comment:14 in reply to:  13 ; Changed 10 years ago by dbevans (David B. Evans)

Replying to horst.simon@…:

Port does not build for me I am still getting error: :info:build Error. You have specified 'C' as an Inline programming language. :info:build :info:build I currently only know about the following languages: :info:build Foo, foo

You need to update and clean your ports before doing the install

sudo port selfupdate
sudo port clean p5.16-mail-clamav
sudo port install p5.16-mail-clamav

comment:15 in reply to:  14 Changed 10 years ago by hbsimon (Horst Simon)

Replying to devans@…:

Replying to horst.simon@…:

Port does not build for me I am still getting error: :info:build Error. You have specified 'C' as an Inline programming language. :info:build :info:build I currently only know about the following languages: :info:build Foo, foo

You need to update and clean your ports before doing the install

sudo port selfupdate
sudo port clean p5.16-mail-clamav
sudo port install p5.16-mail-clamav

I did this and it is still failing, will try to remove macports and do a fresh install

comment:16 Changed 10 years ago by hbsimon (Horst Simon)

It is working, I should have checked more closely the error message. I had to force the activation, because clamav and clamav-server are already installed and it complaint about creating ClamAV.bs that it already exist and not belonging to the port.

comment:17 Changed 10 years ago by dbevans (David B. Evans)

Yes, I see this failure on the buildbots as well. The port is erroneously trying to install a copy of the contents of blib/arch back into the build path

${prefix}/var/macports/build/_opt_macports_trunk_dports_perl_p5-mail-clamav/p5.16-mail-clamav/work/Mail-ClamAV-0.29/blib/arch

in addition to the correct path

${prefix}/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/auto

so forcing the activation is not the right solution.

Last edited 10 years ago by dbevans (David B. Evans) (previous) (diff)

comment:18 Changed 10 years ago by dbevans (David B. Evans)

Fix committed in r124816 that removes the erroneous copy of blib/arch in post-destroot. Port now builds successfully on buildbots.
Subports 5.18 5.20 and license added in r124817.

comment:19 in reply to:  18 Changed 10 years ago by KiyoshiGotow

I could install p5.16-mail-clamav 0.290.0_5 and upgrade amavisd-new 2.8.1_1. All ports installed with p5.12-* ports on my OSX 10.8.5 have been switched to use perl 5.16 version that is current MacPorts default. Now amavisd-new 2.8.1_1 with perl 5.16 and p5.16-* ports seems to be running properly.
Thank every one who contributed to solving the problem with p5.16-mail-clamav installation.

comment:20 Changed 10 years ago by dbevans (David B. Evans)

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