Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
www/{chromium,ungoogled-chromium}: unbreak tests by using FC_CACHE_VE…
…RSION instead of hardcoding the version (cherry picked from commit 36e349b)
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
www/chromium/files/patch-third__party_test__fonts_fontconfig_generate__fontconfig__caches.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- third_party/test_fonts/fontconfig/generate_fontconfig_caches.cc.orig 2023-01-14 16:09:37 UTC | ||
+++ third_party/test_fonts/fontconfig/generate_fontconfig_caches.cc | ||
@@ -56,7 +56,7 @@ int main() { | ||
FcFini(); | ||
|
||
// Check existence of intended fontconfig cache file. | ||
- auto cache = fontconfig_caches + "/" + kCacheKey + "-le64.cache-7"; | ||
+ auto cache = fontconfig_caches + "/" + kCacheKey + "-le64.cache-" + FC_CACHE_VERSION; | ||
bool cache_exists = access(cache.c_str(), F_OK) == 0; | ||
return !cache_exists; | ||
} |
11 changes: 11 additions & 0 deletions
11
...-chromium/files/patch-third__party_test__fonts_fontconfig_generate__fontconfig__caches.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- third_party/test_fonts/fontconfig/generate_fontconfig_caches.cc.orig 2023-01-14 16:09:37 UTC | ||
+++ third_party/test_fonts/fontconfig/generate_fontconfig_caches.cc | ||
@@ -56,7 +56,7 @@ int main() { | ||
FcFini(); | ||
|
||
// Check existence of intended fontconfig cache file. | ||
- auto cache = fontconfig_caches + "/" + kCacheKey + "-le64.cache-7"; | ||
+ auto cache = fontconfig_caches + "/" + kCacheKey + "-le64.cache-" + FC_CACHE_VERSION; | ||
bool cache_exists = access(cache.c_str(), F_OK) == 0; | ||
return !cache_exists; | ||
} |