Update lib64 check logic 27/258127/1 accepted/tizen/6.5/unified/20211028.224444 accepted/tizen/unified/20210526.110309 submit/tizen/20210526.020351 submit/tizen_6.5/20211028.163601 tizen_6.5.m2_release
authorKwang Son <k.son@samsung.com>
Tue, 11 May 2021 04:02:36 +0000 (13:02 +0900)
committerKwang Son <k.son@samsung.com>
Tue, 11 May 2021 04:19:19 +0000 (13:19 +0900)
QB build system for i586 has /usr/lib64 directory which makes wrong
package install. This cmake patch check that only x86_64 and aarch64
use /usr/lib64 for install directory.

Change-Id: Icdb05386bfc3e7b8770a509c4a22f2e57b686a96
Signed-off-by: Kwang Son <k.son@samsung.com>
packaging/1001-TIZEN-OPENCV-PYTHON3-LIB64-PATH.patch

index dd963c5..042b2b1 100644 (file)
@@ -1,5 +1,5 @@
 diff --git a/cmake/OpenCVDetectPython.cmake b/cmake/OpenCVDetectPython.cmake
-index 4ff02a77d3..c27fe7d316 100644
+index 4ff02a7..93928ad 100644
 --- a/cmake/OpenCVDetectPython.cmake
 +++ b/cmake/OpenCVDetectPython.cmake
 @@ -186,7 +186,11 @@ if(NOT ${found})
@@ -7,10 +7,10 @@ index 4ff02a77d3..c27fe7d316 100644
            set(_packages_path "python${_version_major_minor}/dist-packages")
          endif()
 -        set(_packages_path "lib/${_packages_path}")
-+        if(EXISTS /usr/lib64)
-+            set(_packages_path "lib64/${_packages_path}")
++        if(${ARCH} STREQUAL "x86_64" OR ${ARCH} STREQUAL "aarch64")
++          set(_packages_path "lib64/${_packages_path}")
 +        else()
-+            set(_packages_path "lib/${_packages_path}")
++          set(_packages_path "lib/${_packages_path}")
 +        endif()
        elseif(CMAKE_HOST_WIN32)
          get_filename_component(_path "${_executable}" PATH)