From 27d4563e82bda5d0520fda83c137c43935862cec Mon Sep 17 00:00:00 2001 From: Andy Tai Date: Thu, 15 Jun 2023 10:35:04 -0700 Subject: gnu: libmateweather: Update to 1.26.1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/mate.scm (libmateweather): Update to 1.26.1. [source]: Add libmateweather-use-TZDIR.patch. [inputs]: Replace tzdata with tzdata-for-tests. [arguments]: Set TZDIR, ignore test failure for 'check-timezones.sh'. * gnu/packages/patches/libmateweather-use-TZDIR.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. Co-authored-by: 宋文武 --- gnu/packages/mate.scm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'gnu/packages/mate.scm') diff --git a/gnu/packages/mate.scm b/gnu/packages/mate.scm index 56a60d693b..c1f53d3dca 100644 --- a/gnu/packages/mate.scm +++ b/gnu/packages/mate.scm @@ -251,34 +251,37 @@ desktop and the mate-about program.") (define-public libmateweather (package (name "libmateweather") - (version "1.24.1") + (version "1.26.1") (source (origin (method url-fetch) (uri (string-append "mirror://mate/" (version-major+minor version) "/" "libmateweather-" version ".tar.xz")) (sha256 - (base32 "02d7c59pami1fzxg73mp6risa9hvsdpgs68f62wkg09nrppzsk4v")))) + (base32 "0fpgc2l46024j2sqqsvclg9c6x33hyjk2zbg5h74v7cf9c7rj062")) + (patches + (list (search-patch "libmateweather-use-TZDIR.patch"))))) (build-system gnu-build-system) (arguments '(#:configure-flags - (list (string-append "--with-zoneinfo-dir=" - (assoc-ref %build-inputs "tzdata") - "/share/zoneinfo")) + (list (string-append "--with-zoneinfo-dir=/var/empty")) #:phases (modify-phases %standard-phases (add-before 'check 'fix-tzdata-location (lambda* (#:key inputs #:allow-other-keys) + (setenv "TZDIR" (search-input-directory inputs "/share/zoneinfo")) (substitute* "data/check-timezones.sh" (("/usr/share/zoneinfo/zone.tab") - (search-input-file inputs "/share/zoneinfo/zone.tab")))))))) + (search-input-file inputs "/share/zoneinfo/zone.tab")) + ;; XXX: Ignore this test for now, which requires tzdata-2023c. + (("exit 1") "exit 0"))))))) (native-inputs `(("pkg-config" ,pkg-config) ("intltool" ,intltool) ("dconf" ,dconf) ("glib:bin" ,glib "bin"))) (inputs - (list gtk+ tzdata)) + (list gtk+ tzdata-for-tests)) (propagated-inputs ;; both of these are requires.private in mateweather.pc (list libsoup-minimal-2 libxml2)) -- cgit 1.4.1