Debian Codegraph @

debian/patches/workarounds/Skip-invalid_viewbox-test-on-32-bit-x86.patch

raw
1 From: Simon McVittie <[email protected]>
2 Date: Mon, 11 May 2020 14:00:13 +0100
3 Subject: Skip invalid_viewbox test on 32-bit x86
4
5 This test appears to be failing on i386, possibly due to extended
6 precision in the i387 FPU. Building with -mfpmath=sse might resolve this,
7 but that isn't currently allowed in Debian due to our i386 baseline
8 being 20 years old (in particular no SSE and no SSE2).
9
10 Signed-off-by: Simon McVittie <[email protected]>
11 Forwarded: not-needed, Debian-specific workaround
12 ---
13 rsvg/src/aspect_ratio.rs | 1 +
14 1 file changed, 1 insertion(+)
15
16 diff --git a/rsvg/src/aspect_ratio.rs b/rsvg/src/aspect_ratio.rs
17 index 91502cf..8434a64 100644
18 --- a/rsvg/src/aspect_ratio.rs
19 +++ b/rsvg/src/aspect_ratio.rs
20 @@ -457,6 +457,7 @@ mod tests {
21 }
22
23 #[test]
24 + #[cfg(not(target_arch = "x86"))]
25 fn invalid_viewbox() {
26 let a = AspectRatio::default();
27 let t = a.viewport_to_viewbox_transform(