diff options
author | sjmulder <sjmulder@pkgsrc.org> | 2019-12-25 17:34:10 +0000 |
---|---|---|
committer | sjmulder <sjmulder@pkgsrc.org> | 2019-12-25 17:34:10 +0000 |
commit | 1262ad92038cc7cde6d98041cc876225d5368d13 (patch) | |
tree | a7716eaecba96b2d45930f547d0f7bc963c0307d /math/sc-im | |
parent | 108d1e4db39a563315d5f6343213e8f5cc6a664d (diff) | |
download | pkgsrc-1262ad92038cc7cde6d98041cc876225d5368d13.tar.gz |
math/sc-im: Patch to build on Solaris-likes
Diffstat (limited to 'math/sc-im')
-rw-r--r-- | math/sc-im/Makefile | 4 | ||||
-rw-r--r-- | math/sc-im/patches/patch-src_conf.c | 17 |
2 files changed, 19 insertions, 2 deletions
diff --git a/math/sc-im/Makefile b/math/sc-im/Makefile index f2e7b28f54e..bd1282dc4b8 100644 --- a/math/sc-im/Makefile +++ b/math/sc-im/Makefile @@ -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 --git a/math/sc-im/patches/patch-src_conf.c b/math/sc-im/patches/patch-src_conf.c new file mode 100644 index 00000000000..fa34794fc3f --- /dev/null +++ b/math/sc-im/patches/patch-src_conf.c @@ -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]; |