git: 04e2b6e7c0ae - main - comms/hamlib: Newest c compiler in 14 is pickier
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Feb 2023 18:25:31 UTC
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 + {