[Debian-med-packaging] Bug#1004263: Gwyddion's application/x-stmprg-spm mime type pattern is too broad (breaks fwupd)
Oliver Freyermuth
freyermuth at physik.uni-bonn.de
Sun Jan 23 20:30:05 GMT 2022
Package: gwyddion
Version: 2.57-1
Tags: fixed-upstream
Installing Gwyddion breaks other programs, such as fwupd on Debian.
For example, the file:
/usr/share/fwupd/quirks.d/tpm.quirk
shipped by fwupd is labelled as application/x-stmprg-spm type, and starting the fwupd daemon causes device detection to break with:
failed to build silo: failed to compile /usr/share/fwupd/quirks.d/tpm.quirk:ctime=1640972058.748411: cannot process content type application/x-stmprg-spm
There's also a Lanchpad bug created by affected Ubuntu users:
https://bugs.launchpad.net/ubuntu/+source/fwupd/+bug/1899036
I have sent a patch to upstream:
https://sourceforge.net/p/gwyddion/mailman/gwyddion-devel/thread/9e1f6694-c39b-6131-796b-667f6e25f7e9%40googlemail.com/#msg37595049
which was merged via:
https://sourceforge.net/p/gwyddion/code/24576/
After applying this patch to the sources, and recreating autoconf, the issue is resolved. Alternatively, the following patch can be applied to the generated gwyddion.xml:
--- a/data/gwyddion.xml
+++ b/data/gwyddion.xml
@@ -1071,8 +1071,6 @@
<magic priority="80">
<match type="string" offset="0" value="MPAR"/>
</magic>
- <glob pattern="tp*"/>
- <glob pattern="TP*"/>
</mime-type>
<!-- From module stpfile.c -->
Cheers,
Oliver
More information about the Debian-med-packaging
mailing list