Bug 191250 - Stop in /usr/ports/security/clamav: 3 of 7 tests failed
Summary: Stop in /usr/ports/security/clamav: 3 of 7 tests failed
Status: Closed DUPLICATE of bug 195182
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-21 17:55 UTC by peo
Modified: 2014-11-20 15:51 UTC (History)
1 user (show)

See Also:


Attachments
test-suite.log (407.83 KB, text/x-log)
2014-06-21 17:55 UTC, peo
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description peo 2014-06-21 17:55:05 UTC
Created attachment 144003 [details]
test-suite.log

FreeBSD 9.2-STABLE #0 r259483

gmake[3]: Entering directory `/usr/ports/security/clamav/work/clamav-0.98.3/unit_tests'
FAIL: check_clamav
PASS: check_freshclam.sh
PASS: check_sigtool.sh
SKIP: check_unit_vg.sh
FAIL: check1_clamscan.sh
FAIL: check2_clamd.sh
PASS: check3_clamd.sh
PASS: check4_clamd.sh
SKIP: check5_clamd_vg.sh
SKIP: check6_clamd_vg.sh
SKIP: check7_clamd_hg.sh
SKIP: check8_clamd_hg.sh
SKIP: check9_clamscan_vg.sh
========================================
3 of 7 tests failed
(6 tests were not run)
See unit_tests/test-suite.log
Please report to http://bugs.clamav.net/
========================================
gmake[3]: *** [test-suite.log] Error 1
Comment 1 peo 2014-06-22 08:18:55 UTC
After update to
FreeBSD 9.3-PRERELEASE #0 r267703
and
ports as of 20140621
problem gone.

I suppose this PR can be closed, especially if it was just me.
Comment 2 bsd 2014-06-22 11:51:36 UTC
It did not work for me, I was trying upgrade from both clamav-0.98.3_3 and clamav-0.98.3_4 to clamav-0.98.3_6 using portmaster. It worked, however, doing

portmaster --force-config security/clamav

and disabling compile-time checks. Running the same command second time and re-enabling compile-time checks yields success, so I assume there was some unknown interaction between older clamav installed when running tests with newly compiled test suite.
Comment 3 peo 2014-06-22 12:26:36 UTC
Somethings fishy here.

Tried updating the backup server, first to 
9.3-PRERELEASE #0 r267703
Then updated ports as of today (20140622)
and got the same error.

rebuit python
rebuilt unrar

========================================
3 of 7 tests failed
(6 tests were not run)
See unit_tests/test-suite.log
Please report to http://bugs.clamav.net/
========================================

There must be someting hiding in another port or the system that I fail to see
Comment 4 peo 2014-06-22 15:02:56 UTC
(In reply to bsd from comment #2)
> It did not work for me, I was trying upgrade from both clamav-0.98.3_3 and
> clamav-0.98.3_4 to clamav-0.98.3_6 using portmaster. It worked, however,
> doing
> 
> portmaster --force-config security/clamav
> 
> and disabling compile-time checks. Running the same command second time and
> re-enabling compile-time checks yields success, so I assume there was some
> unknown interaction between older clamav installed when running tests with
> newly compiled test suite.

+1 for the above

Another issue seems to be that the freshclam rc script does not respect the setting in rc.conf:
clamav_freshclam_flags="-v -c 18 -u vscan -p /var/amavis/freshclam.pid"
gives
/usr/local/bin/freshclam -v -c 18 -u vscan -p /var/amavis/freshclam.pid --daemon -p /var/run/clamav/freshclam.pid

two times pidfile?
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2014-06-25 02:37:25 UTC
Over to maintainer.
Comment 6 Renato Botelho freebsd_committer freebsd_triage 2014-10-06 10:36:10 UTC
Sorry for the long delay. Are you still seeing these tests failing? Only on FreeBSD 9? I'll work on trying to reproduce it.
Comment 7 peo 2014-10-06 12:33:29 UTC
We upgraded both boxes running clamav to 10-STABLE and no problems there, cannot tell if still present on 9, do not have access presently to a 9.x cpu for testing.

I guess we could set one up if required.

Thanks,
Comment 8 Renato Botelho freebsd_committer freebsd_triage 2014-10-06 12:39:01 UTC
I tried to reproduce it on 9.3 amd64 without success. If you check and reproduce it let me know, otherwise I believe we can close this ticket.
Comment 9 bsd 2014-10-09 18:02:21 UTC
I tried recently some upgrade, one of them failed - it was on 8.4-STABLE i386 from clamav-0.98.4_1 to clamav-0.98.4_2.

gmake[3]: Entering directory `/usr/ports/security/clamav/work/clamav-0.98.4/unit_tests'
FAIL: check_clamav
PASS: check_freshclam.sh
PASS: check_sigtool.sh
SKIP: check_unit_vg.sh
PASS: check1_clamscan.sh
PASS: check2_clamd.sh
PASS: check3_clamd.sh
PASS: check4_clamd.sh
SKIP: check5_clamd_vg.sh
SKIP: check6_clamd_vg.sh
SKIP: check7_clamd_hg.sh
SKIP: check8_clamd_hg.sh
SKIP: check9_clamscan_vg.sh
========================================
1 of 7 tests failed
(6 tests were not run)
See unit_tests/test-suite.log
Please report to http://bugs.clamav.net/
========================================
gmake[3]: *** [test-suite.log] Error 1

All other upgrades went smoothly.
Comment 10 Renato Botelho freebsd_committer freebsd_triage 2014-11-19 10:35:13 UTC
Could you please try it again with 0.98.5 to be sure the problem persists? Are you using default OPTIONS? Any change on make.conf?
Comment 11 bsd 2014-11-20 15:04:46 UTC
I did an upgrade now for five servers with no error. I did check OPTIONS was set for TEST, but I don't know the otgers, but I think they are the default. I have some defines set in /etc/make.conf, on one server it has

WITHOUT_ATM=YES
WITHOUT_FORTRAN=YES
WITHOUT_GAMES=YES
WITHOUT_INET6=YES
WITHOUT_INET6_SUPPORT=YES
WITHOUT_KERBEROS=YES
WITHOUT_KERBEROS_SUPPORT=YES
WITHOUT_NIS=YES
WITHOUT_SENDMAIL=YES

For me, it is no longer problem now, if necessary, I can just switch the TEST OPTION off if there will be some tests failing in future, but others may not be happy in such case.

Anyway, it does not manifests itself with 0.98.5 on any server I administer.
Comment 12 Renato Botelho freebsd_committer freebsd_triage 2014-11-20 15:06:18 UTC
Do you have security/openssl installed?
Comment 13 peo 2014-11-20 15:36:05 UTC
I just built 0.98.5 on
8.4-STABLE #0 r264402
and
10.1-STABLE #0 r274551

No problems on either.

No, we are not using security/openssl, we use openssl from base
Comment 14 Renato Botelho freebsd_committer freebsd_triage 2014-11-20 15:38:36 UTC
It seems to be happening only if openssl from ports is installed, it's being tracked in #195182, closing this one and marked as duplicated since the new ticket is more specific.

*** This bug has been marked as a duplicate of bug 195182 ***
Comment 15 bsd 2014-11-20 15:51:39 UTC
In my case OPENSSL from base, too, and I am fine with the way it is resolved.