Skip to content

Commit 9566922

Browse files
committed
patches: Fix patches for master branch.
* PR 1086 shouldn't be applied when installing from Git (master branch). * Add a CI build specifically against the master branch.
1 parent 175b2a0 commit 9566922

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,16 @@ jobs:
180180
run: |
181181
./phreaknet.sh make
182182
GIT_REPO_PATH=${GITHUB_WORKSPACE} phreaknet install --fast --dahdi --devmode --sip --vanilla --user=asterisk
183+
debian-stable-asterisk-master:
184+
runs-on: ubuntu-24.04
185+
name: Debian 12, Asterisk master branch
186+
container: debian:12
187+
steps:
188+
- uses: actions/checkout@v4
189+
- name: Build DAHDI and Asterisk
190+
run: |
191+
./phreaknet.sh make
192+
GIT_REPO_PATH=${GITHUB_WORKSPACE} phreaknet install --fast --dahdi --drivers --sip --testsuite --version=master
183193
debian-dahdi-minimal:
184194
runs-on: ubuntu-24.04
185195
name: Debian 12, without libpri and libss7

phreaknet.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,8 +2462,11 @@ phreak_patches() { # $1 = $PATCH_DIR, $2 = $AST_SRC_DIR
24622462
asterisk_pr_unconditional 245 # config.c: fix template inheritance/overrides.
24632463
fi
24642464

2465-
## Merged into master, not yet in a release version (use asterisk_pr_if, e.g. asterisk_pr_if 1234 220300 210800 201300)
2466-
asterisk_pr_unconditional 1086 220300 210800 201300 # Fix for Fedora 42 (old style definitions for libdb)
2465+
## Merged, not yet in a release version (use asterisk_pr_if, e.g. asterisk_pr_if 1234 220300 210800 201300)
2466+
if [ $AST_MAJOR_VER -lt 23 ]; then
2467+
# Underlying problem code was removed entirely in master, so patch only needed for release versions
2468+
asterisk_pr_unconditional 1086 220300 210800 201300 # Fix for Fedora 42 (old style definitions for libdb)
2469+
fi
24672470

24682471
## Unmerged patches: remove or switch to asterisk_pr_if once merged
24692472
asterisk_pr_unconditional 1089 # app_sms: Ignore false positive gcc warning

0 commit comments

Comments
 (0)