#1111814 hx: FTBFS on 32 bit due to type mismatch

Package:
src:hx
Source:
src:hx
Submitter:
Bastian Germann
Date:
2025-09-02 10:47:01 UTC
Severity:
normal
Tags:
#1111814#5
Date:
2025-08-22 10:50:16 UTC
From:
To:
The 32 bit buildds fail for the reason documented at https://github.com/helix-editor/helix/issues/13264

   Compiling helix-view v25.1.1 (/build/reproducible-path/hx-25.01.1+20250505/helix-view)
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=helix_view ...
error[E0308]: mismatched types
   --> helix-view/src/theme.rs:310:40
    |
310 |           Highlight(usize::from_ne_bytes([
    |  ___________________--------------------_^
    | |                   |
    | |                   arguments to this function are incorrect
311 | |             b,
312 | |             g,
313 | |             r,
...   |
318 | |             u8::MAX,
319 | |         ]))
    | |_________^ expected an array with a size of 4, found one with a size of 8
    |
note: associated function defined here
   --> /usr/src/rustc-1.85.0/library/core/src/num/mod.rs:1190:5
    = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

The fix is a side effect of a bigger refactoring with a new crate.

#1111814#10
Date:
2025-08-22 11:14:41 UTC
From:
To:
Thanks for reporting, Bastian,

Quoting Bastian Germann (2025-08-22 12:50:16)
[...]
it, they've flagged it as solved through the use of tree-house, but in
Debian we do use tree-house)(embedded with the hx source package) yet
the failures occur.

 - Jonas

#1111814#15
Date:
2025-08-22 11:25:44 UTC
From:
To:
Quoting Jonas Smedegaard (2025-08-22 13:14:41)
that work is sitting on my machine unfinished, because it requires a
newer rust-regex-cursor.

 - Jonas

#1111814#22
Date:
2025-08-22 12:00:39 UTC
From:
To:
I have pushed a fix resembling the upstream change to the git repo.
#1111814#31
Date:
2025-09-02 10:45:33 UTC
From:
To:
I am uploading the git changes as NMU to DELAYED/10.
Please find the debdiff with the same changes attached.