-
Notifications
You must be signed in to change notification settings - Fork 208
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
Change build infrastructure to CMake #22
Comments
What are the requirements here (for the initial transition)? Here's what I see right now
Functional requirements:
What else? |
I just made up an early functional version [1] with minimal changes to the codebase. The only real changes were in the main.c from _open/_close to open/close [2]. Best [1] https://gitlab.com/nickma/mbusd/commit/d26f68ee058edabec4209c9f191f4928d11b6e0b |
Wow, nice to see some progress! Don't have access to any *BSD box right now, but I'll try to find some to check that. |
Ok, currently working on cmake and an unittest infrastructure in parallel. What's working until now:
What's up next:
Every kind of support appreciated. [1] https://gitlab.com/nickma/mbusd/pipelines |
Sounds great! I will look into it. Btw, please note I've pushed into master support for read configuration from file. Also multiple systemd instances of mbusd are supported now. |
Awesome, I'm gonna merge asap |
Please review https://github.com/nickma82/mbusd/tree/unittests |
@nickma82 great work, thanks! I've merged your changes into https://github.com/3cky/mbusd/tree/cmake branch, also made some fixes in bed0a84 (handle different PREFIXes, install example configuration file, added uninstall target). It seem to be good enough to be merged into the master. Do you have any thoughts on this? |
Great, following some thoughts:
|
Hmm, and there is no |
How about that? |
That's much better. :) But still have some doubts about service file install path. Arch Linux systemd user guide says:
Fedora Linux seem to follow the same service file location rules. Is |
I'm having a hard time to find a good source for the systemd/sytem directory.
Ad Ad
I'd take Best |
I think probably we shouldn't reinvent the wheel and just borrow FindSystemd.cmake from qBittorrent guys. :) |
Integrated FindSystemd.cmake and changed the other install targets a bit, please review again Another thing: do you have the fedora compile rpm-dependencies at hand? |
Done, please see d8b3b24.
Do you mean the dependencies required by CMake/CPack or by mbusd itself? BTW I still didn't check packaging part, will do. |
For both of them - Fedora flavored.
You don't have to. Wait for the gitlab-ci infrastructure, it outputs the package by itself. |
Just checked it with fresh Fedora 27 install, the minimum requirements are |
Now with the packaging capabilities you could release (downloadable) packages.. (deb, rpm)?
Thank you too, your way of being into that changes kept me on track. :) |
Autoconf/automake build scripts used by mbusd are really old and complex to maintain, so we should switch to CMake build system https://cmake.org/
The text was updated successfully, but these errors were encountered: