Skip to content

Packages (macOS): adds pkgsrc detection - #2629

Open
Saadanjum0 wants to merge 1 commit into
fastfetch-cli:devfrom
Saadanjum0:fix/pkgsrc-macos
Open

Saadanjum0 wants to merge 1 commit into
fastfetch-cli:devfrom
Saadanjum0:fix/pkgsrc-macos

Conversation

@Saadanjum0

Copy link
Copy Markdown

Fixes the report in #2587.

Problem: pkgsrc packages are never counted on macOS, even though the pkgsrc package manager is supported on NetBSD, Linux and SunOS.

Cause: packages_apple.c has no PKGSRC branch.

Fix: count the entries in /opt/pkg/pkgdb, the default pkgsrc bootstrap prefix on macOS, the same way the NetBSD implementation does for /usr/pkg/pkgdb. Also adds a changelog entry.

Testing: built on macOS (arm64) with the project's CMake setup, the build succeeds and fastfetch runs normally. On a machine without /opt/pkg the count stays 0 and the module output is unchanged. I have not verified against a real pkgsrc install on macOS.

This branch has not been deployed

No deployments
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.

1 participant