Skip to content

gem-config: add semian #54613

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

Merged
merged 1 commit into from
Jan 26, 2019
Merged

gem-config: add semian #54613

merged 1 commit into from
Jan 26, 2019

Conversation

ento
Copy link
Contributor

@ento ento commented Jan 26, 2019

Motivation for this change

Building the semian gem with bundlerEnv results in this error on Ubuntu/Debian because it needs openssl

error output
building '/nix/store/m8k2p5dczdrnhsar4hd0v7m4abyz27h0-ruby2.3.8-semian-0.8.6.drv'...
unpacking sources
patching sources
configuring
no configure script, doing nothing
installing
buildFlags: 
WARNING:  You build with buildroot.
  Build root: /
  Bin dir: /nix/store/g0jqf0h066an4i9zmq0jq7rd9sxgsygf-ruby2.3.8-semian-0.8.6/lib/ruby/gems/2.3.0/bin
  Gem home: /nix/store/g0jqf0h066an4i9zmq0jq7rd9sxgsygf-ruby2.3.8-semian-0.8.6/lib/ruby/gems/2.3.0
Building native extensions. This could take a while...
ERROR:  Error installing /nix/store/gj5is0zci89d3ldlqpjw5li9kbrvl0k5-semian-0.8.6.gem:
        ERROR: Failed to build gem native extension.

    current directory: /nix/store/g0jqf0h066an4i9zmq0jq7rd9sxgsygf-ruby2.3.8-semian-0.8.6/lib/ruby/gems/2.3.0/gems/semian-0.8.6/ext/semian
/nix/store/nw0k7lw6i79bij8rp0l6v9rqjm4j7386-ruby-2.3.8/bin/ruby -r ./siteconf20190125-12320-o96lio.rb extconf.rb
checking for openssl/sha.h... no
openssl is missing. please install openssl.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/nix/store/nw0k7lw6i79bij8rp0l6v9rqjm4j7386-ruby-2.3.8/bin/$(RUBY_BASE_NAME)

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /nix/store/g0jqf0h066an4i9zmq0jq7rd9sxgsygf-ruby2.3.8-semian-0.8.6/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/semian-0.8.6/mkmf.log

extconf failed, exit code 1
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: Debian 9.5
  • 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.

Note: on macOS, it works without this config. Testing on Ubuntu/Debian with the parent sha will produce an error about extconf.rb failing to find openssl/sha.h.
@ento ento requested review from alyssais and zimbatm as code owners January 26, 2019 05:40
@GrahamcOfBorg GrahamcOfBorg added 6.topic: ruby A dynamic, open source programming language with a focus on simplicity and productivity. 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 Jan 26, 2019
@Mic92 Mic92 merged commit 068b35d into NixOS:master Jan 26, 2019
@ento ento deleted the gem-config-semian branch January 30, 2019 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: ruby A dynamic, open source programming language with a focus on simplicity and productivity. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants