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
init bulletml and rrootage #35482
init bulletml and rrootage #35482
Conversation
@GrahamcOfBorg build bulletml rrootage |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
(debianPatch "warnings" "18px79x4drvm6dy6w6js53nzlyvha7qaxhz5a99b97pyk3qc7i9g") | ||
(debianPatch "makefile" "0z6yxanxmarx0s08gh12pk2wfqjk8g797wmfcqczdv1i6xc7nqzp") | ||
(debianPatch "includes" "1n11j5695hs9pspslf748w2cq5d78s6bwhyl476wp6gcq6jw20bw") | ||
(debianPatch "get-rid-of-boost" "1wc8jxlxmdx53mhgx55wzysxxbbrdmq6dpfbb8rrrbkdz5b59hjm") |
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.
Have those patches been reviewed if they apply to Nixos as well?
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.
Not individually. I know that without them it does not compile and with all of them it works fine. I'll review them one by one and remove the unnecessary ones.
sha256 = "01zzg4ih3kmbhsn1p9zr7g8srv1d2dhrp8cdd86y9qq233idnkln"; | ||
}; | ||
|
||
patches = [ |
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.
Same here.
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'm checking right now, but I'm unsure about some.
For example removing this patch seems to have no effect on the runtime behavior of rrootage, but looking at the description it makes sense to include it anyway.
What do you think I should do?
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.
Or the "high res by default" patch or the "windowed mode" patch, which are both really useful but not strictly necessary
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.
@Mic92 ping?
Maybe I should just fork that repository and apply those patches...
Success on aarch64-linux (full log) Partial log (click to expand)
|
Failure on x86_64-linux (full log) Partial log (click to expand)
|
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.
See @GrahamcOfBorg build log
@matthewbauer I can't see the full log. I think it got deleted. I only see
|
@GrahamcOfBorg build bulletml rrootage |
Failure on x86_64-darwin (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
(debianPatch "get-rid-of-boost" "1wc8jxlxmdx53mhgx55wzysxxbbrdmq6dpfbb8rrrbkdz5b59hjm") | ||
]; | ||
|
||
makeFlags = [ "-C src" ]; |
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.
Adding "CC=c++"
to makeFlags
hopefully fixes the macOS build.
b46e8bf
to
c0e23d4
Compare
@Mic92 could you trigger a rebuild? |
@GrahamcOfBorg build bulletml rrootage |
Failure on x86_64-darwin (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
|
||
makeFlags = [ | ||
"-C src" | ||
"CC=c++" # Needed for darwin |
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.
My bad CXX=c++
and CC=cc
hopefully produce better results.
@GrahamcOfBorg build bulletml rrootage |
Failure on x86_64-darwin (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Looks good to me now. If you could squash my trial and errors back into the bulletml commit this pull request should be good to go. |
Ah no. now we see more c++ legacy stuff: cuberite/cuberite#424 |
cuberite/cuberite#464 (comment) seems to suggest exporting those values rather than passing them to make... is that the same thing? Or maybe we should patch the c file like cuberite/cuberite#424 (comment) |
environment or not is the same thing in make. |
Patch it is then |
I just discovered that it was the remove-boost debian patch that introduced the tr1/memory include. I removed that patch and installed the boost files too. Could you try to rebuild now, @Mic92 ? |
@GrahamcOfBorg build bulletml rrootage |
Failure on x86_64-darwin (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
The x86_64-linux failure is spurious. darwin says |
@Mic92 last try, could you trigger a rebuild? If that fails can we merge this as is? Maybe with platforms=linux and a comment referencing this discussion. Without a darwin machine to edit-test-iterate this on, fixing it is a long and painful process |
I'm not even sure if that builtins.currentSystem comparison does what I think it does |
@GrahamcOfBorg build bulletml rrootage |
Success on x86_64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: bulletml, rrootage Partial log (click to expand)
|
Then please disable macOS as platform. |
4febc9c
to
3455420
Compare
@Mic92 done & removed the commits relevant to darwin. For anyone that comes across this and wants to fix the darwin build here's what was tried: + postPatch = if builtins.currentSystem == stdenv.lib.platforms.darwin
+ then "substituteInPlace Makefile --replace soname install_name"
+ else null;
makeFlags = [
"-C src"
+ # Needed for darwin
+ "CC=cc"
+ "CXX=c++"
+ "LD=c++"
]; But the currentSystem comparison is always false for some reason |
Motivation for this change
I'm packaging some of the awesome games by Kenta Cho. This is the first.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)