Replies: 7 comments 3 replies
-
Been there already in the early phase of developing this plugin and not likely to do it again. The only alternative I would consider is to look for platform packages, which would in this case mean you would have to package |
Beta Was this translation helpful? Give feedback.
-
bab610c is as much as I'm willing to change the logic, if there is
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Another question about this plugin : |
Beta Was this translation helpful? Give feedback.
-
Thanks again for your help |
Beta Was this translation helpful? Give feedback.
-
Hi Pavel And now since you modified the Plugin.cmake Thanks again for your patience and kindness |
Beta Was this translation helpful? Give feedback.
-
Hi again Pavel diff -Nrup a/Plugin.cmake b/Plugin.cmake macro(add_plugin_libraries)
Hope this is useful |
Beta Was this translation helpful? Give feedback.
-
As you supposed I have some problem to package nsk_pi
Indeed inside :
opencpn-nsk-plugin-0.2.2/nsk_pi-0.2.2/libs/marnav/CMakeLists.txt
we need to :
Download sources and get the source directory
include(FetchContent)
FetchContent_Declare(
marnav
GIT_REPOSITORY ${mnav_repo}
GIT_TAG ${mnav_tag})
FetchContent_Populate(marnav)
FetchContent_GetProperties(marnav SOURCE_DIR marnav_src_dir)
For safety reasons our BuildSystem has no access to download anything from internet when building a rpm :
we need to provide all the tar.gz sources and the spec file... to our http://svnweb.mageia.org/packages/ which needs a secure access to upload anything
For example I get no problem to have to provide two sources tar.gz :
dashboardsk_pi-0.2.2.tar.gz
and
opencpn-libs.tar.gz
so that the second fills the extracted Source tree in the right place instead of the opencpn-libs link
But no way to download marnav source from github when building the rpm (for security reason !)
Would it be possible to rewrite this CMakeLists.txt and add a link in the source tree
so that it uses marnav the same way as it uses opencpn-libs
This would be kind of this :
I know that it would be a huge work but it will allow a canonical and safe way to build from known and readable opensources better than downloading anything when building
Beta Was this translation helpful? Give feedback.
All reactions