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

jemalloc: 4.3.1 -> 4.5.0 #23943

Merged
merged 1 commit into from Mar 19, 2017
Merged

jemalloc: 4.3.1 -> 4.5.0 #23943

merged 1 commit into from Mar 19, 2017

Conversation

c0bw3b
Copy link
Contributor

@c0bw3b c0bw3b commented Mar 15, 2017

Motivation for this change

Package update.
This PR is targeted at staging because a mass-rebuild is expected.

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

@mention-bot
Copy link

@c0bw3b, thanks for your PR! By analyzing the history of the files in this pull request, we identified @kirelagin, @wkennington and @copumpkin to be potential reviewers.

@c0bw3b
Copy link
Contributor Author

c0bw3b commented Mar 16, 2017

Companion to #23944 for a mass-rebuild

};

# By default, jemalloc puts a je_ prefix onto all its symbols on OSX, which
# then stops downstream builds (mariadb in particular) from detecting it. This
# option should remove the prefix and give us a working jemalloc.
configureFlags = stdenv.lib.optional stdenv.isDarwin "--with-jemalloc-prefix=";

preInstall = ''
substituteInPlace bin/jeprof --replace '#! /usr/bin/env perl' '#!/run/current-system/sw/bin/perl'
Copy link
Member

Choose a reason for hiding this comment

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

Same thing: this won’t work on non-NixOS.

Copy link
Member

Choose a reason for hiding this comment

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

Would it be possible to use Perl from Nixpkgs instead?

Copy link
Member

Choose a reason for hiding this comment

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

these shebangs are patched automatically if perl is in buildInputs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed this should point to Perl in the store and not to the symlink in current-system.
But do we want jemalloc to depend on Perl ? :/

Copy link
Member

Choose a reason for hiding this comment

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

maybe if we have separate build outputs like ["dev", "bin", "lib"]

@c0bw3b
Copy link
Contributor Author

c0bw3b commented Mar 16, 2017

Removed the unnecessary preInstall action. The perl script jeprof runs fine anyway.

@Mic92 Mic92 merged commit c23164e into NixOS:staging Mar 19, 2017
@c0bw3b c0bw3b deleted the pkg/jemalloc branch October 8, 2017 11:08
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

5 participants