From 3e810b846ab10eca86f8c6c7a3815954f1b77ebd Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 24 Nov 2021 18:22:08 +0100 Subject: gnu: glib-networking: Work around test failure on 32-bit platforms. On 32-bit platforms with a 32-bit 'time_t', we'd get this test failure: GLib-Net:ERROR:../glib-networking-2.70.rc/tls/tests/certificate.c:689:test_certificate_not_valid_after: assertion failed (actual_str == EXPECTED_NOT_VALID_AFTER): ("2037-12-31T23:23:23Z" == "2046-07-25T18:13:10Z") This commit includes the workaround implemented upstream. * gnu/packages/patches/glib-networking-32-bit-time.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/gnome.scm (glib-networking)[arguments]: New field. --- gnu/packages/gnome.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gnu/packages/gnome.scm') diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 6d56d04915..492cebd304 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -4845,6 +4845,17 @@ library.") (patches (search-patches "glib-networking-gnutls-binding.patch")))) (build-system meson-build-system) + (arguments + (if (target-64bit?) + '() + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'work-around-32-bit-time-t + (lambda _ + (invoke "patch" "--force" "-p1" "-i" + #$(local-file + (search-patch + "glib-networking-32-bit-time.patch"))))))))) (native-inputs `(("pkg-config" ,pkg-config) ("gettext" ,gettext-minimal))) -- cgit v1.2.3