diff options
Diffstat (limited to 'dev-perl/Crypt-OpenSSL-Bignum')
3 files changed, 75 insertions, 0 deletions
diff --git a/dev-perl/Crypt-OpenSSL-Bignum/Crypt-OpenSSL-Bignum-0.80.0-r1.ebuild b/dev-perl/Crypt-OpenSSL-Bignum/Crypt-OpenSSL-Bignum-0.80.0-r1.ebuild new file mode 100644 index 000000000000..77e8c679f0bf --- /dev/null +++ b/dev-perl/Crypt-OpenSSL-Bignum/Crypt-OpenSSL-Bignum-0.80.0-r1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=KMX +DIST_VERSION=0.08 +inherit perl-module + +DESCRIPTION="OpenSSL's multiprecision integer arithmetic" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="libressl" + +RDEPEND=" + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) +" +DEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + virtual/pkgconfig +" +PATCHES=( "${FILESDIR}/${P}-openssl1.1.patch" ) diff --git a/dev-perl/Crypt-OpenSSL-Bignum/Manifest b/dev-perl/Crypt-OpenSSL-Bignum/Manifest index c477a2b055a4..a09c86bb04b8 100644 --- a/dev-perl/Crypt-OpenSSL-Bignum/Manifest +++ b/dev-perl/Crypt-OpenSSL-Bignum/Manifest @@ -1,8 +1,10 @@ +AUX Crypt-OpenSSL-Bignum-0.80.0-openssl1.1.patch 1329 SHA256 e839b6df2bfb0be9b1ae101f397b58b4c453db3c45040562c214d0e97482437a SHA512 a5195caa190fb69075a6c9ea77596b53746da993a49f608e468a7a060716882e77caa8cc6281adc60ffa9957b3ad8c660a2f140c39a021dc98890719c2a3394f WHIRLPOOL 03e1262432e776e3039fed47275871a6d9e5586d49e2de4ab7f8f7079b172e5e81b50176322658b7b92b1dcb4ebbb615baef0b8822e1736185d0d36f20badef7 DIST Crypt-OpenSSL-Bignum-0.04.tar.gz 13520 SHA256 73a1e3a2419054a5109629c55d3ec322415be07d6bb6029b830a30e8f1126fa3 SHA512 ea95da0a71e7534595d721a0c4ad95f43d93407b3ed465aad88d8809a11646da15254341b5c36c6248b80be844b36276079b1b050ad5dacbdf71f2bb06621403 WHIRLPOOL 100e82b2d5436f8a742b9b53d09b602d26b3f7244b9f8c1d20ef0f3a3ec87b6a639846ec8b6e1239641aa0e51167906cbc8c6f92323d59c2df4934afe4948cec DIST Crypt-OpenSSL-Bignum-0.07.tar.gz 15996 SHA256 2ddae11eec0436f67fe7a1fcef8226a5275d7ad98fdc7802c6e9484b9a4a886d SHA512 b41bcdc4e4b8410dd90f59c4c6f67fdf82340fe94a71854372c0eae2ed5bcf28bef56f5221c669c7d3aeb02e888b714584c1cd46d0b8e84e3379bb4a7169be65 WHIRLPOOL 073566dcfe5a50bd1c5589548e3c05fb00ab43356b6117ea3d8c04c54b4e3c140af103b3f10dfc3ec7fdfb9e45e46afa30799b2596b4bff61eeba273b7e31e17 DIST Crypt-OpenSSL-Bignum-0.08.tar.gz 16023 SHA256 88c161b4f09c2f4b66dcdb1ffea1e2d3257b690b9e29aeed397f05e71ab1553d SHA512 da36b377287037c46e905f25d491641a06113ea1157f00731c43fdc27762af6cbde0e55361d929712adf57fc3564197aadb54629498318c1eb9c1f3fd0c50e7d WHIRLPOOL 1b04c613e662acdd3fa358ca8c7746803d57b02fa79c727af95f86643199477d4e9010415e9b5fce7cedd4f3389b6b3b8d3995856b51cced5ad8a854ec67ea39 EBUILD Crypt-OpenSSL-Bignum-0.40.0-r2.ebuild 526 SHA256 911ab3a1d918b22a9fc4341b12bc9aa9286a0d1bce8ebbaa391a9995e8651cc4 SHA512 58ce05d031171facd7f3143de2b15328c3f93e9c6aa2ca502aafdc5cf023eec226b14202d6ce95ed0923eaa9b5de6715a5292b3947992b38a5877588ce96eed8 WHIRLPOOL e49a39bcc7f3a7bda1b26d192b3ff6b4df5250a2f2979f8b99b53608a4c8f60329f3a3a78954fd074f3301df33c9445f9bd15ab309318f9d3a9984f4b1d48c39 EBUILD Crypt-OpenSSL-Bignum-0.70.0.ebuild 564 SHA256 97eb09cfa164d955137e2c8fd5f7778d684510187f5d9be048f1bb7f11b88bcf SHA512 be2695704870ad440d240850fb91f91904c95b014312b93dfa71717e6ce31ec7deac4cdbbf0b529ce6d80b715e8de5871bce6a00c7546ec3261840afddcbef94 WHIRLPOOL f1171582b14367d0154035a66afa37d31d1bb91cc000ee5e746ff25564baece8ad3a85fe0168dcdd1efcc6688e7cf347f0ce8bfcc6b9f3c191fbd9ccc1e71b21 +EBUILD Crypt-OpenSSL-Bignum-0.80.0-r1.ebuild 612 SHA256 1da19397ebc038ac889970827654b9b45808a69d2b65e7a3799fcc3f1a15e1d9 SHA512 56405f4b37bc434ec41f322a2490471c32626e5d80ad2e4e63954b4b93ffd32a66d52abceea886ca88054a2624db3ac1f2a7d78bdf7692a40e8cd6a28e984cc7 WHIRLPOOL 89862d3aea51bb43338cf6c470710ae94312728f462b62d459e341c28b5993743b9681e6293b6b214dce628f52940e9d3cabfed7d39342061032b7487fe9eee8 EBUILD Crypt-OpenSSL-Bignum-0.80.0.ebuild 564 SHA256 c19955ae3597ec39f8c1a9447c144a425a345d576a4bab7b51443a07577fbf2f SHA512 cfa8d8321717923cb1358bdd8b1c6496e2c103a2694159e07e67752004904f4d36c2c7ffb70dc6bdd2585184d8afa97264b90ac7c97a6475f5af5776d645b7a7 WHIRLPOOL 8bffe240b634fb0a6c43b3ee3732e0b932d4b5e012f55311eeaeb4e7fae6f56bf882a0fee7f1b4522f1586ab665c4ceb53046fca7eb6123dc70287780c0503b0 MISC ChangeLog 3694 SHA256 bf208d72b212289ace13877ac2a1f383b733096787f7db436ced8d4aca062dc0 SHA512 f93e98acbf824b94856000ea5519b6b85ca31711063eeeb63d299b3621a23c17eae2c4a252ca8e0ca24a9f3c6a0717fcbbb878b37df6b1590c117622c085c563 WHIRLPOOL dab74191e045de0d0a75b3b0bcf2ccaf2f5cc2ce19ec2bbdac93f0a3ec3c1256c53fab2a229305ed2589e5eebbc120c8acd24958a6190da35be95a267f5bf3ac MISC ChangeLog-2015 4455 SHA256 d267abd5db1e909b0961669da9a374419be2844760267777154f5820cba5d134 SHA512 0dce2a273a8cf3b132f04e58ae5039394ff0c311e288bcae88246b73d2b8755b59cde20152471c2798019c665a217ffd059e01257ca5528bec64b26f37f34bb3 WHIRLPOOL 2ec299af6354289a547ff59bdd46845243aed1cfc5b28b5c8e2fb2bacac1b70c4e2741425141307859723922abfd59fe39b22e31230c634b7c9a0d37197ae173 diff --git a/dev-perl/Crypt-OpenSSL-Bignum/files/Crypt-OpenSSL-Bignum-0.80.0-openssl1.1.patch b/dev-perl/Crypt-OpenSSL-Bignum/files/Crypt-OpenSSL-Bignum-0.80.0-openssl1.1.patch new file mode 100644 index 000000000000..f2c934863a13 --- /dev/null +++ b/dev-perl/Crypt-OpenSSL-Bignum/files/Crypt-OpenSSL-Bignum-0.80.0-openssl1.1.patch @@ -0,0 +1,49 @@ +From d9ddaa210a1b91deb6ea6fcea4cb274f634e482d Mon Sep 17 00:00:00 2001 +From: Mark Wright <gienah@gentoo.org> +Date: Tue, 17 Oct 2017 16:50:01 +1100 +Subject: Fix building with OpenSSL 1.1.0 + +Bug: https://bugs.gentoo.org/592532 +Bug: https://rt.cpan.org/Ticket/Display.html?id=117482 +Bug: https://github.com/kmx/perl-Crypt-OpenSSL-Bignum/pull/7 +--- + Bignum.xs | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/Bignum.xs b/Bignum.xs +index d39dcff..149fa52 100755 +--- a/Bignum.xs ++++ b/Bignum.xs +@@ -29,7 +29,11 @@ BIGNUM* sv2bn( SV* sv ) + MODULE = Crypt::OpenSSL::Bignum PACKAGE = Crypt::OpenSSL::Bignum PREFIX = BN_ + + BOOT: ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++ OPENSSL_init_crypto(0, NULL); ++#else + ERR_load_crypto_strings(); ++#endif + + void + DESTROY(Crypt::OpenSSL::Bignum self) +@@ -92,7 +96,7 @@ BN_new(CLASS) + BIGNUM* bn; + CODE: + checkOpenSslCall( bn = BN_new() ); +- checkOpenSslCall( BN_zero( bn ) ); ++ checkOpenSslCall( BN_set_word( bn, 0 ) ); + RETVAL = bn; + OUTPUT: + RETVAL +@@ -103,7 +107,7 @@ BN_zero(CLASS) + BIGNUM *bn; + CODE: + checkOpenSslCall( bn = BN_new() ); +- checkOpenSslCall( BN_zero( bn ) ); ++ checkOpenSslCall( BN_set_word( bn, 0 ) ); + RETVAL = bn; + OUTPUT: + RETVAL +-- +2.14.2 + |