Skip to content

Commit b19e4f8

Browse files
authored
update cross-compile oldstable debian to stable(trixie) (#1619)
Switch to running the distro provided rustup runtime fixing the issue of failing to build using native-tls.
1 parent 56dc25d commit b19e4f8

3 files changed

Lines changed: 21 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323

2424
### Changed
2525

26+
- [contrib] Switched contrib/Dockerfile to new Debian stable (trixie)
27+
- [core] `get_radio_for_track` function changed from accepting a `SpotifyId` to accepting a `SpotifyUri` (breaking)
28+
- [core] Changed return type of `get_extended_metadata` to return `BatchedExtensionResponse` (breaking)
29+
- [core] Changed parameter of `get_<item>_metadata` from `SpotifyId` to `SpotifyUri` (breaking)
2630
- [metadata] Changed arguments for `Metadata` trait from `&SpotifyId` to `&SpotifyUri` (breaking)
2731
- [playback] Changed type of `SpotifyId` fields in `PlayerEvent` members to `SpotifyUri` (breaking)
2832
- [playback] `load` function changed from accepting a `SpotifyId` to accepting a `SpotifyUri` (breaking)
2933
- [playback] `preload` function changed from accepting a `SpotifyId` to accepting a `SpotifyUri` (breaking)
30-
- [core] `get_radio_for_track` function changed from accepting a `SpotifyId` to accepting a `SpotifyUri` (breaking)
31-
- [core] Changed return type of `get_extended_metadata` to return `BatchedExtensionResponse` (breaking)
32-
- [core] Changed parameter of `get_<item>_metadata` from `SpotifyId` to `SpotifyUri` (breaking)
3334

3435
### Fixed
3536

@@ -56,6 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5657

5758
### Fixed
5859

60+
- [core] Fix issue where building with native-tls would fail
5961
- [connect] Repeat context will not go into autoplay anymore and triggering autoplay while shuffling shouldn't reshuffle anymore
6062
- [connect] Only deletes the connect state on dealer shutdown instead on disconnecting
6163
- [core] Fixed a problem where in `spclient` where an HTTP/411 error was thrown because the header was set wrong

contrib/Dockerfile

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@
88
# The compiled binaries will be located in /tmp/librespot-build
99
#
1010
# If only one architecture is desired, cargo can be invoked directly with the appropriate options :
11-
# $ docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --no-default-features --features "alsa-backend with-libmdns rustls-tls-native-roots"
12-
# $ docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features "alsa-backend with-libmdns rustls-tls-native-roots"
13-
# $ docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target arm-unknown-linux-gnueabi --no-default-features --features "alsa-backend with-libmdns rustls-tls-native-roots"
14-
# $ docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target aarch64-unknown-linux-gnu --no-default-features --features "alsa-backend with-libmdns rustls-tls-native-roots"
11+
# $ docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --no-default-features --features "alsa-backend with-libmdns native-tls"
12+
# $ docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features "alsa-backend with-libmdns native-tls"
13+
# $ docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target arm-unknown-linux-gnueabi --no-default-features --features "alsa-backend with-libmdns native-tls"
14+
# $ docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target aarch64-unknown-linux-gnu --no-default-features --features "alsa-backend with-libmdns native-tls"
1515

16-
FROM debian:bookworm
17-
18-
RUN echo "deb http://deb.debian.org/debian bookworm main" > /etc/apt/sources.list && \
19-
echo "deb http://deb.debian.org/debian bookworm-updates main" >> /etc/apt/sources.list && \
20-
echo "deb http://deb.debian.org/debian-security bookworm-security main" >> /etc/apt/sources.list
16+
FROM debian:trixie
2117

2218
RUN dpkg --add-architecture arm64 && \
2319
dpkg --add-architecture armhf && \
@@ -40,10 +36,15 @@ RUN dpkg --add-architecture arm64 && \
4036
libpulse0:arm64 \
4137
libpulse0:armel \
4238
libpulse0:armhf \
43-
pkg-config
39+
libssl-dev \
40+
libssl-dev:arm64 \
41+
libssl-dev:armel \
42+
libssl-dev:armhf \
43+
pkg-config \
44+
rustup
4445

4546
ENV PATH="/root/.cargo/bin/:${PATH}"
46-
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.85 -y && \
47+
RUN rustup default stable && \
4748
rustup target add aarch64-unknown-linux-gnu && \
4849
rustup target add arm-unknown-linux-gnueabi && \
4950
rustup target add arm-unknown-linux-gnueabihf && \

contrib/docker-build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -eux
33

4-
cargo build --release --no-default-features --features "alsa-backend with-libmdns rustls-tls-native-roots"
5-
cargo build --release --target aarch64-unknown-linux-gnu --no-default-features --features "alsa-backend with-libmdns rustls-tls-native-roots"
6-
cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features "alsa-backend with-libmdns rustls-tls-native-roots"
7-
cargo build --release --target arm-unknown-linux-gnueabi --no-default-features --features "alsa-backend with-libmdns rustls-tls-native-roots"
4+
cargo build --release --no-default-features --features "alsa-backend with-libmdns native-tls"
5+
cargo build --release --target aarch64-unknown-linux-gnu --no-default-features --features "alsa-backend with-libmdns native-tls"
6+
cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features "alsa-backend with-libmdns native-tls"
7+
cargo build --release --target arm-unknown-linux-gnueabi --no-default-features --features "alsa-backend with-libmdns native-tls"

0 commit comments

Comments
 (0)