[packages/perl-Math-BigInteger] add missing includes and type fixes
atler
atler at pld-linux.org
Fri Aug 1 00:47:25 CEST 2025
commit f03f1593fea8f343779525b98fb035ecf8be9560
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Aug 1 00:47:00 2025 +0200
add missing includes and type fixes
includes.patch | 21 +++++++++++++++++++++
perl-Math-BigInteger.spec | 4 ++++
types.patch | 11 +++++++++++
3 files changed, 36 insertions(+)
---
diff --git a/perl-Math-BigInteger.spec b/perl-Math-BigInteger.spec
index 9f01d69..9b58152 100644
--- a/perl-Math-BigInteger.spec
+++ b/perl-Math-BigInteger.spec
@@ -15,6 +15,8 @@ Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: a4aa79e070f3f5f8e7f01443fdc03b8e
Patch0: %{name}-Fputc_to_fputc.patch
+Patch1: includes.patch
+Patch2: types.patch
URL: http://search.cpan.org/dist/Math-BigInteger/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
@@ -31,6 +33,8 @@ Younga. Jest to szybsza alternatywa dla biblioteki Math::BigInt.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%patch -P0 -p0
+%patch -P1 -p1
+%patch -P2 -p1
%build
%{__perl} Makefile.PL \
diff --git a/includes.patch b/includes.patch
new file mode 100644
index 0000000..a646c14
--- /dev/null
+++ b/includes.patch
@@ -0,0 +1,21 @@
+--- Math-BigInteger-1.01/bn.c.orig 2025-08-01 00:39:52.095599403 +0200
++++ Math-BigInteger-1.01/bn.c 2025-08-01 00:41:51.763630729 +0200
+@@ -46,6 +46,8 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include "bn.h"
+
+ #ifndef Fputc
+--- Math-BigInteger-1.01/bn_regs.c.orig 1996-05-05 17:30:56.000000000 +0200
++++ Math-BigInteger-1.01/bn_regs.c 2025-08-01 00:41:39.270555340 +0200
+@@ -46,6 +46,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "bn.h"
+
+ #define REG_INC 8
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..a1a6186
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,11 @@
+--- Math-BigInteger-1.01/bn.c.orig 2025-08-01 00:44:21.160386458 +0200
++++ Math-BigInteger-1.01/bn.c 2025-08-01 00:44:50.252549404 +0200
+@@ -892,7 +892,7 @@
+
+ /* Check for divide by zero */
+ if (bn_is_zero(d))
+- return NULL;
++ return 0;
+
+ if (bn_cmp(m,d) < 0)
+ {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Math-BigInteger.git/commitdiff/f03f1593fea8f343779525b98fb035ecf8be9560
More information about the pld-cvs-commit
mailing list