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

Bonnie 1.98 #57232

Merged
merged 2 commits into from Mar 10, 2019
Merged

Bonnie 1.98 #57232

merged 2 commits into from Mar 10, 2019

Conversation

bachp
Copy link
Member

@bachp bachp commented Mar 10, 2019

Motivation for this change

Update to latest version:
https://metadata.ftp-master.debian.org/changelogs//main/b/bonnie++/bonnie++_1.98_changelog

Make the bon_csv2txt untility work. It is a perl script and thus requires the correct perl interpreter.
Closure size increased from 34'006'536 bytes to 90'289'456 due to perl.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Version is already available in debian testing.
The bon_csv2txt utility is a perl script. By default it is looking forbonnie: fix bon_csv2txt utility

The bon_csv2txt utility is a perl script. By default it is looking for
perl in /usr/bin/perl which doesn't work on nixos.

This changes patches the perl interpreter correctly. But this comes as at a cost of
closure size increase from 34'006'536 bytes to  90'289'456 bytes as perl is now a dependency.

An alterantive would be to patch the file to use /usr/bin/env perl and just rely on a perl interpreter
being present in PATH.

perl in /usr/bin/perl which doesn't work on nixos.

This changes patches the perl interpreter correctly. But this comes as at a cost of
closure size increase as perl is now a dependency.

An alterantive would be to patch the file to use /usr/bin/env perl and just rely on a perl interpreter
being present in PATH.
@srhb
Copy link
Contributor

srhb commented Mar 10, 2019

I think the closure increase is absolutely sane in this case, because perl is a true runtime dependency.

@srhb srhb merged commit f9bb0b3 into NixOS:master Mar 10, 2019
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

3 participants