pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/sc-im math/sc-im: Patch to build on Solaris-likes



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4567ff0151c5
branches:  trunk
changeset: 406518:4567ff0151c5
user:      sjmulder <sjmulder%pkgsrc.org@localhost>
date:      Wed Dec 25 17:34:10 2019 +0000

description:
math/sc-im: Patch to build on Solaris-likes

diffstat:

 math/sc-im/Makefile                 |   4 ++--
 math/sc-im/patches/patch-src_conf.c |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 504ae116accd -r 4567ff0151c5 math/sc-im/Makefile
--- a/math/sc-im/Makefile       Wed Dec 25 14:29:24 2019 +0000
+++ b/math/sc-im/Makefile       Wed Dec 25 17:34:10 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2019/12/23 13:44:41 sjmulder Exp $
+# $NetBSD: Makefile,v 1.9 2019/12/25 17:34:10 sjmulder Exp $
 
 DISTNAME=      sc-im-0.7.0
-PKGREVISION=   6
+PKGREVISION=   7
 CATEGORIES=    math
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=andmarti1424/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
diff -r 504ae116accd -r 4567ff0151c5 math/sc-im/patches/patch-src_conf.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/sc-im/patches/patch-src_conf.c       Wed Dec 25 17:34:10 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_conf.c,v 1.1 2019/12/25 17:34:11 sjmulder Exp $
+
+Fix build on Solaris-likes which don't have tm_gmtoff.
+
+--- src/conf.c.orig    2017-12-13 17:48:59.000000000 +0000
++++ src/conf.c
+@@ -98,8 +98,8 @@ void store_default_config_values() {
+     put(user_conf_d, "default_paste_from_clipboard_cmd", "");
+     #endif
+ 
+-    // we calc get gmtoffset
+-    #ifdef USELOCALE
++    // Calculate GMT offset (not on Solaris, doesn't have tm_gmtoff)
++    #if defined(USELOCALE) && !defined(__sun)
+     time_t t = time(NULL);
+     struct tm * lt = localtime(&t);
+     char strgmtoff[7];



Home | Main Index | Thread Index | Old Index