Skip to content

Commit 58f4ba1

Browse files
grayskygraysky
authored andcommitted
rtpengine: update to 13.5.1.3
This release is needed to build against linux 6.18. Removed upstreamed patches: 101-use-spandsp3.patch 104-daemon-poller-fix-compilation-error-for-pthread-tid.patch Manually rebased: 100-prevent-systemd-detection.patch Added: 101-disable-config_btree_warn.patch This patch is needed as the xt_RTPENGINE kernel module emits a preprocessor #warning when CONFIG_BTREE is unset, and the module enforces -Werror, causing the build to fail on OpenWrt kernels where CONFIG_BTREE is disabled. Remove the #warning to allow building without enabling BTREE support. Signed-off-by: graysky <therealgraysky AT proton DOT me>
1 parent 40dcae6 commit 58f4ba1

7 files changed

+42
-82
lines changed

net/rtpengine/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ include $(TOPDIR)/rules.mk
77
include $(INCLUDE_DIR)/kernel.mk
88

99
PKG_NAME:=rtpengine
10-
PKG_VERSION:=11.5.1.49
10+
PKG_VERSION:=13.5.1.3
1111
PKG_RELEASE:=1
1212

1313
PKG_SOURCE:=$(PKG_NAME)-mr$(PKG_VERSION).tar.gz
1414
PKG_SOURCE_URL:=https://codeload.github.com/sipwise/rtpengine/tar.gz/mr$(PKG_VERSION)?
15-
PKG_HASH:=33e9565ad221ba86bb985d3983a3871edc17c0b4221bc220fdb3715fce0a828a
15+
PKG_HASH:=3cfefd1e6f84f276c7503e2aca2e2ba9464999fc68558f67db2575a927c4237d
1616

1717
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-mr$(PKG_VERSION)
1818

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
--- a/lib/lib.Makefile
2-
+++ b/lib/lib.Makefile
3-
@@ -35,10 +35,10 @@ ifeq ($(RTPENGINE_VERSION),)
4-
endif
5-
CFLAGS+= -DRTPENGINE_VERSION="\"$(RTPENGINE_VERSION)\""
1+
--- a/utils/gen-common-flags
2+
+++ b/utils/gen-common-flags
3+
@@ -102,10 +102,11 @@ if pkg-config --exists libmosquitto; the
4+
fi
65

7-
-# look for libsystemd
8-
-ifeq ($(shell pkg-config --exists libsystemd && echo yes),yes)
9-
-have_libsystemd := yes
10-
-endif
11-
+# No libsystemd in OpenWrt, but pkg-config could find build host's.
12-
+#ifeq ($(shell pkg-config --exists libsystemd && echo yes),yes)
13-
+have_libsystemd := no
14-
+#endif
15-
ifeq ($(have_libsystemd),yes)
16-
CFLAGS+= $(shell pkg-config --cflags libsystemd)
17-
CFLAGS+= -DHAVE_LIBSYSTEMD
6+
# look for libsystemd
7+
-if pkg-config --exists libsystemd; then
8+
- gen-pkgconf-flags LIBSYSTEMD libsystemd
9+
- echo "CFLAGS_LIBSYSTEMD += -DHAVE_LIBSYSTEMD"
10+
-fi
11+
+# No libsystemd in OpenWrt, but pkg-config could find build host's.
12+
+#if pkg-config --exists libsystemd; then
13+
+# gen-pkgconf-flags LIBSYSTEMD libsystemd
14+
+# echo "CFLAGS_LIBSYSTEMD += -DHAVE_LIBSYSTEMD"
15+
+#fi
16+
17+
# look for liburing
18+
if pkg-config --atleast-version=2.3 liburing; then
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- a/kernel-module/xt_RTPENGINE.c
2+
+++ b/kernel-module/xt_RTPENGINE.c
3+
@@ -38,7 +38,6 @@
4+
#include <linux/btree.h>
5+
#define KERNEL_PLAYER
6+
#else
7+
-#warning "Kernel without CONFIG_BTREE - kernel media player unavailable"
8+
#endif
9+
10+
#include "xt_RTPENGINE.h"

net/rtpengine/patches/101-use-spandsp3.patch

Lines changed: 0 additions & 20 deletions
This file was deleted.

net/rtpengine/patches/102-always-dynamically-allocate-buffer-for-kernel-mod.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
--- a/kernel-module/xt_RTPENGINE.c
22
+++ b/kernel-module/xt_RTPENGINE.c
3-
@@ -3786,7 +3786,6 @@ static inline ssize_t proc_control_read_
3+
@@ -4716,7 +4716,6 @@ static inline ssize_t proc_control_read_
44
struct rtpengine_table *t;
55
int err;
66
enum rtpengine_command cmd;
77
- char scratchbuf[512];
8-
size_t readlen, writelen, writeoffset;
9-
int i;
108

11-
@@ -3828,13 +3827,9 @@ static inline ssize_t proc_control_read_
9+
union {
10+
struct rtpengine_command_init *init;
11+
@@ -4761,13 +4760,9 @@ static inline ssize_t proc_control_read_
1212
return -ERANGE;
1313

1414
// do we need an extra large storage buffer?
@@ -25,7 +25,7 @@
2525

2626
// get our table
2727
inode = file->f_path.dentry->d_inode;
28-
@@ -3947,16 +3942,14 @@ static inline ssize_t proc_control_read_
28+
@@ -4877,16 +4872,14 @@ static inline ssize_t proc_control_read_
2929
goto err_free;
3030
}
3131

net/rtpengine/patches/103-no-docs.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
--- a/lib/common.Makefile
22
+++ b/lib/common.Makefile
3-
@@ -34,12 +34,6 @@ $(DAEMONSRCS) $(HASHSRCS): $(patsubst %,
4-
echo '#line 1' && \
5-
cat ../daemon/"$@" ) > "$@"
3+
@@ -51,12 +51,6 @@ install:
4+
5+
$(ALLOBJS): Makefile ../include/* ../lib/*.h ../kernel-module/*.h
66

77
-%.8: ../docs/%.md
88
- cat "$<" | sed '/^# /d; s/^##/#/' | \
@@ -11,13 +11,13 @@
1111
- -M "date:$(BUILD_DATE)" \
1212
- -o "$@"
1313

14-
resample.c codeclib.strhash.c mix.c packet.c: fix_frame_channel_layout.h
14+
resample.c ../lib/codeclib.strhash.c mix.c packet.c: ../lib/fix_frame_channel_layout.h
1515

1616
--- a/daemon/Makefile
1717
+++ b/daemon/Makefile
18-
@@ -93,11 +93,8 @@ LIBASM= mvr2s_x64_avx2.S mvr2s_x64_avx5
18+
@@ -113,11 +113,8 @@ ifneq ($(have_liburing),yes)
19+
LIBSRCS+= uring.c
1920
endif
20-
OBJS= $(SRCS:.c=.o) $(LIBSRCS:.c=.o) $(LIBASM:.S=.o)
2121

2222
-MDS= rtpengine.ronn
2323
-MANS= $(MDS:.ronn=.8)
@@ -29,9 +29,9 @@
2929
- install -m 0644 -D $(TARGET).8 $(DESTDIR)/usr/share/man/man8/$(TARGET).8
3030
--- a/recording-daemon/Makefile
3131
+++ b/recording-daemon/Makefile
32-
@@ -39,11 +39,8 @@ LIBSRCS= loglib.c auxlib.c rtplib.c code
32+
@@ -56,11 +56,8 @@ LIBSRCS= loglib.c auxlib.c rtplib.c code
33+
dtmflib.c bufferpool.c bencode.c http.c s3utils.c oauth.c
3334
LIBASM= mvr2s_x64_avx2.S mvr2s_x64_avx512.S mix_in_x64_avx2.S mix_in_x64_avx512bw.S mix_in_x64_sse2.S
34-
OBJS= $(SRCS:.c=.o) $(LIBSRCS:.c=.o) $(LIBASM:.S=.o)
3535

3636
-MDS= rtpengine-recording.ronn
3737
-MANS= $(MDS:.ronn=.8)

net/rtpengine/patches/104-daemon-poller-fix-compilation-error-for-pthread-tid.patch

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)