Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-SDL for openSUSE:Factory 
checked in at 2023-08-08 17:43:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-SDL (Old)
 and      /work/SRC/openSUSE:Factory/.perl-SDL.new.22712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-SDL"

Tue Aug  8 17:43:25 2023 rev:11 rq:1102970 version:2.548

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-SDL/perl-SDL.changes        2023-01-17 
17:36:31.265593642 +0100
+++ /work/SRC/openSUSE:Factory/.perl-SDL.new.22712/perl-SDL.changes     
2023-08-08 17:43:27.605718906 +0200
@@ -1,0 +2,5 @@
+Tue Aug  8 14:59:43 UTC 2023 - Dominique Leuenberger <dims...@opensuse.org>
+
+- Add 304.patch: Fix build with Perl 5.35 (gh#PerlGameDev/SDL#304).
+
+-------------------------------------------------------------------

New:
----
  304.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-SDL.spec ++++++
--- /var/tmp/diff_new_pack.BFWLnc/_old  2023-08-08 17:43:28.345723520 +0200
+++ /var/tmp/diff_new_pack.BFWLnc/_new  2023-08-08 17:43:28.349723544 +0200
@@ -26,6 +26,7 @@
 Source0:        
https://cpan.metacpan.org/authors/id/F/FR/FROGGS/%{cpan_name}-%{version}.tar.gz
 Source1:        perl-SDL.rpmlintrc
 Source2:        cpanspec.yml
+Patch0:         
https://patch-diff.githubusercontent.com/raw/PerlGameDev/SDL/pull/304.patch
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(Alien::SDL) >= 1.446
@@ -66,7 +67,8 @@
 "Civilization: Call To Power."
 
 %prep
-%autosetup  -n %{cpan_name}-%{version}
+%autosetup  -n %{cpan_name}-%{version} -p1
+
 # MANUAL BEGIN
 %ifarch %arm ppc64 ppc64le s390x
 # Remove hanging test. See: https://github.com/PerlGameDev/SDL/issues/289
@@ -77,14 +79,14 @@
 # MANUAL END
 
 %build
-perl Build.PL installdirs=vendor optimize="%{optflags}"
-./Build build flags=%{?_smp_mflags}
+perl Build.PL --installdirs=vendor optimize="%{optflags}"
+./Build build --flags=%{?_smp_mflags}
 
 %check
 ./Build test
 
 %install
-./Build install destdir=%{buildroot} create_packlist=0
+./Build install --destdir=%{buildroot} --create_packlist=0
 %perl_gen_filelist
 
 %files -f %{name}.files

++++++ 304.patch ++++++
>From d734d03862d7dcc776bd2fa3ba662cdd5879b32e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Wed, 12 Jul 2023 17:55:27 +0200
Subject: [PATCH] Adapt to perl 5.37.1

Perl 5.37.1 removed a deprecated sv_nv() macro and SDL fails to build
with Perl 5.38.0:

lib/SDLx/Controller/Interface.xs:60:26: error: implicit declaration of function 
'sv_nv'
   60 |         out->dv_x      = sv_nv(temp);
      |                          ^~~~~

Users are advised to use SvNVx() macro instead. SvNVx() seems to have been
available all the time (it predates a commit from 1993-10-07).

This patch does that.

https://github.com/PerlGameDev/SDL/issues/303
---
 src/SDLx/Controller/Interface.xs | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/SDLx/Controller/Interface.xs b/src/SDLx/Controller/Interface.xs
index 3dc202b7..d326c885 100644
--- a/src/SDLx/Controller/Interface.xs
+++ b/src/SDLx/Controller/Interface.xs
@@ -57,15 +57,15 @@ void evaluate(SDLx_Interface *obj, SDLx_Derivative *out, 
SDLx_State *initial, fl
 
        SV *temp;
        temp           = av_pop(accel);
-       out->dv_x      = sv_nv(temp);
+       out->dv_x      = SvNVx(temp);
        SvREFCNT_dec(temp);
 
        temp           = av_pop(accel);
-       out->dv_y      = sv_nv(temp);
+       out->dv_y      = SvNVx(temp);
        SvREFCNT_dec(temp);
 
        temp           = av_pop(accel);
-       out->dang_v    = sv_nv(temp);
+       out->dang_v    = SvNVx(temp);
        SvREFCNT_dec(temp);
 
        SvREFCNT_dec((SV *)accel);
@@ -90,15 +90,15 @@ void evaluate_dt(SDLx_Interface *obj, SDLx_Derivative *out, 
SDLx_State *initial,
 
        SV *temp;
        temp           = av_pop(accel);
-       out->dv_x      = sv_nv(temp);
+       out->dv_x      = SvNVx(temp);
        SvREFCNT_dec(temp);
 
        temp           = av_pop(accel);
-       out->dv_y      = sv_nv(temp);
+       out->dv_y      = SvNVx(temp);
        SvREFCNT_dec(temp);
 
        temp           = av_pop(accel);
-       out->dang_v    = sv_nv(temp);
+       out->dang_v    = SvNVx(temp);
        SvREFCNT_dec(temp);
 
        SvREFCNT_dec((SV *)accel);

++++++ cpanspec.yml ++++++
--- /var/tmp/diff_new_pack.BFWLnc/_old  2023-08-08 17:43:28.409723918 +0200
+++ /var/tmp/diff_new_pack.BFWLnc/_new  2023-08-08 17:43:28.413723944 +0200
@@ -12,7 +12,8 @@
 #no_testing: broken upstream
 sources:
   - perl-SDL.rpmlintrc
-#patches:
+patches:
+  https://patch-diff.githubusercontent.com/raw/PerlGameDev/SDL/pull/304.patch: 
-p1
 #  foo.patch: -p1
 #  bar.patch:
 preamble: |-
@@ -33,6 +34,8 @@
  # Remove hanging test. See: https://github.com/PerlGameDev/SDL/issues/289
  rm t/sdlx_controller_interface.t
  %endif
+ # core_video is deadlocking in OBS builds (no graphical interface available)
+ rm t/core_video.t
 #post_build: |-
 # rm unused.files
 #post_install: |-

Reply via email to