fastfetch-cli / fastfetch-cli/fastfetch

[BUG] pkgsrc detection on macOS

Offen Anfängerfreundlich
#2,587 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
C
Sterne
24.6k
Forks
890
Ø Merge
1 T. 4 Std.
Gemergte PRs (30 T.)
15

Beschreibung

### Read the FAQ first

- [x] I have checked the FAQ but the issue is not covered

### Description

I tried to install `fastfetch` from `pkgsrc` on macOS, but the package manager detection logic on macOS does not implemented the `pkgsrc` detection.
I actually tried to modify the source code by porting the `pkgsrc` detection logic on NetBSD (`src/detection/packages/packages_nbsd.c`) to macOS, and change the `pkgdb` path to match the common `/opt/pkg` bootstrap prefix on macOS, it does work.
I would like to request this issue being fixed, in order to provide `pkgsrc` detection out-of-box on macOS, without any manual modifications required.
Thank you.

### Version used

fastfetch 2.62.1-63 (aarch64)

### Bug prevalence

Always

### Regression

No

### Installation

Package manager

### Package manager

pkgsrc

### Screenshots

Following is a screenshot of `pkgsrc` detection working on macOS after manual source code modification.

Image

### Configuration

```jsonc

```

### System information

```jsonc
not relevant
```

### Features built-in

```text
% fastfetch --list-features
threads
zlib
sqlite3
libzfs
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit dem Lesen von src/detection/packages/packages_nbsd.c. Suche anschließend den Erkennungspfad für Paketmanager unter macOS und vergleiche dessen unterstützte Paketmanager mit der gemeldeten pkgsrc-Logik. Überprüfe die Änderung mit einer pkgsrc-Installation unter macOS, die das standardmäßige Präfix /opt/pkg verwendet, und bestätige, dass fastfetch pkgsrc ohne manuelle Änderungen am Quellcode meldet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
c, macos
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
74/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.