# RPM
* Platform: MacOS Mojave: 10.14.6 (18G1012)
* RPM version: 4.15.1
# Steps to reproduce problem
1. Clone https://github.com/DANS-KNAW/issue-rpm-font-problem
2. Run `./rpmbuild.sh` in the project directory
# Problem
I get the following error:
```
./rpmbuild.sh
~/git/test/issue-rpm-font-problem/rpmbuild/SPECS
~/git/test/issue-rpm-font-problem
warning: Could not canonicalize hostname: XXXX
Processing files: font-rpm-1.0-1.noarch
Provides: font-rpm = 1.0-1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <=
4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s):
/usr/local/Cellar/rpm/4.15.1/lib/rpm/check-files
/Users/XXXX/git/test/issue-rpm-font-problem/rpmbuild/BUILDROOT/font-rpm-1.0-1.x86_64
error: Package font-rpm: invalid utf-8 encoding in Classdict: TrueType Font
data, 19 tables, 1st "FFTM", 15 names, Microsoft, language 0x409, Digitized
data copyright � 2010-2011, Google Corporation.Open SansBoldAscender - Open
Sans Bold - Illegal byte sequence
RPM build errors:
Could not canonicalize hostname: XXXX
Package font-rpm: invalid utf-8 encoding in Classdict: TrueType Font data,
19 tables, 1st "FFTM", 15 names, Microsoft, language 0x409, Digitized data
copyright � 2010-2011, Google Corporation.Open SansBoldAscender - Open Sans
Bold - Illegal byte sequence
~/git/test/ssue-rpm-font-problem
```
# Analysis / observations / questions
* This problem did not occur in the previous versions of `rpm`. I think the
previous version I had installed was `4.14.2.1`.
* The font metadata does seem to have a malencoded copyright sign. Why does rpm
try to retrieve the font metadata anyway? rpm doesn't seem to use the file name
as a hint, because the problem also occurs if you rename the font file
(`rpmbuild/BUILDROOT/font-rpm-1.0-1.x86_64/var/www/html/OpenSans-Bold.ttf`) to
something else.
* Could this issue have something to do with the item "Fix non-deterministic
RPMTAG_CLASSDICT order (#934, regression in 4.15.0)" in the [release
notes](https://rpm.org/wiki/Releases/4.15.1)?
* You could say that this is not an issue with rpm, if the font file metadata
is incorrect, but in any case I think this problem should not be more than a
warning.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/952
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint