-
Notifications
You must be signed in to change notification settings - Fork 971
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
Doesn't build on FreeBSD #1645
Comments
Unfortunately I don’t use FreeBSD and do not know how to resolve it. It looks oike a deep dependency within dockertest. I fear there’s nothing I can do on our end here, sorry! If you know how to fix it, please supply a PR! |
Sadly I don’t know a single thing about docker or go. Is there just a way to disable « dockertest » ?
… Le 4 sept. 2021 à 17:24, hackerman ***@***.***> a écrit :
Unfortunately I don’t use FreeBSD and do not know how to resolve it. It looks oike a deep dependency within dockertest. I fear there’s nothing I can do on our end here, sorry!
If you know how to fix it, please supply a PR!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
It’s actually only used in test but Go is notorious for compiling everything, including tests, when building binaries :/ |
oof. So the only possible option is to fix dockertest compilation, even if there's zero chance of Docker working in freebsd ? |
It's just the compilation which is broken, Docker is only needed to run tests - but yeah, the compile needs to be fixed first. |
This comment has been minimized.
This comment has been minimized.
@ory seriuously? So there is nothing else around Linux for you? The world seems to be flat these days. |
@michael-o I don't know if you get it but the problem was how your colleague communicated his points. Next time a bit less passive aggressive and more constructive should to the trick. |
He sharply pointed out that your approach is unnecessarily platform specific and violates your own goals. I have such comments many times taken as a personal attack although he's trying to tell you that the world isn't flat. |
I overreacted (and am sorry for that) because I found the tone very rude and the points made are incorrect, clearly indicating that the poster has no idea how the software works. I have reverted the actions and am looking forward to useful and constructive ideas to resolve build issues on FreeBSD. Please be nice in open source projects, this project in particular is only maintained by me and I have little patience for trolls. |
Reacting properly to harsh criticism is a virtue. Hard to achieve, granted. |
There are two ways to look at it: You are doing a good job, but we can make it better OR you are doing a shifty job, why can't you do it right? I prefer to interpret @joh-ku's comment explicitly as the former. Personally for me as a developer I feel great when I know that my code runs on many platforms identically and makes millions happy. |
@aeneasr The way you reacted to my comment is completely inappropriate and, in contrast to my (perhaps to harsh) technical input, it was without any doubt a rude attack against my person (I resist to post its content here). This is simply unprofessional, no matter if we are in OSS or commercial space or anywhere else. But let's return to the content:
Exactly this is my point. This is not trolling. It's about portability. Nobody commented on this so far.
May I ask you to explain why my points are incorrect? |
The bug is most likely resolvable via:
As stated before, due to the way we bootstrap tests for easy consumption, it is not possible nor desirable to strip Dockertest from the project. And as with all open source project, collaboration is key! If this is a problem you encounter, you’re in the best position to fix it! Maintainers including myself are happy to help wherever possible |
Apology accepted, I hope you accept mine too :) My remarks were out of line and indeed unprofessional. |
Accepted as well. :) I'm well aware that OSS maintenance is not an easy task and I highly appreciate your work. I think, as already pointed out by others, the main problem is that FreeBSD does not support docker. If an encapsulation of business logic and deployment is not desired we probably are somewhat stuck at this point. I just think that this is not an ideal solution portability-wise like we can see from this issue (and therefore against my understanding of your design principles) – and please let me emphasize again, that I don't want to offend anybody with that statement. It's solely a technical note. |
I see - so Docker ist not needed to run, it’s merely a tool to bootstrap tests! I think the problem is some incorrect syscall value in some dep that causes the build failure! :) |
Regardless of the fact that this is some Docker module:
and it should be skipped for non-Linux in most cases the underlying C/OS call isn't portable because the struct you are trying to read has either different types or members. Definition of You like need to take the largest available type here. I don't know how platform-specific code is done in Go, obviously not ifdefs. Note: I have never written Go, but ported many OSS to FreeBSD and HP-UX, found many non-portable pitfalls down the road. |
You're right :) All that was needed was to add a FreeBSD version of the mkdir file, which, when using freebsd was expecting an uint instead of an int as on other platforms (mac, windows, linux). So added a file to deal with the type conversion for freebsd, afaik building works now! |
Hopefully it won't suffer from any truncation because you pass in |
Build works now! Thank you @aeneasr and @michael-o :) The remaining problem with the Makefile (as bash defaults to
can probably be fixed by replacing
with
as you export |
Kratos (also affects Keto) does not build (
gmake install
) on FreeBSD:Reproducing the bug
pkg install go sqlite3 bash gmake
ln -s /usr/local/bin/bash /bin/bash
(this is hardcoded in theMakefile
)gmake install
Environment
The text was updated successfully, but these errors were encountered: