Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: clamav #334852

Closed
KaiserCalm opened this issue Aug 15, 2024 · 3 comments · Fixed by #335806
Closed

Build failure: clamav #334852

KaiserCalm opened this issue Aug 15, 2024 · 3 comments · Fixed by #335806
Labels
0.kind: build failure A package fails to build

Comments

@KaiserCalm
Copy link

Steps To Reproduce

Steps to reproduce the behavior:

  1. build clamav

Build log

error: builder for '/nix/store/z8mbbp1n6axb1rw15i20niiskh0jiq6k-clamav-1.3.1.drv' failed with exit code 2;
       last 25 log lines:
       >
       > [DEBUG]: stderr:
       >
       > =========================== short test summary info ============================
       > FAILED clamscan/assorted_test.py::TC::test_pe_cert_trust - AssertionError: as...
       > ======================== 1 failed, 52 passed in 14.48s =========================
       >
       > 3/5 Test #4: clamd ............................   Passed   19.33 sec
       > 4/5 Test #1: libclamav ........................   Passed   23.96 sec
       > 5/5 Test #2: libclamav_rust ...................   Passed   28.29 sec
       >
       > 80% tests passed, 1 tests failed out of 5
       >
       > Total Test time (real) =  28.31 sec
       >
       > The following tests FAILED:
       >        3 - clamscan (Failed)
       > Errors while running CTest
       > make[3]: *** [CMakeFiles/check.dir/build.make:70: CMakeFiles/check] Error 8
       > make[3]: Leaving directory '/build/clamav-1.3.1/build'
       > make[2]: *** [CMakeFiles/Makefile2:1348: CMakeFiles/check.dir/all] Error 2
       > make[2]: Leaving directory '/build/clamav-1.3.1/build'
       > make[1]: *** [CMakeFiles/Makefile2:1355: CMakeFiles/check.dir/rule] Error 2
       > make[1]: Leaving directory '/build/clamav-1.3.1/build'
       > make: *** [Makefile:563: check] Error 2
       For full logs, run 'nix log /nix/store/z8mbbp1n6axb1rw15i20niiskh0jiq6k-clamav-1.3.1.drv'.

Additional context

Happened during last system update.

Notify maintainers

@robberer @qknight @globin

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.44, NixOS, 24.11 (Vicuna), 24.11.20240811.a58bc8a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.91.0`
 - nixpkgs: `/nix/store/h60m1fwahjd2mv6gsg77ji3vb4gpj4dk-source`

Add a 👍 reaction to issues you find important.

@KaiserCalm KaiserCalm added the 0.kind: build failure A package fails to build label Aug 15, 2024
@MisileLab
Copy link
Contributor

I confirm it's not lix bug

 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.3, NixOS, 24.11 (Vicuna), 24.11.20240811.ea01bec`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/n5phl27vj24rc5vxpgj7sqkgsdj80w1y-source`

@martiege
Copy link

I'm guessing it is related to this: Cisco-Talos/clamav#1300

@martiege
Copy link

Upgrading to version 1.4.0 works:

(final: prev: {
  clamav = prev.clamav.overrideAttrs (old: rec {
    version = "1.4.0";
    src = pkgs.fetchurl {
      url = "https://www.clamav.net/downloads/production/${old.pname}-${version}.tar.gz";
      hash = "sha256-1nqymeXKBdrT2imaXqc9YCCTcqW+zX8TuaM8KQM4pOY=";
    };
  });
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants