This is an automated email from the ASF dual-hosted git repository. leginee pushed a commit to branch bazel-migration in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit fbe7063e401b4adbf964cc7e087f62a1e29e403a Author: Peter Kovacs <[email protected]> AuthorDate: Fri Jun 12 21:34:18 2026 +0200 added a missing sha update from icu wizard basic scripts added to staging other basic scripts are now delivered to staging too. --- bug-readme.md | 11 +++++++++++ ext_libraries/modules/icu/49.1.2/source.json | 2 +- main/staging/BUILD.bazel | 11 +++++++++++ main/wizards/BUILD.bazel | 14 ++++++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) diff --git a/bug-readme.md b/bug-readme.md index fc86f11c87..c996ac0197 100644 --- a/bug-readme.md +++ b/bug-readme.md @@ -332,6 +332,17 @@ The build **tools** (`genbrk`/`gencmn`/`genccode`) keep using the stub `:icudata enough ICU to run, and `icudt49_dat.obj` depends on `:genccode`, so the runtime data DLL must not feed back into the tools (no cycle). Staging is unchanged: it already stages `:icudata`; that DLL now carries data. +> **CRITICAL — local-registry overlay hash.** `icu` is a `bazel_dep` from the local registry under +> `ext_libraries/`. Its `49.1.2/source.json` pins the overlay BUILD by SHA-256 +> (`"overlay": { "BUILD.bazel": "sha256-…" }`). **Editing `overlay/BUILD.bazel` has NO effect until that +> hash is updated** — Bazel keeps the cached repo and silently builds the *old* rules (here: the stub, +> linking `stubdata.obj` → a 7680-byte `icudata.dll`). After any overlay edit: +> `openssl dgst -sha256 -binary overlay/BUILD.bazel | openssl base64`, prefix `sha256-`, write it into +> `source.json`, then `bazel build --lockfile_mode=refresh …`. **Verify the staged `icudata.dll` is ~18 MB, +> not 7680 bytes.** This gotcha hid the ICU fix for days; the symptom kept drifting ("BASIC error" → +> "main menu fails") but it was always the same `loadICUBreakIterator` throw reached via different +> first-start paths. + **Build & verify:** ``` bazel build //main/staging:install diff --git a/ext_libraries/modules/icu/49.1.2/source.json b/ext_libraries/modules/icu/49.1.2/source.json index ba2fce46fb..372c7bcfb9 100644 --- a/ext_libraries/modules/icu/49.1.2/source.json +++ b/ext_libraries/modules/icu/49.1.2/source.json @@ -4,7 +4,7 @@ "strip_prefix": "icu", "overlay": { "MODULE.bazel": "sha256-LLybXX2yzVNPHe9nD9y9ZT6gci+qkaan2W7Z/5/b4Oo=", - "BUILD.bazel": "sha256-ZDNPhUDtD1Ilm2JHZ3U6rfKjHrGZ8LtJvgPDQ7rD4zQ=" + "BUILD.bazel": "sha256-MqB6VTNWMVovs4sOhVMlnjuNq9bBF+d+zPxYALfdsMk=" }, "patches": {}, "patch_strip": 0 diff --git a/main/staging/BUILD.bazel b/main/staging/BUILD.bazel index 62df3f1fff..bbdcb78de3 100644 --- a/main/staging/BUILD.bazel +++ b/main/staging/BUILD.bazel @@ -534,6 +534,16 @@ tree_install( dst = "presets/basic", ) +# The empty "Standard" user library that the container index references. +# Without Standard/dialog.xlb the app BasicManager raises ERRCODE_IO_GENERAL +# ("Error loading BASIC of document .../user/basic/Standard/dialog.xlb/"). +tree_install( + name = "_install_presets_basic_standard", + src = "//main/wizards:basic_user_standard", + strip_prefix = "main/wizards/source/standard", + dst = "presets/basic/Standard", +) + # ── images.zip — toolbar and UI icons ───────────────────────────────────────── # share/config/images.zip — default icon set (all modules) # share/config/images_industrial.zip — industrial/tango theme overrides @@ -587,6 +597,7 @@ filegroup( ":_install_presets_autotext", ":_install_presets_config", ":_install_presets_basic", + ":_install_presets_basic_standard", ":_install_images_zip", ":_install_images_industrial_zip", ":_install_uiconfig", diff --git a/main/wizards/BUILD.bazel b/main/wizards/BUILD.bazel index 583ab420cb..f7a82d6354 100644 --- a/main/wizards/BUILD.bazel +++ b/main/wizards/BUILD.bazel @@ -18,3 +18,17 @@ filegroup( ], visibility = ["//visibility:public"], ) + +# The empty "Standard" user library (scp2 basicsrvstandard.zip → user/basic/Standard/). +# The container index (basic_user_config) lists "Standard"; loading it needs these +# library index files, or the BasicManager raises ERRCODE_IO_GENERAL on +# user/basic/Standard/dialog.xlb at startup. +filegroup( + name = "basic_user_standard", + srcs = [ + "source/standard/Module1.xba", + "source/standard/dialog.xlb", + "source/standard/script.xlb", + ], + visibility = ["//visibility:public"], +)
