diff --git a/SOURCES/fontconfig-fix-fcvalidate.patch b/SOURCES/fontconfig-fix-fcvalidate.patch new file mode 100644 index 0000000..fb77e61 --- /dev/null +++ b/SOURCES/fontconfig-fix-fcvalidate.patch @@ -0,0 +1,25 @@ +From c336b8471877371f0190ba06f7547c54e2b890ba Mon Sep 17 00:00:00 2001 +From: Akira TAGOH +Date: Thu, 9 May 2019 07:10:11 +0000 +Subject: [PATCH] fc-validate: returns an error code when missing some glyphs + +Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/154 +--- + fc-validate/fc-validate.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/fc-validate/fc-validate.c b/fc-validate/fc-validate.c +index 2ceee20..327ae63 100644 +--- a/fc-validate/fc-validate.c ++++ b/fc-validate/fc-validate.c +@@ -197,6 +197,7 @@ main (int argc, char **argv) + { + FcChar32 ucs4, pos, map[FC_CHARSET_MAP_SIZE]; + ++ err = 1; + printf (_("%s:%d Missing %d glyph(s) to satisfy the coverage for %s language\n"), + argv[i], index, count, lang); + +-- +2.31.1 + diff --git a/SPECS/fontconfig.spec b/SPECS/fontconfig.spec index 9911962..a752b47 100644 --- a/SPECS/fontconfig.spec +++ b/SPECS/fontconfig.spec @@ -5,7 +5,7 @@ Summary: Font configuration and customization library Name: fontconfig Version: 2.13.1 -Release: 3%{?dist} +Release: 4%{?dist} # src/ftglue.[ch] is in Public Domain # src/fccache.c contains Public Domain code # fc-case/CaseFolding.txt is in the UCD @@ -21,6 +21,7 @@ Patch1: %{name}-required-freetype-version.patch Patch2: %{name}-stop-cleanup-uuid.patch Patch3: %{name}-use-rachana.patch Patch4: %{name}-test-delay.patch +Patch5: %{name}-fix-fcvalidate.patch BuildRequires: expat-devel BuildRequires: freetype-devel >= %{freetype_version} @@ -165,6 +166,10 @@ HOME=/root /usr/bin/fc-cache -s %doc fontconfig-devel.txt fontconfig-devel %changelog +* Mon Aug 16 2021 Akira TAGOH - 2.13.1-4 +- Return the error code when fc-validate detects missing glyphs. + Resolves: rhbz#1972037 + * Fri Nov 30 2018 Akira TAGOH - 2.13.1-3 - Stop cleaning up .uuid file even when a directory is empty. resolves: rhbz#1653171