11
0

2 Commits

4 changed files with 25 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
# - source2
patches:
Bit-Vector-7.1.diff:
perl-Bit-Vector-gcc15.patch: build with gcc15, sent to STBEY@cpan.org
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-

View File

@@ -0,0 +1,13 @@
Index: ToolBox.h
===================================================================
--- ToolBox.h.orig
+++ ToolBox.h
@@ -85,7 +85,7 @@ typedef Z_longword *Z_longwordp
#undef TRUE
#define TRUE (0==0)
-#ifdef __cplusplus
+#if defined(__cplusplus) || (__STDC_VERSION__ >= 202311L)
typedef bool boolean;
#else
#ifdef MACOS_TRADITIONAL

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Apr 15 13:31:05 UTC 2025 - pgajdos@suse.com
- added patches [bsc#1241940]:
fix build with gcc15, sent to STBEY@cpan.org
* perl-Bit-Vector-gcc15.patch
-------------------------------------------------------------------
Thu Feb 6 22:16:07 UTC 2025 - Tina Müller <tina.mueller@suse.com>

View File

@@ -29,6 +29,8 @@ URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/ST/STBEY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Patch0: Bit-Vector-7.1.diff
# build with gcc15, sent to STBEY@cpan.org
Patch1: perl-Bit-Vector-gcc15.patch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Carp::Clan) >= 5.300
@@ -44,9 +46,7 @@ Provides: perl(Bit::Vector::String) = %{version}
%description
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -N
%patch -P0
%autosetup -p0 -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"