8
0

add initperl_prototype.diff to fix compiler issue

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=22
This commit is contained in:
2024-12-18 09:08:46 +00:00
committed by Git OBS Bridge
parent cda19856d9
commit 0c80b4db41
4 changed files with 24 additions and 5 deletions

View File

@@ -4,11 +4,11 @@
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
patches:
initperl_prototype.diff: -p1
preamble: |-
BuildRequires: python3-devel
BuildRequires: perl(Parse::RecDescent)
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL

12
initperl_prototype.diff Normal file
View File

@@ -0,0 +1,12 @@
diff -ur Inline-Python-0.57/Python.xs Inline-Python-0.57_fix/Python.xs
--- Inline-Python-0.57/Python.xs 2022-09-18 13:07:09.299412240 +0200
+++ Inline-Python-0.57_fix/Python.xs 2024-12-18 10:02:00.459704530 +0100
@@ -8,6 +8,8 @@
#include "py2pl.h"
#include "util.h"
+void initperl(void);
+
#ifdef EXPOSE_PERL
#include "perlmodule.h"
#endif

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Dec 18 09:05:08 UTC 2024 - Dirk Stoecker <opensuse@dstoecker.de>
- add initperl_prototype.diff to fix compiler issue
-------------------------------------------------------------------
Thu Apr 20 10:47:40 UTC 2023 - Tina Müller <timueller+perl@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Inline-Python
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,7 @@ Summary: Write Perl subs and classes in Python
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/N/NI/NINE/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
Patch0: initperl_prototype.diff
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Digest::MD5) >= 2.5
@@ -37,6 +38,7 @@ Requires: perl(Inline) >= 0.46
%{perl_requires}
# MANUAL BEGIN
BuildRequires: python3-devel
BuildRequires: perl(Parse::RecDescent)
# MANUAL END
%description
@@ -53,7 +55,7 @@ also gives you instructions on how to use 'perlmodule', the Python package
which gives you access to the Perl interpreter.
%prep
%autosetup -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{version} -p1
%build
export INLINE_PYTHON_EXECUTABLE=/usr/bin/python3