kodi-wayland: included patch for swig-4.2.0
This commit is contained in:
parent
7165e9151b
commit
7811ac7b9e
@ -1,10 +1,11 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF38jwY7AdDLEqlAVHNh/cA9M80XvzHbNXUWx/PG64deglyykJOpQLoeMuMW7qaTv5fWwDEEKms43BWfvM0JX46gI=
|
||||
SHA256 (Pkgfile) = 8b3a6e7f9ecd19ad974276086f762fdbfcd64df4a941009bf49fed939b0aa060
|
||||
RWSagIOpLGJF35nxLzwzTjRSAiUp3Um0Lf5ZFFtwQjW+0/9Jk4ToFejIlo4CXlKW+ehKQUqoD4HrH2jiuBqNvlmCYTzxmYHdTwQ=
|
||||
SHA256 (Pkgfile) = 4c2a6462bd339db25deb05bd06d42726ab908b377a598248befcc68637e8ec31
|
||||
SHA256 (.footprint) = b7344ab259de5a27ce4cae98f25bc6ff4a07609b949d8813bc71eefc64572440
|
||||
SHA256 (xbmc-20.4-Nexus.tar.gz) = ccb2d3e382b5ae628a89db2325f5e778f1770a2a182f6eaa25645a22ccdffb18
|
||||
SHA256 (ffmpeg-4.4.1-Nexus-Alpha1.tar.gz) = abbce62231baffe237e412689c71ffe01bfc83135afd375f1e538caae87729ed
|
||||
SHA256 (kodi-libdvdcss-1.4.3-Next-Nexus-Alpha2-2.tar.gz) = f38c4a4e7a4f4da6d8e83b8852489aa3bb6588a915dc41f5ee89d9aad305a06e
|
||||
SHA256 (kodi-libdvdnav-6.1.1-Next-Nexus-Alpha2-2.tar.gz) = 584f62a3896794408d46368e2ecf2c6217ab9c676ce85921b2d68b8961f49dfc
|
||||
SHA256 (kodi-libdvdread-6.1.3-Next-Nexus-Alpha2-2.tar.gz) = 719130091e3adc9725ba72df808f24a14737a009dca5a4c38c601c0c76449b62
|
||||
SHA256 (swig-4.2.0.patch) = 27909339dffbf08cc900514fb883291efb7f5b21648fcb09300629a3efd4fadb
|
||||
SHA256 (taglib.patch) = dc77cc0ba8eddef7b75b586b541e00c78db58d002e9928fdde6e9b34e5360cc7
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
name=kodi-wayland
|
||||
version=20.4
|
||||
release=1
|
||||
release=2
|
||||
|
||||
# version variables {{{
|
||||
_codename=Nexus
|
||||
@ -21,6 +21,7 @@ source=(https://github.com/xbmc/xbmc/archive/$version-$_codename/xbmc-$version-$
|
||||
https://github.com/xbmc/libdvdcss/archive/$_libdvdcss_version/${name/-wayland/}-libdvdcss-$_libdvdcss_version.tar.gz
|
||||
https://github.com/xbmc/libdvdnav/archive/$_libdvdnav_version/${name/-wayland/}-libdvdnav-$_libdvdnav_version.tar.gz
|
||||
https://github.com/xbmc/libdvdread/archive/$_libdvdread_version/${name/-wayland/}-libdvdread-$_libdvdread_version.tar.gz
|
||||
swig-4.2.0.patch
|
||||
taglib.patch)
|
||||
# }}}
|
||||
# unpack_source() {{{
|
||||
@ -73,6 +74,7 @@ build() {
|
||||
xbmc-$version-$_codename/tools/depends/native/JsonSchemaBuilder/src/autogen.sh
|
||||
|
||||
patch -Np1 -d xbmc-$version-$_codename -i $SRC/taglib.patch
|
||||
patch -Np1 -d xbmc-$version-$_codename -i $SRC/swig-4.2.0.patch
|
||||
|
||||
cmake -S xbmc-$version-$_codename -B build -G Ninja $KODI_EXTRA \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
|
35
kodi-wayland/swig-4.2.0.patch
Normal file
35
kodi-wayland/swig-4.2.0.patch
Normal file
@ -0,0 +1,35 @@
|
||||
From f6b1efbd6b3876537a25e7008bbf35254a1c55c7 Mon Sep 17 00:00:00 2001
|
||||
From: fuzzard <fuzzard@kodi.tv>
|
||||
Date: Mon, 1 Jan 2024 19:57:30 +1000
|
||||
Subject: [PATCH] [swig] Fix building with Swig 4.2.0
|
||||
|
||||
swig 4.2.0 introduced a change that adds a constructor to the generated AddonModuleXbmcaddon.i.cpp
|
||||
file. This causes failures such as
|
||||
|
||||
build/swig/AddonModuleXbmcaddon.i.cpp: In function 'PyObject* PythonBindings::xbmcaddon_XBMCAddon_xbmcaddon_Settings_New(PyTypeObject*, PyObject*, PyObject*)':
|
||||
build/swig/AddonModuleXbmcaddon.i.cpp:1751:52: error: no matching function for call to 'XBMCAddon::xbmcaddon::Settings::Settings()'
|
||||
1751 | apiResult = new XBMCAddon::xbmcaddon::Settings();
|
||||
| ^
|
||||
In file included from ../xbmc/interfaces/legacy/Addon.h:14,
|
||||
from build/swig/AddonModuleXbmcaddon.i.cpp:30:
|
||||
../xbmc/interfaces/legacy/Settings.h:58:3: note: candidate: 'XBMCAddon::xbmcaddon::Settings::Settings(std::shared_ptr<CSettingsBase>)'
|
||||
58 | Settings(std::shared_ptr<CSettingsBase> settings);
|
||||
| ^~~~~~~~
|
||||
../xbmc/interfaces/legacy/Settings.h:58:3: note: candidate expects 1 argument, 0 provided
|
||||
|
||||
If we disable the contructor for Settings, we get the same generated output as swig <=4.1.1
|
||||
---
|
||||
xbmc/interfaces/swig/AddonModuleXbmcaddon.i | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/xbmc/interfaces/swig/AddonModuleXbmcaddon.i b/xbmc/interfaces/swig/AddonModuleXbmcaddon.i
|
||||
index 6c00a1caa2f5a..d38794c043377 100644
|
||||
--- a/xbmc/interfaces/swig/AddonModuleXbmcaddon.i
|
||||
+++ b/xbmc/interfaces/swig/AddonModuleXbmcaddon.i
|
||||
@@ -33,5 +33,6 @@ using namespace xbmcaddon;
|
||||
%include "interfaces/legacy/AddonString.h"
|
||||
|
||||
%include "interfaces/legacy/Addon.h"
|
||||
+%nodefaultctor Settings;
|
||||
%include "interfaces/legacy/Settings.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user