convert: gsfonts are missing after 8:6.9.10.23+dfsg-2.1ubuntu11.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
imagemagick (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Background
----------
Our builds have started failing generating images with imagemagick as of around 2023-03-22 TZ +1100
All issues seen on 20.04 - definitely failing with version 8:6.9.10.
Package version details below
Issue
-----
This generation command was working in clean-room 20.04 builds up to this point in time
convert -background black -fill white -size 50x50 -gravity Center -font "fixed" -pointsize 48 label:01 text_01.png
Now it fails with
$ convert -background black -fill white -size 50x50 -gravity Center -font "fixed" -pointsize 48 label:01 text_01.png
convert-im6.q16: unable to read font `fixed' @ error/annotate.
convert-im6.q16: no images defined `text_01.png' @ error/convert.
Investigation
-------------
Issue occurs on version "8:6.9.
apt is refusing to install the ".4" (probably last known good) or ".5" versions - saying they are unavailable. I've reverted back to version "8:6.9.
I can see the difference with "convert -list font"
In 1ubuntu11 (works) I see "fixed" in the list
Font: fixed
family: Helvetica
style: Normal
stretch: Normal
weight: 400
glyphs: /usr/share/
in 1ubuntu11.6 it is not present.
Using the command "convert -list font" under strace I see that ghostscript fonts are no longer being parsed. The outputs are identical until:
In 1ubuntu11 (works) I see:
...
916982 stat("/
916982 openat(AT_FDCWD, "/etc/ImageMagi
916982 lseek(3, 0, SEEK_END) = 9680
916982 mmap(NULL, 9680, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd089fa0000
916982 munmap(
916982 close(3) = 0
916982 stat("/
916982 access(
916982 stat("/
916982 access(
....
916982 stat("/
916982 access(
916982 access(
...
In 1ubuntu11.6 I see at the same point - then the output continuing the same as 1ubuntu11 after:
...
917636 openat(AT_FDCWD, "/usr/share/
917636 lseek(3, 0, SEEK_END) = 2461
917636 mmap(NULL, 2461, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f040d877000
917636 munmap(
917636 close(3) = 0
917636 openat(AT_FDCWD, "/usr/lib/
917636 openat(AT_FDCWD, "/etc/ImageMagi
917636 openat(AT_FDCWD, "/usr/share/
917636 openat(AT_FDCWD, "/home/
917636 openat(AT_FDCWD, "/home/
917636 openat(AT_FDCWD, "/usr/share/
917636 lseek(3, 0, SEEK_END) = 49236
917636 mmap(NULL, 49236, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f040d86b000
917636 munmap(
917636 close(3) = 0
917636 openat(AT_FDCWD, "/usr/lib/
917636 openat(AT_FDCWD, "/etc/ImageMagi
917636 openat(AT_FDCWD, "/usr/share/
917636 openat(AT_FDCWD, "/home/
917636 openat(AT_FDCWD, "/home/
917636 brk(0x5612eb166000) = 0x5612eb166000
917636 access(
...
Has someone changed the --configure line?
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: imagemagick-6.q16 8:6.9.10.
ProcVersionSign
Uname: Linux 5.15.0-67-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Mar 24 11:19:19 2023
InstallationDate: Installed on 2021-04-12 (710 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
SourcePackage: imagemagick
UpgradeStatus: No upgrade log present (probably fresh install)
This is because `/etc/` is now prohibited in the default policy file. I don't know why that change was made as part of https:/ /bugs.launchpad .net/ubuntu/ +source/ imagemagick/ +bug/2004580, it's definitely wrong.