FS#79559 - [moserial] no longer works with lrzsz

Attached to Project: Arch Linux
Opened by Walti Baba (waltibaba) - Monday, 04 September 2023, 07:31 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Balló György (City-busz)
Robin Broda (coderobe)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
xmodem, ymodem and zmodem file transfer no longer works with lrzsz installed.

Additional info:
* package version: latest 3.0.21-1

Steps to reproduce:
* Install moserial
* Install lrzsz
* Start moserial and connect to serial device (Sonoff Zigbee Dongle-E in my case)
* Attempt to send firmware file with XMODEM protocol

Error:
GUI popup dialog with text:
Failed to execute child process "sz" (No such file or directory)

On 2023-08-10, lrzsz was changed to rename /usr/bin/sz (and sx/sb/rz/rx/rb) to /usr/bin/lrzsz-sz (and lrzsz-* for the others). All software depending on those paths no longer works, see [task 68599](https://bugs.archlinux.org/task/68599). minicom and a bunch of AUR packages are also affected.
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:19 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/moserial/issues/1
Comment by Walti Baba (waltibaba) - Monday, 04 September 2023, 07:40 GMT
As it was decided there (https://bugs.archlinux.org/task/68599) that the sx and sz binaries are no longer provided by lrzsz in Arch (though it is still provided in upstream since that hasn't changed since 1998), my understanding is that dependents (in Arch) have to update to reflect this.
Comment by Toolybird (Toolybird) - Monday, 04 September 2023, 07:58 GMT
See also  FS#79343  where last comment mentions moserial
Comment by loqs (loqs) - Monday, 04 September 2023, 12:28 GMT
Does rebuilding moserial with the attached diff applied resolve the issue?
Comment by Walti Baba (waltibaba) - Monday, 04 September 2023, 12:40 GMT
The error no longer occurs, tested only with XMODEM and without the receiving serial device connected (since it is currently already in use).
It seems only sz and rz are used in the source so that sed patch should be sufficient.
Comment by loqs (loqs) - Monday, 04 September 2023, 12:47 GMT
minicom uses sz sb sx rz rb rx. I went with a patch to fix it up.
Comment by Walti Baba (waltibaba) - Monday, 04 September 2023, 13:02 GMT
minicom is more fiddly and can't launch a file send without an open serial port, so I can't fully test it. It doesn't instantly fail as it used to when selecting xmodem mode (but its logging was never too verbose), so it is better than before.
Once again, the patch looks fine.
Resetting /etc/minirc.dfl shows the correct binaries now as defaults in the settings (minicom -s -> "file transfer protocols")