qemu-m68k icon indicating copy to clipboard operation
qemu-m68k copied to clipboard

FPU issues when installing inkscape package

Open glaubitz opened this issue 7 years ago • 2 comments

When trying to install inkscape, we're running into an issue which seems FPU-related:

(sid-m68k-sbuild)root@jessie64:/# apt install inkscape
Reading package lists... Done
Building dependency tree       
Reading state information... Done
(...)
Setting up inkscape (0.91-12+b1) ...
Sorry: OverflowError: cannot convert float infinity to integer
dpkg: error processing package inkscape (--configure):
 subprocess installed post-installation script returned error exit status 101
Setting up libgtk2.0-bin (2.24.31-1) ...
(...)
Errors were encountered while processing:
 inkscape
W: No sandbox user '_apt' on the system, can not drop privileges
E: Sub-process /usr/bin/dpkg returned an error code (1)
(sid-m68k-sbuild)root@jessie64:/#

Looking at the inkscape postinst package, the only possible culprit can only be the pycompile command:

(sid-m68k-sbuild)root@jessie64:/# cat /var/lib/dpkg/info/inkscape.postinst 
#!/bin/sh
set -e

# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
        pycompile -p inkscape /usr/share/inkscape
fi

# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/inkscape 0.91-6~ -- "$@"
# End automatically added section
(sid-m68k-sbuild)root@jessie64:/#

which is indeed correct:

(sid-m68k-sbuild)root@jessie64:/# pycompile -p inkscape /usr/share/inkscape
Sorry: OverflowError: cannot convert float infinity to integer
(sid-m68k-sbuild)root@jessie64:/#

glaubitz avatar Jan 02 '17 14:01 glaubitz

Can't reproduce using inkscape 0.92.4-4 , pycompile 1.0 from python2-minimal 2.7.17-1 and running on latest qemu-m68k and Linux kernel 5.3.7-1 from Debian ports.

Installation proceeds without error, and pycompile -p inkscape /usr/share/inkscape also succeeded if invoked manually.

baryluk avatar Oct 25 '19 14:10 baryluk

Indeed, this seems to have been fixed. I have to check which were the affected packages which were installing inkscape for building. These might be blacklisted because of this bug.

glaubitz avatar Oct 25 '19 15:10 glaubitz