Accepting request 1184865 from devel:languages:perl

- Add a workaround to fix building against perl-5.40.0 which added
  a warning for accidental usage of UNIVERSAL::import()
  * new patch: po4a.diff

OBS-URL: https://build.opensuse.org/request/show/1184865
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/po4a?expand=0&rev=33
This commit is contained in:
2024-07-02 16:14:28 +00:00
committed by Git OBS Bridge
3 changed files with 21 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jul 2 13:51:42 CEST 2024 - mls@suse.de
- Add a workaround to fix building against perl-5.40.0 which added
a warning for accidental usage of UNIVERSAL::import()
* new patch: po4a.diff
-------------------------------------------------------------------
Sat Jun 22 18:28:32 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

11
po4a.diff Normal file
View File

@@ -0,0 +1,11 @@
--- lib/Locale/Po4a/TransTractor.pm.orig 2024-07-02 11:29:25.396972130 +0000
+++ lib/Locale/Po4a/TransTractor.pm 2024-07-02 11:29:48.916941692 +0000
@@ -5,6 +5,8 @@ require Exporter;
package Locale::Po4a::TransTractor;
use DynaLoader;
+sub import {};
+
use 5.16.0;
use strict;
use warnings;

View File

@@ -28,6 +28,8 @@ Group: Development/Tools/Other
%endif
URL: https://po4a.org/
Source: https://github.com/mquinson/po4a/releases/download/v%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Workaround for build error with perl 5.40, see https://github.com/mquinson/po4a/issues/508
Patch0: po4a.diff
%if "%{_vendor}" == "debbuild"
BuildRequires: deb-perl-macros
@@ -110,6 +112,7 @@ po4a supports currently the following formats:
%prep
%setup -q
%patch -P0
%build
perl Build.PL installdirs=vendor