This is an automated email from the ASF dual-hosted git repository. leginee pushed a commit to branch win7-floor-trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 7eb04ab85b0464f31f49780a1bdcd8cf13504649 Author: Peter <[email protected]> AuthorDate: Sat Sep 19 18:19:03 2026 +0200 Keep the build id within the range Windows Installer allows Commit 805d7ece19 raised BUILD from 9900 to 99000. get_fileversion() in solenv/bin/modules/installer/windows/file.pm splices that value into the third field of every file's version, so each File.Version row became 10.0.99000.0. Windows Installer stores each version field in 16 bits and rejects anything above 65535, so the whole database is judged invalid and every install aborts at InstallValidate with Internal Error 2725 -- Invalid database tables That hit every package the tree produces -- office, SDK and language pack, x86 and x64 alike -- and the message names neither a table nor the value responsible. Lower BUILD to 9900, and derive RSCREVISION from RSCVERSION, LAST_MINOR and BUILD so the build id is written in exactly one place instead of twice. Reject an out-of-range build id in get_fileversion() as well: a package that no Windows machine can install should fail while it is being built, not after it ships. Co-Authored-By: Claude Opus 5 <[email protected]> (cherry picked from commit ca673c293cf2eb5f1c8f982dc62180981fbaa8b0) --- main/solenv/bin/modules/installer/windows/file.pm | 9 +++++++++ main/solenv/inc/minor.mk | 11 +++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/main/solenv/bin/modules/installer/windows/file.pm b/main/solenv/bin/modules/installer/windows/file.pm index 18f87405e4..f2b083f46d 100644 --- a/main/solenv/bin/modules/installer/windows/file.pm +++ b/main/solenv/bin/modules/installer/windows/file.pm @@ -525,6 +525,15 @@ sub get_fileversion { $vendornumber = $allvariables->{'VENDORPATCHVERSION'}; } + # Windows Installer stores each field of a file version in 16 bits, so a + # build id above 65535 produces a package that every Windows machine + # rejects at InstallValidate with "Internal Error 2725 -- Invalid + # database tables". The failure gives no hint of its cause, so refuse to + # build such a package rather than shipping one that cannot be installed. + if (( $installer::globals::buildid =~ /^\d+$/ ) && ( $installer::globals::buildid > 65535 )) + { + installer::exiter::exit_program("ERROR: build id $installer::globals::buildid exceeds 65535, the largest value Windows Installer accepts in a version field. Lower BUILD in solenv/inc/minor.mk.", "get_fileversion"); + } $fileversion = $libraryversion . "\." . $installer::globals::buildid . "\." . $vendornumber; if ( $onefile->{'FileVersion'} ) { diff --git a/main/solenv/inc/minor.mk b/main/solenv/inc/minor.mk index e4292755d1..fa821a1612 100644 --- a/main/solenv/inc/minor.mk +++ b/main/solenv/inc/minor.mk @@ -19,7 +19,14 @@ # # ************************************************************* RSCVERSION=510 -RSCREVISION=510m1(Build:99000) -BUILD=99000 +# The build id ends up in the third field of every file's version in the +# Windows installer (see get_fileversion() in +# solenv/bin/modules/installer/windows/file.pm). Windows Installer limits +# each version field to 65535, and a package that exceeds it fails at +# InstallValidate with "Internal Error 2725 -- Invalid database tables", +# so BUILD must stay <= 65535. +BUILD=9900 LAST_MINOR=m1 +# Derived, so the build id is written in exactly one place. +RSCREVISION=$(RSCVERSION)$(LAST_MINOR)(Build:$(BUILD)) SOURCEVERSION=AOO510
