Add a workaround to fix building against perl-5.40.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/po4a?expand=0&rev=83
This commit is contained in:
parent
c86a7a8c64
commit
cd757752c0
@ -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
11
po4a.diff
Normal 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;
|
@ -28,6 +28,7 @@ Group: Development/Tools/Other
|
||||
%endif
|
||||
URL: https://po4a.org/
|
||||
Source: https://github.com/mquinson/po4a/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: po4a.diff
|
||||
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
BuildRequires: deb-perl-macros
|
||||
@ -110,6 +111,7 @@ po4a supports currently the following formats:
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -P0
|
||||
|
||||
%build
|
||||
perl Build.PL installdirs=vendor
|
||||
|
Loading…
x
Reference in New Issue
Block a user