Worth a looka fix or feature you may wantAll five non-merge commits are covered; the pull-request merge commit needs no separate entry. Version include bookkeeping was ignored. The raw payload contains no superseded_by records, so still_moving and avoid are empty.
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.
5 of 5 entries · 6 commits upstream
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.
Units
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.
Upgrade recommended
Take build 2.4.18079 or later if your project enables mormot.db.sql.zeos and currently fails to compile.
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.
Upgrade recommended
Take build 2.4.18077 or later when compiling mormot.core.os.posix with an FPC RTL that lacks syscall_nr_pipe2, or when targeting ARM OABI.
Units
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.
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.