Skip to content
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

criu: 2.0 -> 2.12.1 #30408

Closed
wants to merge 1 commit into from
Closed

criu: 2.0 -> 2.12.1 #30408

wants to merge 1 commit into from

Conversation

sorki
Copy link
Member

@sorki sorki commented Oct 14, 2017

Motivation for this change

criu: 2.0 -> 2.12.1

No luck with upgrading to 3.x

cc @thoughtpolice

Things done
  • [] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

substituteInPlace ./criu/Makefile --replace "-I/usr/include/libnl3" "-I${libnl.dev}/include/libnl3"
substituteInPlace ./Makefile --replace "tar-name := $(shell git tag -l v$(CRIU_VERSION))" "tar-name = 2.0" # --replace "-Werror" ""
substituteInPlace ./Makefile --replace "head-name := \$(shell git tag -l v\$(CRIU_VERSION))" "head-name = ${version}.0" # --replace "-Werror" ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder, why not hard-code this to ${version} instead?

@joachifm
Copy link
Contributor

Needs rebasing

};

enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig docbook_xsl ];
buildInputs = [ protobuf protobufc asciidoc xmlto libpaper libnl libcap python ];
buildInputs = [ protobuf protobufc asciidoc xmlto libpaper libnl libcap libnet python git ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell the git here is not actually used, presumably because of the substitution in the patch phase… At least I was able to build it OK without git and

nix-store -q --references /nix/store/609y5nypwvwmm48ivj3lq7vrpp3px7fm-criu-2.12.1

doesn't show any reference to the git package.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see now, I do actually substituteInPlace the git call from Makefile so it's not needed. Will patch that.

@rycee
Copy link
Member

rycee commented Nov 2, 2017

Thanks! Rebased to master in 22beeea.

@rycee rycee closed this Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants