ports/www/chromium/files/patch-base_test_generate__fontconfig__caches.cc
Carlos J. Puga Medina d90bf58cf8 www/chromium: Update to 73.0.3683.86
- Make existing patches apply cleanly

Changelog: https://chromium.googlesource.com/chromium/src/+log/72.0.3626.121..73.0.3683.86?pretty=fuller&n=10000

Submitted by:	Matthias Wolf
MFH:		2019Q2
2019-04-05 12:01:25 +00:00

17 lines
609 B
C++

--- base/test/generate_fontconfig_caches.cc.orig 2019-03-11 22:00:51 UTC
+++ base/test/generate_fontconfig_caches.cc
@@ -57,7 +57,14 @@ int main() {
base::TearDownFontconfig();
// Check existence of intended fontconfig cache file.
+#if defined(OS_BSD)
+ // Our version of fontconfig is too old to respect .uuid files in font directories,
+ // so we check for the CACHEDIR.TAG file instead
CHECK(base::PathExists(
+ fontconfig_caches.Append("CACHEDIR.TAG")));
+#else
+ CHECK(base::PathExists(
fontconfig_caches.Append(base::StrCat({uuid, "-le64.cache-7"}))));
+#endif
return 0;
}