Skip to content

cpufetch: update to 1.07.#60446

Open
funk443 wants to merge 1 commit intovoid-linux:masterfrom
funk443:cpufetch107
Open

cpufetch: update to 1.07.#60446
funk443 wants to merge 1 commit intovoid-linux:masterfrom
funk443:cpufetch107

Conversation

@funk443
Copy link
Copy Markdown
Contributor

@funk443 funk443 commented May 9, 2026

Testing the changes

  • I tested the changes in this PR: briefly

Local build testing

  • I built this PR locally for my native architecture, x86_64.
  • I built this PR locally for these architectures (if supported. mark crossbuilds):
    • aarch64 (cross)

Comment thread srcpkgs/cpufetch/patches/fix-musl.patch Outdated
if ((ret = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpus)) != 0) {
printErr("pthread_attr_setaffinity_np: %s", strerror(ret));
+#else
+ if ((ret = pthread_setaffinity_np(*compute_th, sizeof(cpu_set_t), &cpus)) != 0) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch looks wrong. compute_th is an array in this is inside the loop *compute_th is always just the first thread.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not even sure if that would even work if corrected, since you point it at a thread that does not exist yet, and memory that is not initialized.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

@funk443 funk443 May 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should disallow builds on musl platforms? Since this is some kind of GNU magic that doesn't exist on musl.

It could be running fine with the Alpine patch tho, I don't see any bug reports about it on Alpine gitlab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants