[GH-ISSUE #220] FreeBSD support #144

Closed
opened 2026-02-28 14:25:45 +03:00 by kerem · 5 comments
Owner

Originally created by @biancalana on GitHub (Sep 23, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/220

I'm intending in running on FreeBSD, actually i'm also working on port (native package).

I came across the following error:

failed obtaining client token: invalid status code from clienttoken: 400

Worked around adding freebsd to the case at that line:

github.com/devgianlu/go-librespot@f0c13a97fa/platform.go (L130)

What do you think is the proper fix? Create a PlatformSpecificData_DesktopFreeBSD or leave a case clause with linux and freebsd ?

Originally created by @biancalana on GitHub (Sep 23, 2025). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/220 I'm intending in running on FreeBSD, actually i'm also working on port (native package). I came across the following error: ``` failed obtaining client token: invalid status code from clienttoken: 400 ``` Worked around adding freebsd to the case at that line: https://github.com/devgianlu/go-librespot/blob/f0c13a97fa5663f6597d87d586c1446467b8bc4a/platform.go#L130 What do you think is the proper fix? Create a PlatformSpecificData_DesktopFreeBSD or leave a case clause with linux and freebsd ?
kerem 2026-02-28 14:25:45 +03:00
Author
Owner

@devgianlu commented on GitHub (Sep 23, 2025):

Spotify doesn't seem to have a specific platform data object for FreeBSD: github.com/devgianlu/go-librespot@634c95079d/proto/spotify/clienttoken/data/v0/connectivity.proto (L10-L18)

Best bet is probably to use the Linux one.

<!-- gh-comment-id:3322766069 --> @devgianlu commented on GitHub (Sep 23, 2025): Spotify doesn't seem to have a specific platform data object for FreeBSD: https://github.com/devgianlu/go-librespot/blob/634c95079df11af1f9233d6e31bd1907328e9dc3/proto/spotify/clienttoken/data/v0/connectivity.proto#L10-L18 Best bet is probably to use the Linux one.
Author
Owner

@biancalana commented on GitHub (Sep 23, 2025):

There are some references for FreeBSD in the code:

github.com/devgianlu/go-librespot@f0c13a97fa/platform.go (L16)
github.com/devgianlu/go-librespot@f0c13a97fa/proto/spotify/keyexchange.proto (L50)
github.com/devgianlu/go-librespot@f0c13a97fa/proto/spotify/authentication.proto (L106)

Anyway, I'm going forward with the tests and let you know

<!-- gh-comment-id:3324397157 --> @biancalana commented on GitHub (Sep 23, 2025): There are some references for FreeBSD in the code: https://github.com/devgianlu/go-librespot/blob/f0c13a97fa5663f6597d87d586c1446467b8bc4a/platform.go#L16 https://github.com/devgianlu/go-librespot/blob/f0c13a97fa5663f6597d87d586c1446467b8bc4a/proto/spotify/keyexchange.proto#L50 https://github.com/devgianlu/go-librespot/blob/f0c13a97fa5663f6597d87d586c1446467b8bc4a/proto/spotify/authentication.proto#L106 Anyway, I'm going forward with the tests and let you know
Author
Owner

@biancalana commented on GitHub (Sep 25, 2025):

https://github.com/devgianlu/go-librespot/pull/221

<!-- gh-comment-id:3335486092 --> @biancalana commented on GitHub (Sep 25, 2025): https://github.com/devgianlu/go-librespot/pull/221
Author
Owner

@biancalana commented on GitHub (Sep 30, 2025):

do you mind to cut a new release ? I'm working on FreeBSD port and need the latest commits.

<!-- gh-comment-id:3349690053 --> @biancalana commented on GitHub (Sep 30, 2025): do you mind to cut a new release ? I'm working on FreeBSD port and need the latest commits.
Author
Owner

@devgianlu commented on GitHub (Oct 3, 2025):

https://github.com/devgianlu/go-librespot/releases/tag/v0.5.0

<!-- gh-comment-id:3366598866 --> @devgianlu commented on GitHub (Oct 3, 2025): https://github.com/devgianlu/go-librespot/releases/tag/v0.5.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#144
No description provided.