[packages/perl-Math-GSL] fix build

atler atler at pld-linux.org
Sat Aug 2 00:44:02 CEST 2025


commit c39852b5bedd647cb103b7a1cdf54aacee35ef48
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Aug 2 00:43:19 2025 +0200

    fix build
    
    still makes no sense but at least it compiles

 perl-Math-GSL.spec |  2 ++
 types.patch        | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/perl-Math-GSL.spec b/perl-Math-GSL.spec
index 1ba4a07..0cc7642 100644
--- a/perl-Math-GSL.spec
+++ b/perl-Math-GSL.spec
@@ -17,6 +17,7 @@ Source0:	https://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.
 Patch0:		gsl-2.8.patch
 Patch1:		Math-GSL-swig-only-curversion.patch
 Patch2:		Math-GSL-test.patch
+Patch3:		types.patch
 URL:		https://metacpan.org/dist/Math-GSL
 BuildRequires:	gsl-devel >= 1.15
 BuildRequires:	perl-Alien-GSL
@@ -56,6 +57,7 @@ udostępnić te funkcje "tkscope" w module Audio::Data.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
 
 # simulate non-release to force swig rebuild
 mkdir .git
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..41d3874
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,11 @@
+--- Math-GSL-0.44/swig/Multiroots.i.orig	2023-12-01 20:18:02.000000000 +0100
++++ Math-GSL-0.44/swig/Multiroots.i	2025-08-02 00:38:20.634675685 +0200
+@@ -3,7 +3,7 @@
+ %include "renames.i"
+ 
+ %typemap(in) gsl_multiroot_function * {
+-    gsl_multiroot_function *f;
++    gsl_multiroot_function f;
+     /* stub */
+     $1 = &f;
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Math-GSL.git/commitdiff/c39852b5bedd647cb103b7a1cdf54aacee35ef48



More information about the pld-cvs-commit mailing list