Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2023 18:25:31 GMT
From:      Diane Bruce <db@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 04e2b6e7c0ae - main - comms/hamlib: Newest c compiler in 14 is pickier
Message-ID:  <202302161825.31GIPVvP015667@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by db:

URL: https://cgit.FreeBSD.org/ports/commit/?id=04e2b6e7c0aed6a31934b5d5a080d40f07ae9463

commit 04e2b6e7c0aed6a31934b5d5a080d40f07ae9463
Author:     Diane Bruce <db@FreeBSD.org>
AuthorDate: 2023-02-16 18:24:11 +0000
Commit:     Diane Bruce <db@FreeBSD.org>
CommitDate: 2023-02-16 18:24:11 +0000

    comms/hamlib: Newest c compiler in 14 is pickier
    
    Code was trying to use a function as an integer (localtime)
---
 comms/hamlib/Makefile               |  1 +
 comms/hamlib/files/patch-src_misc.c | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/comms/hamlib/Makefile b/comms/hamlib/Makefile
index eb9e4c6c0bb8..9d5c98d9a3c1 100644
--- a/comms/hamlib/Makefile
+++ b/comms/hamlib/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	hamlib
 PORTVERSION=	4.5.3
+PORTREVISION=	1
 CATEGORIES=	comms hamradio
 MASTER_SITES=	SF
 
diff --git a/comms/hamlib/files/patch-src_misc.c b/comms/hamlib/files/patch-src_misc.c
new file mode 100644
index 000000000000..377767cf9d7a
--- /dev/null
+++ b/comms/hamlib/files/patch-src_misc.c
@@ -0,0 +1,12 @@
+--- src/misc.c.orig	2023-01-01 00:12:52 UTC
++++ src/misc.c
+@@ -2581,7 +2581,8 @@ char *date_strget(char *buf, int buflen, int localtime
+     if (localtime)
+     {
+         mytm = localtime_r(&t, &result);
+-        mytimezone = timezone;
++	/* For FreeBSD */
++        mytimezone = mytm->tm_gmtoff;
+     }
+     else
+     {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302161825.31GIPVvP015667>