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

clamav: enable unit tests, add libjson-c, disable rar explicitly #105074

Merged
merged 2 commits into from Dec 8, 2020

Conversation

Mindavi
Copy link
Contributor

@Mindavi Mindavi commented Nov 26, 2020

Motivation for this change
  • Add libjson-c dependency for --gen-json functionality.
  • Disable rar functionality
    • Because it uses non-free software
    • Because it doesn't work properly without extra patches
    • This didn't work before either, but a warning was added about
      failing to load the rar library (checked by enabling unit tests for the 0.102.x version).
  • Enable unit tests and add check dependency for that
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
    • Tested execution of clamscan
    • Tested execution of other binaries
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

cc @SuperSandro2000 which has just merged the automated update in #101391

@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 105074 run on x86_64-linux 1

1 package built:
  • clamav

@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 105074 run on x86_64-darwin 1

1 package built:
  • clamav

- Add libjson-c dependency for --gen-json functionality.
- Disable rar functionality
  - Because it uses non-free software
  - Because it doesn't work properly without extra patches
  - This didn't work before either, but a warning was added about
    failing to load the rar library
- Enable unit tests and add check dependency for that
@Mindavi
Copy link
Contributor Author

Mindavi commented Nov 27, 2020

Updated with improved wording as suggested.

pkgs/tools/security/clamav/default.nix Outdated Show resolved Hide resolved
pkgs/tools/security/clamav/default.nix Outdated Show resolved Hide resolved
@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 105074 run on x86_64-linux 1

1 package built:
  • clamav

@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 105074 run on x86_64-darwin 1

1 package built:
  • clamav

@SuperSandro2000 SuperSandro2000 merged commit 662d2ff into NixOS:master Dec 8, 2020
@Mindavi Mindavi deleted the clamav/0.103.0 branch December 8, 2020 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants