void-packages/srcpkgs/perl-Crypt-DH/patches/force_require_bigint_gmp.patch
q66 7d2f681c60 perl-Crypt-DH: unbreak aarch64
The makefile checks for presence of libgmp-devel files, and based
on that it enables either the GMP version of the respective bigint
lib or the other one. This doesn't really work with cross and some
host platforms so just forcibly patch it.
2019-01-27 17:31:56 -02:00

18 lines
410 B
Diff

--- Makefile.PL
+++ Makefile.PL
@@ -15,14 +15,8 @@ include 'ExtUtils::AutoInstall';
perl_version '5.006';
build_requires 'Test::More' => 0.47;
-eval { assertlibs lib => 'gmp', header => 'gmp.h'; };
-unless ($@) {
- requires 'Math::BigInt::GMP' => 1.24;
-}
-else {
- requires 'Math::BigInt::Pari' => 1.13;
-}
+requires('Math::BigInt::GMP' => '1.24');
requires('Math::BigInt' => '1.60');
githubmeta;