<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/21f97f5bd3e658fce5a245e8900aa9b5914006f1">https://github.com/macports/macports-ports/commit/21f97f5bd3e658fce5a245e8900aa9b5914006f1</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 21f97f5bd3e cpufetch: update to 1.04
</span>21f97f5bd3e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 21f97f5bd3e658fce5a245e8900aa9b5914006f1
</span>Author: Marius Schamschula <mschamschula@gmail.com>
AuthorDate: Sat May 6 05:47:22 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> cpufetch: update to 1.04
</span>---
sysutils/cpufetch/Portfile | 13 ++-
sysutils/cpufetch/files/patch-1.03.diff | 138 --------------------------------
2 files changed, 5 insertions(+), 146 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/cpufetch/Portfile b/sysutils/cpufetch/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b0b3bab1093..ddedb7f74d4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/cpufetch/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/cpufetch/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,8 +4,8 @@ PortSystem 1.0
</span> PortGroup github 1.0
PortGroup makefile 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup Dr-Noob cpufetch 1.03 v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup Dr-Noob cpufetch 1.04 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> categories sysutils
license GPL-2
maintainers {mps @Schamschula} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,9 +13,9 @@ description cpufetch is a command-line tool written in C that displays t
</span> information in a clean and beautiful way
long_description {*}${description}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 ee56610979bfa57274b78b1ad5eca6d2e3ba8063 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 1b0c13f766155dd50aa93737fcfdb2d09024d908012f5cbcd0c41646febc9788 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 2770265
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 c18046739ad065992da3b5b4e842144954364f23 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 7cb864f3aaeca899d722beca5e3a2c11fd32460109e4ec0c0b7eea0524030298 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 2780046
</span>
use_configure no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,9 +36,6 @@ platform powerpc {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# see https://github.com/Dr-Noob/cpufetch/issues/168
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append patch-1.03.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> destroot {
xinstall -m 0755 ${worksrcpath}/cpufetch ${destroot}${prefix}/bin
xinstall -m 0644 ${worksrcpath}/cpufetch.1 ${destroot}${prefix}/share/man/man1
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/cpufetch/files/patch-1.03.diff b/sysutils/cpufetch/files/patch-1.03.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index b54794d5c87..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/cpufetch/files/patch-1.03.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,138 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/src/x86/apic.c b/src/x86/apic.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 2d9ecf7..1edcfc4 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/x86/apic.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/x86/apic.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -102,6 +102,7 @@ bool bind_to_cpu(int cpu_id) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __linux__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int get_total_cores_module(int total_cores, int module) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int total_modules = 2;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int32_t current_module_idx = -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -154,6 +155,7 @@ int get_total_cores_module(int total_cores, int module) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- //printf("Module %d has %d cores\n", module, cores_in_module);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return cores_in_module;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- bool fill_topo_masks_apic(struct topology* topo) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uint32_t eax = 0x00000001;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/src/x86/apic.h b/src/x86/apic.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 98b6337..0f79995 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/x86/apic.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/x86/apic.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -21,6 +21,8 @@ uint32_t is_smt_enabled_amd(struct topology* topo);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- bool bind_to_cpu(int cpu_id);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __linux__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int get_total_cores_module(int total_cores, int module);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/src/x86/cpuid.c b/src/x86/cpuid.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index bdc397d..b433fa9 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/x86/cpuid.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/x86/cpuid.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -398,6 +398,10 @@ bool set_cpu_module(int m, int total_modules, int32_t* first_core) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return false;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ // This is a normal architecture
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ *first_core = 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return true;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -652,7 +656,11 @@ struct topology* get_topology_info(struct cpuInfo* cpu, struct cache* cach, int
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if(cpu->hybrid_flag) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- topo->total_cores_module = get_total_cores_module(topo->total_cores, module);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #ifdef __linux__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ topo->total_cores_module = get_total_cores_module(topo->total_cores, module);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ topo->total_cores_module = topo->total_cores;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- topo->total_cores_module = topo->total_cores;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git src/common/cpu.c src/common/cpu.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 5cbbf9d..2faa4bb 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/common/cpu.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/common/cpu.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -16,8 +16,6 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "../arm/uarch.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--#define UNUSED(x) (void)(x)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define STRING_YES "Yes"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define STRING_NO "No"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define STRING_NONE "None"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git src/common/global.h src/common/global.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 5e5a0b3..4b61c4e 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/common/global.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/common/global.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -5,6 +5,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stddef.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define STRING_UNKNOWN "Unknown"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#define UNUSED(x) (void)(x)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- void set_log_level(bool verbose);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- void printWarn(const char *fmt, ...);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git src/x86/apic.c src/x86/apic.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 1edcfc4..1757110 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/x86/apic.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/x86/apic.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -7,8 +7,6 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #elif defined __FreeBSD__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <sys/param.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <sys/cpuset.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--#elif defined __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- #define UNUSED(x) (void)(x)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -355,6 +353,7 @@ void add_apic_to_array(uint32_t apic, uint32_t* apic_ids, int n) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- bool fill_apic_ids(uint32_t* apic_ids, int first_core, int n, bool x2apic_id) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- // macOS extremely dirty approach...
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ UNUSED(first_core);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- printf("cpufetch is computing APIC IDs, please wait...\n");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- bool end = false;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uint32_t apic;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git src/x86/cpuid.c src/x86/cpuid.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index b433fa9..fdc8869 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/x86/cpuid.c.orig 2023-01-05 04:17:49
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/x86/cpuid.c 2023-01-06 08:04:53
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -356,6 +356,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- bool set_cpu_module(int m, int total_modules, int32_t* first_core) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if(total_modules > 1) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ UNUSED(m);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ printBug("Hybrid architectures are not supported under macOS");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return false;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- // We have a hybrid architecture.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- // 1. Find the first core from module m
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int32_t core_id = -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -397,6 +402,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if(!bind_to_cpu(core_id)) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return false;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return true;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -655,6 +661,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- topo->total_cores_module = get_total_cores_module(topo->total_cores, module);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ UNUSED(module);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- topo->total_cores_module = topo->total_cores;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span></pre><pre style='margin:0'>
</pre>