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

mergerfs: 2.16.1 -> 2.22.1 #26929

Merged
merged 1 commit into from Jun 29, 2017
Merged

mergerfs: 2.16.1 -> 2.22.1 #26929

merged 1 commit into from Jun 29, 2017

Conversation

jfrankenau
Copy link
Member

@jfrankenau jfrankenau commented Jun 28, 2017

Motivation for this change

mergerfs: 2.16.1 -> 2.22.1

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
    • Linux
  • 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.

cc @makefu

deepClone = true;
leaveDotGit = true;
Copy link
Member

Choose a reason for hiding this comment

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

I got a different sha256 and probably this option is the fault. Is it really required for the build?

Copy link
Member

Choose a reason for hiding this comment

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

builds also without leaveDotGit.

Copy link
Member Author

Choose a reason for hiding this comment

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

In fetchgit leaveDotGit is implied by deepClone anyway. I've added this line to remind me to set this flag when using nix-prefetch-git which does not behave the same way.

The different sha256 are probably because I was using nix-prefetch-git from 17.03. I've updated the hash using the latest unstable.

};

buildInputs = [ fuse pkgconfig which attr pandoc git ];
buildInputs = [ fuse pkgconfig which attr pandoc git autoconf automake libiconv libtool gettext ];
Copy link
Member

Choose a reason for hiding this comment

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

nativeBuildInputs = [ autoreconfHook pkgconfig gettext libtool git gettext pandoc which ];
buildInputs = [ fuse attr libiconv ];

Copy link
Contributor

@makefu makefu Jun 28, 2017

Choose a reason for hiding this comment

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

The difference between nativeBuildInputs and buildinputs is still a bit opaque for me. There is an Issue to document it #1915 but it is open for 3 years now.
Why is it better to do the split here between nativeBuildInputs and buildInputs?

Copy link
Member Author

Choose a reason for hiding this comment

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

I realized that since 2.22.0 mergerfs comes bundled with fuse which is why Autoconf et al. are now necessary. This however means that the autoreconfHook cannot be applied here because mergerfs itself does not use it as it is only needed for fuse.

Copy link
Contributor

Choose a reason for hiding this comment

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

@makefu native refers to the machine where the build occurs. In a cross-compilation scenario, programs executed at build time must be native to the build machine. In situations where host = build the distinction does not matter, as all inputs are native either way.

@jfrankenau jfrankenau force-pushed the mergerfs-2.22.1 branch 2 times, most recently from b500086 to 9495295 Compare June 29, 2017 00:51
@Mic92 Mic92 merged commit d0a6e05 into NixOS:master Jun 29, 2017
@jfrankenau jfrankenau deleted the mergerfs-2.22.1 branch June 29, 2017 07:40
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

6 participants