[packages/perl-Crypt-OpenSSL-EC] drop dead code to avoid build failure
atler
atler at pld-linux.org
Mon Jul 28 15:09:38 CEST 2025
commit 2f2f387a0fa9881c2cc2e10838f763fccbf86155
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jul 28 15:08:09 2025 +0200
drop dead code to avoid build failure
Unparseable XSUB parameter: 'EC_POINT *p[]' in EC.xs, line 354
Unparseable XSUB parameter: 'const EC_POINT *p[]' in EC.xs, line 357
Unparseable XSUB parameter: 'const BIGNUM *m[]' in EC.xs, line 357
deadcode.patch | 19 +++++++++++++++++++
perl-Crypt-OpenSSL-EC.spec | 2 ++
2 files changed, 21 insertions(+)
---
diff --git a/perl-Crypt-OpenSSL-EC.spec b/perl-Crypt-OpenSSL-EC.spec
index 76ae229..ae86a82 100644
--- a/perl-Crypt-OpenSSL-EC.spec
+++ b/perl-Crypt-OpenSSL-EC.spec
@@ -14,6 +14,7 @@ License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 0ac9adc9e597cb492ed7255741426909
+Patch0: deadcode.patch
URL: https://metacpan.org/dist/Crypt-OpenSSL-EC
BuildRequires: openssl-devel >= 0.9.8i
BuildRequires: perl-devel >= 1:5.8.0
@@ -41,6 +42,7 @@ i stałych.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
%build
%{__perl} Makefile.PL \
diff --git a/deadcode.patch b/deadcode.patch
new file mode 100644
index 0000000..e2205c9
--- /dev/null
+++ b/deadcode.patch
@@ -0,0 +1,19 @@
+--- Crypt-OpenSSL-EC-1.32/EC.xs.orig 2020-03-17 22:07:26.000000000 +0100
++++ Crypt-OpenSSL-EC-1.32/EC.xs 2025-07-28 15:05:52.508724597 +0200
+@@ -348,16 +348,6 @@
+ int
+ EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
+
+-#if 0
+-
+-int
+-EC_POINTs_make_affine(const EC_GROUP *group, size_t num, EC_POINT *p[], BN_CTX *ctx)
+-
+-int
+-EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, size_t num, const EC_POINT *p[], const BIGNUM *m[], BN_CTX *ctx)
+-
+-#endif
+-
+ int
+ EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx)
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Crypt-OpenSSL-EC.git/commitdiff/2f2f387a0fa9881c2cc2e10838f763fccbf86155
More information about the pld-cvs-commit
mailing list