Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions srcpkgs/jellyfin-tui/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Template file for 'jellyfin-tui'
pkgname=jellyfin-tui
version=1.4.2
revision=1
build_style=cargo
hostmakedepends="pkg-config sqlite-devel"
makedepends="openssl-devel sqlite-devel mpv-devel"
short_desc="TUI streaming client for the Jellyfin media server"
maintainer="xJayMorex <github@johntaylor.hu>"
license="GPL-3.0-or-later"
homepage="https://github.com/dhonus/jellyfin-tui"
changelog="https://github.com/dhonus/jellyfin-tui/releases"
distfiles="https://github.com/dhonus/jellyfin-tui/archive/refs/tags/v${version}.tar.gz"
checksum=2ed20b9f8da2f713684e516688fc8f4b688c0ef12540ea8893baedc4cbde9961

if [ "$XBPS_TARGET_WORDSIZE" -eq 32 ]; then
broken="Cannot compile libmpv2-sys on 32-bit systems because of overflow"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is overflow?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error[E0080]: attempt to compute `4_usize - 8_usize`, which would overflow
   --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:677:10
    |
677 |         [::std::mem::align_of::<mpv_node__bindgen_ty_1>() - 8usize];
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `12_usize - 16_usize`, which would overflow
   --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:698:26
    |
698 |     ["Size of mpv_node"][::std::mem::size_of::<mpv_node>() - 16usize];
    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `12_usize - 24_usize`, which would overflow
   --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:739:31
    |
739 |     ["Size of mpv_node_list"][::std::mem::size_of::<mpv_node_list>() - 24usize];
    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `8_usize - 16_usize`, which would overflow
   --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:758:32
    |
758 |     ["Size of mpv_byte_array"][::std::mem::size_of::<mpv_byte_array>() - 16usize];
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `12_usize - 24_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:1332:36
     |
1332 | ...property"][::std::mem::size_of::<mpv_event_property>() - 24usize];
     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `16_usize - 32_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:1383:39
     |
1383 | ...essage"][::std::mem::size_of::<mpv_event_log_message>() - 32usize];
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `4_usize - 8_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:1429:43
     |
1429 | ...art_file"][::std::mem::align_of::<mpv_event_start_file>() - 8usize];
     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `28_usize - 32_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:1470:36
     |
1470 | ...end_file"][::std::mem::size_of::<mpv_event_end_file>() - 32usize];
     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `8_usize - 16_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:1496:10
     |
1496 |         [::std::mem::size_of::<mpv_event_client_message>() - 16usize];
     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `12_usize - 16_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:1514:32
     |
1514 |     ["Size of mpv_event_hook"][::std::mem::size_of::<mpv_event_hook>() - 16usize];
     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `12_usize - 16_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:1531:35
     |
1531 | ..._command"][::std::mem::size_of::<mpv_event_command>() - 16usize];
     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `20_usize - 24_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:1583:27
     |
1583 |     ["Size of mpv_event"][::std::mem::size_of::<mpv_event>() - 24usize];
     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `8_usize - 16_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:2124:34
     |
2124 |     ["Size of mpv_render_param"][::std::mem::size_of::<mpv_render_param>() - 16usize];
     |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `4_usize - 8_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:2191:10
     |
2191 |         [::std::mem::align_of::<mpv_render_frame_info>() - 8usize];
     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `8_usize - 16_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:2413:40
     |
2413 | ...params"][::std::mem::size_of::<mpv_opengl_init_params>() - 16usize];
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `20_usize - 32_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:2461:39
     |
2461 | ...params"][::std::mem::size_of::<mpv_opengl_drm_params>() - 32usize];
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `20_usize - 32_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:2516:10
     |
2516 |         [::std::mem::size_of::<mpv_opengl_drm_params_v2>() - 32usize];
     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

error[E0080]: attempt to compute `24_usize - 48_usize`, which would overflow
    --> /builddir/jellyfin-tui-1.4.2/target/i686-unknown-linux-gnu/release/build/libmpv2-sys-7c2c108ab10720bc/out/bindings.rs:2624:36
     |
2624 | ..._cb_info"][::std::mem::size_of::<mpv_stream_cb_info>() - 48usize];
     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

For more information about this error, try `rustc --explain E0080`.
error: could not compile `libmpv2-sys` (lib) due to 18 previous errors
warning: build failed, waiting for other jobs to finish...
=> ERROR: jellyfin-tui-1.4.2_1: do_build: '${make_cmd} build ${XBPS_VERBOSE+${make_verbose}} --release --locked --target ${RUST_TARGET} ${configure_args} ${make_build_args}' exited with 101
=> ERROR:   in do_build() at common/build-style/cargo.sh:9

fi

pre_build() {
cargo remove souvlaki --target 'cfg(target_os = "linux")'
cargo add souvlaki@0.8.3 --target 'cfg(target_os = "linux")'
}