Skip to content

Commit 5ee4cad

Browse files
authored
Merge branch 'apache:trunk' into trunk
2 parents 91bb313 + 2ce7b53 commit 5ee4cad

File tree

3 files changed

+43
-4
lines changed

3 files changed

+43
-4
lines changed

.github/workflows/linux.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,55 +17,75 @@ jobs:
1717
matrix:
1818
include:
1919
- name: Default
20+
os: ubuntu-latest
21+
# Check default shm decision logic for Linux:
22+
config-output: APR_USE_SHMEM_MMAP_SHM APR_USE_SHMEM_MMAP_ANON
23+
- name: Default (arm64)
24+
os: ubuntu-22.04-arm
2025
# Check default shm decision logic for Linux:
2126
config-output: APR_USE_SHMEM_MMAP_SHM APR_USE_SHMEM_MMAP_ANON
2227
- name: Static
28+
os: ubuntu-latest
2329
config: --enable-static
2430
- name: Maintainer-mode
31+
os: ubuntu-latest
2532
config: --enable-maintainer-mode
2633
- name: Named SHM - SysV, Maintainer-mode
34+
os: ubuntu-latest
2735
config: --enable-maintainer-mode --enable-sysv-shm
2836
config-output: APR_USE_SHMEM_SHMGET
2937
- name: Named SHM - Classic mmap, Maintainer-mode
38+
os: ubuntu-latest
3039
config: --enable-maintainer-mode ac_cv_func_shm_open=no ac_cv_func_shmget=no
3140
config-output: APR_USE_SHMEM_MMAP_TMP
3241
- name: Pool-debug
42+
os: ubuntu-latest
3343
config: --enable-pool-debug
3444
- name: Pool-debug, maintainer-mode
45+
os: ubuntu-latest
3546
config: --enable-pool-debug --enable-maintainer-mode
3647
- name: Thread-debug, maintainer-mode
48+
os: ubuntu-latest
3749
config: --enable-thread-debug --enable-maintainer-mode
3850
- name: Maintainer-mode, no IPv6
51+
os: ubuntu-latest
3952
config: --enable-maintainer-mode --disable-ipv6
4053
- name: Maintainer-mode, -Werror
54+
os: ubuntu-latest
4155
notest-cflags: -Werror
4256
config: --enable-maintainer-mode
4357
- name: With crypto
58+
os: ubuntu-latest
4459
config: --with-crypto=yes --with-openssl=yes
4560
config-output: APU_HAVE_CRYPTO APU_HAVE_OPENSSL
4661
- name: ASan
62+
os: ubuntu-latest
4763
# w/o ODBC since DSO unload leaks memory and fails the tests
4864
notest-cflags: -fsanitize=address -fno-sanitize-recover=address -fno-omit-frame-pointer -Werror -O2
4965
config: --with-odbc=no
5066
- name: ASan, pool-debug
67+
os: ubuntu-latest
5168
# w/o ODBC since DSO unload leaks memory and fails the tests
5269
notest-cflags: -fsanitize=address -fno-sanitize-recover=address -fno-omit-frame-pointer -Werror -O2
5370
config: --enable-pool-debug --with-odbc=no
5471
- name: UBsan
72+
os: ubuntu-latest
5573
notest-cflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer -Werror -O2
5674
- name: LMDB
75+
os: ubuntu-latest
5776
packages: liblmdb-dev
5877
notest-cflags: -Werror
5978
config: --enable-maintainer-mode --with-lmdb --with-dbm=lmdb
6079
config-output: APU_HAVE_LMDB
6180
- name: Berkeley DB v5.3
81+
os: ubuntu-latest
6282
packages: libdb5.3-dev
6383
notest-cflags: -Werror
6484
config: --enable-maintainer-mode --with-berkeley-db --with-dbm=db5
6585
config-output: APU_HAVE_DB
6686
fail-fast: false
6787

68-
runs-on: ubuntu-latest
88+
runs-on: ${{ matrix.os }}
6989
env:
7090
NOTEST_CFLAGS: ${{ matrix.notest-cflags }}
7191
name: ${{ matrix.name }}

.github/workflows/windows.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
generator: Ninja
2929
build-shared: ON
3030
dso-build: ON
31+
- name: Default arm64
32+
os: windows-11-arm
33+
triplet: arm64-windows
34+
arch: arm64
35+
build-type: Debug
36+
generator: Ninja
37+
build-shared: ON
38+
dso-build: ON
3139
- name: Use Expat
3240
os: windows-latest
3341
triplet: x64-windows
@@ -119,6 +127,17 @@ jobs:
119127
runs-on: ${{ matrix.os }}
120128

121129
steps:
130+
- name: Prepare Environment
131+
shell: pwsh
132+
run: |
133+
$root = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
134+
Import-Module "$root\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
135+
$OldEnv = ls env:
136+
Enter-VsDevShell -VsInstallPath $root -DevCmdArguments "-arch=${{ matrix.arch }}"
137+
$NewEnv = ls env:
138+
139+
Compare-Object $OldEnv $NewEnv -Property Name, Value -CaseSensitive | Where-Object -Property SideIndicator -EQ "=>" | foreach { "$($_.Name)=$($_.Value)" >> $env:GITHUB_ENV }
140+
122141
- name: Install dependencies
123142
if: ${{ matrix.packages != '' }}
124143
run: vcpkg install --triplet ${{ matrix.triplet }} ${{ matrix.packages }}
@@ -130,7 +149,6 @@ jobs:
130149
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
131150
shell: cmd
132151
run: |
133-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }}
134152
cmake -B ${{github.workspace}}/build ^
135153
-G "${{ matrix.generator }}" ^
136154
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} ^
@@ -145,7 +163,6 @@ jobs:
145163
# Build your program with the given configuration
146164
shell: cmd
147165
run: |
148-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }}
149166
cmake --build ${{github.workspace}}/build --config ${{ matrix.build-type }}
150167
151168
- name: Test

util-misc/apu_dso.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ apr_status_t apu_dso_load(apr_dso_handle_t **dlhandleptr,
146146

147147
entry = apr_hash_get(dsos, module, APR_HASH_KEY_STRING);
148148
if (entry) {
149-
*dlhandleptr = entry->handle;
149+
if (dlhandleptr) {
150+
*dlhandleptr = entry->handle;
151+
}
150152
*dsoptr = entry->sym;
151153
return APR_EINIT;
152154
}

0 commit comments

Comments
 (0)