mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #1457] [MERGED] Fix cross compilation for armv6hf (Raspberry Pi 1) #1403
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1403
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/1457
Author: @starypatyk
Created: 1/24/2025
Status: ✅ Merged
Merged: 2/3/2025
Merged by: @photovoltex
Base:
dev← Head:fix_rp1_build📝 Commits (6)
faeaf50Use ring instead of aws-lc as the default backend for hyper-rustls0f497ccCross-compile with libmdns3026d03Simplify Docker image to cross-compile for armv6hf (RPi 1)6bb009aRevert "Use ring instead of aws-lc as the default backend for hyper-rustls"765f1f2Fix bindgen issues (aws-lc-rs) when cross-compiling for armv6hfab1102aAdd git to the Docker image for cross-compiling📊 Changes
4 files changed (+22 additions, -23 deletions)
View changed files
📝
contrib/Dockerfile(+5 -4)📝
contrib/cross-compile-armv6hf/Dockerfile(+5 -10)📝
contrib/cross-compile-armv6hf/docker-build.sh(+8 -5)📝
contrib/docker-build.sh(+4 -4)📄 Description
The Docker image intended to cross-compile librespot for armv6hf (i.e. Raspberry Pi 1) did not work for some time.
Changes proposed here attempt to fix this:
CommitReverted in https://github.com/librespot-org/librespot/pull/1457/commits/6bb009af83ac737c60c99efbf5d8598f6debd3d8github.com/librespot-org/librespot@faeaf506d6changes the default tls library from aws-lc-rs to ring as suggested by @kingosticks in #1382 (commit:github.com/kingosticks/librespot@24bbc6314c). I tried to compile aws-lc-rs for armv6hf, but did not succeed. 😞 I understand that this change might be controversial - I am open to discuss this.github.com/librespot-org/librespot@0f497cc690adds with-libmdns to the list of features - to compensate for the changes made in #1347.github.com/librespot-org/librespot@3026d030b5is just a small clean-up of the Docker image and the script used to build librespot.With these changes in place I have been able to cross-compile librespot for armv6hf and verify that it runs as expected on a Raspberry Pi 1.
I have also verified builds using Docker for aarch64 and x86_64.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.