commit 4769916d6e416ba06979ef31674190e0138e26a5
Author: Michael Cronenworth <mike(a)cchtml.com>
Date: Tue Dec 31 14:33:27 2019 -0600
Workaround for brp-mangle-shebangs behavior (RHBZ#1787088)
kodi-18-brp-mangle-shebangs.patch | 11 +++++++++++
kodi.spec | 4 ++++
2 files changed, 15 insertions(+)
---
diff --git a/kodi-18-brp-mangle-shebangs.patch b/kodi-18-brp-mangle-shebangs.patch
new file mode 100644
index 0000000..4b0004f
--- /dev/null
+++ b/kodi-18-brp-mangle-shebangs.patch
@@ -0,0 +1,11 @@
+--- kodi-18.5/cmake/scripts/linux/Install.cmake-orig 2019-11-16 12:12:49.000000000 +0100
++++ kodi-18.5/cmake/scripts/linux/Install.cmake 2019-12-31 20:30:14.262789039 +0100
+@@ -200,7 +200,7 @@ if(ENABLE_EVENTCLIENTS)
+ COMPONENT kodi-eventclients-common)
+
+ # Install kodi-eventclients-common python files
+- file(WRITE ${CMAKE_BINARY_DIR}/packages/deb/defs.py
ICON_PATH="usr/share/pixmaps/${APP_NAME_LC}/")
++ file(WRITE ${CMAKE_BINARY_DIR}/packages/deb/defs.py
ICON_PATH="usr/share/pixmaps/${APP_NAME_LC}/"\n)
+ install(PROGRAMS ${CMAKE_BINARY_DIR}/packages/deb/defs.py
+ ${CMAKE_SOURCE_DIR}/tools/EventClients/lib/python/__init__.py
+
${CMAKE_SOURCE_DIR}/tools/EventClients/Clients/PS3BDRemote/ps3_remote.py
diff --git a/kodi.spec b/kodi.spec
index 55c999b..fe0f67a 100644
--- a/kodi.spec
+++ b/kodi.spec
@@ -83,6 +83,9 @@ Patch5: kodi-18-python3-0002.patch
# Fix missing include (gcc requirement)
Patch6: kodi-18-assert.patch
+# Workaround for brp-mangle-shebangs behavior (RHBZ#1787088)
+Patch7: kodi-18-brp-mangle-shebangs.patch
+
%ifarch x86_64 i686
%global _with_crystalhd 1
%endif
@@ -372,6 +375,7 @@ This package contains the Kodi binary for X11 servers.
%endif
%patch6 -p1 -b.assert
+%patch7 -p1 -b.brp-mangle-shebangs
# Fix up Python shebangs
%if 0%{?fedora} > 31