FS#72454 - arch's mpd package can't handle password command

Attached to Project: Arch Linux
Opened by Rasmus Steinke (rasi) - Sunday, 17 October 2021, 08:26 GMT
Last edited by David Runge (dvzrv) - Tuesday, 19 October 2021, 10:44 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: When using makepkg/extra-x86_64-build to build mpd, the resulting binary cannot handle it's own password command anymore.

Additional info:
Using arch's package of mpd (0.23) results in password requests being answered with "MPD error: you don't have permission"
I tried rebuilding the package with extra-x86_64-build which gives the same behavior, but building the very same release tarball manually with meson and ninja the resulting package works just fine.

Upstream bug that describes the actual behavior:
https://github.com/MusicPlayerDaemon/MPD/issues/1282

Steps to reproduce:
Add a line like this to your mpd config:
password "pass@read,add,player,control,admin"

restart mpd and call
mpc --host=pass@localhost status
This task depends upon

Closed by  David Runge (dvzrv)
Tuesday, 19 October 2021, 10:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with mpd 0.23.1-1
Comment by Rasmus Steinke (rasi) - Sunday, 17 October 2021, 09:17 GMT
Using options=('!buildflags') in PKGBUILD fixes this.
Comment by Bernd Busse (tryone144) - Sunday, 17 October 2021, 15:00 GMT
After some testing, it seems to be a problem with too aggressive optimizations. Just dropping `-O2` from the build-flags resolves the issue.
I don't think this is a proper fix, though.
Comment by Erik Bročko (ericek111) - Monday, 18 October 2021, 09:41 GMT Comment by Daniel Lublin (quite) - Tuesday, 19 October 2021, 10:04 GMT Comment by David Runge (dvzrv) - Tuesday, 19 October 2021, 10:20 GMT
Thanks for looking into this issue! Please verify that 0.23.1 in [extra] fixes this for you.
Comment by Erik Bročko (ericek111) - Tuesday, 19 October 2021, 10:29 GMT
Works fine with ncmpcpp locally and with Cantata via WireGuard.

Thanks!
Comment by David Runge (dvzrv) - Tuesday, 19 October 2021, 10:43 GMT
Excellent, thanks!

Loading...