From 04dafb27942ac282d1c3ea5016ed0516d21eb2b8 Mon Sep 17 00:00:00 2001 From: marmeladema Date: Wed, 10 Mar 2021 12:20:31 +0000 Subject: [PATCH 1/5] kodi: update to 19.0-Matrix --- .../kodi/patches/add-missing-cassert.patch | 20 -------- srcpkgs/kodi/patches/crossguid-0.2.patch | 37 -------------- srcpkgs/kodi/patches/fix-musl.patch | 4 +- srcpkgs/kodi/patches/remove-filewrap.patch | 40 --------------- srcpkgs/kodi/template | 49 ++++++++++++++----- 5 files changed, 39 insertions(+), 111 deletions(-) delete mode 100644 srcpkgs/kodi/patches/add-missing-cassert.patch delete mode 100644 srcpkgs/kodi/patches/crossguid-0.2.patch delete mode 100644 srcpkgs/kodi/patches/remove-filewrap.patch diff --git a/srcpkgs/kodi/patches/add-missing-cassert.patch b/srcpkgs/kodi/patches/add-missing-cassert.patch deleted file mode 100644 index 1e9d86040829..000000000000 --- a/srcpkgs/kodi/patches/add-missing-cassert.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/xbmc/windowing/GraphicContext.cpp 2019-11-16 12:12:49.000000000 +0100 -+++ b/xbmc/windowing/GraphicContext.cpp 2020-01-16 21:15:35.293001948 +0100 -@@ -6,6 +6,7 @@ - * See LICENSES/README.md for more information. - */ - -+#include - #include "GraphicContext.h" - #include "WinSystem.h" - #include "Application.h" ---- a/xbmc/profiles/dialogs/GUIDialogProfileSettings.cpp 2019-11-16 12:12:49.000000000 +0100 -+++ b/xbmc/profiles/dialogs/GUIDialogProfileSettings.cpp 2020-01-16 21:47:47.500101629 +0100 -@@ -8,6 +8,7 @@ - - #include "GUIDialogProfileSettings.h" - -+#include - #include - - #include "dialogs/GUIDialogFileBrowser.h" diff --git a/srcpkgs/kodi/patches/crossguid-0.2.patch b/srcpkgs/kodi/patches/crossguid-0.2.patch deleted file mode 100644 index 1c18a84c72ab..000000000000 --- a/srcpkgs/kodi/patches/crossguid-0.2.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- a/cmake/modules/FindCrossGUID.cmake 2019-01-30 18:31:51.519546398 +0100 -+++ b/cmake/modules/FindCrossGUID.cmake 2019-01-30 18:32:51.197608565 +0100 -@@ -49,10 +49,10 @@ - set(CROSSGUID_LIBRARIES ${CROSSGUID_LIBRARY}) - set(CROSSGUID_INCLUDE_DIRS ${CROSSGUID_INCLUDE_DIR}) - else() -- find_path(CROSSGUID_INCLUDE_DIR NAMES guid.h) -+ find_path(CROSSGUID_INCLUDE_DIR NAMES Guid.hpp) - -- find_library(CROSSGUID_LIBRARY_RELEASE NAMES crossguid) -- find_library(CROSSGUID_LIBRARY_DEBUG NAMES crossguidd) -+ find_library(CROSSGUID_LIBRARY_RELEASE NAMES xg) -+ find_library(CROSSGUID_LIBRARY_DEBUG NAMES xg) - - include(SelectLibraryConfigurations) - select_library_configurations(CROSSGUID) ---- a/xbmc/utils/StringUtils.cpp 2019-01-30 18:35:42.588517593 +0100 -+++ b/xbmc/utils/StringUtils.cpp 2019-01-30 18:37:38.058555463 +0100 -@@ -16,7 +16,7 @@ - // - //------------------------------------------------------------------------ - --#include -+#include - - #if defined(TARGET_ANDROID) - #include -@@ -1126,8 +1126,7 @@ - - std::string StringUtils::CreateUUID() - { -- static GuidGenerator guidGenerator; -- auto guid = guidGenerator.newGuid(); -+ auto guid = xg::newGuid(); - - std::stringstream strGuid; strGuid << guid; - return strGuid.str(); diff --git a/srcpkgs/kodi/patches/fix-musl.patch b/srcpkgs/kodi/patches/fix-musl.patch index 98fa08aaffba..c2eb622c98a4 100644 --- a/srcpkgs/kodi/patches/fix-musl.patch +++ b/srcpkgs/kodi/patches/fix-musl.patch @@ -4,8 +4,8 @@ #ifdef __cplusplus extern "C" { #endif --#if defined(TARGET_ANDROID) && defined(__i386__) && !defined(modify_ldt) -+#if defined(__linux__) && !defined(__GLIBC__) && !defined(modify_ldt) +-#if defined(TARGET_ANDROID) && (defined(__i386__) || defined(__x86_64__)) && !defined(modify_ldt) ++#if defined(__linux__) && (defined(__i386__) || defined(__x86_64__)) && !defined(modify_ldt) #define modify_ldt(a,b,c) syscall( __NR_modify_ldt, a, b, c); #else int modify_ldt(int func, void *ptr, unsigned long bytecount); diff --git a/srcpkgs/kodi/patches/remove-filewrap.patch b/srcpkgs/kodi/patches/remove-filewrap.patch deleted file mode 100644 index 76f6602063aa..000000000000 --- a/srcpkgs/kodi/patches/remove-filewrap.patch +++ /dev/null @@ -1,40 +0,0 @@ ---- a/xbmc/platform/posix/utils/PosixInterfaceForCLog.cpp 2019-01-30 19:51:15.744119125 +0100 -+++ b/xbmc/platform/posix/utils/PosixInterfaceForCLog.cpp 2019-01-30 19:54:51.940377340 +0100 -@@ -17,10 +17,6 @@ - #include "platform/android/activity/XBMCApp.h" - #endif // TARGET_ANDROID - --struct FILEWRAP : public FILE --{}; -- -- - CPosixInterfaceForCLog::CPosixInterfaceForCLog() : - m_file(NULL) - { } -@@ -40,7 +36,7 @@ - (void)remove(backupOldLogToFilename.c_str()); // if it's failed, try to continue - (void)rename(logFilename.c_str(), backupOldLogToFilename.c_str()); // if it's failed, try to continue - -- m_file = (FILEWRAP*)fopen(logFilename.c_str(), "wb"); -+ m_file = fopen(logFilename.c_str(), "wb"); - if (!m_file) - return false; // error, can't open log file - ---- a/xbmc/platform/posix/utils/PosixInterfaceForCLog.h 2019-01-30 19:55:21.460002043 +0100 -+++ b/xbmc/platform/posix/utils/PosixInterfaceForCLog.h 2019-01-30 19:55:36.156814572 +0100 -@@ -10,8 +10,6 @@ - - #include - --struct FILEWRAP; // forward declaration, wrapper for FILE -- - class CPosixInterfaceForCLog - { - public: -@@ -23,5 +21,5 @@ - void PrintDebugString(const std::string& debugString); - static void GetCurrentLocalTime(int& hour, int& minute, int& second, double& millisecond); - private: -- FILEWRAP* m_file; -+ FILE* m_file; - }; diff --git a/srcpkgs/kodi/template b/srcpkgs/kodi/template index bff11d8ae5ad..9905a0293d4c 100644 --- a/srcpkgs/kodi/template +++ b/srcpkgs/kodi/template @@ -1,19 +1,38 @@ # Template file for 'kodi' pkgname=kodi -version=18.9 -revision=6 -_codename="Leia" +version=19.0 +revision=1 +_codename="Matrix" wrksrc="xbmc-${version}-${_codename}" build_style=cmake -configure_args="-DENABLE_INTERNAL_CROSSGUID=OFF -DWITH_FFMPEG=/usr - -DENABLE_LDGOLD=OFF" +configure_args="-DWITH_FFMPEG=/usr -DENABLE_LDGOLD=OFF + -DAPP_RENDER_SYSTEM=gl -DENABLE_INTERNAL_CROSSGUID=ON + -DCROSSGUID_URL=${XBPS_SRCDISTDIR}/${pkgname}-${version}/crossguid-8f399e8bd4.tar.gz + -Dlibdvdcss_URL=${XBPS_SRCDISTDIR}/${pkgname}-${version}/libdvdcss-1.4.2-Leia-Beta-5.tar.gz + -Dlibdvdread_URL=${XBPS_SRCDISTDIR}/${pkgname}-${version}/libdvdread-6.0.0-Leia-Alpha-3.tar.gz + -Dlibdvdnav_URL=${XBPS_SRCDISTDIR}/${pkgname}-${version}/libdvdnav-6.0.0-Leia-Alpha-3.tar.gz" +make_build_target="all" short_desc="Software media player and entertainment hub for digital media" maintainer="Orphaned " license="GPL-2.0-or-later" homepage="http://www.kodi.tv" distfiles="https://github.com/xbmc/xbmc/archive/${version}-${_codename}.tar.gz" -checksum=bdf8afa9356b1f815de9984801d3e0d2b46a719e747895b75528f20995c59d2b -python_version=2 +checksum=f7ef8a6f45862ae3b7ebfce4950d74f534be3cb4a0e67ce640963746b3f668f2 +# Add CrossGUID dependency +distfiles+=" http://mirrors.kodi.tv/build-deps/sources/crossguid-8f399e8bd4.tar.gz" +checksum+=" 3d77d09a5df0de510aeeb940df4cb534787ddff3bb1828779753f5dfa1229d10" +# Add libdvdcss dependency +distfiles+=" https://github.com/xbmc/libdvdcss/archive/1.4.2-Leia-Beta-5.tar.gz>libdvdcss-1.4.2-Leia-Beta-5.tar.gz" +checksum+=" 38816f8373e243bc5950449b4f3b18938c4e1c59348e3411e23f31db4072e40d" +# Add libdvdread dependency +distfiles+=" https://github.com/xbmc/libdvdread/archive/6.0.0-Leia-Alpha-3.tar.gz>libdvdread-6.0.0-Leia-Alpha-3.tar.gz" +checksum+=" a30b6aa0aad0f2c505bc77948af2d5531a80b6e68112addb4c123fca24d5d3bf" +# Add libdvdnav dependency +distfiles+=" https://github.com/xbmc/libdvdnav/archive/6.0.0-Leia-Alpha-3.tar.gz>libdvdnav-6.0.0-Leia-Alpha-3.tar.gz" +checksum+=" 071e414e61b795f2ff9015b21a85fc009dde967f27780d23092643916538a57a" +skip_extraction="crossguid-8f399e8bd4.tar.gz libdvdcss-1.4.2-Leia-Beta-5.tar.gz + libdvdread-6.0.0-Leia-Alpha-3.tar.gz libdvdnav-6.0.0-Leia-Alpha-3.tar.gz" +python_version=3 patch_args="-Np1" LDFLAGS+=" -Wl,-z,stack-size=1048576" @@ -22,8 +41,8 @@ archs="i686* x86_64* aarch64* ppc64*" hostmakedepends=" - automake libtool pkg-config gperf cmake gettext zip unzip nasm yasm python-devel - gettext-devel libltdl-devel curl flatbuffers swig openjdk11 which" + automake libtool pkg-config gperf cmake gettext zip unzip nasm yasm python3-devel + gettext-devel libltdl-devel curl flatbuffers swig openjdk11 which wayland-scanner++" makedepends=" eudev-libudev-devel pcre-devel expat-devel libpng-devel libjpeg-turbo-devel libXrandr-devel avahi-libs-devel pulseaudio-devel samba-devel tiff-devel @@ -35,8 +54,9 @@ makedepends=" libbluetooth-devel yajl-devel libplist-devel librtmp-devel tinyxml-devel taglib-devel libcap-devel lame-devel libbluray-devel libnfs-devel ffmpeg-devel giflib-devel libxslt-devel gnutls-devel libssh-devel libmicrohttpd-devel - libcec-devel dcadec-devel crossguid flatbuffers-devel fmt-devel lcms2-devel - libfstrcmp-devel rapidjson libcdio-paranoia" + libcec-devel dcadec-devel flatbuffers-devel fmt-devel lcms2-devel + libfstrcmp-devel rapidjson libcdio-paranoia spdlog libwaylandpp-devel + libinput-devel libdav1d-devel gtest-devel" # The following dependencies are dlopen(3)ed. depends="libbluray libmad libvorbis libcurl libflac libmodplug libass libmpeg2 @@ -46,11 +66,16 @@ depends+=" glxinfo hicolor-icon-theme desktop-file-utils xdpyinfo" case "$XBPS_TARGET_MACHINE" in aarch64*) hostmakedepends+=" libmariadbclient-devel SDL2_image-devel lzo-devel" - makedepends+=" python-devel ffmpeg-devel" + hostmakedepends+=" libwaylandpp-devel" + makedepends+=" python3-devel ffmpeg-devel" configure_args+=" -DENABLE_VAAPI=OFF" ;; esac +if [ -z "$CROSS_BUILD" ]; then + make_build_target+=" kodi-test" +fi + pre_configure() { if [ "$CROSS_BUILD" ]; then find -type f | \ From f961562ac18efe13e03401d6ea957e654c954254 Mon Sep 17 00:00:00 2001 From: marmeladema Date: Wed, 10 Mar 2021 13:52:44 +0000 Subject: [PATCH 2/5] libwaylandpp: fix shlibs --- common/shlibs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/shlibs b/common/shlibs index 86567af2ad0f..462846b97390 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3966,3 +3966,7 @@ libsimavrparts.so.1 simavr-1.6_2 libsword-1.8.1.so libsword-1.8.1_6 libpari-gmp.so.7 pari-2.13.0_1 libtree-sitter.so.0 tree-sitter-0.19.0_1 +libwayland-client++.so.0 libwaylandpp-0.2.8_1 +libwayland-cursor++.so.0 libwaylandpp-0.2.8_1 +libwayland-egl++.so.0 libwaylandpp-0.2.8_1 +libwayland-client-extra++.so.0 libwaylandpp-0.2.8_1 \ No newline at end of file From 8d52e7bcb1731411f63c504595d0b91c1a6150d6 Mon Sep 17 00:00:00 2001 From: marmeladema Date: Sat, 13 Mar 2021 10:39:07 +0000 Subject: [PATCH 3/5] kodi: prevent some failing tests to run in CI --- srcpkgs/kodi/template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/srcpkgs/kodi/template b/srcpkgs/kodi/template index 9905a0293d4c..5eee2d18f2e9 100644 --- a/srcpkgs/kodi/template +++ b/srcpkgs/kodi/template @@ -63,6 +63,19 @@ depends="libbluray libmad libvorbis libcurl libflac libmodplug libass libmpeg2 lame librtmp libnfs>=1.9.7 libplist>=1.12" depends+=" glxinfo hicolor-icon-theme desktop-file-utils xdpyinfo" +# Disable this test on all architectures +# https://github.com/void-linux/void-packages/commit/3c0332ab330e30a2c280de2258ed9bf60a9c2e09/checks/2101961295/logs +_gtest_filter="-TestCPUInfo.GetCPUFrequency" +_gtest_filter+=":TestWebServer.CanGetCachedFileWithOlderIfModifiedSince" +_gtest_filter+=":TestWebServer.CanGetCachedFileWithNewerIfModifiedSinceForcingNoCache" +_gtest_filter+=":TestWebServer.CanGetCachedFileWithExactIfUnmodifiedSince" +_gtest_filter+=":TestWebServer.CanGetCachedFileWithNewerIfUnmodifiedSince" +_gtest_filter+=":TestWebServer.CanGetRangedFileRange0_First" +_gtest_filter+=":TestWebServer.CanGetRangedFileRangeFirst_Second" +_gtest_filter+=":TestWebServer.CanGetRangedFileRange_Last" +_gtest_filter+=":TestWebServer.CanGetRangedFileRangeFirstSecond" +_gtest_filter+=":TestWebServer.CanGetRangedFileRangeFirstSecondLast" + case "$XBPS_TARGET_MACHINE" in aarch64*) hostmakedepends+=" libmariadbclient-devel SDL2_image-devel lzo-devel" @@ -70,6 +83,13 @@ case "$XBPS_TARGET_MACHINE" in makedepends+=" python3-devel ffmpeg-devel" configure_args+=" -DENABLE_VAAPI=OFF" ;; + i686) + # Additionaly disable these tests on i686 architecutre + # https://github.com/void-linux/void-packages/commit/3c0332ab330e30a2c280de2258ed9bf60a9c2e09/checks/2101961301/logs + _gtest_filter+=":TestDateTime.SetFromDBTime" + _gtest_filter+=":TestDateTime.SetDateTime" + _gtest_filter+=":TestDateTime.Reset" + ;; esac if [ -z "$CROSS_BUILD" ]; then @@ -118,6 +138,10 @@ post_build() { fi } +do_check() { + ./build/kodi-test --gtest_filter="${_gtest_filter}" +} + kodi-devel_package() { short_desc+=" - development files" depends="${sourcepkg}>=${version}_${revision}" From cd5c563e61d6157b0283a16a88eae5451c6f8429 Mon Sep 17 00:00:00 2001 From: marmeladema Date: Sat, 13 Mar 2021 15:55:31 +0000 Subject: [PATCH 4/5] kodi-addon-*: update for kodi-19.0-Matrix --- srcpkgs/kodi-addon-game-libretro/template | 6 +++--- srcpkgs/kodi-addon-inputstream-adaptive/template | 6 +++--- srcpkgs/kodi-addon-inputstream-rtmp/template | 6 +++--- srcpkgs/kodi-addon-peripheral-joystick/template | 6 +++--- srcpkgs/kodi-addon-pvr-hts/template | 6 +++--- srcpkgs/kodi-addon-pvr-iptvsimple/template | 8 ++++---- srcpkgs/kodi-addon-pvr-zattoo/template | 6 +++--- srcpkgs/kodi-addon-vfs-rar/template | 8 ++++---- srcpkgs/kodi-addon-vfs-sftp/template | 6 +++--- 9 files changed, 29 insertions(+), 29 deletions(-) diff --git a/srcpkgs/kodi-addon-game-libretro/template b/srcpkgs/kodi-addon-game-libretro/template index f704ef282dfe..6e44c5a1de9c 100644 --- a/srcpkgs/kodi-addon-game-libretro/template +++ b/srcpkgs/kodi-addon-game-libretro/template @@ -1,8 +1,8 @@ # Template file for 'kodi-addon-game-libretro' pkgname=kodi-addon-game-libretro -version=1.1.1 +version=2.2.0 revision=1 -_kodi_release=Leia +_kodi_release=Matrix wrksrc="game.libretro-${version}-${_kodi_release}" build_style=cmake makedepends="kodi-devel kodi-platform-devel p8-platform-devel tinyxml-devel" @@ -11,5 +11,5 @@ maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/kodi-game/game.libretro" distfiles="https://github.com/kodi-game/game.libretro/archive/${version}-${_kodi_release}.tar.gz" -checksum=ce9dfe0a99923cb64798bc502c38466c9eeb71bb58b320a73848e4fdf958a00b +checksum=b92670065d5644b4766bb90ee51cc69730e11b4a8dc912bbe90dce7d07b39e32 nocross="depends on kodi-platform" diff --git a/srcpkgs/kodi-addon-inputstream-adaptive/template b/srcpkgs/kodi-addon-inputstream-adaptive/template index 23bd6aaecc82..ca978f1f3d81 100644 --- a/srcpkgs/kodi-addon-inputstream-adaptive/template +++ b/srcpkgs/kodi-addon-inputstream-adaptive/template @@ -1,8 +1,8 @@ # Template file for 'kodi-addon-inputstream-adaptive' pkgname=kodi-addon-inputstream-adaptive -version=2.4.4 +version=2.6.7 revision=1 -_kodi_release=Leia +_kodi_release=Matrix wrksrc="inputstream.adaptive-${version}-${_kodi_release}" build_style=cmake makedepends="kodi-devel kodi-platform-devel p8-platform-devel tinyxml-devel @@ -12,5 +12,5 @@ maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/peak3d/inputstream.adaptive" distfiles="https://github.com/peak3d/inputstream.adaptive/archive/${version}-${_kodi_release}.tar.gz" -checksum=ec2264aa620faa547e589b705c0393dbbfe4a8f866215d9a9f3d5b3ceea6560e +checksum=353207f5f98bf81ce8d79cec903c28da8c0227d7c7a632692c910d81e59c2dbe nocross="depends on kodi-platform" diff --git a/srcpkgs/kodi-addon-inputstream-rtmp/template b/srcpkgs/kodi-addon-inputstream-rtmp/template index bee02ae906ef..3e7e4968f8c3 100644 --- a/srcpkgs/kodi-addon-inputstream-rtmp/template +++ b/srcpkgs/kodi-addon-inputstream-rtmp/template @@ -1,8 +1,8 @@ # Template file for 'kodi-addon-inputstream-rtmp' pkgname=kodi-addon-inputstream-rtmp -version=2.0.9 +version=3.4.0 revision=1 -_kodi_release=Leia +_kodi_release=Matrix wrksrc="inputstream.rtmp-${version}-${_kodi_release}" build_style=cmake hostmakedepends="pkg-config" @@ -13,5 +13,5 @@ maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/xbmc/inputstream.rtmp" distfiles="https://github.com/xbmc/inputstream.rtmp/archive/${version}-${_kodi_release}.tar.gz" -checksum=56dac63262fa736620863900d903616d4827d735992e6d8beda84e377a5599e5 +checksum=efaaa9b07c18810582a3826df476fc36a2aac82be7512271545073c3f6cc0212 nocross="depends on kodi-platform" diff --git a/srcpkgs/kodi-addon-peripheral-joystick/template b/srcpkgs/kodi-addon-peripheral-joystick/template index 72f284096046..de72349fcf20 100644 --- a/srcpkgs/kodi-addon-peripheral-joystick/template +++ b/srcpkgs/kodi-addon-peripheral-joystick/template @@ -1,8 +1,8 @@ # Template file for 'kodi-addon-peripheral-joystick' pkgname=kodi-addon-peripheral-joystick -version=1.4.9 -_kodi_release="Leia" +version=1.7.1 revision=1 +_kodi_release="Matrix" wrksrc="peripheral.joystick-${version}-${_kodi_release}" build_style=cmake makedepends="kodi-devel kodi-platform-devel p8-platform-devel @@ -12,5 +12,5 @@ maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/xbmc/peripheral.joystick" distfiles="https://github.com/xbmc/peripheral.joystick/archive/${version}-${_kodi_release}.tar.gz" -checksum=e83c32380a51ea74bd5f0af74afc747ff5de99167934e2644bc2b3438cd998d0 +checksum=4dc63c6c5bdad25881eeba800765d97c53b2583addf28e71bbcd67775452ecdb nocross="depends on kodi-platform" diff --git a/srcpkgs/kodi-addon-pvr-hts/template b/srcpkgs/kodi-addon-pvr-hts/template index a0b9f28702bb..eeb0d6335275 100644 --- a/srcpkgs/kodi-addon-pvr-hts/template +++ b/srcpkgs/kodi-addon-pvr-hts/template @@ -1,8 +1,8 @@ # Template file for 'kodi-addon-pvr-hts' pkgname=kodi-addon-pvr-hts -version=4.4.21 +version=8.2.3 revision=1 -_kodi_release=Leia +_kodi_release=Matrix wrksrc="pvr.hts-${version}-${_kodi_release}" build_style=cmake makedepends="kodi-devel kodi-platform-devel p8-platform-devel" @@ -11,7 +11,7 @@ maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/kodi-pvr/pvr.hts" distfiles="https://github.com/kodi-pvr/pvr.hts/archive/${version}-${_kodi_release}.tar.gz" -checksum=6958b91ca616554e4c068bc303c66388e9a2c3a68b5979d8918b4e0d7b6bb95c +checksum=bdaf63945d6552bead5a6e8ba4ffe1b8057e3b0c05b52c0fbf93a7834f652330 nocross="depends on kodi-platform" if [ "$XBPS_TARGET_LIBC" = "musl" ]; then diff --git a/srcpkgs/kodi-addon-pvr-iptvsimple/template b/srcpkgs/kodi-addon-pvr-iptvsimple/template index b259b86ba346..7628dd6bd31f 100644 --- a/srcpkgs/kodi-addon-pvr-iptvsimple/template +++ b/srcpkgs/kodi-addon-pvr-iptvsimple/template @@ -1,17 +1,17 @@ # Template file for 'kodi-addon-pvr-iptvsimple' pkgname=kodi-addon-pvr-iptvsimple -version=3.9.8 +version=7.5.0 revision=1 -_kodi_release=Leia +_kodi_release=Matrix wrksrc="pvr.iptvsimple-${version}-${_kodi_release}" build_style=cmake hostmakedepends="pkg-config" -makedepends="kodi-devel kodi-platform-devel p8-platform-devel rapidxml +makedepends="kodi-devel kodi-platform-devel p8-platform-devel pugixml-devel zlib-devel" short_desc="IPTV Simple client addon for Kodi" maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/kodi-pvr/pvr.iptvsimple" distfiles="https://github.com/kodi-pvr/pvr.iptvsimple/archive/${version}-${_kodi_release}.tar.gz" -checksum=0812e359a943f4ffb763b47fc0440768a8aa09f12172ef8dff4440b0a48f9c96 +checksum=1cbe623e1eec0246c782398d8a8964d26b0fa68966c7f1422666068e50fb4e00 nocross="depends on kodi-platform" diff --git a/srcpkgs/kodi-addon-pvr-zattoo/template b/srcpkgs/kodi-addon-pvr-zattoo/template index c313e855d20f..1ff40658bcf0 100644 --- a/srcpkgs/kodi-addon-pvr-zattoo/template +++ b/srcpkgs/kodi-addon-pvr-zattoo/template @@ -1,8 +1,8 @@ # Template file for 'kodi-addon-pvr-zattoo' pkgname=kodi-addon-pvr-zattoo -version=18.1.23 +version=19.7.8.1 revision=1 -_kodi_release=Leia +_kodi_release=Matrix wrksrc="pvr.zattoo-${version}-${_kodi_release}" build_style=cmake hostmakedepends="pkg-config" @@ -14,6 +14,6 @@ maintainer="teldra " license="GPL-2.0-only" homepage="https://github.com/rbuehlma/pvr.zattoo" distfiles="https://github.com/rbuehlma/pvr.zattoo/archive/${version}-${_kodi_release}.tar.gz" -checksum=9c3dc2ed9f8c39bcc4f5798439b85f2bdae1a427ffeb1b9d18aa5e2caca29f4e +checksum=25dc4ea72b5315a65286ba606e6e26d281fb8eb830d5e0164b66b8d7ae90319a nocross="depends on kodi-platform" make_check=no # No target to "make test" diff --git a/srcpkgs/kodi-addon-vfs-rar/template b/srcpkgs/kodi-addon-vfs-rar/template index 9b40dace67a9..9ae75a72c860 100644 --- a/srcpkgs/kodi-addon-vfs-rar/template +++ b/srcpkgs/kodi-addon-vfs-rar/template @@ -1,15 +1,15 @@ # Template file for 'kodi-addon-vfs-rar' pkgname=kodi-addon-vfs-rar -version=2.3.2 +version=4.0.0 revision=1 -_kodi_release=Leia +_kodi_release=Matrix wrksrc="vfs.rar-${version}-${_kodi_release}" build_style=cmake -makedepends="kodi-devel kodi-platform p8-platform-devel tinyxml-devel" +makedepends="kodi-devel kodi-platform p8-platform-devel tinyxml-devel pkg-config" short_desc="RAR VFS addon for Kodi" maintainer="Kai Stian Olstad " license="GPL-2.0-or-later" homepage="https://github.com/xbmc/vfs.rar" distfiles="https://github.com/xbmc/vfs.rar/archive/${version}-${_kodi_release}.tar.gz" -checksum=5275c09eed7e8354849caa17c3d9699abcfa2437a7c7af3833bffd10fc1c577f +checksum=1111d1f90cc4addc2adb0884b779f4b47e30abb2766ba1708053e5f100b514bf nocross="depends on kodi-platform" diff --git a/srcpkgs/kodi-addon-vfs-sftp/template b/srcpkgs/kodi-addon-vfs-sftp/template index 5ba4d6a33c3c..40d91f566d62 100644 --- a/srcpkgs/kodi-addon-vfs-sftp/template +++ b/srcpkgs/kodi-addon-vfs-sftp/template @@ -1,8 +1,8 @@ # Template file for 'kodi-addon-vfs-sftp' pkgname=kodi-addon-vfs-sftp -version=1.0.5 +version=2.0.0 revision=1 -_kodi_release=Leia +_kodi_release=Matrix wrksrc="vfs.sftp-${version}-${_kodi_release}" build_style=cmake hostmakedepends="pkg-config" @@ -12,5 +12,5 @@ maintainer="Foxlet " license="GPL-2.0-or-later" homepage="https://github.com/xbmc/vfs.sftp" distfiles="https://github.com/xbmc/vfs.sftp/archive/${version}-${_kodi_release}.tar.gz" -checksum=6a6d7fc777f574746bcc34b618700a4db3981aee470b68d60c3407eeeb0c16d9 +checksum=b15c5dde7b3aadb3e82e61cb9b0440812b6c2f65b38c6c25aef726f97e746f68 nocross="depends on kodi-platform" From 1e0deb9f1d3271a61038eaaa26173e0abf2410b5 Mon Sep 17 00:00:00 2001 From: marmeladema Date: Sun, 14 Mar 2021 22:30:37 +0000 Subject: [PATCH 5/5] kodi-rpc: detach package from kodi package and copy kodi 18.9 patches Kodi 19 does not support rpbi as a specific core platform anymore and thus cannot be updated to use kodi 19 and its patches. It might be possible that kodi itelf work out of the box now using the gdm core platform using: ``` $ kodi --windowing=gbm ``` --- srcpkgs/kodi-rpi/patches | 1 - .../patches/add-missing-cassert.patch | 20 +++++ .../patches/add-missing-includes.patch | 10 +++ srcpkgs/kodi-rpi/patches/crossguid-0.2.patch | 37 ++++++++++ .../disable-static-texturepacker-build.patch | 11 +++ srcpkgs/kodi-rpi/patches/fix-fileemu.patch | 74 +++++++++++++++++++ srcpkgs/kodi-rpi/patches/fix-musl.patch | 11 +++ .../kodi-rpi/patches/fortify-source-fix.patch | 11 +++ srcpkgs/kodi-rpi/patches/ppc64.patch | 15 ++++ .../kodi-rpi/patches/remove-filewrap.patch | 40 ++++++++++ 10 files changed, 229 insertions(+), 1 deletion(-) delete mode 120000 srcpkgs/kodi-rpi/patches create mode 100644 srcpkgs/kodi-rpi/patches/add-missing-cassert.patch create mode 100644 srcpkgs/kodi-rpi/patches/add-missing-includes.patch create mode 100644 srcpkgs/kodi-rpi/patches/crossguid-0.2.patch create mode 100644 srcpkgs/kodi-rpi/patches/disable-static-texturepacker-build.patch create mode 100644 srcpkgs/kodi-rpi/patches/fix-fileemu.patch create mode 100644 srcpkgs/kodi-rpi/patches/fix-musl.patch create mode 100644 srcpkgs/kodi-rpi/patches/fortify-source-fix.patch create mode 100644 srcpkgs/kodi-rpi/patches/ppc64.patch create mode 100644 srcpkgs/kodi-rpi/patches/remove-filewrap.patch diff --git a/srcpkgs/kodi-rpi/patches b/srcpkgs/kodi-rpi/patches deleted file mode 120000 index 95c1fe40f190..000000000000 --- a/srcpkgs/kodi-rpi/patches +++ /dev/null @@ -1 +0,0 @@ -../kodi/patches \ No newline at end of file diff --git a/srcpkgs/kodi-rpi/patches/add-missing-cassert.patch b/srcpkgs/kodi-rpi/patches/add-missing-cassert.patch new file mode 100644 index 000000000000..1e9d86040829 --- /dev/null +++ b/srcpkgs/kodi-rpi/patches/add-missing-cassert.patch @@ -0,0 +1,20 @@ +--- a/xbmc/windowing/GraphicContext.cpp 2019-11-16 12:12:49.000000000 +0100 ++++ b/xbmc/windowing/GraphicContext.cpp 2020-01-16 21:15:35.293001948 +0100 +@@ -6,6 +6,7 @@ + * See LICENSES/README.md for more information. + */ + ++#include + #include "GraphicContext.h" + #include "WinSystem.h" + #include "Application.h" +--- a/xbmc/profiles/dialogs/GUIDialogProfileSettings.cpp 2019-11-16 12:12:49.000000000 +0100 ++++ b/xbmc/profiles/dialogs/GUIDialogProfileSettings.cpp 2020-01-16 21:47:47.500101629 +0100 +@@ -8,6 +8,7 @@ + + #include "GUIDialogProfileSettings.h" + ++#include + #include + + #include "dialogs/GUIDialogFileBrowser.h" diff --git a/srcpkgs/kodi-rpi/patches/add-missing-includes.patch b/srcpkgs/kodi-rpi/patches/add-missing-includes.patch new file mode 100644 index 000000000000..236bfa6fd0e1 --- /dev/null +++ b/srcpkgs/kodi-rpi/patches/add-missing-includes.patch @@ -0,0 +1,10 @@ +--- a/xbmc/filesystem/ZipManager.h.orig ++++ b/xbmc/filesystem/ZipManager.h +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + + class CURL; + diff --git a/srcpkgs/kodi-rpi/patches/crossguid-0.2.patch b/srcpkgs/kodi-rpi/patches/crossguid-0.2.patch new file mode 100644 index 000000000000..1c18a84c72ab --- /dev/null +++ b/srcpkgs/kodi-rpi/patches/crossguid-0.2.patch @@ -0,0 +1,37 @@ +--- a/cmake/modules/FindCrossGUID.cmake 2019-01-30 18:31:51.519546398 +0100 ++++ b/cmake/modules/FindCrossGUID.cmake 2019-01-30 18:32:51.197608565 +0100 +@@ -49,10 +49,10 @@ + set(CROSSGUID_LIBRARIES ${CROSSGUID_LIBRARY}) + set(CROSSGUID_INCLUDE_DIRS ${CROSSGUID_INCLUDE_DIR}) + else() +- find_path(CROSSGUID_INCLUDE_DIR NAMES guid.h) ++ find_path(CROSSGUID_INCLUDE_DIR NAMES Guid.hpp) + +- find_library(CROSSGUID_LIBRARY_RELEASE NAMES crossguid) +- find_library(CROSSGUID_LIBRARY_DEBUG NAMES crossguidd) ++ find_library(CROSSGUID_LIBRARY_RELEASE NAMES xg) ++ find_library(CROSSGUID_LIBRARY_DEBUG NAMES xg) + + include(SelectLibraryConfigurations) + select_library_configurations(CROSSGUID) +--- a/xbmc/utils/StringUtils.cpp 2019-01-30 18:35:42.588517593 +0100 ++++ b/xbmc/utils/StringUtils.cpp 2019-01-30 18:37:38.058555463 +0100 +@@ -16,7 +16,7 @@ + // + //------------------------------------------------------------------------ + +-#include ++#include + + #if defined(TARGET_ANDROID) + #include +@@ -1126,8 +1126,7 @@ + + std::string StringUtils::CreateUUID() + { +- static GuidGenerator guidGenerator; +- auto guid = guidGenerator.newGuid(); ++ auto guid = xg::newGuid(); + + std::stringstream strGuid; strGuid << guid; + return strGuid.str(); diff --git a/srcpkgs/kodi-rpi/patches/disable-static-texturepacker-build.patch b/srcpkgs/kodi-rpi/patches/disable-static-texturepacker-build.patch new file mode 100644 index 000000000000..369f1b24d76d --- /dev/null +++ b/srcpkgs/kodi-rpi/patches/disable-static-texturepacker-build.patch @@ -0,0 +1,11 @@ +--- a/tools/depends/native/TexturePacker/Makefile 2016-04-24 08:48:30.000000000 +0200 ++++ b/tools/depends/native/TexturePacker/Makefile 2016-07-16 15:12:39.875911293 +0200 +@@ -36,7 +36,7 @@ + -rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) + cd $(PLATFORM); cp -a $(SOURCE)/* . + cd $(PLATFORM); ./autogen.sh +- cd $(PLATFORM); ./configure --prefix=$(PREFIX) $(EXTRA_CONFIGURE) EXTRA_DEFINES="$(NATIVE_ARCH_DEFINES)" ++ cd $(PLATFORM); ./configure --prefix=$(PREFIX) EXTRA_DEFINES="$(NATIVE_ARCH_DEFINES)" + + + $(APP): $(PLATFORM) diff --git a/srcpkgs/kodi-rpi/patches/fix-fileemu.patch b/srcpkgs/kodi-rpi/patches/fix-fileemu.patch new file mode 100644 index 000000000000..6cce7a4d3524 --- /dev/null +++ b/srcpkgs/kodi-rpi/patches/fix-fileemu.patch @@ -0,0 +1,74 @@ +--- a/xbmc/cores/DllLoader/exports/emu_msvcrt.h 2019-01-30 19:20:09.336910851 +0100 ++++ b/xbmc/cores/DllLoader/exports/emu_msvcrt.h 2019-01-30 19:20:25.423668836 +0100 +@@ -12,7 +12,7 @@ + #define _onexit_t void* + #endif + +-#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) ++#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) || !defined(__GLIBC__) + typedef off_t __off_t; + typedef int64_t off64_t; + typedef off64_t __off64_t; +--- a/xbmc/cores/DllLoader/exports/wrapper.c 2019-01-30 19:24:16.396348561 +0100 ++++ b/xbmc/cores/DllLoader/exports/wrapper.c 2019-01-30 19:25:38.562176774 +0100 +@@ -27,7 +27,7 @@ + #endif + #include + +-#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) ++#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) || !defined(__GLIBC__) + typedef off_t __off_t; + typedef int64_t off64_t; + typedef off64_t __off64_t; +--- a/xbmc/cores/DllLoader/exports/emu_msvcrt.cpp 2019-01-30 19:29:02.249253971 +0100 ++++ b/xbmc/cores/DllLoader/exports/emu_msvcrt.cpp 2019-01-30 19:39:34.911053272 +0100 +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + #ifdef TARGET_POSIX + #include "PlatformDefs.h" // for __stat64 + #include "XFileUtils.h" +@@ -1480,7 +1481,7 @@ + int ret; + + ret = dll_fgetpos64(stream, &tmpPos); +-#if !defined(TARGET_POSIX) || defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) ++#if !defined(TARGET_POSIX) || defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) || !defined(__GLIBC__) + *pos = (fpos_t)tmpPos; + #else + pos->__pos = (off_t)tmpPos.__pos; +@@ -1493,8 +1494,9 @@ + CFile* pFile = g_emuFileWrapper.GetFileXbmcByStream(stream); + if (pFile != NULL) + { +-#if !defined(TARGET_POSIX) || defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) +- *pos = pFile->GetPosition(); ++#if !defined(TARGET_POSIX) || defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) || !defined(__GLIBC__) ++ uint64_t *ppos = (uint64_t *) pos; ++ *ppos = pFile->GetPosition(); + #else + pos->__pos = pFile->GetPosition(); + #endif +@@ -1509,8 +1511,9 @@ + int fd = g_emuFileWrapper.GetDescriptorByStream(stream); + if (fd >= 0) + { +-#if !defined(TARGET_POSIX) || defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) +- if (dll_lseeki64(fd, *pos, SEEK_SET) >= 0) ++#if !defined(TARGET_POSIX) || defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) || !defined(__GLIBC__) ++ const uint64_t *ppos = (const uint64_t *) pos; ++ if (dll_lseeki64(fd, *ppos, SEEK_SET) >= 0) + #else + if (dll_lseeki64(fd, (__off64_t)pos->__pos, SEEK_SET) >= 0) + #endif +@@ -1532,7 +1535,7 @@ + if (fd >= 0) + { + fpos64_t tmpPos; +-#if !defined(TARGET_POSIX) || defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) ++#if !defined(TARGET_POSIX) || defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) || !defined(__GLIBC__) + tmpPos= *pos; + #else + tmpPos.__pos = (off64_t)(pos->__pos); diff --git a/srcpkgs/kodi-rpi/patches/fix-musl.patch b/srcpkgs/kodi-rpi/patches/fix-musl.patch new file mode 100644 index 000000000000..98fa08aaffba --- /dev/null +++ b/srcpkgs/kodi-rpi/patches/fix-musl.patch @@ -0,0 +1,11 @@ +--- a/xbmc/cores/DllLoader/ldt_keeper.c 2019-01-30 20:08:15.532823846 +0100 ++++ b/xbmc/cores/DllLoader/ldt_keeper.c 2019-01-30 20:08:34.139580225 +0100 +@@ -49,7 +49,7 @@ + #ifdef __cplusplus + extern "C" { + #endif +-#if defined(TARGET_ANDROID) && defined(__i386__) && !defined(modify_ldt) ++#if defined(__linux__) && !defined(__GLIBC__) && !defined(modify_ldt) + #define modify_ldt(a,b,c) syscall( __NR_modify_ldt, a, b, c); + #else + int modify_ldt(int func, void *ptr, unsigned long bytecount); diff --git a/srcpkgs/kodi-rpi/patches/fortify-source-fix.patch b/srcpkgs/kodi-rpi/patches/fortify-source-fix.patch new file mode 100644 index 000000000000..5717746e09e1 --- /dev/null +++ b/srcpkgs/kodi-rpi/patches/fortify-source-fix.patch @@ -0,0 +1,11 @@ +--- a/xbmc/cores/DllLoader/exports/wrapper.c.orig ++++ b/xbmc/cores/DllLoader/exports/wrapper.c +@@ -462,7 +462,7 @@ + // are actually #defines which are inlined when compiled with -O. Those defines + // actally call __*chk (for example, __fread_chk). We need to bypass this whole + // thing to actually call our wrapped functions. +-#if _FORTIFY_SOURCE > 1 ++#if defined(__GLIBC__) && _FORTIFY_SOURCE > 1 + + size_t __wrap___fread_chk(void * ptr, size_t ptrlen, size_t size, size_t n, FILE * stream) + { diff --git a/srcpkgs/kodi-rpi/patches/ppc64.patch b/srcpkgs/kodi-rpi/patches/ppc64.patch new file mode 100644 index 000000000000..ab008d445a99 --- /dev/null +++ b/srcpkgs/kodi-rpi/patches/ppc64.patch @@ -0,0 +1,15 @@ +--- a/cmake/scripts/linux/ArchSetup.cmake 2019-01-30 21:03:03.146025973 +0100 ++++ b/cmake/scripts/linux/ArchSetup.cmake 2019-01-30 21:03:47.810441038 +0100 +@@ -32,6 +32,12 @@ + elseif(CPU MATCHES aarch64 OR CPU MATCHES arm64) + set(ARCH aarch64) + set(NEON True) ++ elseif(CPU MATCHES ppc64le) ++ set(ARCH ppc64le-linux) ++ set(NEON False) ++ elseif(CPU MATCHES ppc64) ++ set(ARCH ppc64-linux) ++ set(NEON False) + else() + message(SEND_ERROR "Unknown CPU: ${CPU}") + endif() diff --git a/srcpkgs/kodi-rpi/patches/remove-filewrap.patch b/srcpkgs/kodi-rpi/patches/remove-filewrap.patch new file mode 100644 index 000000000000..76f6602063aa --- /dev/null +++ b/srcpkgs/kodi-rpi/patches/remove-filewrap.patch @@ -0,0 +1,40 @@ +--- a/xbmc/platform/posix/utils/PosixInterfaceForCLog.cpp 2019-01-30 19:51:15.744119125 +0100 ++++ b/xbmc/platform/posix/utils/PosixInterfaceForCLog.cpp 2019-01-30 19:54:51.940377340 +0100 +@@ -17,10 +17,6 @@ + #include "platform/android/activity/XBMCApp.h" + #endif // TARGET_ANDROID + +-struct FILEWRAP : public FILE +-{}; +- +- + CPosixInterfaceForCLog::CPosixInterfaceForCLog() : + m_file(NULL) + { } +@@ -40,7 +36,7 @@ + (void)remove(backupOldLogToFilename.c_str()); // if it's failed, try to continue + (void)rename(logFilename.c_str(), backupOldLogToFilename.c_str()); // if it's failed, try to continue + +- m_file = (FILEWRAP*)fopen(logFilename.c_str(), "wb"); ++ m_file = fopen(logFilename.c_str(), "wb"); + if (!m_file) + return false; // error, can't open log file + +--- a/xbmc/platform/posix/utils/PosixInterfaceForCLog.h 2019-01-30 19:55:21.460002043 +0100 ++++ b/xbmc/platform/posix/utils/PosixInterfaceForCLog.h 2019-01-30 19:55:36.156814572 +0100 +@@ -10,8 +10,6 @@ + + #include + +-struct FILEWRAP; // forward declaration, wrapper for FILE +- + class CPosixInterfaceForCLog + { + public: +@@ -23,5 +21,5 @@ + void PrintDebugString(const std::string& debugString); + static void GetCurrentLocalTime(int& hour, int& minute, int& second, double& millisecond); + private: +- FILEWRAP* m_file; ++ FILE* m_file; + };