Accepting request 923218 from GNOME:Factory

Add libsoup2-extend-test-cert.patch to fix tests after 2027 (boo#1102840) (forwarded request 922724 from bmwiedemann)

OBS-URL: https://build.opensuse.org/request/show/923218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsoup2?expand=0&rev=2
This commit is contained in:
Richard Brown 2021-10-08 20:04:50 +00:00 committed by Git OBS Bridge
commit 524b0350b5
3 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,59 @@
https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/177
From 38a65f080a3168e8af78bdd3e4928debeea2dbd8 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Thu, 18 Feb 2021 09:13:40 +0100
Subject: [PATCH] Extend test cert to 2049
used certtool -u \
--load-ca-privkey ./tests/test-key.pem \
--load-ca-certificate ./tests/test-cert.pem \
--load-certificate ./tests/test-cert.pem
Without this patch, 3 tests failed in 2027
11/29 misc-test FAIL 0.67s (exit status 1)
21/29 server-test FAIL 0.12s (exit status 1)
25/29 timeout-test FAIL 4.08s (killed by signal 5 SIGTRAP)
Background:
As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future.
The usual offset is +15 years, because that is how long I expect some software will be used in some places.
This showed up failing tests in our package build.
See https://reproducible-builds.org/ for why this matters.
---
tests/test-cert.pem | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/test-cert.pem b/tests/test-cert.pem
index ff863b4d..4b8b180d 100644
--- a/tests/test-cert.pem
+++ b/tests/test-cert.pem
@@ -1,6 +1,6 @@
-----BEGIN CERTIFICATE-----
MIIC2zCCAcOgAwIBAgIJALRbg2WnuAAqMA0GCSqGSIb3DQEBCwUAMBQxEjAQBgNV
-BAMMCTEyNy4wLjAuMTAeFw0xNzA2MjAxNDI3MzBaFw0yNzA2MTgxNDI3MzBaMBQx
+BAMMCTEyNy4wLjAuMTAeFw0yMTAyMTgwODA3MzBaFw00OTEyMzEwODA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ujvYh24qYcBbwgZrfvNTm0D52P9JJm0SalTXS
+kwwTj00DWGVfVzJR+wiwYGHRIlyXbHqQSRzv6+z9f/xY5gXw/KpCNYTuOJcXW7w6
+JfMrUnc9pphRUpcLkuuzOMKuB0dtWRc0mZIr7PZHt+0gitNZWA0bDYI3JI9tlK17
+nxBUSpGtJwDgH//b8ek/P0P9a5VzQbBC6lXtQUMdxg7ovfAI//IS8ekBoRKI0Wde
+r2IpM9hKSBU3c2gGXcJC
-----END CERTIFICATE-----
--
GitLab

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Oct 2 01:25:51 UTC 2021 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add libsoup2-extend-test-cert.patch to fix tests after 2027 (boo#1102840)
-------------------------------------------------------------------
Wed Sep 29 10:14:16 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -28,6 +28,7 @@ Source0: https://download.gnome.org/sources/libsoup/2.74/%{_name}-%{versi
Source99: baselibs.conf
# PATCH-FIX-OPENSUSE disable tls_interaction-test https://gitlab.gnome.org/GNOME/libsoup/issues/120
Patch1: libsoup-skip-tls_interaction-test.patch
Patch2: libsoup2-extend-test-cert.patch
BuildRequires: glib-networking
BuildRequires: meson >= 0.50
BuildRequires: pkgconfig