Skip to content

R: Add enableShared/enableStatic arguments#72058

Merged
peti merged 1 commit intoNixOS:masterfrom
nh2:r-static-library
Oct 30, 2019
Merged

R: Add enableShared/enableStatic arguments#72058
peti merged 1 commit intoNixOS:masterfrom
nh2:r-static-library

Conversation

@nh2
Copy link
Contributor

@nh2 nh2 commented Oct 27, 2019

Motivation for this change

Building libR.a for static linking.

Care was taken to not modify the derivation to trigger mass rebuilds with the default arguments.

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 nix-review --run "nix-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @peti @timokau

@nh2 nh2 requested a review from peti as a code owner October 27, 2019 01:14
@nh2 nh2 changed the title R: Add enableShared/enableStatic arguments WIP: R: Add enableShared/enableStatic arguments Oct 27, 2019
@nh2 nh2 force-pushed the r-static-library branch from 8935281 to 4f273d6 Compare October 27, 2019 01:24
@nh2
Copy link
Contributor Author

nh2 commented Oct 27, 2019

@GrahamcOfBorg eval R

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Oct 27, 2019
@nh2 nh2 changed the title WIP: R: Add enableShared/enableStatic arguments R: Add enableShared/enableStatic arguments Oct 27, 2019
Copy link
Member

@peti peti left a comment

Choose a reason for hiding this comment

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

Just out of curiosity: why would you want to link R packages statically?

@nh2
Copy link
Contributor Author

nh2 commented Oct 30, 2019

Just out of curiosity: why would you want to link R packages statically?

Linking the R interpreter library statically would allow to create single binaries that can interpret R scripts. My own end goal for that is to be able to link the Haskell packages inline-r and H statically for static-haskell-nix.

R's autoconf does not use the normal configure flags for that.
@nh2 nh2 force-pushed the r-static-library branch from 4f273d6 to edbe2d8 Compare October 30, 2019 10:44
@nh2
Copy link
Contributor Author

nh2 commented Oct 30, 2019

@GrahamcOfBorg build R

@ofborg ofborg bot requested review from peti and timokau October 30, 2019 11:04
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Oct 30, 2019
@nh2
Copy link
Contributor Author

nh2 commented Oct 30, 2019

@peti Points addressed, please have another look :)

@peti peti merged commit 3bc7621 into NixOS:master Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants