Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 9c61571f1a4119689d001bf1902869ca12f1c0b3
      
https://github.com/NixOS/nixpkgs/commit/9c61571f1a4119689d001bf1902869ca12f1c0b3
  Author: Falco Peijnenburg <fpeijnenb...@gmail.com>
  Date:   2016-12-31 (Sat, 31 Dec 2016)

  Changed paths:
    M pkgs/tools/networking/strongswan/default.nix

  Log Message:
  -----------
  Strongswan: enable rdrand and aes-ni only on X86

Strongswan fails to compile on armv7l-linux with `--enable-aesni` and  
`--enable-rdrand` enabled. Errors are thrown about impossible constraints in 
asm (`--enable-rdrand`) or about gcc getting unknown command line parameters 
about aes (`--enable-aesni`). The options only makes sense on X86_64 processors.

The rdrand plugin is designed for Ivy Bridge processors:

> High quality / high performance random source using the Intel rdrand 
> instruction found on Ivy Bridge processors

The aes-ni plugin also only exists on X86 processors (which have the AES 
instruction set)

Tested with a local override. The change triggers a (successful) rebuild on my 
X86_64 system. On armv7-linux this change fixes build errors.

See: 
https://wiki.strongswan.org/issues/337


  Commit: c882915351ac81f3e687a22bc4ce7bf754fa1ed6
      
https://github.com/NixOS/nixpkgs/commit/c882915351ac81f3e687a22bc4ce7bf754fa1ed6
  Author: Michael Raskin <7c6f4...@mail.ru>
  Date:   2017-01-02 (Mon, 02 Jan 2017)

  Changed paths:
    M pkgs/tools/networking/strongswan/default.nix

  Log Message:
  -----------
  Merge pull request #21548 from FPtje/patch-2

Strongswan: enable rdrand and aes-ni only on X86


Compare: https://github.com/NixOS/nixpkgs/compare/8b03a76e6153...c882915351ac
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to