-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
CI: Fix NetBSD build. #1509
CI: Fix NetBSD build. #1509
Conversation
292a8b3
to
fb98f64
Compare
How about we let NetBSD teams figure out what happened that breaks the build before we implement more workarounds to the problem? |
@Explorer09 : Do you have some specific person or a team within NetBSD to figure out what happened? If not, I am a developer associated with NetBSD, who helps maintains this package. The build within NetBSD 10 and pkgsrc currently does not enable unicode at least according to the configure options, but I could be wrong. If you would like someone else from the NetBSD team to have a look, happy to close the PR. |
@fraggerfox The htop used to succeed building in NetBSD with By the way, the detection logic of |
@Explorer09 : Yup I am aware of the
And the build was configured to use the built in I guess when I setup the CI I should have used the default values as pkgsrc was using https://github.com/NetBSD/pkgsrc/blob/trunk/sysutils/htop/options.mk#L18 since But if you would like to wait until the |
@fraggerfox Wait a second. So NetBSD has Can we let our CI select |
Seems even more like a reason to implement a mechanism like #1506 to allow users to easily switch the detection. But that's just an aside. We can discuss the details for it over there. Regarding this issue: I think, even if the proposed workaround somewhat "limits" the coverage on NetBSD, it's still better than no coverage at all. For the time being, I can live with the reduced feature set for now, as it also introduces a system with disabled Unicode support (which we do not have many AFAIR). In the long run we should though, even if this PR is merged, aim to get the underlying issue on NetBSD fixed to restore full Unicode support. |
fb98f64
to
3252406
Compare
.github/workflows/ci.yml
Outdated
run: | | ||
set -e | ||
./autogen.sh | ||
CPPFLAGS="-I/usr/pkg/include -I/usr/pkg/include/ncurses" LDFLAGS="-L/usr/pkg/lib -Wl,-R/usr/pkg/lib" ./configure --enable-unicode --enable-werror |
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.
Restore the build with ncurses
support.
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.
htop 3.4.0-dev
platform: netbsd
os-release file: /etc/os-release
(Linux) proc directory: /proc
(Linux) openvz: no
(Linux) vserver: no
(Linux) ancient vserver: no
(Linux) delay accounting: no
(Linux) sensors: no
(Linux) capabilities: no
unicode: yes
affinity: no
unwind: no
hwloc: no
debug: no
static: no
Output of ./configure
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.
One issue here I see is that you need explicit CFLAGS
and LDFLAGS
in order to link against ncurces
and not curses
. This is not convenient for builders, and is the issue I wish to see it resolved in #1506.
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.
When building via pkgsrc with the ncurses
option these flags are set before doing ./configure
The ${MAKE_ENV}
sets them in this case.
I agree it is not clean but with #1506 may be we can tweak the build to look cleaner outside the pkgsrc build script.
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.
I have removed the LDFLAGS
and I think it should work now.
Due to ncurses
being an additionally installed package I guess I still need to specify
LDFLAGS="-L/usr/pkg/lib"
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.
@fraggerfox Is it possible to obtain the library include path via a pkg-config
command? That's the way I expect to see it done.
LDFLAGS=$($PKG_CONFIG --libs ncurses)
Similarly for CPPFLAGS:
CPPFLAGS=$($PKG_CONFIG --cflags ncurses)
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.
@Explorer09 : Should be done in the latest commit.
Due to the following warnings
and
the build would still fail and we need to fix those before merging if we have |
I think with some similar cases we mostly just added some explicit typecasts IIRC. |
These were an oversight from my end, they have been fixed in main. |
@BenBE / @Explorer09 : I think we are good to merge this into main and see if the CI works. https://github.com/fraggerfox/htop-dev/actions/runs/10239034633/job/28324149404 |
80169b5
to
188bbd6
Compare
7ae752d
to
9289308
Compare
Add--disable-unicode
for now so that the CI passes the build without failing thencurses
check.Fix the build with proper
ncurses
support for NetBSD 10.