-
-
Notifications
You must be signed in to change notification settings - Fork 623
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
Fix OpenBSD build #2080
Fix OpenBSD build #2080
Conversation
✅ Deploy Preview for conkyweb canceled.
|
Work in progress.
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: Tin Švagelj <[email protected]>
Referencing #2052 as cause of issues. |
I'm just running I want it to compile first, then fix the issues with the other platforms. |
Signed-off-by: Tin Švagelj <[email protected]>
And yes, |
Signed-off-by: Tin Švagelj <[email protected]>
13e3858
to
150c5dd
Compare
- Fix `~` substitution. - Add more tests for to_real_path. Signed-off-by: Tin Švagelj <[email protected]>
3915c89
to
a64f0af
Compare
Signed-off-by: Tin Švagelj <[email protected]>
f1aad1b
to
2255929
Compare
Signed-off-by: Tin Švagelj <[email protected]>
2255929
to
b8c7012
Compare
This reverts commit b8c7012. None of the workers work "out of the box". Better to put this into a separate PR to avoid blocking the more important one.
Signed-off-by: Tin Švagelj <[email protected]>
fefa25a
to
7fc6c69
Compare
Signed-off-by: Tin Švagelj <[email protected]>
8b795e0
to
905aa15
Compare
Signed-off-by: Tin Švagelj <[email protected]>
Signed-off-by: Tin Švagelj <[email protected]>
Per documentation: <XXX>_LIBRARIES - only the libraries (without the '-l') <XXX>_LINK_LIBRARIES - the libraries and their absolute paths Using _LIBRARIES assumes that appropriate default -L arguments will be provided by the environment/system. CMake discourages directly adding paths with -L or link_directiories because it polutes the environment and can cause issues. So the only way to ensure correct build on some platforms is to use absolute paths provided by _LINK_LIBRARIES. Signed-off-by: Tin Švagelj <[email protected]>
a0a17fb
to
96e84fa
Compare
It's default so it only causes compile warnings Signed-off-by: Tin Švagelj <[email protected]>
I believe that pretty much covers my intent behind #2075. I'm building this from a minimal VM environment and would appreciate if you could test it @g0mb4. Feel free to implement any of the added stubs before requesting review. For future reference (CI?), package names: Minimal package dependencies:
Optional pkg deps:
|
Wow! Thank you for the help! I'll test is as soon as possible. |
A cross-platform solution is already implemented in brndnmtthws#2080. This PR will be rebased *after* the OpenBSD fix was merged.
_LINK_LIBRARIES is used so there will be no more -lX11 args. Signed-off-by: Tin Švagelj <[email protected]>
It works on my setup. |
I think adding more features really should be part of a new PR. |
Alright, then it's done. I didn't test all possible features because built time was atrocious, but I think they're likely to work. Core, X11 stuff and LUA stuff is confirmed to build on different architectures. Following
Adding CI would be nice even if OpenBSD isn't a primary support target because it would improve code quality by failing on non standard language/stdlib use. |
0fab7f4
to
c0f6a3c
Compare
This avoids feature regression but still works better for OpenBSD than always returning an empty string when to_real_path is called. Signed-off-by: Tin Švagelj <[email protected]>
c0f6a3c
to
fc7dead
Compare
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.
From perspective of already supported platforms these are minor consistency tweaks.
From perspective of OpenBSD, it allows conky to at least build which is most important because official OpenBSD port is stuck on a very old version due to build issues.
I'm merging this so @g0mb4 can continue working on NetBSD support in #2089 without having to deal with rebasing.
@brndnmtthws feel free to revert this PR if you don't like something about this, but I'll merge it for now given that CI passes (builds) so none of the already supported platforms should be affected. See the commit message for an exhaustive summary.
@g0mb4 don't delete the branch in case @brndnmtthws rolls it back and requests edits.
* Implement `-U` for Haiku. This patch also fixes a compilation error on Haiku. Compiled with `cmake -DBUILD_X11=FALSE ..` Tested on Haiku-r1beta5. Takes part of #2072. * Revert `common.cc`. A cross-platform solution is already implemented in #2080. This PR will be rebased *after* the OpenBSD fix was merged. * Haiku: Remove `wordexp.h`. Use the `to_real_path()` used for OpenBSD. * Haiku: Remove `HAIKU_HOME_DIR`. It was not used.
Using OpenBSD 7.6.
Try to close #2073, unfortunately #2075 is not enough.