Skip to content

Commit dbf81d6

Browse files
committed
Merge branch 'master' into work/listagg
2 parents 72a977f + ebc2632 commit dbf81d6

File tree

259 files changed

+9420
-8279
lines changed

Some content is hidden

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

259 files changed

+9420
-8279
lines changed

.github/actions/adjust-snapshot-buildno/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ runs:
1313
)
1414
) ||
1515
false
16-
shell: bash
16+
shell: sh
1717
run: |
1818
sed -i'' -e "s/SuffixKind=\(.*\)/SuffixKind=\"$(echo ${{ github.sha }} | cut -c 1-7)\"/" src/misc/writeBuildNum.sh
1919
mkdir gen

.github/workflows/main.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66

77
build-linux-ubuntu-x64-clang:
88
if: github.ref_type != 'tag'
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010

1111
steps:
1212
- name: Checkout
@@ -39,7 +39,7 @@ jobs:
3939

4040
build-linux-docker:
4141
name: build-linux-docker-${{ matrix.arch }}
42-
runs-on: ubuntu-22.04
42+
runs-on: ubuntu-24.04
4343
env:
4444
FB_DOCKER_PATH: ${{ (startsWith(matrix.arch, 'arm') && 'arm32-arm64') || 'x86-x64' }}
4545

@@ -94,7 +94,7 @@ jobs:
9494

9595
build-src-bundle-docker:
9696
name: build-src-bundle-docker
97-
runs-on: ubuntu-22.04
97+
runs-on: ubuntu-24.04
9898

9999
steps:
100100
- name: Checkout
@@ -122,8 +122,8 @@ jobs:
122122

123123
build-alpine-x64:
124124
if: github.ref_type != 'tag'
125-
runs-on: ubuntu-22.04
126-
container: alpine:3.14
125+
runs-on: ubuntu-24.04
126+
container: alpine:3.22.1
127127

128128
steps:
129129
- name: Checkout
@@ -441,7 +441,7 @@ jobs:
441441

442442
build-android-initial:
443443
name: build-android-${{ matrix.arch }}-initial
444-
runs-on: ubuntu-22.04
444+
runs-on: ubuntu-24.04
445445
env:
446446
NDK: /home/runner/Android/Ndk
447447
ARCH: ${{ matrix.arch }}
@@ -473,9 +473,9 @@ jobs:
473473
run: |
474474
mkdir downloads
475475
pushd downloads
476-
curl -OL https://dl.google.com/android/repository/android-ndk-r25b-linux.zip
476+
curl -OL https://dl.google.com/android/repository/android-ndk-r28c-linux.zip
477477
mkdir -p $NDK
478-
unzip android-ndk-r25b-linux.zip -d $NDK && f=("$NDK"/*) && mv "$NDK"/*/* "$NDK" && rmdir "${f[@]}"
478+
unzip android-ndk-r28c-linux.zip -d $NDK && f=("$NDK"/*) && mv "$NDK"/*/* "$NDK" && rmdir "${f[@]}"
479479
480480
- name: Build
481481
run: |
@@ -546,7 +546,7 @@ jobs:
546546
arch: x86_64
547547
api-level: 30
548548
target: google_apis
549-
ndk: 25.1.8937393
549+
ndk: 28.2.13676358
550550
emulator-options: -no-window -noaudio -no-boot-anim -camera-back none -port 5554
551551
emulator-boot-timeout: 900
552552
script: |
@@ -559,13 +559,13 @@ jobs:
559559
arch: x86_64
560560
api-level: 30
561561
target: google_apis
562-
ndk: 25.1.8937393
562+
ndk: 28.2.13676358
563563
emulator-options: -no-snapshot-save -no-window -noaudio -no-boot-anim -camera-back none -port 5554
564564
emulator-boot-timeout: 900
565565
script: |
566566
adb wait-for-device
567567
adb root
568-
NDK=/usr/local/lib/android/sdk/ndk/25.1.8937393 builds/install/arch-specific/android/BuildFinalPackage.sh $ARCH
568+
NDK=/usr/local/lib/android/sdk/ndk/28.2.13676358 builds/install/arch-specific/android/BuildFinalPackage.sh $ARCH
569569
570570
- name: Upload installer
571571
uses: actions/upload-artifact@v4
@@ -593,7 +593,7 @@ jobs:
593593

594594
build-android-aar:
595595
needs: build-android-final
596-
runs-on: ubuntu-22.04
596+
runs-on: ubuntu-24.04
597597

598598
steps:
599599
- name: Checkout

builds/posix/make.android.arm64

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ endif
66

77
NDK_TOOLCHAIN ?= $(NDK)/toolchains/llvm/prebuilt/linux-x86_64
88

9-
CROSS_PREFIX24:=$(NDK_TOOLCHAIN)/bin/aarch64-linux-android24-
9+
CROSS_PREFIX29:=$(NDK_TOOLCHAIN)/bin/aarch64-linux-android29-
1010
CROSS_PREFIX:=$(NDK_TOOLCHAIN)/bin/llvm-
1111

1212
CROSS_FLAGS:=-I$(ROOT)/gen/cross
1313

14-
CXX:=$(CROSS_PREFIX24)clang++
15-
CC:=$(CROSS_PREFIX24)clang
14+
CXX:=$(CROSS_PREFIX29)clang++
15+
CC:=$(CROSS_PREFIX29)clang
1616
AR:=$(CROSS_PREFIX)ar
1717
AS:=$(CROSS_PREFIX)as
1818
LD:=$(CROSS_PREFIX)ld
@@ -33,6 +33,9 @@ LIB_PLATFORM_RPATH=-Wl,-rpath,\$$ORIGIN
3333
LibraryFullName=$(LibraryBaseName)
3434
LibrarySoName=$(LibraryBaseName)
3535

36+
# Global c++ flags: firebird needs no RTTI, choose build standard and c++ specific warnings level
37+
PLUSPLUS_FLAGS:= -fno-rtti -std=c++20 -Werror=delete-incomplete -Werror=return-type
38+
3639
COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DARM64 -pipe -MMD -fPIC -fmessage-length=0 \
3740
-I$(ROOT)/extern/libtommath -I$(ROOT)/extern/libtomcrypt/src/headers \
3841
$(CROSS_FLAGS) -fsigned-char \
@@ -46,7 +49,7 @@ DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS)
4649

4750
CROSS_CONFIG=android.arm64
4851

49-
LDFLAGS += -static-libstdc++
52+
LDFLAGS += -static-libstdc++ -Wl,-z,max-page-size=16384
5053
DroidLibs := -lm -ldl -llog $(DECLIB) $(I128LIB)
5154
UDR_SUPPORT_LIBS :=
5255

builds/posix/make.android.arme

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ endif
66

77
NDK_TOOLCHAIN ?= $(NDK)/toolchains/llvm/prebuilt/linux-x86_64
88

9-
CROSS_PREFIX24:=$(NDK_TOOLCHAIN)/bin/armv7a-linux-androideabi24-
9+
CROSS_PREFIX29:=$(NDK_TOOLCHAIN)/bin/armv7a-linux-androideabi29-
1010
CROSS_PREFIX:=$(NDK_TOOLCHAIN)/bin/llvm-
1111

1212
CROSS_FLAGS:=-I$(ROOT)/gen/cross
1313

14-
CXX:=$(CROSS_PREFIX24)clang++
15-
CC:=$(CROSS_PREFIX24)clang
14+
CXX:=$(CROSS_PREFIX29)clang++
15+
CC:=$(CROSS_PREFIX29)clang
1616
AR:=$(CROSS_PREFIX)ar
1717
AS:=$(CROSS_PREFIX)as
1818
LD:=$(CROSS_PREFIX)ld
@@ -33,6 +33,9 @@ LIB_PLATFORM_RPATH=-Wl,-rpath,\$$ORIGIN
3333
LibraryFullName=$(LibraryBaseName)
3434
LibrarySoName=$(LibraryBaseName)
3535

36+
# Global c++ flags: firebird needs no RTTI, choose build standard and c++ specific warnings level
37+
PLUSPLUS_FLAGS:= -fno-rtti -std=c++20 -Werror=delete-incomplete -Werror=return-type
38+
3639
COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DARM -pipe -MMD -fPIC -fmessage-length=0 \
3740
-I$(ROOT)/extern/libtommath -I$(ROOT)/extern/libtomcrypt/src/headers \
3841
$(CROSS_FLAGS) -fsigned-char \
@@ -46,7 +49,7 @@ DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS)
4649

4750
CROSS_CONFIG=android.arme
4851

49-
LDFLAGS += -static-libstdc++
52+
LDFLAGS += -static-libstdc++ -Wl,-z,max-page-size=16384
5053
DroidLibs := -lm -ldl -llog $(DECLIB) $(I128LIB)
5154
UDR_SUPPORT_LIBS :=
5255

builds/posix/make.android.x86

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ endif
66

77
NDK_TOOLCHAIN ?= $(NDK)/toolchains/llvm/prebuilt/linux-x86_64
88

9-
CROSS_PREFIX24:=$(NDK_TOOLCHAIN)/bin/i686-linux-android24-
9+
CROSS_PREFIX29:=$(NDK_TOOLCHAIN)/bin/i686-linux-android29-
1010
CROSS_PREFIX:=$(NDK_TOOLCHAIN)/bin/llvm-
1111

1212
CROSS_FLAGS:=-I$(ROOT)/gen/cross
1313

14-
CXX:=$(CROSS_PREFIX24)clang++
15-
CC:=$(CROSS_PREFIX24)clang
14+
CXX:=$(CROSS_PREFIX29)clang++
15+
CC:=$(CROSS_PREFIX29)clang
1616
AR:=$(CROSS_PREFIX)ar
1717
AS:=$(CROSS_PREFIX)as
1818
LD:=$(CROSS_PREFIX)ld
@@ -33,6 +33,9 @@ LIB_PLATFORM_RPATH=-Wl,-rpath,\$$ORIGIN
3333
LibraryFullName=$(LibraryBaseName)
3434
LibrarySoName=$(LibraryBaseName)
3535

36+
# Global c++ flags: firebird needs no RTTI, choose build standard and c++ specific warnings level
37+
PLUSPLUS_FLAGS:= -fno-rtti -std=c++20 -Werror=delete-incomplete -Werror=return-type
38+
3639
COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -pipe -MMD -fPIC -fmessage-length=0 \
3740
-I$(ROOT)/extern/libtommath -I$(ROOT)/extern/libtomcrypt/src/headers \
3841
$(CROSS_FLAGS) \
@@ -46,7 +49,7 @@ DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS)
4649

4750
CROSS_CONFIG=android.x86
4851

49-
LDFLAGS += -static-libstdc++
52+
LDFLAGS += -static-libstdc++ -Wl,-z,max-page-size=16384
5053
DroidLibs := -lm -ldl -llog $(DECLIB) $(I128LIB)
5154
UDR_SUPPORT_LIBS :=
5255

builds/posix/make.android.x86_64

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ endif
66

77
NDK_TOOLCHAIN ?= $(NDK)/toolchains/llvm/prebuilt/linux-x86_64
88

9-
CROSS_PREFIX24:=$(NDK_TOOLCHAIN)/bin/x86_64-linux-android24-
9+
CROSS_PREFIX29:=$(NDK_TOOLCHAIN)/bin/x86_64-linux-android29-
1010
CROSS_PREFIX:=$(NDK_TOOLCHAIN)/bin/llvm-
1111

1212
CROSS_FLAGS:=-I$(ROOT)/gen/cross
1313

14-
CXX:=$(CROSS_PREFIX24)clang++
15-
CC:=$(CROSS_PREFIX24)clang
14+
CXX:=$(CROSS_PREFIX29)clang++
15+
CC:=$(CROSS_PREFIX29)clang
1616
AR:=$(CROSS_PREFIX)ar
1717
AS:=$(CROSS_PREFIX)as
1818
LD:=$(CROSS_PREFIX)ld
@@ -33,6 +33,9 @@ LIB_PLATFORM_RPATH=-Wl,-rpath,\$$ORIGIN
3333
LibraryFullName=$(LibraryBaseName)
3434
LibrarySoName=$(LibraryBaseName)
3535

36+
# Global c++ flags: firebird needs no RTTI, choose build standard and c++ specific warnings level
37+
PLUSPLUS_FLAGS:= -fno-rtti -std=c++20 -Werror=delete-incomplete -Werror=return-type
38+
3639
COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DAMD64 -pipe -MMD -fPIC -fmessage-length=0 \
3740
-I$(ROOT)/extern/libtommath -I$(ROOT)/extern/libtomcrypt/src/headers \
3841
$(CROSS_FLAGS) \
@@ -46,7 +49,7 @@ DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS)
4649

4750
CROSS_CONFIG=android.x86_64
4851

49-
LDFLAGS += -static-libstdc++
52+
LDFLAGS += -static-libstdc++ -Wl,-z,max-page-size=16384
5053
DroidLibs := -lm -ldl -llog $(DECLIB) $(I128LIB)
5154
UDR_SUPPORT_LIBS :=
5255

builds/posix/make.shared.variables

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ AllObjects += $(Common_Objects)
3939
# Common test files
4040
COT1:= $(call dirObjects,common/tests)
4141
COT2:= $(call dirObjects,common/classes/tests)
42-
Common_Test_Objects:= $(COT1) $(COT2) $(call makeObjects,yvalve,gds.cpp)
42+
COT3:= $(call dirObjects,common/ipc/tests)
43+
Common_Test_Objects:= $(COT1) $(COT2) $(COT3) $(call makeObjects,yvalve,gds.cpp)
4344

4445
AllObjects += $(Common_Test_Objects)
4546

@@ -91,7 +92,7 @@ Engine_Objects:= $(call dirObjects,jrd) $(call dirObjects,dsql) $(call dirObject
9192
$(call dirObjects,jrd/sys-packages) $(call dirObjects,jrd/trace) \
9293
$(call makeObjects,lock,lock.cpp)
9394

94-
Engine_Test_Objects:= $(call dirObjects,jrd/tests)
95+
Engine_Test_Objects:= $(call dirObjects,jrd/tests) $(call dirObjects,lock/tests)
9596

9697
AllObjects += $(Engine_Objects) $(Engine_Test_Objects)
9798

builds/posix/prefix.linux_arm64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
#PROD_FLAGS=-ggdb -O3 -fno-omit-frame-pointer -DLINUX -pipe -MMD -fPIC
2424
#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch
2525

26-
PROD_FLAGS=-O3 -DLINUX -DARM64 -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0
27-
DEV_FLAGS=-ggdb -DLINUX -DARM64 -pipe -p -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor
26+
PROD_FLAGS=-O3 -DLINUX -DARM64 -pipe -MMD -fPIC -fsigned-char -fmessage-length=0
27+
DEV_FLAGS=-ggdb -DLINUX -DARM64 -pipe -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- compatibility.manifest -->
2+
<!-- see https://learn.microsoft.com/en-us/windows/win32/sysinfo/targeting-your-application-at-windows-8-1 -->
3+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
4+
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
5+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
6+
<application>
7+
<!-- Windows 10 and Windows 11 -->
8+
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
9+
<!-- Windows 8.1 -->
10+
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
11+
<!-- Windows 8 -->
12+
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
13+
<!-- Windows 7 -->
14+
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
15+
<!-- Windows Vista -->
16+
<!-- supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/ -->
17+
</application>
18+
</compatibility>
19+
</assembly>

builds/win32/msvc15/FirebirdCommon.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,8 @@
4444
<ResourceCompile>
4545
<PreprocessorDefinitions>RC_ARH_$(Platform);RC_TARGET_$(TargetName);RC_TARGET_NAME=$(TargetName);RC_TARGET_FILENAME=$(TargetFileName);%(PreprocessorDefinitions)</PreprocessorDefinitions>
4646
</ResourceCompile>
47+
<Manifest>
48+
<AdditionalManifestFiles>..\defs\compatibility.manifest %(AdditionalManifestFiles)</AdditionalManifestFiles>
49+
</Manifest>
4750
</ItemDefinitionGroup>
4851
</Project>

0 commit comments

Comments
 (0)