Skip to content

Commit

Permalink
main/sofia-sip: fix build with gcc 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ncopa committed Aug 15, 2024
1 parent 656a4db commit a873b71
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
6 changes: 4 additions & 2 deletions main/sofia-sip/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <[email protected]>
pkgname=sofia-sip
pkgver=1.13.17
pkgrel=0
pkgrel=1
pkgdesc="RFC3261 compliant SIP User-Agent library"
url="https://github.com/freeswitch/sofia-sip"
arch="all"
Expand All @@ -14,6 +14,7 @@ checkdepends="check-dev"
subpackages="$pkgname-dev $pkgname-dbg"
source="$pkgname-$pkgver.tar.gz::https://github.com/freeswitch/sofia-sip/archive/v$pkgver.tar.gz
Support-forking-SIP-calls.patch
gcc14.patch
"

# secfixes:
Expand Down Expand Up @@ -53,5 +54,6 @@ doc() {
}
sha512sums="
356577d415d6dc4191f0f49f7fa1d6f33fafdb9e455556f83e091159055a215fc1ebfa9c7dc23b5f5e533b85e23afa7b1444170419fdf137aeb2ea048de77e08 sofia-sip-1.13.17.tar.gz
e79ba6dbc742e0dba9bb7364cf78cf192950900c139f74a59dd4e1713e97d947959a4d4987c06d29fadfd9e7dd0f970389ba640756a88e80f3093d697396a1e4 Support-forking-SIP-calls.patch
2134fa566b9e8b6d37be3f8d4713ad4e62432cfede36de8a9a492d27e17f90c6d91a585a1f43cf6d111c695c400ee720a82f0a7daf251213a2599f3b360d6ed2 Support-forking-SIP-calls.patch
ff201006536cf56be718e81a69f893de2f89ae0eaf904b5f32f45ff7c79371acf5a55f0788dbcb087c21c3d028e92fc2770a8880f7abbcf01c2cf27708722933 gcc14.patch
"
2 changes: 1 addition & 1 deletion main/sofia-sip/Support-forking-SIP-calls.patch
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ index 773d2fa1..8b23bbad 100644
su_home_t *home;
url_t *url;
char const *what = NULL;
+ sip_via_t *via = NULL;
+ const sip_via_t *via = NULL;

if (agent == NULL)
return su_seterrno(EINVAL), NULL;
Expand Down
23 changes: 23 additions & 0 deletions main/sofia-sip/gcc14.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
From 46b02f0655af0a9594e805f09a8ee99278f84777 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomi=20L=C3=A4hteenm=C3=A4ki?= <[email protected]>
Date: Mon, 19 Feb 2024 09:06:20 +0200
Subject: [PATCH] Fix incompatible pointer type in sip_basic.c

Closes #248
---
libsofia-sip-ua/sip/sip_basic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsofia-sip-ua/sip/sip_basic.c b/libsofia-sip-ua/sip/sip_basic.c
index 3444fb25..82e824e3 100644
--- a/libsofia-sip-ua/sip/sip_basic.c
+++ b/libsofia-sip-ua/sip/sip_basic.c
@@ -2901,7 +2901,7 @@ issize_t sip_identity_d(su_home_t *home, sip_header_t *h, char *s, isize_t slen)
ext = strchr(ppt, ';');

if (ext) {
- msg_param_t *params = su_alloc(home, sizeof(msg_param_t));
+ msg_param_t const *params = su_alloc(home, sizeof(msg_param_t));
if (msg_params_d(home, &ext, &params) >= 0) {
id->id_info_params = params;
}

0 comments on commit a873b71

Please sign in to comment.