Package: libkysdk-system
Version: 3.0.1.1-1
Severity: important
Dear Maintainer,
libkysdk-system renames package-owned translation files from its
postinst maintainer script. The original paths remain registered in the
package's md5sums and file list, so debsums reports them as missing after
a normal installation.
This also causes piuparts tests for libkysdk-system and packages depending
on it to fail with:
ERROR: FAIL: debsums reports modifications inside the chroot
The problem can be reproduced on Debian unstable with:
apt install libkysdk-system debsums
debsums -s libkysdk-system
Representative output is:
debsums: missing file
/usr/share/locale/zh_CN/LC_MESSAGES/kysdk-hardware_zh_CN.mo (from
libkysdk-system package)
debsums: missing file
/usr/share/locale/zh_CN/LC_MESSAGES/kysdk-sysinfo_zh_CN.mo (from
libkysdk-system package)
debsums: missing file /usr/share/locale/zh_CN/LC_MESSAGES/zh_CN.mo (from
libkysdk-system package)
The files are initially installed under these names, but
debian/libkysdk-system.postinst renames them, for example:
mv /usr/share/locale/zh_CN/LC_MESSAGES/kysdk-hardware_zh_CN.mo \
/usr/share/locale/zh_CN/LC_MESSAGES/kysdk-hardware.mo
The same operation is performed for the hardware, sysinfo, and date
translation catalogs in all supported locales.
Files owned by a binary package should not be moved by its maintainer
scripts. The translation catalogs should instead be installed under
their final gettext domain names when the binary package is built, and
the corresponding mv commands should be removed from postinst.
Pan Zhang