Skip to content

Commit b7e80a9

Browse files
authored
Merge branch 'v5.0-release' into v5_zero_length_sql_in_trace
2 parents 91b975d + 3e31342 commit b7e80a9

File tree

168 files changed

+4597
-1310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+4597
-1310
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,13 @@ jobs:
156156
if: github.ref_type != 'tag'
157157
runs-on: ${{ matrix.os }}
158158
env:
159-
VS_VERSION: ${{ (matrix.os == 'windows-2019' && '2019' || (matrix.os == 'windows-2022' && '2022' || '')) }}
159+
VS_VERSION: 2022
160160

161161
strategy:
162162
fail-fast: false
163163
matrix:
164164
os:
165-
- windows-2022
166-
- windows-2019
165+
- windows-2025
167166
platform: [x64, x86]
168167

169168
steps:
@@ -186,7 +185,7 @@ jobs:
186185
shell: cmd
187186
env:
188187
PLATFORM: ${{ matrix.platform }}
189-
VS_SCRIPT: ${{ matrix.os == 'windows-2022' && 'C:\Program Files\Microsoft Visual Studio\%VS_VERSION%\Enterprise\Common7\Tools\VsDevCmd.bat' || 'C:\Program Files (x86)\Microsoft Visual Studio\%VS_VERSION%\Enterprise\Common7\Tools\VsDevCmd.bat' }}
188+
VS_SCRIPT: C:\Program Files\Microsoft Visual Studio\%VS_VERSION%\Enterprise\Common7\Tools\VsDevCmd.bat
190189
run: |
191190
set SEVENZIP=C:\Program Files\7-Zip
192191
set INNO6_SETUP_PATH=C:\Program Files (x86)\Inno Setup 6
@@ -290,8 +289,6 @@ jobs:
290289
build-macos:
291290
name: build-macos-${{ matrix.arch }}
292291
runs-on: ${{ (matrix.arch == 'arm64' && 'macos-14') || 'macos-13' }}
293-
env:
294-
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
295292

296293
strategy:
297294
fail-fast: false
@@ -312,14 +309,16 @@ jobs:
312309

313310
- name: Prepare - Install tools
314311
run: |
315-
brew install automake autoconf-archive cmake libtool ninja python-setuptools
312+
brew install --quiet automake autoconf-archive libtool ninja python-setuptools
316313
317-
- name: Export GitHub Actions cache environment variables
318-
uses: actions/github-script@v7
314+
- name: Restore vcpkg cache
315+
uses: actions/cache/restore@v4
316+
id: restore-vcpkg-cache
319317
with:
320-
script: |
321-
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
322-
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
318+
path: ~/.cache/vcpkg/archives
319+
key: vcpkg-cache-${{ runner.os }}-${{ matrix.arch }}-${{ hashFiles('vcpkg-custom/**', 'vcpkg.json', 'vcpkg-configuration.json') }}
320+
restore-keys: |
321+
vcpkg-cache-${{ runner.os }}-${{ matrix.arch }}-
323322
324323
- name: Build
325324
run: |
@@ -348,6 +347,14 @@ jobs:
348347
mkdir gen/artifacts
349348
mv gen/Release/*.pkg gen/artifacts
350349
350+
- name: Save vcpkg cache
351+
uses: actions/cache/save@v4
352+
# Saves if the key changed (hashes on vcpkg/**, vcpkg.json, vcpkg-configuration.json)
353+
if: steps.restore-vcpkg-cache.outputs.cache-hit != 'true'
354+
with:
355+
path: ~/.cache/vcpkg/archives
356+
key: ${{ steps.restore-vcpkg-cache.outputs.cache-primary-key }}
357+
351358
- name: Upload installer
352359
uses: actions/upload-artifact@v4
353360
with:

CHANGELOG.md

Lines changed: 296 additions & 0 deletions
Large diffs are not rendered by default.

builds/install/arch-specific/aix/misc/aixLibrary.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ getInitScriptLocation() {
8585
# stop super server if it is running
8686

8787
stopSuperServerIfRunning() {
88-
checkString=`ps -eaf | egrep "\b(fbserver|fbguard)\b" |grep -v grep`
88+
checkString=`ps -eaf | grep -E "\b(fbserver|fbguard)\b" |grep -v grep`
8989

9090
if [ ! -z "$checkString" ]
9191
then

builds/install/arch-specific/freebsd/freebsdLibrary.sh.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ getInitScriptLocation() {
107107
# stop super server if it is running
108108

109109
stopSuperServerIfRunning() {
110-
checkString=`ps -af | egrep "\b(fbserver|fbguard|fb_smp_server)\b" |grep -v grep`
110+
checkString=`ps -af | grep -E "\b(fbserver|fbguard|fb_smp_server)\b" |grep -v grep`
111111

112112
if [ ! -z "$checkString" ]
113113
then
@@ -120,7 +120,7 @@ stopSuperServerIfRunning() {
120120
do
121121
$init_d stop
122122
sleep 1
123-
checkString=`ps -eaf | egrep "\b(fbserver|fbguard|fb_smp_server)\b" |grep -v grep`
123+
checkString=`ps -eaf | grep -E "\b(fbserver|fbguard|fb_smp_server)\b" |grep -v grep`
124124
if [ -z "$checkString" ]
125125
then
126126
return
@@ -211,7 +211,7 @@ startService() {
211211
then
212212
"$InitFile" start
213213

214-
checkString=`ps -af | egrep "\b(fbserver|fb_smp_server)\b" |grep -v grep`
214+
checkString=`ps -af | grep -E "\b(fbserver|fb_smp_server)\b" |grep -v grep`
215215
if [ -z "$checkString" ]
216216
then
217217
# server didn't start - possible reason bad shell /bin/false for user "firebird"

builds/install/arch-specific/hpux/misc/hpuxLibrary.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ getInitScriptLocation() {
7979
# stop super server if it is running
8080

8181
stopSuperServerIfRunning() {
82-
checkString=`ps -eaf | egrep "\b(fbserver|fbguard)\b" |grep -v grep`
82+
checkString=`ps -eaf | grep -E "\b(fbserver|fbguard)\b" |grep -v grep`
8383

8484
if [ ! -z "$checkString" ]
8585
then

builds/install/arch-specific/hpux/super/preInstall.sh.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
stopServerIfRunning() {
2323

24-
checkString=`ps -ef | egrep "(fbserver|fbguard)" |grep -v grep`
24+
checkString=`ps -ef | grep -E "(fbserver|fbguard)" |grep -v grep`
2525

2626
if [ ! -z "$checkString" ]
2727
then
@@ -42,7 +42,7 @@
4242
stopServerIfRunning
4343

4444

45-
checkString=`ps -ef | egrep "(fbserver|fbguard)" |grep -v grep`
45+
checkString=`ps -ef | grep -E "(fbserver|fbguard)" |grep -v grep`
4646

4747
if [ ! -z "$checkString" ]
4848
then
@@ -54,7 +54,7 @@
5454

5555

5656

57-
checkString=`ps -ef | egrep "(fb_inet_server|fb_smp_server)" |grep -v grep`
57+
checkString=`ps -ef | grep -E "(fb_inet_server|fb_smp_server)" |grep -v grep`
5858

5959
if [ ! -z "$checkString" ]
6060
then
@@ -67,7 +67,7 @@
6767

6868
# Stop lock manager if it is the only thing running.
6969

70-
for i in `ps -ef | egrep "fb_lock_mgr" | awk '{print $2}' `
70+
for i in `ps -ef | grep -E "fb_lock_mgr" | awk '{print $2}' `
7171
do
7272
kill $i
7373
done

builds/install/arch-specific/hpux/super/preUninstall.sh.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
stopServerIfRunning() {
8-
checkString=`ps -ef | egrep "(fbserver|fbguard)" |grep -v grep`
8+
checkString=`ps -ef | grep -E "(fbserver|fbguard)" |grep -v grep`
99

1010
if [ ! -z "$checkString" ]
1111
then
@@ -16,7 +16,7 @@ stopServerIfRunning() {
1616
fi
1717
fi
1818

19-
checkString=`ps -ef | egrep "(fbserver|fbguard)" |grep -v grep`
19+
checkString=`ps -ef | grep -E "(fbserver|fbguard)" |grep -v grep`
2020
if [ ! -z "$checkString" ]
2121
then
2222
# careful shutdown of server failed :)

builds/install/arch-specific/linux/makeInstallImage.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ addLibs() {
6161
[ "$LIB" ] && echo "export LIBTOMMATH=$LIB" >>$libTarget
6262
LIB=`$OBJDUMP -p $libSdir/firebird|grep NEEDED|grep tomcrypt|awk '{print $2;}'`
6363
[ "$LIB" ] && echo "export LIBTOMCRYPT=$LIB" >>$libTarget
64-
LIB=$(echo `$OBJDUMP -p $libSdir/isql|grep NEEDED|egrep "(curses|termcap|tinfo)"|awk '{print $2;}'`)
64+
LIB=$(echo `$OBJDUMP -p $libSdir/isql|grep NEEDED|grep -E "(curses|termcap|tinfo)"|awk '{print $2;}'`)
6565
[ "$LIB" ] && echo "export LIBCURSES='$LIB'" >>$libTarget
6666
echo >>$libTarget
6767

builds/install/arch-specific/win32/BuildExecutableInstall.bat

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ if "%FB2_SNAPSHOT%"=="1" (
163163
)
164164

165165
:: Set up our final destination
166-
set FBBUILD_INSTALL_IMAGES=%FB_ROOT_PATH%\builds\install_images
166+
@set FBBUILD_INSTALL_IMAGES=%FB_ROOT_PATH%\builds\install_images
167167
@if not exist "%FBBUILD_INSTALL_IMAGES%" ( mkdir "%FBBUILD_INSTALL_IMAGES%" )
168168

169169
:: Determine Product Status
@@ -173,10 +173,6 @@ set FBBUILD_INSTALL_IMAGES=%FB_ROOT_PATH%\builds\install_images
173173
set FBBUILD_PROD_STATUS=DEV
174174
)
175175

176-
:: if we do not have any external documentation we should not mark the build as production
177-
if not defined FB_EXTERNAL_DOCS set FBBUILD_PROD_STATUS=DEV
178-
179-
180176
@if "%FB_TARGET_PLATFORM%"=="x64" (
181177
set FBBUILD_FILE_ID=%PRODUCT_VER_STRING%-%FBBUILD_PACKAGE_NUMBER%%FBBUILD_FILENAME_SUFFIX%-windows-x64
182178
) else (
@@ -232,14 +228,18 @@ if not defined FB_EXTERNAL_DOCS set FBBUILD_PROD_STATUS=DEV
232228
:: these version numbers. %MSVC_RUNTIME_FILE_VERSION% should represent 140.
233229
:: %MSVC_RUNTIME_LIBRARY_VERSION% is based on the Visual Studio version used.
234230
:: These variables are set in setenvvar.bat.
235-
@for %%f in ( msvcp%MSVC_RUNTIME_FILE_VERSION%.dll vcruntime%MSVC_RUNTIME_FILE_VERSION%.dll ) do (
231+
:: Note 2: 32-bit vcruntime140_1.dll does not exist, hence the test for file existence
232+
@for %%f in ( msvcp%MSVC_RUNTIME_FILE_VERSION%.dll msvcp%MSVC_RUNTIME_FILE_VERSION%_1.dll vcruntime%MSVC_RUNTIME_FILE_VERSION%.dll vcruntime%MSVC_RUNTIME_FILE_VERSION%_1.dll ) do (
233+
if exist "%VCToolsRedistDir%\%VSCMD_ARG_TGT_ARCH%\Microsoft.VC%MSVC_RUNTIME_LIBRARY_VERSION%.CRT\%%f" (
236234
echo Copying "%VCToolsRedistDir%\%VSCMD_ARG_TGT_ARCH%\Microsoft.VC%MSVC_RUNTIME_LIBRARY_VERSION%.CRT\%%f"
237235
copy "%VCToolsRedistDir%\%VSCMD_ARG_TGT_ARCH%\Microsoft.VC%MSVC_RUNTIME_LIBRARY_VERSION%.CRT\%%f" %FB_OUTPUT_DIR%\ >nul
238236
if ERRORLEVEL 1 (
239-
call :ERROR Copying "%VCToolsRedistDir%\%VSCMD_ARG_TGT_ARCH%\Microsoft.VC%MSVC_RUNTIME_LIBRARY_VERSION%.CRT\%%f" failed with error %ERRLEV% & goto :EOF
237+
call :ERROR Copying "%VCToolsRedistDir%\%VSCMD_ARG_TGT_ARCH%\Microsoft.VC%MSVC_RUNTIME_LIBRARY_VERSION%.CRT\%%f" failed with error %ERRLEV% & goto :EOF
240238
)
239+
)
241240
)
242241

242+
243243
@if "%VSCMD_ARG_TGT_ARCH%"=="x86" (
244244
echo Generating fbclient_bor.lib
245245
where /Q implib.exe
@@ -250,19 +250,31 @@ if not defined FB_EXTERNAL_DOCS set FBBUILD_PROD_STATUS=DEV
250250
)
251251
)
252252

253+
253254
@if "%FBBUILD_SHIP_PDB%"=="ship_pdb" (
254255
echo Copying pdb files...
256+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\chacha\chacha.pdb %FB_OUTPUT_DIR%\plugins\ > nul
257+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\default_profiler\default_profiler.pdb %FB_OUTPUT_DIR%\plugins\ > nul
258+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\engine\engine*.pdb %FB_OUTPUT_DIR%\plugins\ > nul
259+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\fb_lock_print\fb_lock_print.pdb %FB_OUTPUT_DIR%\ > nul
255260
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\fbserver\firebird.pdb %FB_OUTPUT_DIR%\ > nul
256-
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\burp\burp.pdb %FB_OUTPUT_DIR%\gbak.pdb > nul
261+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\fbsvcmgr\fbsvcmgr.pdb %FB_OUTPUT_DIR%\ > nul
262+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\fbtrace\fbtrace.pdb %FB_OUTPUT_DIR%\plugins\ > nul
263+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\fbtracemgr\fbtracemgr.pdb %FB_OUTPUT_DIR%\ > nul
264+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\gbak\gbak.pdb %FB_OUTPUT_DIR%\ > nul
257265
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\gfix\gfix.pdb %FB_OUTPUT_DIR%\ > nul
266+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\gstat\gstat.pdb %FB_OUTPUT_DIR%\ > nul
267+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\ib_util\ib_util.pdb %FB_OUTPUT_DIR%\ > nul
268+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\intl\fbintl.pdb %FB_OUTPUT_DIR%\intl\ > nul
258269
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\isql\isql.pdb %FB_OUTPUT_DIR%\ > nul
259-
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\yvalve\fbclient.pdb %FB_OUTPUT_DIR%\ > nul
260-
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\engine\engine*.pdb %FB_OUTPUT_DIR%\plugins\ > nul
261-
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\fbtrace\fbtrace.pdb %FB_OUTPUT_DIR%\plugins\ > nul
262270
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\legacy_auth\legacy_auth.pdb %FB_OUTPUT_DIR%\plugins\ > nul
263271
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\legacy_usermanager\legacy_usermanager.pdb %FB_OUTPUT_DIR%\plugins\ > nul
272+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\nbackup\nbackup.pdb %FB_OUTPUT_DIR%\ > nul
264273
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\srp\srp.pdb %FB_OUTPUT_DIR%\plugins\ > nul
274+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\udf_compat\udf_compat.pdb %FB_OUTPUT_DIR%\plugins\udr\ > nul
275+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\udrcpp_example\udrcpp_example.pdb %FB_OUTPUT_DIR%\plugins\udr\ > nul
265276
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\udr_engine\udr_engine.pdb %FB_OUTPUT_DIR%\plugins\ > nul
277+
copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\yvalve\fbclient.pdb %FB_OUTPUT_DIR%\ > nul
266278
)
267279

268280
@echo Started copying docs...
@@ -387,8 +399,9 @@ for %%v in (IPLicense.txt IDPLicense.txt ) do (
387399
call :ERROR Could not generate MSVCC Runtime MSI %MSVC_RUNTIME_LIBRARY_VERSION% & goto :EOF
388400
)
389401
)
390-
) else (
391-
echo Using an existing build of %FB_OUTPUT_DIR%\system32\vccrt%MSVC_RUNTIME_LIBRARY_VERSION%_%FB_TARGET_PLATFORM%.msi
402+
) else (
403+
echo Using an existing build of %FB_OUTPUT_DIR%\system32\vccrt%MSVC_RUNTIME_LIBRARY_VERSION%_%FB_TARGET_PLATFORM%.msi
404+
)
392405
)
393406

394407
::End of BUILD_CRT_MSI

builds/install/arch-specific/win32/FirebirdInstall.iss

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,12 @@ Source: {#WOW64Dir}\zlib1.dll; DestDir: {app}\WOW64; Components: ClientComponent
544544
;We just install the runtimes into the install dir.
545545

546546
#if Int(msvc_runtime_major_version,14) >= 14
547-
Source: {#FilesDir}\{#msvcr_filename}{#msvc_runtime_file_version}.dll; DestDir: {app}; Components: ClientComponent; Flags: sharedfile;
548-
Source: {#FilesDir}\msvcp{#msvc_runtime_file_version}.dll; DestDir: {app}; Components: ClientComponent; Flags: sharedfile;
547+
Source: {#FilesDir}\{#msvcr_filename}{#msvc_runtime_file_version}*.dll; DestDir: {app}; Components: ClientComponent; Flags: sharedfile;
548+
Source: {#FilesDir}\msvcp{#msvc_runtime_file_version}*.dll; DestDir: {app}; Components: ClientComponent; Flags: sharedfile;
549549
#if PlatformTarget == "x64"
550550
;If we are installing on x64 we need some 32-bit libraries for compatibility with 32-bit applications
551-
Source: {#WOW64Dir}\{#msvcr_filename}{#msvc_runtime_file_version}.dll; DestDir: {app}\WOW64; Components: ClientComponent; Flags: sharedfile;
552-
Source: {#WOW64Dir}\msvcp{#msvc_runtime_file_version}.dll; DestDir: {app}\WOW64; Components: ClientComponent; Flags: sharedfile;
551+
Source: {#WOW64Dir}\{#msvcr_filename}{#msvc_runtime_file_version}*.dll; DestDir: {app}\WOW64; Components: ClientComponent; Flags: sharedfile;
552+
Source: {#WOW64Dir}\msvcp{#msvc_runtime_file_version}*.dll; DestDir: {app}\WOW64; Components: ClientComponent; Flags: sharedfile;
553553
#endif
554554
#endif /* #if Int(msvc_runtime_major_version,14) >= 10 */
555555

@@ -607,9 +607,13 @@ Source: {#FilesDir}\examples\*.*; DestDir: {app}\examples; Components: DevAdminC
607607
#ifdef ship_pdb
608608
Source: {#FilesDir}\fbclient.pdb; DestDir: {app}; Components: ClientComponent;
609609
Source: {#FilesDir}\firebird.pdb; DestDir: {app}; Components: ServerComponent;
610+
Source: {#FilesDir}\fbtracemgr.pdb; DestDir: {app}; Components: DevAdminComponent;
611+
Source: {#FilesDir}\intl\fbintl.pdb; DestDir: {app}\intl; Components: DevAdminComponent;
610612
Source: {#FilesDir}\gbak.pdb; DestDir: {app}; Components: DevAdminComponent;
611613
Source: {#FilesDir}\gfix.pdb; DestDir: {app}; Components: DevAdminComponent;
614+
Source: {#FilesDir}\ib_util.pdb; DestDir: {app}; Components: ServerComponent;
612615
Source: {#FilesDir}\isql.pdb; DestDir: {app}; Components: ClientComponent;
616+
Source: {#FilesDir}\nbackup.pdb; DestDir: {app}; Components: DevAdminComponent;
613617
Source: {#FilesDir}\plugins\*.pdb; DestDir: {app}\plugins; Components: ServerComponent;
614618
#if PlatformTarget == "x64"
615619
Source: {#WOW64Dir}\fbclient.pdb; DestDir: {app}\WOW64; Components: ClientComponent;
@@ -718,8 +722,8 @@ begin
718722
if ((pos('HELP',Uppercase(CommandLine)) > 0) or
719723
(pos('--',Uppercase(CommandLine)) > 0) )
720724
// or
721-
// (pos('/?',Uppercase(CommandLine)) > 0) or // InnoSetup displays its own help if these switches are passed.
722-
// (pos('/H',Uppercase(CommandLine)) > 0) ) // Note also that our help scren only appears after the Choose Language dialogue :-(
725+
// (pos('/?',Uppercase(CommandLine)) > 0) or // InnoSetup displays its own help if these switches are passed.
726+
// (pos('/H',Uppercase(CommandLine)) > 0) ) // Note also that our help screen only appears after the Choose Language dialogue :-(
723727
then begin
724728
ShowHelpDlg;
725729
result := False;

0 commit comments

Comments
 (0)