-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[paho-mqtt-c] Explicit lib list + remove excessive build system patch #4356
[paho-mqtt-c] Explicit lib list + remove excessive build system patch #4356
Conversation
Honestly, I don't like to build or package unecessary libs. If for maintenance purpose, the patch is removed, I would prefer useless files to be removed in Eventually build a specific target, and do manual copy of public headers and libs. Or even better, submit a PR to upstream (add options to build specific targets or all of them). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think is a good idea, I am going to try it... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Is it possible that the test_packge is skipping the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
😖
|
I admire your stamina, @prince-chrismc, but I wonder if you have meanwhile similar negative feelings for this recipe/package as I do .... It's really bad that the upstream project is not able to provide a useful build, this as wasted provable so many time of many people here .... |
This comment has been minimized.
This comment has been minimized.
That's a static ssl obj with fPIC always ON.... https://github.com/eclipse/paho.mqtt.c/blob/64a5ff3c3b71fe019353aeacaebc66a3cf4f3461/src/CMakeLists.txt#L249 Is this a problem? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
unfortunately this causes it to build all 4 combinations but the build time is very short
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
👋 @uilianries @SSE4 @madebr @ericLemanissier if guys have a second please take a look at this PR 🙏 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
All green in build 20 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
less patches - good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not completly convinced by the resulting packages (headers specifically).
I agree it's not perfect. But checked the git blame and all the expected files are there.
We could hardcode the list of files but that more likely to break then the pattern. |
Great work Chris, thanks a lot! About the header for the install, this should of course be handled by the project, if a simple |
…ild system patch * [paho-mqtt-c] explicit lib list * Update recipes/paho-mqtt-c/all/conanfile.py Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> * zap build patch + rm extra libs from package unfortunately this causes it to build all 4 combinations but the build time is very short * Test to see if the package_info does not account for cofig_options * Update conanfile.py * fix incorrect throw for invalid config * use remove by mask * fix patch name * refactor epl file * bump openssl * del fpic when shared * handle bin folder for windows shared * tweak matchers * bump openssl + fix path * test: build target + selective install * patch openssl lookup might be required for 1.3.0 * more limted selection on copy * zap pdbs * try re-using the patch since it looks the same * respect fPIC option * warn + del samples Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> * selective copy of headers Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
Specify library name and version: paho-mqtt-c/all
conan-center hook activated.
This is a follow up to recent issues #4096 #4063 #4293
Implemented #4063 (comment)
I tested ~8 combinations and it seems to be working with the patches removed... The built times are tiny so so I remove them completely?