Projects
Multimedia
kodi.binary-addons
cmake-binary-addons.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cmake-binary-addons.patch of Package kodi.binary-addons (Revision 11)
Currently displaying revision
11
,
Show latest
--- project/cmake/addons/bootstrap/CMakeLists.txt.orig 2016-11-30 19:06:52.000000000 +0200 +++ project/cmake/addons/bootstrap/CMakeLists.txt 2016-12-03 21:35:53.549776672 +0200 @@ -41,8 +41,8 @@ function(bootstrap_repo repo_id repo_url repo_revision) message(STATUS "Bootstrapping addons from ${repo_id} (${repo_url} ${repo_revision})...") externalproject_add(${repo_id} - GIT_REPOSITORY ${repo_url} - GIT_TAG ${repo_revision} + URL ${repo_url} +# GIT_TAG ${repo_revision} PREFIX ${BUILD_DIR}/${repo_id} CONFIGURE_COMMAND "" BUILD_COMMAND "" --- project/cmake/addons/CMakeLists.txt.orig 2016-11-30 19:06:52.000000000 +0200 +++ project/cmake/addons/CMakeLists.txt 2016-12-03 21:40:17.913153883 +0200 @@ -158,16 +158,19 @@ include(${CORE_SOURCE_DIR}/project/cmake/scripts/common/CheckTargetPlatform.cmake) set(ADDON_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}) -if(NOT WIN32) - # check install permissions - check_install_permissions(${CMAKE_INSTALL_PREFIX} can_write) - if(NOT ${can_write} AND CMAKE_SYSTEM_NAME STREQUAL "Linux") - set(NEED_SUDO TRUE) - set(ADDON_INSTALL_DIR ${CMAKE_BINARY_DIR}/.install) - list(APPEND BUILD_ARGS -DOVERRIDE_PATHS=ON) - message(STATUS "NEED_SUDO: ${NEED_SUDO} (no write permission for ${CMAKE_INSTALL_PREFIX})") - endif() -endif() +message(STATUS "ADDON_INSTALL_DIR: ${ADDON_INSTALL_DIR}") +message(STATUS "NEED_SUDO: ${NEED_SUDO}") +list(APPEND BUILD_ARGS -DOVERRIDE_PATHS=ON) +#if(NOT WIN32) +# # check install permissions +# check_install_permissions(${CMAKE_INSTALL_PREFIX} can_write) +# if(NOT ${can_write} AND CMAKE_SYSTEM_NAME STREQUAL "Linux") +# set(NEED_SUDO TRUE) +# set(ADDON_INSTALL_DIR ${CMAKE_BINARY_DIR}/.install) +# list(APPEND BUILD_ARGS -DOVERRIDE_PATHS=ON) +# message(STATUS "NEED_SUDO: ${NEED_SUDO} (no write permission for ${CMAKE_INSTALL_PREFIX})") +# endif() +#endif() ### prepare the build environment for the binary addons # copy the PrepareEnv.cmake script to the depends path so that we can include it @@ -226,6 +229,7 @@ set(SUPPORTED_ADDON_FOUND FALSE) foreach(addon ${addons}) + message(STATUS "Building addon: ${addon}") if(NOT (addon MATCHES platforms.txt)) file(STRINGS ${addon} def) string(REPLACE " " ";" def ${def}) @@ -273,10 +277,12 @@ list(GET def 2 revision) # we need access to a git executable - find_package(Git REQUIRED) + find_package(Git) # resolve revision to git hash - execute_process(COMMAND ${GIT_EXECUTABLE} ls-remote ${url} ${revision} OUTPUT_VARIABLE revision_hash) + if(Git_FOUND) + execute_process(COMMAND ${GIT_EXECUTABLE} ls-remote ${url} ${revision} OUTPUT_VARIABLE revision_hash) + endif() # git ls-remote only works on branches and tag names but not on revisions if(NOT "${revision_hash}" STREQUAL "") string(REPLACE "\t" ";" revision_list ${revision_hash}) @@ -331,9 +337,11 @@ endif() endif() + message(STAUTS " REMOVING ${BUILD_DIR}/${id}") # remove any previously extracted version of the addon file(REMOVE_RECURSE "${BUILD_DIR}/${id}") + message(STAUTS " EXTRACT ${BUILD_DIR}/download/${archive_name}.tar.gz") # extract the addon from the archive execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzvf ${BUILD_DIR}/download/${archive_name}.tar.gz WORKING_DIRECTORY ${BUILD_DIR}) @@ -371,11 +379,11 @@ set(${id}_DEPENDS_DIR ${SOURCE_DIR}/depends) if(EXISTS ${${id}_DEPENDS_DIR}) - include(${CORE_SOURCE_DIR}/project/cmake/scripts/common/HandleDepends.cmake) - add_addon_depends(${id} ${${id}_DEPENDS_DIR}) +# include(${CORE_SOURCE_DIR}/project/cmake/scripts/common/HandleDepends.cmake) +# add_addon_depends(${id} ${${id}_DEPENDS_DIR}) if(${id}_DEPS AND NOT "${${id}_DEPS}" STREQUAL "") message(STATUS "${id} DEPENDENCIES: ${${id}_DEPS}") - add_dependencies(${id} ${${id}_DEPS}) +# add_dependencies(${id} ${${id}_DEPS}) endif() endif() --- project/cmake/addons/bootstrap/repositories/binary-addons.txt.orig 2016-12-21 20:20:01.732588078 +0200 +++ project/cmake/addons/bootstrap/repositories/binary-addons.txt 2016-12-21 20:20:58.695580086 +0200 @@ -1 +1 @@ -binary-addons https://github.com/xbmc/repo-binary-addons.git Krypton +binary-addons file://repo-binary-addons.Krypton.tar.bz2 Krypton
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.