Open fgaz opened 1 year ago
Another note, in https://github.com/SerenityOS/serenity/commit/2334b4cebdcce1104d85afa75315c2721cc2df83 we made it so that passing -DSERENITY_CACHE_DIR=/some/path
makes it not as necessary to specify the path for UCD, CLDR, and TZDB downloaded artifacts directly.
However, the browser is severely limited without those files, as any and all unicode and calendar and timezone support will just error out the JS engine.
See https://github.com/NixOS/nixpkgs/pull/186484/files#diff-14f7abcc87051d753d55fcb19df574b2b603f37ac730a906a9f718f5026b6599R37-R59
You can set the expected location of the extracted files with -DUCD_PATH, -DTZDB_PATH, -DCLDR_PATH and their respective UCD_ZIP_PATH, CLDR_ZIP_PATH, TZDB_ZIP_PATH cmake variables.
Note that if the version of those packages (tzdata, unicode-character-database, cldr-annotations-json) and the dumped version.txt for each must match the expected versions in
serenity/Meta/CMake/{time_zone_data, unicode_data, locale_data}.cmake
or it will try to download them anyway.Note that the build also wants to download the "emoji-test.txt" file, which is not part of either unicode.org data set .zip file.:
As long as that file exists in the UCD_PATH before running cmake, it won't try to download it.
Originally posted by @ADKaster in https://github.com/NixOS/nixpkgs/issues/200495#issuecomment-1328118057