linux.x86.linphone/fixes/python-wrapper-build-fix
data a73458dfb6 add patches for python wrapper build fixes
Patches for linphone-sdk submodule to fix build errors:
- metadoc.py: null check for parametername node
- abstractapi.py: change exceptions to warnings for missing annotations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 18:10:01 +01:00
..
abstractapi.patch add patches for python wrapper build fixes 2026-02-06 18:10:01 +01:00
metadoc.patch add patches for python wrapper build fixes 2026-02-06 18:10:01 +01:00
README.md add patches for python wrapper build fixes 2026-02-06 18:10:01 +01:00

Python Wrapper Build Fixes

Problem

The Python wrapper generation fails during build with errors:

  1. AttributeError: 'NoneType' object has no attribute 'split' in metadoc.py
  2. Exceptions about missing maybenil/notnil annotations in abstractapi.py

Solution

metadoc.py

Added null check for parametername node text to prevent NoneType errors.

abstractapi.py

Changed hard exceptions to warnings for missing pointer annotations (maybenil/notnil). The code now defaults to maybenil=True when annotation is missing.

Apply Patches

cd external/linphone-sdk
patch -p1 < ../../fixes/python-wrapper-build-fix/metadoc.patch
patch -p1 < ../../fixes/python-wrapper-build-fix/abstractapi.patch

Files

  • metadoc.patch - Null check fix for parametername parsing
  • abstractapi.patch - Exception to warning conversion for pointer annotations