guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#71781] [PATCH v4 03/29] gnu: libmateweather: Update to 1.28.0.


From: Andy Tai
Subject: [bug#71781] [PATCH v4 03/29] gnu: libmateweather: Update to 1.28.0.
Date: Thu, 11 Jul 2024 00:57:34 -0700

* gnu/packages/mate.scm (libmateweather): Update to 1.28.0
* gnu/packages/patches/libmateweather-use-TZDIR.patch: Removed.
* gnu/local.mk: Update accordingly.

Change-Id: I7432dd65bcf00e9f44d610fad337b629714fb3d2
---
 gnu/local.mk                                  |  1 -
 gnu/packages/mate.scm                         |  6 +--
 .../patches/libmateweather-use-TZDIR.patch    | 42 -------------------
 3 files changed, 2 insertions(+), 47 deletions(-)
 delete mode 100644 gnu/packages/patches/libmateweather-use-TZDIR.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 282cf30f7f..ce55e5a3c7 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1636,7 +1636,6 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/libmad-length-check.patch               \
   %D%/packages/patches/libmad-md_size.patch                    \
   %D%/packages/patches/libmad-mips-newgcc.patch                        \
-  %D%/packages/patches/libmateweather-use-TZDIR.patch          \
   %D%/packages/patches/libmp4v2-c++11.patch                    \
   %D%/packages/patches/libmpeg2-arm-private-symbols.patch      \
   %D%/packages/patches/libmpeg2-global-symbol-test.patch       \
diff --git a/gnu/packages/mate.scm b/gnu/packages/mate.scm
index 397b8158c7..49d592226f 100644
--- a/gnu/packages/mate.scm
+++ b/gnu/packages/mate.scm
@@ -253,16 +253,14 @@ (define-public mate-desktop
 (define-public libmateweather
   (package
     (name "libmateweather")
-    (version "1.26.1")
+    (version "1.28.0")
     (source
      (origin
        (method url-fetch)
        (uri (string-append "mirror://mate/" (version-major+minor version) "/"
                            "libmateweather-" version ".tar.xz"))
        (sha256
-        (base32 "0fpgc2l46024j2sqqsvclg9c6x33hyjk2zbg5h74v7cf9c7rj062"))
-       (patches
-        (list (search-patch "libmateweather-use-TZDIR.patch")))))
+        (base32 "1dfj68q3x9camd7h94pcwv8a5969cv5d4p979gcbk4xknpg76hsm"))))
     (build-system gnu-build-system)
     (arguments
      '(#:configure-flags
diff --git a/gnu/packages/patches/libmateweather-use-TZDIR.patch 
b/gnu/packages/patches/libmateweather-use-TZDIR.patch
deleted file mode 100644
index 5f72043986..0000000000
--- a/gnu/packages/patches/libmateweather-use-TZDIR.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 109fef8208188ddf4be76d6899f7d8fde5b8b3be Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@member.fsf.org>
-Date: Sat, 22 Jul 2023 14:40:31 +0800
-Subject: [PATCH] Use TZDIR for ZONEINFO_DIR if the variable is set.
-
----
- libmateweather/mateweather-timezone.c | 8 +++++---
- 1 file changed, 5 insertions(+), 3 deletions(-)
-
-diff --git a/libmateweather/mateweather-timezone.c 
b/libmateweather/mateweather-timezone.c
-index 2754728..6c858c4 100644
---- a/libmateweather/mateweather-timezone.c
-+++ b/libmateweather/mateweather-timezone.c
-@@ -61,7 +61,7 @@ static gboolean
- parse_tzdata (const char *tzname, time_t start, time_t end,
-             int *offset, gboolean *has_dst, int *dst_offset)
- {
--    char *filename, *contents;
-+    char *tzdir, *filename, *contents;
-     gsize length;
-     int timecnt, transitions_size, ttinfo_map_size;
-     int initial_transition = -1, second_transition = -1;
-@@ -71,7 +71,10 @@ parse_tzdata (const char *tzname, time_t start, time_t end,
-     char initial_isdst, second_isdst;
-     int i;
- 
--    filename = g_build_filename (ZONEINFO_DIR, tzname, NULL);
-+    tzdir = g_getenv("TZDIR");
-+    if (tzdir == NULL)
-+      tzdir = ZONEINFO_DIR;
-+    filename = g_build_filename (tzdir, tzname, NULL);
-     if (!g_file_get_contents (filename, &contents, &length, NULL)) {
-       g_free (filename);
-       return FALSE;
-@@ -403,4 +406,3 @@ mateweather_timezone_get_dst_offset (MateWeatherTimezone 
*zone)
-     g_return_val_if_fail (zone->has_dst, 0);
-     return zone->dst_offset;
- }
--
--- 
-2.41.0
-
-- 
2.34.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]