void-packages/srcpkgs/kodi-rpi/patches/crossguid-0.2.patch
marmeladema 9f8647640b kodi: update to 19.0-Matrix and detach kodi-rpi patch files
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
```
2021-03-15 21:07:55 -03:00

37 lines
1.3 KiB
Diff

--- 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 <guid.h>
+#include <Guid.hpp>
#if defined(TARGET_ANDROID)
#include <androidjni/JNIThreading.h>
@@ -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();