pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/sc-im
Module Name: pkgsrc
Committed By: sjmulder
Date: Wed Dec 25 17:34:11 UTC 2019
Modified Files:
pkgsrc/math/sc-im: Makefile
Added Files:
pkgsrc/math/sc-im/patches: patch-src_conf.c
Log Message:
math/sc-im: Patch to build on Solaris-likes
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/math/sc-im/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/math/sc-im/patches/patch-src_conf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/math/sc-im/Makefile
diff -u pkgsrc/math/sc-im/Makefile:1.8 pkgsrc/math/sc-im/Makefile:1.9
--- pkgsrc/math/sc-im/Makefile:1.8 Mon Dec 23 13:44:41 2019
+++ pkgsrc/math/sc-im/Makefile Wed Dec 25 17:34:10 2019
@@ -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}
Added files:
Index: pkgsrc/math/sc-im/patches/patch-src_conf.c
diff -u /dev/null pkgsrc/math/sc-im/patches/patch-src_conf.c:1.1
--- /dev/null Wed Dec 25 17:34:11 2019
+++ pkgsrc/math/sc-im/patches/patch-src_conf.c Wed Dec 25 17:34:11 2019
@@ -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