From 22950004bcf0fa9b2965f83103a5d7ba17ba6430d11d8942f5aba276bd9a1bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Wed, 28 May 2025 13:23:12 +0000 Subject: [PATCH] Accepting request 1280870 from home:pgajdos - added patches [bsc#1241940]: fix build with gcc15, sent to STBEY@cpan.org * perl-Bit-Vector-gcc15.patch OBS-URL: https://build.opensuse.org/request/show/1280870 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Bit-Vector?expand=0&rev=28 --- cpanspec.yml | 3 ++- perl-Bit-Vector-gcc15.patch | 13 +++++++++++++ perl-Bit-Vector.changes | 7 +++++++ perl-Bit-Vector.spec | 6 +++--- 4 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 perl-Bit-Vector-gcc15.patch diff --git a/cpanspec.yml b/cpanspec.yml index f147fda..7ec34d7 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -5,7 +5,8 @@ # - source1 # - source2 patches: - Bit-Vector-7.1.diff: + Bit-Vector-7.1.diff: + perl-Bit-Vector-gcc15.patch: build with gcc15, sent to STBEY@cpan.org #preamble: |- # BuildRequires: gcc-c++ #post_prep: |- diff --git a/perl-Bit-Vector-gcc15.patch b/perl-Bit-Vector-gcc15.patch new file mode 100644 index 0000000..7918ae6 --- /dev/null +++ b/perl-Bit-Vector-gcc15.patch @@ -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 diff --git a/perl-Bit-Vector.changes b/perl-Bit-Vector.changes index 768085f..6d1d128 100644 --- a/perl-Bit-Vector.changes +++ b/perl-Bit-Vector.changes @@ -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 diff --git a/perl-Bit-Vector.spec b/perl-Bit-Vector.spec index 7ecb239..0a1d07e 100644 --- a/perl-Bit-Vector.spec +++ b/perl-Bit-Vector.spec @@ -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}"