Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629084 - media-tv/kodi-17.4[mysql] build fails with mariadb-10.2.8
Summary: media-tv/kodi-17.4[mysql] build fails with mariadb-10.2.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-27 17:39 UTC by Tiziano Müller (RETIRED)
Modified: 2017-08-29 14:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2017-08-27 17:39:09 UTC
Building kodi-17.4[mysql] fails with the following error message:

[...]
-- Warning: FFmpeg version checking disabled, resulting build is unsupported!                                                                               
-- Found FFMPEG: /usr/include (found version "undef")                                                                                                       -- Found CrossGuid: /usr/lib/libcrossguid.a                                                                                                                 -- Found UUID: /usr/lib/libuuid.so (found version "2.30.1")                                                                                                 -- Could NOT find LCMS2 (missing: LCMS2_LIBRARY LCMS2_INCLUDE_DIR)            

Error:                                                                        
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =media-tv/kodi-17.4:0::gentoo --destination installed --replac
ing =media-tv/kodi-17.3:0::installed --x-of-y 1 of 18:                        
  * When installing 'media-tv/kodi-17.4:0::gentoo' replacing { 'media-tv/kodi-17.3:0::installed' }:                                                         
  * When running an ebuild command on 'media-tv/kodi-17.4:0::gentoo':         
  * Install failed for 'media-tv/kodi-17.4:0::gentoo' (paludis::ActionFailedError)                                                                          
                                                                                                                                                            
-- Found MicroHttpd: /usr/lib/libmicrohttpd.so (found version "0.9.55")                                                                                     
-- Configuring incomplete, errors occurred!                                                                                                                 
See also "/var/tmp/paludis/media-tv-kodi-17.4/work/kodi-17.4_build/CMakeFiles/CMakeOutput.log".                                                             
See also "/var/tmp/paludis/media-tv-kodi-17.4/work/kodi-17.4_build/CMakeFiles/CMakeError.log".                                                              
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):                                                                  
  Could NOT find MySqlClient (missing: MYSQLCLIENT_INCLUDE_DIR)                                                                                             
Call Stack (most recent call first):                                          
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)                                                                 
  modules/FindMySqlClient.cmake:42 (find_package_handle_standard_args)                                                                                      
  scripts/common/Macros.cmake:399 (find_package)                              
  CMakeLists.txt:144 (core_optional_dep)                                                                                                                    
                                                                                                                                                            
                                                                                                                                                            
                                                                              
!!! ERROR in media-tv/kodi-17.4::gentoo:                                      
!!! In cmake-utils_src_configure at line 1996                                                                                                               
!!! cmake failed



Checking `project/cmake/modules/FindMySqlClient.cmake` in `xbmc-17.4-Krypton` reveals the following code:

find_path(MYSQLCLIENT_INCLUDE_DIR mysql/mysql_time.h)
find_library(MYSQLCLIENT_LIBRARY_RELEASE NAMES mysqlclient libmysql
                                         PATH_SUFFIXES mysql
                                         ${EXTRA_FIND_ARGS})
find_library(MYSQLCLIENT_LIBRARY_DEBUG NAMES mysqlclient libmysql
                                       PATH_SUFFIXES mysql
                                       ${EXTRA_FIND_ARGS})

But it seems the location of that header changed in mariadb:

$ cave contents mariadb | grep mysql_time.h
/usr/include/mysql/server/mysql_time.h

In fact, creating the following symlink made it compile:

  /usr/include/mysql/mysql_time.h -> server/mysql_time.h
Comment 1 Craig Andrews gentoo-dev 2017-08-28 03:37:04 UTC
I've reported the issue upstream at https://github.com/xbmc/xbmc/pull/12727

Once upstream accepts a solution, I'll update the ebuild.