mORMot2 DailyDaily read of upstream commits

Older FPC builds compile again while JOP keeps URL fragments intact

Linux builds using older FPC RTL versions regain the syscall constants needed by TExternalProcess, including the ARM OABI numbering rule. JOP preprocessing now distinguishes URL fragments from comments and reports an empty file preprocessing result as failure. Zeos users also receive a missing-unit compile fix, while the remaining TExternalProcess changes are refactoring and test coverage.

TL;DR

  • TExternalProcess now supplies missing close_range and pipe2 syscall numbers for older FPC Linux RTL versions.
  • JOP section values keep an attached #fragment, while whitespace-prefixed # and // still begin comments.
  • TextPreprocessToFile now returns the success value from TextPreprocessToStream instead of always returning true after creating the file.
  • mormot.db.sql.zeos explicitly imports mormot.core.json to restore compilation.
  • Windows tests now verify that roWinJobCloseChildren terminates a child left behind by an ended process.

Upgrade advice

Land on build 2.4.18082. Older FPC Linux toolchains should take the syscall compatibility fix, Zeos users should take the restored unit dependency, and applications using TextPreprocessToFile should verify any code that relied on its former unconditional true result. The raw payload lists no superseding commits.

Build2.4.18076 → 2.4.18082
Commits6
Lines+96 -29
Read2 min

5 of 5 entries · 6 commits upstream

Stories
# Entry Category Units
1 Medium JOP keeps URL fragments and reports empty file preprocessing failures TPreproc.ParseSection in mormot.core.fmt no longer stops every unquoted value at '#'. It now treats # or // as a comment only at the start of the value or after whitespace, so https://example.org/api#section remains intact while 'api # comment' is trimmed. TextPreprocessToFile now returns the Boolean result of TextPreprocessToStream, and a regression test confirms that empty input returns false. Fixes mormot.core.fmt ac9d6c2d+20-9

core: some JOP pre-processor fixes

Impact

Delphi and FPC applications can place URL fragments in unquoted JOP section values without losing the suffix. Callers of TextPreprocessToFile may now receive false for empty or otherwise unsuccessful preprocessing where the wrapper previously returned true after file creation.

Worth a look

Check TextPreprocessToFile callers that interpret a false result, and add a URL-fragment case if unquoted JOP values are generated by your application.

Public API

  • TextPreprocessToFilebehaviour-changed — Its result now propagates TextPreprocessToStream failure instead of becoming true whenever the destination file was created.

Arnaud Bouchez · 20:38 UTC · view the commit on GitHub →

2 Medium The Zeos SQL adapter regains its JSON dependency The implementation uses clause of mormot.db.sql.zeos now explicitly includes mormot.core.json. The one-line dependency addition addresses the compilation failure reported in upstream issue #789; no routines or declarations are changed. Fixes mormot.db.sql.zeos+1 b06855e6+3-2

db: fixed mormot.db.sql.zeos.pas compilation

Impact

Delphi and FPC projects that compile the Zeos-backed SQL adapter no longer depend on another unit importing mormot.core.json indirectly. Runtime SQL behavior and the public Zeos adapter API are unchanged.

Arnaud Bouchez · 20:33 UTC · view the commit on GitHub →

3 Medium Old FPC Linux RTL versions regain TExternalProcess syscall constants mormot.core.os.posix defines syscall_nr_pipe2 when an older FPC RTL does not declare it, with numbers for x86-64, x86, ARM and AArch64. It also computes syscall_nr_close_range as syscall_nr_base + 436 on ARM for older OABI targets, while other supported CPUs keep 436. The direct syscall path avoids a glibc 2.34 dependency. Compiler & platform mormot.core.os.posix 774cc601+15-4

core: fixed compilation on oldest FPC RTL

Impact

FPC Linux builds using older RTL releases can compile the TExternalProcess descriptor-closing path again, including older ARM OABI targets. Delphi builds and FPC platforms outside the guarded FPCLINUX branch are unaffected.

Arnaud Bouchez · 15:03 UTC · view the commit on GitHub →

4 Low TExternalProcess fields are regrouped without changing behavior mormot.core.os reorders the protected TExternalProcess fields, groups the Windows handles under OSWINDOWS, and keeps POSIX descriptors as integer. mormot.core.os.posix only receives an indentation cleanup in OpenNull. The commit explicitly states that there is no functional change. Under the hood mormot.core.os+1 59381219+12-12

core: some TExternalProcess refactoring

Impact

Existing Delphi and FPC application code sees no behavioral or public API change. The edit only reorganizes the class storage declarations and source formatting.

Arnaud Bouchez · 20:33 UTC · view the commit on GitHub →

5 Low Windows job cleanup gains a child-process regression test TTestCoreBase.DoTExternalProcess starts cmd with roWinJobCloseChildren, lets cmd leave a ping child holding a temporary file open, and verifies that freeing TExternalProcess closes the job so the file can be deleted. The test is Windows-only and changes no framework implementation. Tests 6e27045b+23-1

test: cover TExternalProcess roWinJobCloseChildren on Windows

Impact

There is no application-code or runtime behavior change. The test guards the existing Windows promise that roWinJobCloseChildren ends surviving child processes when TExternalProcess is released.

zen010101 · 06:15 UTC · view the commit on GitHub →

Upstream activity commits per day · last 60 days
Commits1007
Active days49/60
Busiest2026-09-30
Peak60
2026-09-30: 60 commits2026-10-01: 26 commits2026-10-02: 30 commits2026-10-03: 32 commits2026-10-04: 15 commits2026-10-05: 1 commit2026-10-06: 26 commits2026-10-07: 37 commits2026-10-08: 27 commits2026-10-09: 35 commits2026-10-10: 12 commits2026-10-11: 2 commits2026-10-12: 40 commits2026-10-13: 31 commits2026-10-14: 23 commits2026-10-15: 16 commits2026-10-16: 27 commits2026-10-17: 0 commits2026-10-18: 0 commits2026-10-19: 0 commits2026-10-20: 0 commits2026-10-21: 0 commits2026-10-22: 3 commits2026-10-23: 6 commits2026-10-24: 29 commits2026-10-25: 7 commits2026-10-26: 25 commits2026-10-27: 4 commits2026-10-28: 8 commits2026-10-29: 17 commits2026-10-30: 20 commits2026-10-31: 0 commits2026-11-01: 0 commits2026-11-02: 16 commits2026-11-03: 32 commits2026-11-04: 15 commits2026-11-05: 32 commits2026-11-06: 26 commits2026-11-07: 19 commits2026-11-08: 2 commits2026-11-09: 29 commits2026-11-10: 17 commits2026-11-11: 8 commits2026-11-12: 38 commits2026-11-13: 39 commits2026-11-14: 9 commits2026-11-15: 6 commits2026-11-16: 21 commits2026-11-17: 30 commits2026-11-18: 37 commits2026-11-19: 28 commits2026-11-20: 31 commits2026-11-21: 0 commits2026-11-22: 0 commits2026-11-23: 1 commit2026-11-24: 6 commits2026-11-25: 3 commits2026-11-26: 3 commits2026-11-27: 0 commits2026-11-28: 0 commits
2026-09-302026-11-28