diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2023-05-17 20:23:13 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2023-05-17 20:23:13 +0000 |
commit | ec60b2c5aab8cf8d270075f742808b7b5a620488 (patch) | |
tree | fb072b4d403997adb66b442b98b2e02951cecdbf | |
parent | 76b5cdb98670fc147fc5df8bf65e086134d0b3f7 (diff) | |
download | ports-ec60b2c5aab8cf8d270075f742808b7b5a620488.tar.gz ports-ec60b2c5aab8cf8d270075f742808b7b5a620488.zip |
sysutils/conky: Update to 1.19.2
Add patch to fix build.
Patch submitted upstream: https://github.com/brndnmtthws/conky/pull/1539
-rw-r--r-- | sysutils/conky/Makefile | 2 | ||||
-rw-r--r-- | sysutils/conky/distinfo | 6 | ||||
-rw-r--r-- | sysutils/conky/files/patch-src_freebsd.cc | 18 |
3 files changed, 22 insertions, 4 deletions
diff --git a/sysutils/conky/Makefile b/sysutils/conky/Makefile index 01f28d4b8351..f4978a5879fd 100644 --- a/sysutils/conky/Makefile +++ b/sysutils/conky/Makefile @@ -1,5 +1,5 @@ PORTNAME= conky -PORTVERSION= 1.19.1 +PORTVERSION= 1.19.2 DISTVERSIONPREFIX= v CATEGORIES= sysutils diff --git a/sysutils/conky/distinfo b/sysutils/conky/distinfo index d98ba31ca367..fafda699872d 100644 --- a/sysutils/conky/distinfo +++ b/sysutils/conky/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1681202221 -SHA256 (brndnmtthws-conky-v1.19.1_GH0.tar.gz) = ad2e6b0b616a85b75901213ec648ee10e09198ea1b5bdc545e799431966abd0c -SIZE (brndnmtthws-conky-v1.19.1_GH0.tar.gz) = 1713862 +TIMESTAMP = 1684307309 +SHA256 (brndnmtthws-conky-v1.19.2_GH0.tar.gz) = 8ad2050665bcaff3010d90df5a17197647a7b74e9d1793fb888b83e3a4b80d31 +SIZE (brndnmtthws-conky-v1.19.2_GH0.tar.gz) = 1715080 diff --git a/sysutils/conky/files/patch-src_freebsd.cc b/sysutils/conky/files/patch-src_freebsd.cc new file mode 100644 index 000000000000..653f60c006e2 --- /dev/null +++ b/sysutils/conky/files/patch-src_freebsd.cc @@ -0,0 +1,18 @@ +--- src/freebsd.cc.orig 2023-05-15 21:39:11 UTC ++++ src/freebsd.cc +@@ -544,14 +544,12 @@ char get_freq(char *p_client_buffer, size_t client_buf + char get_freq(char *p_client_buffer, size_t client_buffer_size, + const char *p_format, int divisor, unsigned int cpu) { + int freq; +- char *freq_sysctl; ++ char freq_sysctl[16] = {0}; + + if (!p_client_buffer || client_buffer_size <= 0 || !p_format || + divisor <= 0) { + return 0; + } +- +- char freq_sysctl[16] = {0}; + + snprintf(freq_sysctl, sizeof(freq_sysctl), "dev.cpu.%d.freq", (cpu - 1)); + |