-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add FreeBSD compatibility #5
Conversation
Nothing in these scripts appears to be bash-specific, so using /bin/sh prevents, for example, BSD system packages/ports having a bash dependency.
Like the previous bash -> sh commit, nothing here appears to be gawk-specific, so this prevents, for example, BSD system packages/ports having a gawk dependency.
It may be something specific to the FreeBSD ports infrastructure, but the -C after $(MAKEFLAGS) causes the build to fail. Swapping their order fixes it.
Hi Jim, thank you very much! I'll have a look at your changes and merge them if nothing speaks against it. I did have some problems with the bourne shell on Solaris, but I'm not sure if those problems still exist. After starting to use the bash, the scripts did change several times. It is possible that the changes also eliminated the problems I had in the Solaris environment. The use of gawk has similar reasons. The original awk (from about 5000 BC on the computer scale of time) isn't very powerful and might or might not be able to execute my scripts. I won't have time to review everything this week. I'll come back on you next week. Best regards, Ronald On Thu, 09 Oct 2014 07:31:51 -0700
independIT Integrative Technologies GmbH e-mail: ronald.jeninga@independit.de |
Yes, it goes without saying (or maybe it doesn't) that I have only tested these changes on FreeBSD, trying to get things working there...and this only gets it building. I haven't gotten to the point of actually running it there yet. ;-) I can test the changes with some Linux distros if time allows, but I don't necessarily have a lot of time to set up the testing environment, so it may be faster for someone with an existing Linux setup to give them a go and make sure everything still works. I don't have access to or time for Solaris. If there ends up being a problem with sh or awk, I can always make bash and/or gawk a dependency for the FreeBSD port, but fewer dependencies is always better. Or, it might be better if the makefile was more dynamic (similar to OSTYPE) so that more variables/args could be passed in. A full autoconf/automake setup with a configure script would be nice to sort some of these types of things out, but maybe that's overkill for your needs in this project. |
Hi Jim, don't worry about linux. That's my native platform. Sure, an autoconf/automake would be nice, but considered the huge amount of C code (basically jobexecutor.c and scrolllog) it'll definitely feel like an overkill. If your changes work both in a linux and a solaris environment, I'll accept them and then the odds are good that other unix brands (AIX, HPUX, ...) won't have problems too. Regards, Ronald On Thu, 09 Oct 2014 08:04:40 -0700
independIT Integrative Technologies GmbH e-mail: ronald.jeninga@independit.de |
Not all supported systems support `mknod ... p' but do seem to support mkfifo.
Hi Jim, so far I gratefully merged some of your suggestions (master branch):
That makes 5 out of 7 so far. The two others, use of /bin/sh instead of /bin/bash, as well as the use of awk instead of gawk require some more investigation. One thing's for sure: in a solaris environment (I tested Solaris 10 so far, but IIRC the same applies to solaris 11), awk doesn't work, nawk does.
Exchanging /bin/bash with /bin/sh shouldn't be a problem, but in order to make sure, I'd like to test this under solaris and some ubuntu linux. As you can see, progress is made. Best regards, Ronald On Thu, 09 Oct 2014 08:04:40 -0700
independIT Integrative Technologies GmbH e-mail: ronald.jeninga@independit.de |
Yay! Progress is good! Thanks. |
I'm near releasing a stable 2.6.1. The only work left is a bit of documentation. I changed the Makefile.Commonrules such that it searches for the best awk available (with the logic described in my previous message). If you feel like it and have some time, could you give it a try? And if everything's OK, do you happen to know how to continue from here? I'm not a git(hub) specialist. |
This fixes a couple of compilation errors that I have encountered on FreeBSD, minimizes a few Linux-esque dependencies, and generalizes some of the (Net)BSD handling so that the build works as a FreeBSD port.