pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/chat/weechat
Module Name: pkgsrc
Committed By: jperkin
Date: Mon Dec 16 10:55:22 UTC 2024
Modified Files:
pkgsrc/chat/weechat: distinfo
Added Files:
pkgsrc/chat/weechat/patches:
patch-src_plugins_relay_api_relay-api-msg.c
Log Message:
weechat: Fix build on illumos.
To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 pkgsrc/chat/weechat/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/chat/weechat/patches/patch-src_plugins_relay_api_relay-api-msg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/chat/weechat/distinfo
diff -u pkgsrc/chat/weechat/distinfo:1.83 pkgsrc/chat/weechat/distinfo:1.84
--- pkgsrc/chat/weechat/distinfo:1.83 Thu Dec 12 15:45:47 2024
+++ pkgsrc/chat/weechat/distinfo Mon Dec 16 10:55:22 2024
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.83 2024/12/12 15:45:47 ryoon Exp $
+$NetBSD: distinfo,v 1.84 2024/12/16 10:55:22 jperkin Exp $
BLAKE2s (weechat-4.4.4.tar.xz) = 651e2b338db53ba45ec4efcecc5513888bbf3fa73035fb4b95c51780dcd7901f
SHA512 (weechat-4.4.4.tar.xz) = 519c0ce68081a256f78e5a04ee7518393719c8b0cd6edcbeac58ef952d08bebf5b0b2173b0bf103afe09f5e0eb27e2790d0ab3a6475ad346d0056f97069176d4
@@ -7,3 +7,4 @@ SHA1 (patch-cmake_FindNcurses.cmake) = 7
SHA1 (patch-po_CMakeLists.txt) = b5a186dc5e135ef2e1ec5f01f75152fc769867be
SHA1 (patch-src_plugins_lua_CMakeLists.txt) = 08a1b7dfca5dbbdf45a10b466eeac42671fe9edc
SHA1 (patch-src_plugins_perl_weechat-perl.c) = 49e61419ea82157fa54a7847a653625944d3b341
+SHA1 (patch-src_plugins_relay_api_relay-api-msg.c) = 8d5670c6e0ddb1d70e29f23015f0f1422fb63f65
Added files:
Index: pkgsrc/chat/weechat/patches/patch-src_plugins_relay_api_relay-api-msg.c
diff -u /dev/null pkgsrc/chat/weechat/patches/patch-src_plugins_relay_api_relay-api-msg.c:1.1
--- /dev/null Mon Dec 16 10:55:22 2024
+++ pkgsrc/chat/weechat/patches/patch-src_plugins_relay_api_relay-api-msg.c Mon Dec 16 10:55:22 2024
@@ -0,0 +1,33 @@
+$NetBSD: patch-src_plugins_relay_api_relay-api-msg.c,v 1.1 2024/12/16 10:55:22 jperkin Exp $
+
+illumos does not have tm_gmtoff.
+
+--- src/plugins/relay/api/relay-api-msg.c.orig 2024-12-16 10:46:41.984837031 +0000
++++ src/plugins/relay/api/relay-api-msg.c
+@@ -55,6 +55,18 @@
+ cJSON_Create##__json_type ( \
+ weechat_hdata_##__var_type (hdata, pointer, __var_name)));
+
++#if defined(__illumos__)
++#define MSG_ADD_HDATA_TIME_USEC(__json_name, \
++ __var_name, __var_name_usec) \
++ time_value = weechat_hdata_time (hdata, pointer, __var_name); \
++ local_time = localtime (&time_value); \
++ tv.tv_sec = mktime (local_time); \
++ tv.tv_usec = weechat_hdata_integer (hdata, pointer, \
++ __var_name_usec); \
++ weechat_util_strftimeval (str_time, sizeof (str_time), \
++ "%FT%T.%fZ", &tv); \
++ MSG_ADD_STR_BUF(__json_name, str_time);
++#else
+ #define MSG_ADD_HDATA_TIME_USEC(__json_name, \
+ __var_name, __var_name_usec) \
+ time_value = weechat_hdata_time (hdata, pointer, __var_name); \
+@@ -67,6 +79,7 @@
+ weechat_util_strftimeval (str_time, sizeof (str_time), \
+ "%FT%T.%fZ", &tv); \
+ MSG_ADD_STR_BUF(__json_name, str_time);
++#endif
+
+ #define MSG_ADD_HDATA_STR(__json_name, __var_name) \
+ ptr_string = weechat_hdata_string (hdata, pointer, __var_name); \
Home |
Main Index |
Thread Index |
Old Index