Skip to content

Commit f2330fe

Browse files
committed
Update Fontconfig to v2.14.0
1 parent 93c29c9 commit f2330fe

File tree

6 files changed

+24
-22
lines changed

6 files changed

+24
-22
lines changed

libs/recipes/fontconfig/rules.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FC_VERSION = 2.12.5
1+
FC_VERSION = 2.14.0
22
FC_TARBALL = $(DOWNLOAD)/fontconfig-$(FC_VERSION).tar.gz
33
FC_URL = https://www.freedesktop.org/software/fontconfig/release/fontconfig-$(FC_VERSION).tar.gz
44

@@ -12,7 +12,7 @@ $(FC_TARBALL):
1212
$(FC_DEPS): $(FC_TARBALL) $(LIBXML2_WASM_LIB) $(EM_PKG_CONFIG_PATH)/freetype2.pc
1313
rm -rf $(BUILD)/fontconfig-$(FC_VERSION)
1414
mkdir -p $(BUILD)/fontconfig-$(FC_VERSION)/build
15-
tar -C $(BUILD) -xf $(FC_TARBALL) --exclude=fcobjshash.h
15+
tar -C $(BUILD) -xf $(FC_TARBALL)
1616
cp -r "$(WEBR_ROOT)/patches/fontconfig-$(FC_VERSION)/." \
1717
"$(BUILD)/fontconfig-$(FC_VERSION)/patches"
1818
cd $(BUILD)/fontconfig-$(FC_VERSION)/build && quilt push -a && \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: freetype
22
Description: Emscripten ports version of freetype library
3-
Version: 18.0.12
3+
Version: 26.2.20
44
Cflags: --use-port=freetype
55
Libs: --use-port=freetype

patches/fontconfig-2.12.5/fix-double-sysroot.diff

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Index: fontconfig-2.14.0/src/fccfg.c
2+
===================================================================
3+
--- fontconfig-2.14.0.orig/src/fccfg.c
4+
+++ fontconfig-2.14.0/src/fccfg.c
5+
@@ -2720,10 +2720,7 @@ FcConfigGetFilename (FcConfig *conf
6+
{
7+
FcChar8 *s;
8+
9+
- if (sysroot)
10+
- s = FcStrBuildFilename (sysroot, *p, NULL);
11+
- else
12+
- s = *p;
13+
+ s = FcStrdup(*p);
14+
file = FcConfigFileExists (s, url);
15+
if (sysroot)
16+
FcStrFree (s);
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Index: fontconfig-2.12.5/src/fccache.c
1+
Index: fontconfig-2.14.0/src/fccache.c
22
===================================================================
3-
--- fontconfig-2.12.5.orig/src/fccache.c
4-
+++ fontconfig-2.12.5/src/fccache.c
5-
@@ -584,7 +584,7 @@ FcCacheTimeValid (FcConfig *config, FcCache *cache, st
3+
--- fontconfig-2.14.0.orig/src/fccache.c
4+
+++ fontconfig-2.14.0/src/fccache.c
5+
@@ -845,7 +845,7 @@ FcCacheTimeValid (FcConfig *config, FcCa
66
printf ("FcCacheTimeValid dir \"%s\" cache checksum %d dir checksum %d\n",
77
FcCacheDir (cache), cache->checksum, (int) dir_stat->st_mtime);
88
#endif
99
-
1010
+ if (strcmp(FcCacheDir(cache), "/usr/share/fonts") == 0) return FcTrue;
11-
return cache->checksum == (int) dir_stat->st_mtime && fnano;
11+
return dir_stat->st_mtime == 0 || (cache->checksum == (int) dir_stat->st_mtime && fnano);
1212
}
1313

0 commit comments

Comments
 (0)