summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Licht <jonas.licht@fem.tu-ilmenau.de>2021-04-09 21:57:15 +0200
committerSam James <sam@gentoo.org>2021-04-10 00:09:41 +0000
commit65871ad2d20b8ab39caf25a0aaec3ab95fbcf511 (patch)
treef2e1afe0fbcc18ee5e8fe90db3d3b2b3ae229f4d /dev-tex/biber/files
parentsci-libs/cantera: 2.5.1 fix USE="cti -python" test and installation (diff)
downloadgentoo-65871ad2d20b8ab39caf25a0aaec3ab95fbcf511.tar.gz
gentoo-65871ad2d20b8ab39caf25a0aaec3ab95fbcf511.tar.bz2
gentoo-65871ad2d20b8ab39caf25a0aaec3ab95fbcf511.zip
dev-tex/biber: disable 64-bit only tests on 32-bit arches
Closes: https://bugs.gentoo.org/780879 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Jonas Licht <jonas.licht@fem.tu-ilmenau.de> Closes: https://github.com/gentoo/gentoo/pull/20316 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-tex/biber/files')
-rw-r--r--dev-tex/biber/files/biber-2.16-disable-64bit-only-tests.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-tex/biber/files/biber-2.16-disable-64bit-only-tests.patch b/dev-tex/biber/files/biber-2.16-disable-64bit-only-tests.patch
new file mode 100644
index 000000000000..74e66ab0701e
--- /dev/null
+++ b/dev-tex/biber/files/biber-2.16-disable-64bit-only-tests.patch
@@ -0,0 +1,45 @@
+Disable Tests which works only on 64bit architecture
+because they tests int overflows.
+From: Jonas Licht <jonas.licht@gmail.com>
+Bug: https://github.com/plk/biber/issues/349
+Bug: https://bugs.gentoo.org/780879
+
+diff --git a/t/dateformats.t b/t/dateformats.t
+index 9c179f06..d22ffcf6 100644
+--- a/t/dateformats.t
++++ b/t/dateformats.t
+@@ -4,7 +4,7 @@ use warnings;
+ use utf8;
+ no warnings 'utf8';
+
+-use Test::More tests => 56;
++use Test::More tests => 48;
+ use Test::Differences;
+ unified_diff;
+
+@@ -879,16 +879,6 @@ $bibentries->del_entry('unspec2');
+ $biber->prepare;
+ $out = $biber->get_output_obj;
+
+-# Test negative dates and eras
+-eq_or_diff($out->get_output_entry('era1', $main), $era1, 'Date meta information - 1');
+-eq_or_diff($out->get_output_entry('era2', $main), $era2, 'Date meta information - 2');
+-eq_or_diff($out->get_output_entry('era3', $main), $era3, 'Date meta information - 3');
+-eq_or_diff($out->get_output_entry('era4', $main), $era4, 'Date meta information - 4');
+-
+-# Test range markers
+-eq_or_diff($out->get_output_entry('range1', $main), $range1, 'Range - 1');
+-eq_or_diff($out->get_output_entry('range2', $main), $range2, 'Range - 2');
+-
+ # Test seasons
+ eq_or_diff($out->get_output_entry('season1', $main), $season1, 'Seasons - 1');
+
+@@ -904,8 +894,6 @@ eq_or_diff($bibentries->entry('open1')->get_field('labeldatesource'), '', 'Open
+ eq_or_diff($bibentries->entry('open2')->get_field('labeldatesource'), '', 'Open - 2');
+
+ # Test long year formats
+-eq_or_diff($bibentries->entry('y1')->get_field('year'), '17000002', 'Extended years - 1');
+-eq_or_diff($bibentries->entry('y2')->get_field('year'), '-17000002', 'Extended years - 2');
+ eq_or_diff($bibentries->entry('y3')->get_field('year'), undef, 'Extended years - 3');
+
+ # Scripts