All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] glog: fix searching for Libunwind
@ 2021-03-10 18:17 Martin Jansa
  2021-03-10 18:53 ` [oe] " Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Jansa @ 2021-03-10 18:17 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Martin Jansa

* it used to be part of 0003-installation-path-fix.patch which was removed during
  the upgrade to 0.4.0 and now some recipes (e.g. mtp-server from meta-luneos) are
  failing like:
  CMake Error at /OE/build/luneos-hardknott/webos-ports/tmp-glibc/work/tissot-webos-linux/mtp-server/0.0.3+gitAUTOINC+bb4a81e61b-r0/recipe-sysroot-native/usr/share/cmake-3.19/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
    By not providing "FindLibunwind.cmake" in CMAKE_MODULE_PATH this project
    has asked CMake to find a package configuration file provided by
    "Libunwind", but CMake did not find one.

    Could not find a package configuration file provided by "Libunwind" with
    any of the following names:

      LibunwindConfig.cmake
      libunwind-config.cmake

    Add the installation prefix of "Libunwind" to CMAKE_PREFIX_PATH or set
    "Libunwind_DIR" to a directory containing one of the above files.  If
    "Libunwind" provides a separate development package or SDK, be sure it has
    been installed.
  Call Stack (most recent call first):
    /OE/build/luneos-hardknott/webos-ports/tmp-glibc/work/tissot-webos-linux/mtp-server/0.0.3+gitAUTOINC+bb4a81e61b-r0/recipe-sysroot/usr/lib/cmake/glog/glog-config.cmake:35 (find_dependency)
    CMakeLists.txt:17 (find_package)

  because LibunwindConfig.cmake is provided by glog as:
  recipe-sysroot/usr/lib/cmake/glog/FindLibunwind.cmake
  but this directory wasn't searched by CMake.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 .../glog/glog/0001-Find-Libunwind-during-configure.patch       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/glog/glog/0001-Find-Libunwind-during-configure.patch b/meta-oe/recipes-support/glog/glog/0001-Find-Libunwind-during-configure.patch
index 577007a62e..4c0861cca1 100644
--- a/meta-oe/recipes-support/glog/glog/0001-Find-Libunwind-during-configure.patch
+++ b/meta-oe/recipes-support/glog/glog/0001-Find-Libunwind-during-configure.patch
@@ -109,10 +109,11 @@
  install (EXPORT glog-targets NAMESPACE glog:: DESTINATION
 --- a/glog-config.cmake.in
 +++ b/glog-config.cmake.in
-@@ -8,4 +8,6 @@ include (CMakeFindDependencyMacro)
+@@ -8,4 +8,7 @@ include (CMakeFindDependencyMacro)
  
  @gflags_DEPENDENCY@
  
++list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
 +find_dependency (Libunwind)
 +
  include ("${CMAKE_CURRENT_LIST_DIR}/glog-targets.cmake")
-- 
2.30.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [oe] [meta-oe][PATCH] glog: fix searching for Libunwind
  2021-03-10 18:17 [meta-oe][PATCH] glog: fix searching for Libunwind Martin Jansa
@ 2021-03-10 18:53 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2021-03-10 18:53 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembeded-devel

thanks for fixing it. it would be good if some such dep was in meta-oe

On Wed, Mar 10, 2021 at 10:17 AM Martin Jansa <Martin.Jansa@gmail.com> wrote:
>
> * it used to be part of 0003-installation-path-fix.patch which was removed during
>   the upgrade to 0.4.0 and now some recipes (e.g. mtp-server from meta-luneos) are
>   failing like:
>   CMake Error at /OE/build/luneos-hardknott/webos-ports/tmp-glibc/work/tissot-webos-linux/mtp-server/0.0.3+gitAUTOINC+bb4a81e61b-r0/recipe-sysroot-native/usr/share/cmake-3.19/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
>     By not providing "FindLibunwind.cmake" in CMAKE_MODULE_PATH this project
>     has asked CMake to find a package configuration file provided by
>     "Libunwind", but CMake did not find one.
>
>     Could not find a package configuration file provided by "Libunwind" with
>     any of the following names:
>
>       LibunwindConfig.cmake
>       libunwind-config.cmake
>
>     Add the installation prefix of "Libunwind" to CMAKE_PREFIX_PATH or set
>     "Libunwind_DIR" to a directory containing one of the above files.  If
>     "Libunwind" provides a separate development package or SDK, be sure it has
>     been installed.
>   Call Stack (most recent call first):
>     /OE/build/luneos-hardknott/webos-ports/tmp-glibc/work/tissot-webos-linux/mtp-server/0.0.3+gitAUTOINC+bb4a81e61b-r0/recipe-sysroot/usr/lib/cmake/glog/glog-config.cmake:35 (find_dependency)
>     CMakeLists.txt:17 (find_package)
>
>   because LibunwindConfig.cmake is provided by glog as:
>   recipe-sysroot/usr/lib/cmake/glog/FindLibunwind.cmake
>   but this directory wasn't searched by CMake.
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  .../glog/glog/0001-Find-Libunwind-during-configure.patch       | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-support/glog/glog/0001-Find-Libunwind-during-configure.patch b/meta-oe/recipes-support/glog/glog/0001-Find-Libunwind-during-configure.patch
> index 577007a62e..4c0861cca1 100644
> --- a/meta-oe/recipes-support/glog/glog/0001-Find-Libunwind-during-configure.patch
> +++ b/meta-oe/recipes-support/glog/glog/0001-Find-Libunwind-during-configure.patch
> @@ -109,10 +109,11 @@
>   install (EXPORT glog-targets NAMESPACE glog:: DESTINATION
>  --- a/glog-config.cmake.in
>  +++ b/glog-config.cmake.in
> -@@ -8,4 +8,6 @@ include (CMakeFindDependencyMacro)
> +@@ -8,4 +8,7 @@ include (CMakeFindDependencyMacro)
>
>   @gflags_DEPENDENCY@
>
> ++list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
>  +find_dependency (Libunwind)
>  +
>   include ("${CMAKE_CURRENT_LIST_DIR}/glog-targets.cmake")
> --
> 2.30.1
>
>
> 
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-10 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 18:17 [meta-oe][PATCH] glog: fix searching for Libunwind Martin Jansa
2021-03-10 18:53 ` [oe] " Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.