Your message dated Tue, 27 May 2025 09:19:05 +0000
with message-id <e1ujqsf-00d2if...@fasolo.debian.org>
and subject line Bug#1106115: fixed in plymouth 24.004.60-5
has caused the Debian Bug report #1106115,
regarding plymouth: Unrecoverable postinst error in initramfs-tools hook when
fc-match -f %{file} == fc-match -f %{file} monospace
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1106115: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106115
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: plymouth
Severity: grave
Version: 24.004.60-4
X-Debbugs-CC: sjo...@debian.org bi...@debian.org
Hi,
I hate to report like this, but the recent fontconfig-based method
does not seem to work well under certain setup.
On my main workstation running Debian Sid, it has a setup with the
following fontconfig matching pattern:
-> % fc-match -f %{file}
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
-> % fc-match -f %{file} monospace
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
Now consider the following lines:
https://sources.debian.org/src/plymouth/24.004.60-4/debian/local/plymouth.hook/#L107-L110
DEFAULT_FONT=$(fc-match -f %{file} 2> /dev/null)
[ ! -z "$DEFAULT_FONT" ] && copy_file font "$DEFAULT_FONT"
DEFAULT_MONOSPACE_FONT=$(fc-match -f %{file} monospace 2>
/dev/null)
[ ! -z "$DEFAULT_MONOSPACE_FONT" ] && copy_file font
"$DEFAULT_MONOSPACE_FONT"
When $DEFAULT_FONT equals to $DEFAULT_MONOSPACE_FONT , it is expected that
"copy_file font $whatever" will be invoked twice, causing troubles in postinst:
-> % (Edit /usr/share/initramfs-tools/hooks/plymouth to use "set -x" first)
-> % LC_ALL=zh_CN.UTF-8 sudo apt-get install plymouth plymouth-themes -f -y
2>&1 | tee /tmp/plymouth-error.txt
[...]
+ fc-match -f %{file}
+ DEFAULT_FONT=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ [ ! -z /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]
+ copy_file font /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ local type src target link_target
+ type=font
+ src=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ target=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ [ -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]
+ [ -d
/var/tmp/mkinitramfs_H8pRsB//usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
]
+ [ /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc !=
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]
+ realpath -ms //usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ target=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ [ -e
/var/tmp/mkinitramfs_H8pRsB//usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
]
+ mkdir -p /var/tmp/mkinitramfs_H8pRsB//usr/share/fonts/opentype/noto
+ readlink -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ link_target=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ realpath -s /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ [ /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc !=
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]
+ [ n = y ]
+ cp -pP /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
/var/tmp/mkinitramfs_H8pRsB//usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ fc-match -f %{file} monospace
+ DEFAULT_MONOSPACE_FONT=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ [ ! -z /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]
+ copy_file font /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ local type src target link_target
+ type=font
+ src=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ target=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ [ -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]
+ [ -d
/var/tmp/mkinitramfs_H8pRsB//usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
]
+ [ /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc !=
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]
+ realpath -ms //usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ target=/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
+ [ -e
/var/tmp/mkinitramfs_H8pRsB//usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
]
+ return 1
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.12.27-amd64 with 1.
(See the full output in the attachment.)
Do notice that I am using the zh_CN.UTF-8 locale, where fc-match will
have the certain output as I mentioned above.
The proposed solution:
diff --git a/debian/local/plymouth.hook b/debian/local/plymouth.hook
index 7a64541..8824103 100644
--- a/debian/local/plymouth.hook
+++ b/debian/local/plymouth.hook
@@ -107,7 +107,7 @@ case "${THEME_NAME}" in
DEFAULT_FONT=$(fc-match -f %{file} 2> /dev/null)
[ ! -z "$DEFAULT_FONT" ] && copy_file font "$DEFAULT_FONT"
DEFAULT_MONOSPACE_FONT=$(fc-match -f %{file} monospace 2>
/dev/null)
- [ ! -z "$DEFAULT_MONOSPACE_FONT" ] && copy_file font
"$DEFAULT_MONOSPACE_FONT"
+ [ ! -z "$DEFAULT_MONOSPACE_FONT" ] && [
"$DEFAULT_MONOSPACE_FONT" != "$DEFAULT_FONT" ] && copy_file font
"$DEFAULT_MONOSPACE_FONT"
[ ! -z "$DEFAULT_FONT" ] && ln -s "$DEFAULT_FONT"
${DESTDIR}/usr/share/fonts/Plymouth.ttf
[ ! -z "$DEFAULT_MONOSPACE_FONT" ] && ln -s
"$DEFAULT_MONOSPACE_FONT" ${DESTDIR}/usr/share/fonts/Plymouth-monospace.ttf
Please let me know if you have any questions.
Best Regards,
Boyuan Yang
plymouth-error.txt.gz
Description: application/gzip
signature.asc
Description: This is a digitally signed message part
--- End Message ---
--- Begin Message ---
Source: plymouth
Source-Version: 24.004.60-5
Done: Laurent Bigonville <bi...@debian.org>
We believe that the bug you reported is fixed in the latest version of
plymouth, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1106...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Laurent Bigonville <bi...@debian.org> (supplier of updated plymouth package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 27 May 2025 10:45:42 +0200
Source: plymouth
Architecture: source
Version: 24.004.60-5
Distribution: unstable
Urgency: medium
Maintainer: Laurent Bigonville <bi...@debian.org>
Changed-By: Laurent Bigonville <bi...@debian.org>
Closes: 1106115
Changes:
plymouth (24.004.60-5) unstable; urgency=medium
.
* d/l/plymouth.hook: Avoid installing a font already present in the initramfs
(Closes: #1106115)
Checksums-Sha1:
e503508cac6e86d1a18a201ffccdf69a59dc1ac2 2108 plymouth_24.004.60-5.dsc
80c819b85a3c27b66688c0ff5e91c7960bfd8779 31284
plymouth_24.004.60-5.debian.tar.xz
1f3e491ca1cd6cdfe80db07bc13f87718419da72 6142
plymouth_24.004.60-5_source.buildinfo
Checksums-Sha256:
381d5538d6b1e634de0ccf80e40494a68fda92636375fb8ef6929f507408dcc6 2108
plymouth_24.004.60-5.dsc
4e1b061eef5f80021c735f263062aa78839612d2561058a8a71442dc43068355 31284
plymouth_24.004.60-5.debian.tar.xz
b0219695ad74c67b3b9be2d2cfd26ddd702a63ba9c3c73fa089e3798b71e7eef 6142
plymouth_24.004.60-5_source.buildinfo
Files:
c5fd2b4ecb14cac7433a37fc70132c8f 2108 misc optional plymouth_24.004.60-5.dsc
da99fce0d8aa039af06d3e35b945e91e 31284 misc optional
plymouth_24.004.60-5.debian.tar.xz
ecaf5169bde8833f79735514b00a922d 6142 misc optional
plymouth_24.004.60-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQFFBAEBCgAvFiEEmRrdqQAhuF2x31DwH8WJHrqwQ9UFAmg1fGMRHGJpZ29uQGRl
Ymlhbi5vcmcACgkQH8WJHrqwQ9VtfQf/UeTpJt1bn5vM0IOVtYdggq+ZUCZkzvp4
+aqQkiBWC0eqBAGOy2ofJMIjPD7UHKKMXut46yYg5OoCGrM085p6ON3/BQ5xCdA7
0a4N6XkKHm7p6mH12zKwA0m0Dd7k4jgFax2q9uK3MEN82+nbYOK6pzKk3xlRbXaL
Ac5y9h2ZJhccYMwkIdQYNWP9/m4SQtHt6ibOJiGE5RTLkLZJt/Q9QxPrkvRRJdyL
zwuSiow1aMwoqHvKLzrZJ6O8yp91yyyZRFLT3Zr8ZEpApAdfhK7cftu/gx44FXeP
jowaIrOodh11QLdIaTUySx4wcAQ2v/PnOF5PdGtcCdxF6PWWSt6C2w==
=yuRd
-----END PGP SIGNATURE-----
pgpGxHJshjvBV.pgp
Description: PGP signature
--- End Message ---