commit:     ef86562c782800605e09965c9ba345afe69a7090
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  1 16:00:50 2021 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Mon Feb  1 16:07:18 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef86562c

media-tv/kodi: fixed defines

Kodi needs one of the defines 'NDEBUG' or '_DEBUG'
This fixes "Using Unknown Kodi x64" strings in Kodi log.

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Evgeny Grin <k2k <AT> narod.ru>
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 media-tv/kodi/kodi-9999.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/media-tv/kodi/kodi-9999.ebuild b/media-tv/kodi/kodi-9999.ebuild
index 843cafa2624..9c046b5a760 100644
--- a/media-tv/kodi/kodi-9999.ebuild
+++ b/media-tv/kodi/kodi-9999.ebuild
@@ -277,6 +277,11 @@ src_configure() {
                mycmakeargs+=( 
-DFFMPEG_URL="${DISTDIR}/ffmpeg-${PN}-${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz"
 )
        fi
 
+       if ! echo "${CFLAGS}" | grep -Fwqe '-DNDEBUG' - && ! echo "${CFLAGS}" | 
grep -Fwqe '-D_DEBUG' - ; then
+               CFLAGS+=' -DNDEBUG' # Kodi requires one of the 'NDEBUG' or 
'_DEBUG' defines
+               CXXFLAGS+=' -DNDEBUG'
+       fi
+
        cmake_src_configure
 }
 

Reply via email to