Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to fix build. Patch submitted upstream: brndnmtthws/conky#1539
- Loading branch information
1 parent
76b5cdb
commit ec60b2c
Showing
3 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
PORTNAME= conky | ||
PORTVERSION= 1.19.1 | ||
PORTVERSION= 1.19.2 | ||
DISTVERSIONPREFIX= v | ||
CATEGORIES= sysutils | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
|