Skip to content

Commit

Permalink
Replace Crypt::NaCl::Sodium with Crypt::Ed25519 (#1182)
Browse files Browse the repository at this point in the history
First we vendor in `Protocol::Matrix`. Then we patch it to use `Crypt::Ed25519` instead of `Crypt::NaCl::Sodium`. Then we switch the rest of sytest to use `Crypt::Ed25519`.

Hopefully fixes #1114, and generally makes sytest a whole lot easier to install.
  • Loading branch information
richvdh authored Jan 5, 2022
1 parent fd4f11d commit 13f436b
Show file tree
Hide file tree
Showing 9 changed files with 515 additions and 46 deletions.
16 changes: 2 additions & 14 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
# vim:ft=perl

# Sodium won't install without this.
requires 'Alien::Base::ModuleBuild';

requires 'Class::Method::Modifiers';

# workaround for https://github.com/matrix-org/sytest/issues/942:
# Crypt::NaCl::Sodium won't install with Alien::Sodium 2.0.
requires 'Alien::Sodium', '<2.0', 'AJGB/Alien-Sodium-1.0.8.0.tar.gz';

# this can be a pain to install.
#
# We used to have a libcrypt-nacl-sodium-perl deb, but it was only built for
# perl 5.14.2.
#
requires 'Crypt::NaCl::Sodium';
requires 'Crypt::Ed25519';

requires 'Data::Dump';

Expand All @@ -36,6 +24,7 @@ requires 'File::Slurper';
# Future 0.45 allows you to return immediate values from sequence functions.
requires 'Future', '>= 0.45';
requires 'Getopt::Long';
requires 'HTTP::Request';
requires 'IO::Async', '>= 0.69';
requires 'IO::Async::SSL';
requires 'IO::Socket::IP', '>= 0.04';
Expand All @@ -54,7 +43,6 @@ requires 'Module::Pluggable';
requires 'Net::Async::HTTP', '>= 0.39';
requires 'Net::Async::HTTP::Server', '>= 0.09';
requires 'Net::SSLeay', '>= 1.59';
requires 'Protocol::Matrix', '>= 0.02';
requires 'Struct::Dumb', '>= 0.04';
requires 'URI::Escape';
requires 'YAML::XS';
Loading

0 comments on commit 13f436b

Please sign in to comment.