Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | It fails to build python3-wxgtk4 which depends on wxwidgets: |
| 2 | |
| 3 | | ERROR: wxwidgets-native-3.2.1-r0 do_populate_sysroot: sstate found an |
| 4 | absolute path symlink /path/to/build/tmp-glibc/work/x86_64-linux |
| 5 | /wxwidgets-native/3.2.1-r0/sysroot-destdir/path/to/build/tmp-glibc/work |
| 6 | /x86_64-linux/wxwidgets-native/3.2.1-r0/recipe-sysroot-native/usr/bin/wx-config |
| 7 | pointing at /path/to/build/tmp-glibc/work/x86_64-linux/wxwidgets-native/3.2.1-r0 |
| 8 | /recipe-sysroot-native/usr/lib/wx/config/gtk3-unicode-3.2. |
| 9 | Please replace this with a relative link. |
| 10 | | ERROR: wxwidgets-native-3.2.1-r0 do_populate_sysroot: sstate found an |
| 11 | absolute path symlink /path/to/build/tmp-glibc/work/x86_64-linux/wxwidgets-native |
| 12 | /3.2.1-r0/sysroot-destdir/path/to/build/tmp-glibc/work/x86_64-linux/wxwidgets-native |
| 13 | /3.2.1-r0/recipe-sysroot-native/usr/bin/wxrc pointing at /path/to/build/tmp-glibc |
| 14 | /work/x86_64-linux/wxwidgets-native/3.2.1-r0/recipe-sysroot-native/usr/bin/wxrc-3.2. |
| 15 | Please replace this with a relative link. |
| 16 | |
| 17 | Create symlink with relative path to fix the issues. |
| 18 | |
| 19 | Upstream-Status: Pending |
| 20 | |
| 21 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 22 | --- |
| 23 | build/cmake/install.cmake | 2 +- |
| 24 | build/cmake/utils/CMakeLists.txt | 2 +- |
| 25 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 26 | |
| 27 | diff --git a/build/cmake/install.cmake b/build/cmake/install.cmake |
| 28 | index d3303faabb..c79e187f37 100644 |
| 29 | --- a/build/cmake/install.cmake |
| 30 | +++ b/build/cmake/install.cmake |
| 31 | @@ -42,7 +42,7 @@ else() |
| 32 | install(DIRECTORY DESTINATION "bin") |
| 33 | install(CODE "execute_process( \ |
| 34 | COMMAND ${CMAKE_COMMAND} -E create_symlink \ |
| 35 | - \"${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/wx/config/${wxBUILD_FILE_ID}\" \ |
| 36 | + \"../lib${LIB_SUFFIX}/wx/config/${wxBUILD_FILE_ID}\" \ |
| 37 | \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/wx-config\" \ |
| 38 | )" |
| 39 | ) |
| 40 | diff --git a/build/cmake/utils/CMakeLists.txt b/build/cmake/utils/CMakeLists.txt |
| 41 | index dbed8cc9b3..1dbc3261d3 100644 |
| 42 | --- a/build/cmake/utils/CMakeLists.txt |
| 43 | +++ b/build/cmake/utils/CMakeLists.txt |
| 44 | @@ -40,7 +40,7 @@ if(wxUSE_XRC) |
| 45 | # Don't use wx_install() here to preserve escaping. |
| 46 | install(CODE "execute_process( \ |
| 47 | COMMAND ${CMAKE_COMMAND} -E create_symlink \ |
| 48 | - \"${CMAKE_INSTALL_PREFIX}/bin/${wxrc_output_name}${EXE_SUFFIX}\" \ |
| 49 | + \"./${wxrc_output_name}${EXE_SUFFIX}\" \ |
| 50 | \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/wxrc${EXE_SUFFIX}\" \ |
| 51 | )" |
| 52 | ) |