Codebase list po4a / 736d9f9
Add new patch to fix FTBFS. Cherry-picked from upstream commit 5db00605859246c2376bef6b4ad9e1c0865ef5f2 Dr. Tobias Quathamer 4 years ago
2 changed file(s) with 32 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 From: Akinori Hattori <hattya@gentoo.org>
1 Date: Wed, 6 May 2020 20:23:43 +0900
2 Subject: Fix tests that use msginit
3
4 The value of 'Project-Id-Version' depends on the root directory of po4a.
5 ---
6 t/Testhelper.pm | 4 ++--
7 1 file changed, 2 insertions(+), 2 deletions(-)
8
9 diff --git a/t/Testhelper.pm b/t/Testhelper.pm
10 index 98cd5ce..ee60eee 100644
11 --- a/t/Testhelper.pm
12 +++ b/t/Testhelper.pm
13 @@ -95,7 +95,7 @@ $ENV{'COLUMNS'} = "80";
14 my $execpath = defined $ENV{AUTOPKGTEST_TMP} ? "/usr/bin" : "perl ..";
15
16 my $PODIFF =
17 - "-I'Copyright (C) 20.. Free Software Foundation, Inc.' -I'^# Automatically generated, 20...' -I'^\"POT-Creation-Date:' -I'^\"PO-Revision-Date:'";
18 + "-I'Copyright (C) 20.. Free Software Foundation, Inc.' -I'^# Automatically generated, 20...' -I'^\"Project-Id-Version:' -I'^\"POT-Creation-Date:' -I'^\"PO-Revision-Date:'";
19
20 sub show_files {
21 my $basename = shift;
22 @@ -121,7 +121,7 @@ sub system_failed {
23 $expected_exit_status //= 0;
24 my $exit_status = system($cmd);
25 $cmd =~
26 - s/diff -u -I'Copyright .C. 20.. Free Software Foundation, Inc.' -I'.. Automatically generated, 20...' -I'."POT-Creation-Date:' -I'."PO-Revision-Date:'/PODIFF/g;
27 + s/diff -u -I'Copyright .C. 20.. Free Software Foundation, Inc.' -I'.. Automatically generated, 20...' -I'."Project-Id-Version:' -I'."POT-Creation-Date:' -I'."PO-Revision-Date:'/PODIFF/g;
28 $cmd =~ s{$root_dir/}{}g;
29 $cmd =~ s{t/../po4a}{po4a};
30
0 0001-Fix-tests-that-use-msginit.patch