AVRDudeDownloader's extractTarBz2File
is incorrect on latest Ubuntu LTS
#759
Labels
extractTarBz2File
is incorrect on latest Ubuntu LTS
#759
Steps to make the bug happen
What was supposed to happen
Firmware upgrade should work.
I managed to work around the problem and this issue should describe how.
Platform (please complete the following information):
7.59.1
7621147 (installed viadeb
, compiled by forking repo + getting CI to generate artefact)Ubuntu 24.04.1 LTS
Makelangelo 5 huge
Log file
Additional context
I encountered a few issues:
First: extracting tar.bz2 drops chmod and symlinks
AVRDudeDownloader
on my distro ended up with unusable files:avrdude_bin
My fix:
Note
--dereference
to follow symlinks. This ends up with usable files:Second: missing
libtinfo5
(32bit)Turns out it's replaced by
libtinfo6
on latest Ubuntu LTS. I found debs at https://www.ubuntuupdates.org/package/core/focal/universe/updates/libtinfo5I initially installed the 64bit version but avrdude is a 32bit executable. Maybe it's possible to switch to an amd64 version? I didn't look.
Fix:
25s .makelangelo λ l avrdude-6.0.1/lib/libtinfo.so.5 lrwxrwxrwx 1 pete pete 37 Nov 13 00:31 avrdude-6.0.1/lib/libtinfo.so.5 -> /usr/lib/i386-linux-gnu/libtinfo.so.5
Lastly: executable requires
sudo
rightsRunning the
avrdude
command I had this error:Also, in the middle of this I had deleted the
hex
file so repeated the whole process just to hopefully re-generate it. It seems to have worked OK.Finally:
Then I had to init or reload EEPROM and the Configuration screen showed the huge minX/minY numbers mentioned at the end of https://mcr.dozuki.com/Guide/2.+Makelangelo+5+to+HUGE+upgrade/41?lang=en
Now I have no idea how to patch this Java repo, plus I used many of my Bash aliases here hoping you'll infer their meaning.
So I guess that's the best help I can be for this to get fixed or for others to work around this issue...
I hope this helps!
The text was updated successfully, but these errors were encountered: