Skip to content

Conversation

@graysky2
Copy link

@graysky2 graysky2 commented Dec 26, 2025

Maintainer: no one
Compile tested: x86/64
Run tested: not run tested
Description:
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

Declare a dependency on BTREE_SUPPORT for rtpengine userspace variants and ensure the kernel module enables CONFIG_BTREE when built.

This PR depends on openwrt/openwrt#21416

Comment on lines 1 to 10
--- a/kernel-module/xt_RTPENGINE.c
+++ b/kernel-module/xt_RTPENGINE.c
@@ -38,7 +38,6 @@
#include <linux/btree.h>
#define KERNEL_PLAYER
#else
-#warning "Kernel without CONFIG_BTREE - kernel media player unavailable"
#endif

#include "xt_RTPENGINE.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is good that you do have mention why this patch is needed in the pull request, but it is missing in the patch itself.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest, this patch sounds to me like a hack and I dont like it so much.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just my idea to solve the build error. Happy to go another direction.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the module enforces -Werror, causing the build to fail on OpenWrt kernels where CONFIG_BTREE is disabled.

Do you have any log to see what is going on? I dont think that this should be merged as it is.
It is a question, why the issue is raised suddenly in 13.5.1.3. 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make[5]: Entering directory '/scratch/union/build_dir/target-x86_64_glibc/rtpengine-no-transcode/rtpengine-mr13.5.1.3/kernel-module'
  CC [M]  xt_RTPENGINE.o
xt_RTPENGINE.c:41:2: error: #warning "Kernel without CONFIG_BTREE - kernel media player unavailable" [-Werror=cpp]
   41 | #warning "Kernel without CONFIG_BTREE - kernel media player unavailable"
      |  ^~~~~~~
cc1: all warnings being treated as errors

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine, but should probably be fixed (in a better way) upstream. We can carry this for the time being.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of removing the warning, would it make sense to extend target/Config.in with BTREE support and make rtpengine depend on BTREE_SUPPORT?

Copy link
Author

@graysky2 graysky2 Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that make sense. I updated the PR. I do not think it is quite right. When I try building this I am seeing:

make[3]: Entering directory '/scratch/union/build_dir/target-x86_64_glibc/rtpengine-no-transcode/rtpengine-mr13.5.1.3/recording-daemon'
../utils/gen-common-flags >../config.mk.new
Error: Required package 'json-glib-1.0' not found
../lib/deps.Makefile:15: ../config.mk: No such file or directory
make[3]: *** [../lib/deps.Makefile:6: ../config.mk] Error 1
make[3]: Leaving directory '/scratch/union/build_dir/target-x86_64_glibc/rtpengine-no-transcode/rtpengine-mr13.5.1.3/recording-daemon'

Further the kernel config is not getting the CONFIG_BTREE=y option.

% grep BTREE /scratch/union/build_dir/target-x86_64_glibc/linux-x86_64/linux-6.12.63/.config
CONFIG_IPV6_SUBTREES=y
# CONFIG_RBTREE_TEST is not set

graysky2 added a commit to graysky2/openwrt that referenced this pull request Jan 5, 2026
Add a BTREE_SUPPORT capability to describe targets whose kernels provide
BTREE support, allowing packages to express a hard dependency without
making kernel config assumptions.

This is needed to merge before openwrt/telephony#930

Signed-off-by: John Audia <[email protected]>
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

Declare a dependency on BTREE_SUPPORT for rtpengine userspace variants
and ensure the kernel module enables CONFIG_BTREE when built.

This PR depends on openwrt/openwrt#21416

Signed-off-by: John Audia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants