Repository navigation
Fix symlink install versioned shared library - #216
Conversation
Signed-off-by: JafarAbdi <[email protected]>
b6c8a6b to
38c4eb2
Compare
|
Please see my comment on the original ticket about a simple wildcard to be marching to broadly. Instead use a now specific regex to only capture the intended version suffices. |
|
@dirk-thomas Sorry for the delay again does the following regex ok .? EDIT: Found a better one |
|
You can simplify your regex without allowing an arbitrary amount of version parts (e.g. |
|
If we don't want to allow multiple .#, then how about |
|
@dirk-thomas CMake regex doesn't support curly brackets see |
It should only pass the following extensions |
|
Gotcha. In that case, without curly braces support I think your initial solution works best. |
|
Example with the last updated regex cmake_minimum_required(VERSION 3.1.3)
project(testing_project)
set(exts
".so.1100"
".so.1.2.4"
".so.10.2.4"
".so.1.20.4"
".so.1.2.40"
".so.2.1"
".so.2.1.2.1.2"
".sos.2"
".sos"
".so"
".so.1"
".so.2.0.0"
".so.1.s"
"sso.1.s"
".so.s.1"
".so.1.2.s"
)
foreach(ext ${exts})
if(ext MATCHES "\.so(\.[0-9]+)?(\.[0-9]+)?(\.[0-9]+)?$")
message("Pass: ${ext}")
else()
message("Fail: ${ext}")
endif()
endforeach()The output |
Signed-off-by: JafarAbdi <[email protected]>
d453a4e to
8e74da9
Compare
|
Why the |
Unfortunately the PR testing for Foxy isn't working yet. You can ignore that status. I will trigger a set of manual CI builds once the patch is ready. |
dirk-thomas
left a comment
There was a problem hiding this comment.
Thanks for the improvement.
|
I'm locally getting errors like: Though I don't see that in the CI logs. |
|
@ivanpauno Does replacing it with |
Yeah, I've tried same error. |
|
@ivanpauno Could you please share the instruction to reproduce it .? |
|
See #217 for the fix. |
As the output above shows the CMake warning appears when building the |
* Fix symlink install versioned shared library Signed-off-by: JafarAbdi <[email protected]> * Update ament_cmake_symlink_install.cmake.in Signed-off-by: JafarAbdi <[email protected]>
* Fix symlink install versioned shared library Signed-off-by: JafarAbdi <[email protected]> * Update ament_cmake_symlink_install.cmake.in Signed-off-by: JafarAbdi <[email protected]> Signed-off-by: Steve Peters <[email protected]>
* Fix symlink install versioned shared library Signed-off-by: JafarAbdi <[email protected]> * Update ament_cmake_symlink_install.cmake.in Signed-off-by: JafarAbdi <[email protected]>
* Fix symlink install versioned shared library Signed-off-by: Jafar Abdi <[email protected]> * Update ament_cmake_symlink_install.cmake.in Signed-off-by: Jafar Abdi <[email protected]>
* Fix symlink install versioned shared library Signed-off-by: JafarAbdi <[email protected]> * Update ament_cmake_symlink_install.cmake.in Signed-off-by: JafarAbdi <[email protected]> Signed-off-by: Steve Peters <[email protected]>
) (#217) (#310) * Fix symlink install versioned shared library (#216) * Fix symlink install versioned shared library Signed-off-by: Jafar Abdi <[email protected]> * Update ament_cmake_symlink_install.cmake.in Signed-off-by: Jafar Abdi <[email protected]> * fix escaping of regex (#217) Signed-off-by: Dirk Thomas <[email protected]> Co-authored-by: Jafar Abdi <[email protected]> Co-authored-by: Dirk Thomas <[email protected]>
Fix #214
From doing some online research I found that the versioning extension is just for shared libraries in Linux so the other checks don't need any change