-
Notifications
You must be signed in to change notification settings - Fork 117
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
Tweaks to allow building on other BSDs #1778
Conversation
Would you like to take a pass at renaming the ‘scroll’ variable or have this committed now? Thank you! |
It sure would be nice to have it work right. I'll fix it. |
This now builds for me on both Linux and NetBSD. Please check that I didn't goof anything for Mac. Thanks! |
Hi Chuck, Looks like you spent some time hacking lxdialog into submission, thanks! Have you tested this at all on macOS, or do I need to before commit? Specifically, I'm unsure where/whether macOS gets the My other question is: what's up with the NetBSD compiler regarding local variables/arguments named I guess for shell scripts, Thank you! |
I just tested on macOS and things work, great! I didn't know that |
I think I know what was going on there. The collision happens when attempting to build against curses but not ncurses, so the failure isn't really specific to NetBSD. In curses, I only managed to hit that because I had ncurses installed, which bypassed the user-facing error message, but this was before I had added the Obviously this Makefile could use some cleanup: Part of is insists that ncurses is installed, but other parts of it seem to try to be compatible with BSD curses. I might look into that... |
My machine that can write a floppy is now old enough that Linux doesn't really support it, so I switched it to NetBSD. Here are the minimal changes that I needed to get a build.
lxconfig still doesn't build because it has a
scroll
variable that collides with the ncurses function. I don't know how this normally manages to build. But that can be bypassed by dropping a .config in place.This expects all the GNU stuff to be installed, and I had to trick the Makefiles to use GNU make instead of BSD's make, by first running
alias make=gmake
. But all things considered, it was surprisingly easy.