Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# webR (development version)

## Bug Fixes

* (Regression, again) Fix linking to the FreeType library when building webR (See #504 for details).

## New features

* Support sharing URLs and initial editor file population in the webR application. See `src/examples/embed/` for an example of iframe embedding with `postMessage()`. (#554)

## Breaking changes

* Updated Fontconfig to version 2.15.0 (#544).

## Bug Fixes

* (Regression, again) Fix linking to the FreeType library when building webR (See #504 for details).

# webR 0.5.3

## Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions libs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ $(EM_PKG_CONFIG_PATH)/%.pc: recipes/**/%.pc

$(DEFAULT_WASM_BINS_INST): $(DEFAULT_WASM_LIBS)
@mkdir -p $(HOST)/bin
cp "$(patsubst $(HOST)/bin/%,$(WASM)/bin/%,$@)" "$@"
install "$(patsubst $(HOST)/bin/%,$(WASM)/bin/%,$@)" "$@"

$(OPTIONAL_WASM_BINS_INST): $(OPTIONAL_WASM_LIBS)
@mkdir -p $(HOST)/bin
cp "$(patsubst $(HOST)/bin/%,$(WASM)/bin/%,$@)" "$@"
install "$(patsubst $(HOST)/bin/%,$(WASM)/bin/%,$@)" "$@"

.PHONY: clean-bins
clean-bins:
Expand Down
8 changes: 4 additions & 4 deletions libs/recipes/fontconfig/rules.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FC_VERSION = 2.12.5
FC_TARBALL = $(DOWNLOAD)/fontconfig-$(FC_VERSION).tar.gz
FC_URL = https://www.freedesktop.org/software/fontconfig/release/fontconfig-$(FC_VERSION).tar.gz
FC_VERSION = 2.15.0
FC_TARBALL = $(DOWNLOAD)/fontconfig-$(FC_VERSION).tar.xz
FC_URL = https://www.freedesktop.org/software/fontconfig/release/fontconfig-$(FC_VERSION).tar.xz

.PHONY: fontconfig
fontconfig: $(FC_DEPS)
Expand All @@ -12,7 +12,7 @@ $(FC_TARBALL):
$(FC_DEPS): $(FC_TARBALL) $(LIBXML2_WASM_LIB) $(EM_PKG_CONFIG_PATH)/freetype2.pc
rm -rf $(BUILD)/fontconfig-$(FC_VERSION)
mkdir -p $(BUILD)/fontconfig-$(FC_VERSION)/build
tar -C $(BUILD) -xf $(FC_TARBALL) --exclude=fcobjshash.h
tar -C $(BUILD) -xf $(FC_TARBALL)
cp -r "$(WEBR_ROOT)/patches/fontconfig-$(FC_VERSION)/." \
"$(BUILD)/fontconfig-$(FC_VERSION)/patches"
cd $(BUILD)/fontconfig-$(FC_VERSION)/build && quilt push -a && \
Expand Down
2 changes: 1 addition & 1 deletion libs/recipes/freetype2/freetype2.pc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: freetype
Description: Emscripten ports version of freetype library
Version: 18.0.12
Version: 26.2.20
Cflags: --use-port=freetype
Libs: --use-port=freetype
14 changes: 0 additions & 14 deletions patches/fontconfig-2.12.5/fix-double-sysroot.diff

This file was deleted.

16 changes: 16 additions & 0 deletions patches/fontconfig-2.15.0/fix-double-sysroot.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Index: fontconfig-2.15.0/src/fccfg.c
===================================================================
--- fontconfig-2.15.0.orig/src/fccfg.c
+++ fontconfig-2.15.0/src/fccfg.c
@@ -2716,10 +2716,7 @@ FcConfigGetFilename (FcConfig *conf
{
FcChar8 *s;

- if (sysroot)
- s = FcStrBuildFilename (sysroot, *p, NULL);
- else
- s = *p;
+ s = FcStrdup(*p);
file = FcConfigFileExists (s, url);
if (sysroot)
FcStrFree (s);
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Index: fontconfig-2.12.5/src/fccache.c
Index: fontconfig-2.15.0/src/fccache.c
===================================================================
--- fontconfig-2.12.5.orig/src/fccache.c
+++ fontconfig-2.12.5/src/fccache.c
@@ -584,7 +584,7 @@ FcCacheTimeValid (FcConfig *config, FcCache *cache, st
--- fontconfig-2.15.0.orig/src/fccache.c
+++ fontconfig-2.15.0/src/fccache.c
@@ -842,7 +842,7 @@ FcCacheTimeValid (FcConfig *config, FcCa
printf ("FcCacheTimeValid dir \"%s\" cache checksum %d dir checksum %d\n",
FcCacheDir (cache), cache->checksum, (int) dir_stat->st_mtime);
#endif
-
+ if (strcmp(FcCacheDir(cache), "/usr/share/fonts") == 0) return FcTrue;
return cache->checksum == (int) dir_stat->st_mtime && fnano;
return dir_stat->st_mtime == 0 || (cache->checksum == (int) dir_stat->st_mtime && fnano);
}