mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-perl/Locale-gettext: fix tests (w >=glibc-2.35?)
Closes: https://bugs.gentoo.org/935393 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -20,6 +20,9 @@ BDEPEND="${RDEPEND}
|
||||
virtual/perl-ExtUtils-MakeMaker
|
||||
"
|
||||
|
||||
PATCHES=("${FILESDIR}/${P}-no-dot-inc.patch")
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-no-dot-inc.patch"
|
||||
"${FILESDIR}/${P}-tests.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${DIST_VERSION}"
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
https://bugs.gentoo.org/935393
|
||||
https://github.com/vandry/Perl-Locale-gettext/issues/7
|
||||
https://github.com/vandry/Perl-Locale-gettext/pull/4
|
||||
|
||||
From e6e30992fa4ca3e7ecf417a23a9c46af8f671226 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Salvador=20Fandi=C3=B1o?= <sfandino@yahoo.com>
|
||||
Date: Fri, 27 Oct 2017 16:22:54 +0200
|
||||
Subject: [PATCH] skip for C.UTF-8 too
|
||||
|
||||
--- a/t/lib/gen_test_data.pl
|
||||
+++ b/t/lib/gen_test_data.pl
|
||||
@@ -28,11 +28,11 @@ sub gen {
|
||||
skip("cannot run test without a locale set", 0);
|
||||
exit 0;
|
||||
}
|
||||
- if ($messages eq 'C') {
|
||||
+ if ($messages =~ /^C(\..*)?$/) {
|
||||
skip("cannot run test in the C locale", 0);
|
||||
exit 0;
|
||||
}
|
||||
- if ($messages eq 'POSIX') {
|
||||
+ if ($messages =~ /^POSIX(\..*)?$/) {
|
||||
skip("cannot run test in the POSIX locale", 0);
|
||||
exit 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user