Skip to content
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

[WIP] Fix NetBSD build #2089

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

g0mb4
Copy link
Contributor

@g0mb4 g0mb4 commented Nov 22, 2024

Waiting for #2080.

Using NetBSD 10.0.

image

Compiling with: cmake -DBUILD_IMLIB2=OFF ..

There are a lot of TODOs, but it compiles.

@github-actions github-actions bot added sources PR modifies project sources dependencies Issue or PR that affects dependencies labels Nov 22, 2024
Copy link

netlify bot commented Nov 22, 2024

Deploy Preview for conkyweb canceled.

Name Link
🔨 Latest commit a6ca22c
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/674119530f35f0000992010d

@g0mb4 g0mb4 changed the title [WIP] Fix NetBSD build. [WIP] Fix NetBSD build Nov 22, 2024
@Caellian
Copy link
Collaborator

Caellian commented Nov 22, 2024

Please hold off until fix for OpenBSD is merged.

It conflicts with these changes and makes some of them unnecessary - e.g. adding -lintl manually (bad practice; already handled by official CMake script included into the other branch)

Merging either PR first will require fixing a lot of merge conflicts as they touch same files and will waste (some) time and effort.

Alternatively, rebase to other branch to continue development. When you chain them like this, when each branch is merged, the next can be rebased to conky/main which will avoid all conflicts and allows you to develop as many future branches in advance as you want.

@g0mb4
Copy link
Contributor Author

g0mb4 commented Nov 22, 2024

Sure. I'll do the rebasing, just wanted to save my work and signal that I'm working on it.

It is done at the moment, it compiles and runs. It misses a lot of features, but it can be improved later.

@g0mb4
Copy link
Contributor Author

g0mb4 commented Nov 22, 2024

And sorry for the inconvinience, but now I have time to work on it. I do not mind rebasing and fixing the conflicts.

@Caellian Caellian mentioned this pull request Nov 22, 2024
Using NetBSD 10.0.

Compiling with: `cmake -DBUILD_IMLIB2=OFF ..`.

There are a lot of `TODO`s.
@Caellian
Copy link
Collaborator

And sorry for the inconvinience.

Not an inconvenience. I just warned you because I did the same thing in one of my first commits and it ended up being such a mess that I had to abandon the PR and create a new one with no history (just one example).

Anyway, merged the other branch and rebased this one (reminder to pull before making the next commit), only a single conflict.

Copy link
Collaborator

@Caellian Caellian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change requests

@@ -97,6 +97,7 @@ endif(CMAKE_SYSTEM_NAME MATCHES "SunOS")

if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
set(OS_NETBSD true)
set(conky_libs ${conky_libs} -lkvm -lintl -lossaudio)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • -lintl not needed.
  • -lossaudio should be handled on line 159 in this file presumably by adding OR OS_NETBSD to elseif(OS_OPENBSD)

Comment on lines -259 to +269
set(conky_includes ${conky_includes} ${CURSES_INCLUDE_DIR})
if(OS_NETBSD)
set(conky_includes ${conky_includes} /usr/pkg/include)
set(conky_includes ${conky_includes} /usr/pkg/include/ncurses)
else(OS_NETBSD)
set(conky_includes ${conky_includes} ${CURSES_INCLUDE_DIR})
endif(OS_NETBSD)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole BUILD_NCURSES block should really do what this patch for weechat on NetBSD does - check for both ncurses and curses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Issue or PR that affects dependencies sources PR modifies project sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants