~lattis/muon#108: 
basu fails to build with muon

Hey there, I am trying to build basu using muon on a custom Linux distribution that uses musl libc. I am receiving the following error:

basu-v0.2.1/meson.build:208:47: error unable to parse '65534\10'
208 |                 id = id_result.stdout().to_int()
                                                    ^
basu-v0.2.1/meson.build:208:41: error in method str.to_int()
208 |                 id = id_result.stdout().to_int()

I tried it with meson and it builds just fine, which lead me to believe it's a muon bug.

Any ideas?

https://todo.sr.ht/~emersion/basu/19

Status
RESOLVED CLOSED
Submitter
~firasuke
Assigned to
No-one
Submitted
3 months ago
Updated
3 months ago
Labels
No labels applied.

~firasuke 3 months ago

Just faced the exact same issue with glib. This appears to be a problem with the to_int() method with null terminated strings.

~eschwartz 3 months ago

The string is newline terminated, not null terminated.

Meson's implementation language happens to ignore the trailing junk, here.

~lattis REPORTED CLOSED 3 months ago

I have made muon's to_int implementation ignore leading/trailing whitespace so this issue should be fixed.

Register here or Log in to comment, or comment via email.