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

Cannot support NixOS #116

Closed
Freed-Wu opened this issue Apr 9, 2023 · 22 comments · Fixed by #235 or #243
Closed

Cannot support NixOS #116

Freed-Wu opened this issue Apr 9, 2023 · 22 comments · Fixed by #235 or #243

Comments

@Freed-Wu
Copy link

Freed-Wu commented Apr 9, 2023

This gem will download .bundle/ruby/2.7.0/gems/sass-embedded-1.61.0-x86_64-linux-gnu/ext/sass/sass_embedded/src/dart for me. However, My OS is NixOS, which doesn't respect HFS so it must patchelf every program respect HFS. How can I use the dart installed by nix (package manager of NixOS) to replace the downloaded dart? That is it will search dart in $PATH, then use it, not use .bundle/ruby/2.7.0/gems/sass-embedded-1.61.0-x86_64-linux-gnu/ext/sass/sass_embedded/src/dart directly. Thanks!

Freed-Wu added a commit to Freed-Wu/jekyll-theme-freed that referenced this issue Apr 9, 2023
@ntkme
Copy link
Member

ntkme commented Apr 9, 2023

https://github.com/ntkme/sass-embedded-host-ruby/blob/a0328ddc1e6c6ead575a37f0406243cdcc60a93a/ext/sass/Rakefile#L25-L29

patchelf should have been done if you are under a proper build environment in NixOS (NIX_BINTOOLS must be defined). How did you install the gem?

@Freed-Wu
Copy link
Author

Freed-Wu commented Apr 9, 2023

It cannot work:

NIX_BINTOOLS=/nix/store/ngh5s155lcm1hwsakrfhla536x9g5v4z-binutils-wrapper-2.40 bundle install

@ntkme
Copy link
Member

ntkme commented Apr 9, 2023

Can you please provide log with --verbose?

@ntkme
Copy link
Member

ntkme commented Apr 9, 2023

Also, if you already have a broken installation in place, you will have to uninstall that first, before running bundle install again.

@Freed-Wu
Copy link
Author

Freed-Wu commented Apr 9, 2023

❯ NIX_BINTOOLS=/nix/store/ngh5s155lcm1hwsakrfhla536x9g5v4z-binutils-wrapper-2.40 bundle install --verbose
Running `bundle install --verbose` with bundler 2.1.4
Found no changes, using resolution from the lockfile
The dependency wdm (~> 0.1.1) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The definition is missing ["rake-13.0.6", "concurrent-ruby-1.2.2", "i18n-1.12.0", "minitest-5.18.0", "tzinfo-2.0.6", "activesupport-7.0.4.3", "public_suffix-5.0.1", "addressable-2.8.4", "fast-stemmer-1.0.2", "matrix-0.4.2", "classifier-reborn-2.3.0", "colorator-1.1.0", "eventmachine-1.2.7", "http_parser.rb-0.8.0", "em-websocket-0.5.3", "faraday-net_http-3.0.2", "ruby2_keywords-0.0.5", "faraday-2.7.4", "ffi-1.15.5", "forwardable-extended-2.6.0", "gemoji-3.0.1", "google-protobuf-3.22.2", "mini_portile2-2.8.1", "racc-1.6.2", "nokogiri-1.14.2", "html-pipeline-2.14.3", "sass-embedded-1.61.0", "jekyll-sass-converter-3.0.0", "rb-fsevent-0.11.2", "rb-inotify-0.10.1", "listen-3.8.0", "jekyll-watch-2.2.1", "rexml-3.2.5", "kramdown-2.4.0", "kramdown-parser-gfm-1.1.0", "liquid-4.0.4", "mercenary-0.4.0", "pathutil-0.16.2", "rouge-4.1.0", "safe_yaml-1.0.5", "unicode-display_width-2.4.2", "terminal-table-3.0.2", "webrick-1.8.1", "jekyll-4.3.2", "jekyll-archives-2.2.1", "jekyll-default-layout-0.1.5", "jekyll-feed-0.17.0", "sawyer-0.9.2", "octokit-6.1.1", "jekyll-github-metadata-2.16.0", "jekyll-mentions-1.6.0", "jekyll-readme-index-0.3.0", "rubyzip-2.3.2", "jekyll-remote-theme-0.4.3", "jekyll-seo-tag-2.8.0", "jekyll-sitemap-1.4.0", "rainbow-3.1.1", "jekyll-spaceship-0.10.2", "netrc-0.11.0"]
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/versions
HTTP 404 Not Found https://mirrors.bfsu.edu.cn/rubygems/versions
Bundler::Fetcher::FallbackError: Net::HTTPNotFound: https://mirrors.bfsu.edu.cn/rubygems/versions
/nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/fetcher/downloader.rb:43:in `fetch'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/fetcher/compact_index.rb:131:in `call'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/compact_index_client/updater.rb:53:in `block in update'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/tmpdir.rb:89:in `mktmpdir'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/compact_index_client/updater.rb:31:in `update'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/compact_index_client.rb:98:in `update'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/compact_index_client.rb:85:in `update_and_parse_checksums!'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/fetcher/compact_index.rb:75:in `available?'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/fetcher/compact_index.rb:16:in `call'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/fetcher/compact_index.rb:16:in `block in compact_index_request'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/fetcher.rb:162:in `use_api'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/source/rubygems.rb:388:in `block in api_fetchers'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/source/rubygems.rb:388:in `select'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/source/rubygems.rb:388:in `api_fetchers'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/source/rubygems.rb:393:in `block in remote_specs'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/index.rb:11:in `build'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/source/rubygems.rb:392:in `remote_specs'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/source/rubygems.rb:88:in `specs'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/lazy_specification.rb:75:in `__materialize__'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/spec_set.rb:83:in `block in materialize'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/spec_set.rb:80:in `map!'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/spec_set.rb:80:in `materialize'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/definition.rb:170:in `specs'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/definition.rb:158:in `resolve_remotely!'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/installer.rb:303:in `resolve_if_needed'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/installer.rb:84:in `block in run'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/process_lock.rb:12:in `block in lock'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/process_lock.rb:9:in `open'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/process_lock.rb:9:in `lock'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/installer.rb:73:in `run'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/installer.rb:25:in `install'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/cli/install.rb:66:in `run'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/cli.rb:256:in `block in install'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/settings.rb:124:in `temporary'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/cli.rb:255:in `install'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/cli.rb:30:in `dispatch'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/cli.rb:24:in `start'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:46:in `block in <top (required)>'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/2.7.0/bundler/friendly_errors.rb:123:in `with_friendly_errors'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:34:in `<top (required)>'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/bin/bundle:23:in `load'
  /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/bin/bundle:23:in `<main>'
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/api/v1/dependencies
HTTP 404 Not Found https://mirrors.bfsu.edu.cn/rubygems/api/v1/dependencies
Fetching source index from https://mirrors.bfsu.edu.cn/rubygems/
Need to query more than 500 gems. Downloading full index instead...
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/google-protobuf-3.22.2-x86_64-linux.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/google-protobuf-3.22.2-x86_64-linux.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/nokogiri-1.14.2-x86_64-linux.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/nokogiri-1.14.2-x86_64-linux.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/sass-embedded-1.61.0-x86_64-linux-gnu.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/sass-embedded-1.61.0-x86_64-linux-gnu.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rake-13.0.6.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rake-13.0.6.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/concurrent-ruby-1.2.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/concurrent-ruby-1.2.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/i18n-1.12.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/i18n-1.12.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/minitest-5.18.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/minitest-5.18.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/tzinfo-2.0.6.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/tzinfo-2.0.6.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/activesupport-7.0.4.3.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/activesupport-7.0.4.3.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/public_suffix-5.0.1.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/public_suffix-5.0.1.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/addressable-2.8.4.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/addressable-2.8.4.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/fast-stemmer-1.0.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/fast-stemmer-1.0.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/matrix-0.4.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/matrix-0.4.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/classifier-reborn-2.3.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/classifier-reborn-2.3.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/colorator-1.1.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/colorator-1.1.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/eventmachine-1.2.7.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/eventmachine-1.2.7.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/http_parser.rb-0.8.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/http_parser.rb-0.8.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/em-websocket-0.5.3.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/em-websocket-0.5.3.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/faraday-net_http-3.0.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/faraday-net_http-3.0.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/ruby2_keywords-0.0.5.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/ruby2_keywords-0.0.5.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/faraday-2.7.4.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/faraday-2.7.4.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/ffi-1.15.5.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/ffi-1.15.5.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/forwardable-extended-2.6.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/forwardable-extended-2.6.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/gemoji-3.0.1.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/gemoji-3.0.1.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/mini_portile2-2.8.1.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/mini_portile2-2.8.1.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/racc-1.6.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/racc-1.6.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/html-pipeline-2.14.3.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/html-pipeline-2.14.3.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-sass-converter-3.0.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-sass-converter-3.0.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rb-fsevent-0.11.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rb-fsevent-0.11.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rb-inotify-0.10.1.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rb-inotify-0.10.1.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/listen-3.8.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/listen-3.8.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-watch-2.2.1.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-watch-2.2.1.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rexml-3.2.5.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rexml-3.2.5.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/kramdown-2.4.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/kramdown-2.4.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/kramdown-parser-gfm-1.1.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/kramdown-parser-gfm-1.1.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/liquid-4.0.4.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/liquid-4.0.4.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/mercenary-0.4.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/mercenary-0.4.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/pathutil-0.16.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/pathutil-0.16.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rouge-4.1.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rouge-4.1.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/safe_yaml-1.0.5.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/safe_yaml-1.0.5.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/unicode-display_width-2.4.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/unicode-display_width-2.4.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/terminal-table-3.0.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/terminal-table-3.0.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/webrick-1.8.1.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/webrick-1.8.1.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-4.3.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-4.3.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-archives-2.2.1.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-archives-2.2.1.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-default-layout-0.1.5.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-default-layout-0.1.5.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-feed-0.17.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-feed-0.17.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/sawyer-0.9.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/sawyer-0.9.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/octokit-6.1.1.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/octokit-6.1.1.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-github-metadata-2.16.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-github-metadata-2.16.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-mentions-1.6.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-mentions-1.6.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-readme-index-0.3.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-readme-index-0.3.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rubyzip-2.3.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rubyzip-2.3.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-remote-theme-0.4.3.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-remote-theme-0.4.3.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-seo-tag-2.8.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-seo-tag-2.8.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-sitemap-1.4.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-sitemap-1.4.0.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rainbow-3.1.1.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/rainbow-3.1.1.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-spaceship-0.10.2.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/jekyll-spaceship-0.10.2.gemspec.rz
HTTP GET https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/netrc-0.11.0.gemspec.rz
HTTP 200 OK https://mirrors.bfsu.edu.cn/rubygems/quick/Marshal.4.8/netrc-0.11.0.gemspec.rz
Fetching rake 13.0.6
Installing rake 13.0.6
0:  rake (13.0.6) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/rake-13.0.6.gemspec
Fetching concurrent-ruby 1.2.2
Installing concurrent-ruby 1.2.2
0:  concurrent-ruby (1.2.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/concurrent-ruby-1.2.2.gemspec
Fetching i18n 1.12.0
Installing i18n 1.12.0
0:  i18n (1.12.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/i18n-1.12.0.gemspec
Fetching minitest 5.18.0
Installing minitest 5.18.0
0:  minitest (5.18.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/minitest-5.18.0.gemspec
Fetching tzinfo 2.0.6
Installing tzinfo 2.0.6
0:  tzinfo (2.0.6) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/tzinfo-2.0.6.gemspec
Fetching activesupport 7.0.4.3
Installing activesupport 7.0.4.3
0:  activesupport (7.0.4.3) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/activesupport-7.0.4.3.gemspec
Fetching public_suffix 5.0.1
Installing public_suffix 5.0.1
0:  public_suffix (5.0.1) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/public_suffix-5.0.1.gemspec
Fetching addressable 2.8.4
Installing addressable 2.8.4
0:  addressable (2.8.4) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/addressable-2.8.4.gemspec
Using bundler 2.1.4
0:  bundler (2.1.4) from /nix/store/6lp8lzvbjs201712qq12nv2v2lx8v613-ruby-2.7.8/lib/ruby/gems/2.7.0/specifications/default/bundler-2.1.4.gemspec
Fetching fast-stemmer 1.0.2
Installing fast-stemmer 1.0.2 with native extensions
Building native extensions. This could take a while...
0:  fast-stemmer (1.0.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/fast-stemmer-1.0.2.gemspec
Fetching matrix 0.4.2
Installing matrix 0.4.2
0:  matrix (0.4.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/matrix-0.4.2.gemspec
Fetching classifier-reborn 2.3.0
Installing classifier-reborn 2.3.0
0:  classifier-reborn (2.3.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/classifier-reborn-2.3.0.gemspec
Fetching colorator 1.1.0
Installing colorator 1.1.0
0:  colorator (1.1.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/colorator-1.1.0.gemspec
Fetching eventmachine 1.2.7
Installing eventmachine 1.2.7 with native extensions
Building native extensions. This could take a while...
0:  eventmachine (1.2.7) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/eventmachine-1.2.7.gemspec
Fetching http_parser.rb 0.8.0
Installing http_parser.rb 0.8.0 with native extensions
Building native extensions. This could take a while...
0:  http_parser.rb (0.8.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/http_parser.rb-0.8.0.gemspec
Fetching em-websocket 0.5.3
Installing em-websocket 0.5.3
0:  em-websocket (0.5.3) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/em-websocket-0.5.3.gemspec
Fetching faraday-net_http 3.0.2
Installing faraday-net_http 3.0.2
0:  faraday-net_http (3.0.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/faraday-net_http-3.0.2.gemspec
Fetching ruby2_keywords 0.0.5
Installing ruby2_keywords 0.0.5
0:  ruby2_keywords (0.0.5) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/ruby2_keywords-0.0.5.gemspec
Fetching faraday 2.7.4
Installing faraday 2.7.4
0:  faraday (2.7.4) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/faraday-2.7.4.gemspec
Fetching ffi 1.15.5
Installing ffi 1.15.5 with native extensions
Building native extensions. This could take a while...
0:  ffi (1.15.5) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/ffi-1.15.5.gemspec
Fetching forwardable-extended 2.6.0
Installing forwardable-extended 2.6.0
0:  forwardable-extended (2.6.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/forwardable-extended-2.6.0.gemspec
Fetching gemoji 3.0.1
Installing gemoji 3.0.1
0:  gemoji (3.0.1) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/gemoji-3.0.1.gemspec
Fetching google-protobuf 3.22.2 (x86_64-linux)
Installing google-protobuf 3.22.2 (x86_64-linux)
0:  google-protobuf (3.22.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/google-protobuf-3.22.2-x86_64-linux.gemspec
Fetching mini_portile2 2.8.1
Installing mini_portile2 2.8.1
0:  mini_portile2 (2.8.1) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/mini_portile2-2.8.1.gemspec
Fetching racc 1.6.2
Installing racc 1.6.2 with native extensions
Building native extensions. This could take a while...
0:  racc (1.6.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/racc-1.6.2.gemspec
Fetching nokogiri 1.14.2 (x86_64-linux)
Installing nokogiri 1.14.2 (x86_64-linux)
0:  nokogiri (1.14.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/nokogiri-1.14.2-x86_64-linux.gemspec
Fetching html-pipeline 2.14.3
Installing html-pipeline 2.14.3
-------------------------------------------------
Thank you for installing html-pipeline!
You must bundle Filter gem dependencies.
See html-pipeline README.md for more details.
https://github.com/jch/html-pipeline#dependencies
-------------------------------------------------
0:  html-pipeline (2.14.3) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/html-pipeline-2.14.3.gemspec
Fetching sass-embedded 1.61.0 (x86_64-linux-gnu)
Installing sass-embedded 1.61.0 (x86_64-linux-gnu)
0:  sass-embedded (1.61.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/sass-embedded-1.61.0-x86_64-linux-gnu.gemspec
Fetching jekyll-sass-converter 3.0.0
Installing jekyll-sass-converter 3.0.0
0:  jekyll-sass-converter (3.0.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-sass-converter-3.0.0.gemspec
Fetching rb-fsevent 0.11.2
Installing rb-fsevent 0.11.2
0:  rb-fsevent (0.11.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/rb-fsevent-0.11.2.gemspec
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
0:  rb-inotify (0.10.1) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/rb-inotify-0.10.1.gemspec
Fetching listen 3.8.0
Installing listen 3.8.0
0:  listen (3.8.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/listen-3.8.0.gemspec
Fetching jekyll-watch 2.2.1
Installing jekyll-watch 2.2.1
0:  jekyll-watch (2.2.1) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-watch-2.2.1.gemspec
Fetching rexml 3.2.5
Installing rexml 3.2.5
0:  rexml (3.2.5) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/rexml-3.2.5.gemspec
Fetching kramdown 2.4.0
Installing kramdown 2.4.0
0:  kramdown (2.4.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/kramdown-2.4.0.gemspec
Fetching kramdown-parser-gfm 1.1.0
Installing kramdown-parser-gfm 1.1.0
0:  kramdown-parser-gfm (1.1.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/kramdown-parser-gfm-1.1.0.gemspec
Fetching liquid 4.0.4
Installing liquid 4.0.4
0:  liquid (4.0.4) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/liquid-4.0.4.gemspec
Fetching mercenary 0.4.0
Installing mercenary 0.4.0
0:  mercenary (0.4.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/mercenary-0.4.0.gemspec
Fetching pathutil 0.16.2
Installing pathutil 0.16.2
0:  pathutil (0.16.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/pathutil-0.16.2.gemspec
Fetching rouge 4.1.0
Installing rouge 4.1.0
0:  rouge (4.1.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/rouge-4.1.0.gemspec
Fetching safe_yaml 1.0.5
Installing safe_yaml 1.0.5
0:  safe_yaml (1.0.5) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/safe_yaml-1.0.5.gemspec
Fetching unicode-display_width 2.4.2
Installing unicode-display_width 2.4.2
0:  unicode-display_width (2.4.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/unicode-display_width-2.4.2.gemspec
Fetching terminal-table 3.0.2
Installing terminal-table 3.0.2
0:  terminal-table (3.0.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/terminal-table-3.0.2.gemspec
Fetching webrick 1.8.1
Installing webrick 1.8.1
0:  webrick (1.8.1) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/webrick-1.8.1.gemspec
Fetching jekyll 4.3.2
Installing jekyll 4.3.2
0:  jekyll (4.3.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-4.3.2.gemspec
Fetching jekyll-archives 2.2.1
Installing jekyll-archives 2.2.1
0:  jekyll-archives (2.2.1) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-archives-2.2.1.gemspec
Fetching jekyll-default-layout 0.1.5
Installing jekyll-default-layout 0.1.5
0:  jekyll-default-layout (0.1.5) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-default-layout-0.1.5.gemspec
Fetching jekyll-feed 0.17.0
Installing jekyll-feed 0.17.0
0:  jekyll-feed (0.17.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-feed-0.17.0.gemspec
Fetching sawyer 0.9.2
Installing sawyer 0.9.2
0:  sawyer (0.9.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/sawyer-0.9.2.gemspec
Fetching octokit 6.1.1
Installing octokit 6.1.1
0:  octokit (6.1.1) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/octokit-6.1.1.gemspec
Fetching jekyll-github-metadata 2.16.0
Installing jekyll-github-metadata 2.16.0
0:  jekyll-github-metadata (2.16.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-github-metadata-2.16.0.gemspec
Fetching jekyll-mentions 1.6.0
Installing jekyll-mentions 1.6.0
0:  jekyll-mentions (1.6.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-mentions-1.6.0.gemspec
Fetching jekyll-readme-index 0.3.0
Installing jekyll-readme-index 0.3.0
0:  jekyll-readme-index (0.3.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-readme-index-0.3.0.gemspec
Fetching rubyzip 2.3.2
Installing rubyzip 2.3.2
RubyZip 3.0 is coming!
**********************

The public API of some Rubyzip classes has been modernized to use named
parameters for optional arguments. Please check your usage of the
following classes:
  * `Zip::File`
  * `Zip::Entry`
  * `Zip::InputStream`
  * `Zip::OutputStream`

Please ensure that your Gemfiles and .gemspecs are suitably restrictive
to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
See https://github.com/rubyzip/rubyzip for details. The Changelog also
lists other enhancements and bugfixes that have been implemented since
version 2.3.0.
0:  rubyzip (2.3.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/rubyzip-2.3.2.gemspec
Fetching jekyll-remote-theme 0.4.3
Installing jekyll-remote-theme 0.4.3
0:  jekyll-remote-theme (0.4.3) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-remote-theme-0.4.3.gemspec
Fetching jekyll-seo-tag 2.8.0
Installing jekyll-seo-tag 2.8.0
0:  jekyll-seo-tag (2.8.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-seo-tag-2.8.0.gemspec
Fetching jekyll-sitemap 1.4.0
Installing jekyll-sitemap 1.4.0
0:  jekyll-sitemap (1.4.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-sitemap-1.4.0.gemspec
Fetching rainbow 3.1.1
Installing rainbow 3.1.1
0:  rainbow (3.1.1) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/rainbow-3.1.1.gemspec
Fetching jekyll-spaceship 0.10.2
Installing jekyll-spaceship 0.10.2
0:  jekyll-spaceship (0.10.2) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/jekyll-spaceship-0.10.2.gemspec
Fetching netrc 0.11.0
Installing netrc 0.11.0
0:  netrc (0.11.0) from /home/wzy/Desktop/Freed-Wu.github.io/.bundle/ruby/2.7.0/specifications/netrc-0.11.0.gemspec
Bundle complete! 14 Gemfile dependencies, 60 gems now installed.
Bundled gems are installed into `./.bundle`
Post-install message from html-pipeline:
-------------------------------------------------
Thank you for installing html-pipeline!
You must bundle Filter gem dependencies.
See html-pipeline README.md for more details.
https://github.com/jch/html-pipeline#dependencies
-------------------------------------------------
Post-install message from rubyzip:
RubyZip 3.0 is coming!
**********************

The public API of some Rubyzip classes has been modernized to use named
parameters for optional arguments. Please check your usage of the
following classes:
  * `Zip::File`
  * `Zip::Entry`
  * `Zip::InputStream`
  * `Zip::OutputStream`

Please ensure that your Gemfiles and .gemspecs are suitably restrictive
to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
See https://github.com/rubyzip/rubyzip for details. The Changelog also
lists other enhancements and bugfixes that have been implemented since
version 2.3.0.
❯ .bundle/ruby/2.7.0/gems/sass-embedded-1.61.0-x86_64-linux-gnu/ext/sass/sass_embedded/src/dart --help
zsh: no such file or directory: .bundle/ruby/2.7.0/gems/sass-embedded-1.61.0-x86_64-linux-gnu/ext/sass/sass_embedded/src/dart

@ntkme
Copy link
Member

ntkme commented Apr 10, 2023

Oh never mind, I now see the issue. You need to force platform ruby:

bundle config force_ruby_platform true

The prebuilt packages do not contain the Rakefile thus will never work on NixOS.

@ntkme
Copy link
Member

ntkme commented Apr 10, 2023

In NixOS, you should almost always force_ruby_platform or prebuilt gems can fail due to linking problems.

@domenkozar
Copy link

Is there a way to tell it to use existing dart-saas?

@ntkme
Copy link
Member

ntkme commented Jul 8, 2024

NixOS should work in latest version now. There are two different types of installation:

  1. Use normal bundle / gem command. This should just work out of box on Nix now. No need of force platform ruby.
  2. Use bundix. There is already a patch for using Nix’s dart-sass in nixpkgs for this. Take a look yourself, but I don’t recommend this. Officially this gem only supports running with version matched dart-sass binary, but nixpkgs’ patch uses whatever installed by nix.

@ntkme
Copy link
Member

ntkme commented Jul 8, 2024

Here is an example of using gem command to install and working out of box in a nix container.

$ podman run --rm -it nixos/nix
bash-5.2# nix-shell -p ruby
these 26 paths will be fetched (55.61 MiB download, 277.95 MiB unpacked):
  /nix/store/fkn0vdbdzrfz1krb43s1b2izsbw3dwkf-binutils-2.40
  /nix/store/s49ajx7vqrhlnbb4dxgvaky02sm09nkh-binutils-2.40-lib
  /nix/store/ssinnxnzp2pdqcnll848dpd04g70x1dq-binutils-wrapper-2.40
  /nix/store/mzzl7kwsav2nhlc851iwniimkxnc9bwh-bzip2-1.0.8-bin
  /nix/store/grqac01ckkkj58c72mmsynrw4alzv549-diffutils-3.10
  /nix/store/xs6skc3mxp1r0dqz5v2ivzxpj8xg4xbf-ed-1.19
  /nix/store/jikfhmz4ijgl25im7pp4i4i2qp4dhi52-expand-response-params
  /nix/store/xcrlmcxx44bf7sn1bc2xwgkzqr2bwi8k-file-5.45
  /nix/store/hwjf9zh50bs3hv98bmm235gz5s5h0f57-gawk-5.2.2
  /nix/store/748vsvk5iz3663rmpqaqnsy1n8qqvr2n-gcc-12.3.0
  /nix/store/j4bq958qhv7hmq5baxv34r9y7w9szg38-gcc-wrapper-12.3.0
  /nix/store/r6nqrabd7fbbqjg8mpymvbr0bpvip3vd-glibc-2.38-44-dev
  /nix/store/crm5505nhwny3yrkmjmhk32w95mlgwp1-gmp-6.3.0
  /nix/store/2aj4zhlzx90n49siihhdngbgjxnxc90w-gnu-config-2023-09-19
  /nix/store/0w1slx9bdmccsa3kg4flqy556r3vz3hd-gnumake-4.4.1
  /nix/store/3pba8y0nrfcidyqrhm4c7a9jszlcri7j-isl-0.20
  /nix/store/xdk3z4rslz946m50gi616h3p9fmmx7xb-libmpc-1.3.1
  /nix/store/2glzx43wmx9vcd2ykmwnv8lkxdgqk45h-libyaml-0.2.5
  /nix/store/dffivkdm045ppqyqd9iiv5d4g0z8avlk-linux-headers-6.5
  /nix/store/y7y6xi36rqwmpvvdcqzq7xbh0zhq4d3a-mpfr-4.2.1
  /nix/store/6yr24lm4miasb6npnd0a9ad80qffmrcv-patch-2.7.6
  /nix/store/lfxxp512aabn1pl5zwm3vi1c9da9g745-patchelf-0.15.0
  /nix/store/i9636172y1wm7151g7mjxb19l4pzjk93-ruby-3.1.4
  /nix/store/dw9cx9k26m95dnbxg4q27ys8z4ania4z-stdenv-linux
  /nix/store/xiddpdnvd4ffja184wqsg6ppw8i0l1nw-update-autotools-gnu-config-scripts-hook
  /nix/store/pik6ixjf7v9cbp7qlz84s6z7khy5fhz3-xz-5.4.4-bin
copying path '/nix/store/xcrlmcxx44bf7sn1bc2xwgkzqr2bwi8k-file-5.45' from 'https://cache.nixos.org'...
copying path '/nix/store/hwjf9zh50bs3hv98bmm235gz5s5h0f57-gawk-5.2.2' from 'https://cache.nixos.org'...
copying path '/nix/store/2aj4zhlzx90n49siihhdngbgjxnxc90w-gnu-config-2023-09-19' from 'https://cache.nixos.org'...
copying path '/nix/store/mzzl7kwsav2nhlc851iwniimkxnc9bwh-bzip2-1.0.8-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/grqac01ckkkj58c72mmsynrw4alzv549-diffutils-3.10' from 'https://cache.nixos.org'...
copying path '/nix/store/xs6skc3mxp1r0dqz5v2ivzxpj8xg4xbf-ed-1.19' from 'https://cache.nixos.org'...
copying path '/nix/store/lfxxp512aabn1pl5zwm3vi1c9da9g745-patchelf-0.15.0' from 'https://cache.nixos.org'...
copying path '/nix/store/dffivkdm045ppqyqd9iiv5d4g0z8avlk-linux-headers-6.5' from 'https://cache.nixos.org'...
copying path '/nix/store/jikfhmz4ijgl25im7pp4i4i2qp4dhi52-expand-response-params' from 'https://cache.nixos.org'...
copying path '/nix/store/0w1slx9bdmccsa3kg4flqy556r3vz3hd-gnumake-4.4.1' from 'https://cache.nixos.org'...
copying path '/nix/store/2glzx43wmx9vcd2ykmwnv8lkxdgqk45h-libyaml-0.2.5' from 'https://cache.nixos.org'...
copying path '/nix/store/pik6ixjf7v9cbp7qlz84s6z7khy5fhz3-xz-5.4.4-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/crm5505nhwny3yrkmjmhk32w95mlgwp1-gmp-6.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/s49ajx7vqrhlnbb4dxgvaky02sm09nkh-binutils-2.40-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/6yr24lm4miasb6npnd0a9ad80qffmrcv-patch-2.7.6' from 'https://cache.nixos.org'...
copying path '/nix/store/xiddpdnvd4ffja184wqsg6ppw8i0l1nw-update-autotools-gnu-config-scripts-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/i9636172y1wm7151g7mjxb19l4pzjk93-ruby-3.1.4' from 'https://cache.nixos.org'...
copying path '/nix/store/3pba8y0nrfcidyqrhm4c7a9jszlcri7j-isl-0.20' from 'https://cache.nixos.org'...
copying path '/nix/store/y7y6xi36rqwmpvvdcqzq7xbh0zhq4d3a-mpfr-4.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/xdk3z4rslz946m50gi616h3p9fmmx7xb-libmpc-1.3.1' from 'https://cache.nixos.org'...
copying path '/nix/store/fkn0vdbdzrfz1krb43s1b2izsbw3dwkf-binutils-2.40' from 'https://cache.nixos.org'...
copying path '/nix/store/r6nqrabd7fbbqjg8mpymvbr0bpvip3vd-glibc-2.38-44-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/748vsvk5iz3663rmpqaqnsy1n8qqvr2n-gcc-12.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/ssinnxnzp2pdqcnll848dpd04g70x1dq-binutils-wrapper-2.40' from 'https://cache.nixos.org'...
copying path '/nix/store/j4bq958qhv7hmq5baxv34r9y7w9szg38-gcc-wrapper-12.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/dw9cx9k26m95dnbxg4q27ys8z4ania4z-stdenv-linux' from 'https://cache.nixos.org'...

[nix-shell:/]# gem install sass-embedded
Fetching google-protobuf-4.27.2-aarch64-linux.gem
Fetching sass-embedded-1.77.5.gem
Successfully installed google-protobuf-4.27.2-aarch64-linux
Building native extensions. This could take a while...
Successfully installed sass-embedded-1.77.5
Parsing documentation for google-protobuf-4.27.2-aarch64-linux
Installing ri documentation for google-protobuf-4.27.2-aarch64-linux
Parsing documentation for sass-embedded-1.77.5
Installing ri documentation for sass-embedded-1.77.5
Done installing documentation for google-protobuf, sass-embedded after 0 seconds
2 gems installed

A new release of RubyGems is available: 3.4.22 → 3.5.14!
Run `gem update --system 3.5.14` to update your installation.


[nix-shell:/]# irb
irb(main):001:0> require 'sass-embedded'
=> true
irb(main):002:0> puts Sass.info
sass-embedded	1.77.5	(Embedded Host)	[Ruby]
dart-sass	1.77.5	(Sass Compiler)	[Dart]
=> nil
irb(main):003:0> puts Sass.compile_string('a {b: c}').css
a {
  b: c;                                                                                                    
}                                                                                                          
=> nil

@joshuap
Copy link

joshuap commented Sep 22, 2024

@ntkme @domenkozar I'm trying to get this to work in a devenv shell:

# devenv.nix
{ pkgs, lib, config, inputs, ... }:

{
  env.JEKYLL_ENV = "development";
 
  languages.ruby.enable = true;
  languages.ruby.versionFile = ./.ruby-version;

  languages.javascript = {
    enable = true;
  };

  packages = [ pkgs.git pkgs.imagemagick pkgs.dart-sass ];

  enterShell = ''
    exec zsh
  '';
}
# .ruby-version
3.3.5

...but I'm still getting an error about the dynamically linked executable:

λ  jekyll-website master ✗ devenv shell
• Building shell ...
• Using Cachix: devenv
✔ Building shell in 3.2s.
• Entering shell
λ  jekyll-website master ✗ gem install sass-embedded
Successfully installed sass-embedded-1.79.3-x86_64-linux-gnu
Parsing documentation for sass-embedded-1.79.3-x86_64-linux-gnu
Done installing documentation for sass-embedded after 0 seconds
1 gem installed
λ  jekyll-website master ✗ irb
/nix/store/ccvbrdslj740g71a0dkqjc77akxxdyzp-ruby-3.3.5/lib/ruby/3.3.0/reline.rb:9: warning: fiddle was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add fiddle to your Gemfile or gemspec to silence this warning.
rdoc was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add rdoc to your Gemfile or gemspec to silence this warning.
irb(main):001> require 'sass-embedded'
=> true
irb(main):002> puts Sass.info
/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/lib/sass/compiler/connection.rb:61: warning: Could not start dynamically linked executable: /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/ext/sass/dart-sass/src/dart
/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/lib/sass/compiler/connection.rb:61: warning: NixOS cannot run dynamically linked executables intended for generic
/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/lib/sass/compiler/connection.rb:61: warning: linux environments out of the box. For more information, see:
/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/lib/sass/compiler/connection.rb:61: warning: https://nix.dev/permalink/stub-ld
/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/lib/sass/compiler/varint.rb:20:in `readbyte': end of file reached (EOFError)
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/lib/sass/compiler/varint.rb:20:in `block in read'
	from <internal:kernel>:187:in `loop'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/lib/sass/compiler/varint.rb:19:in `read'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/lib/sass/compiler/connection.rb:46:in `block (2 levels) in listen'
	from <internal:kernel>:187:in `loop'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/lib/sass/compiler/connection.rb:45:in `block in listen'

Is there something I'm missing?

@ntkme
Copy link
Member

ntkme commented Sep 22, 2024

I cannot reproduce your issue with the exact same config in nixos container running on a normal linux kernel. I wonder if nix kernel behaves differently than normal kernel...

[nix-shell:/test]# cat devenv.nix 
# devenv.nix
{ pkgs, lib, config, inputs, ... }:

{
  env.JEKYLL_ENV = "development";
 
  languages.ruby.enable = true;
  languages.ruby.versionFile = ./.ruby-version;

  languages.javascript = {
    enable = true;
  };

  packages = [ pkgs.git pkgs.imagemagick pkgs.dart-sass ];

  enterShell = ''
    exec zsh
  '';
}

[nix-shell:/test]# cat .ruby-version 
3.3.5

[nix-shell:/test]# devenv shell
• Building shell ...
• Using Cachix: devenv
✔ Building shell in 9.9s.
• Entering shell
✨ devenv 1.0.5 is out of date. Please update to 1.1.0: https://devenv.sh/getting-started/#installation
73d94123fe34# gem install sass-embedded
Successfully installed sass-embedded-1.79.3-aarch64-linux-gnu
Parsing documentation for sass-embedded-1.79.3-aarch64-linux-gnu
Done installing documentation for sass-embedded after 0 seconds
1 gem installed
73d94123fe34# irb
irb(main):001> require 'sass-embedded'
=> true
irb(main):002> Sass.info
=> "sass-embedded\t1.79.3\t(Embedded Host)\t[Ruby]\ndart-sass\t1.79.3\t(Sass Compiler)\t[Dart]"
irb(main):003> 

@ntkme
Copy link
Member

ntkme commented Sep 22, 2024

Given that it works on nixos container running on a normal linux kernel, the ld-linux and glibc in nix clearly works with foreign binaries. On normal kernel, executing a foreign binary linked with unknown ld-linux should result in ENONET. I don't have a real nixos installation, so I can only suspect that nixos kernel is not throwing ENONET, but instead running something completely different and unexpected. In my opinion that is a bug in nixos because it differs from real linux kernel, but nixos people might disagree and say it's a feature.

@joshuap Can you please try if the following patch helps?

diff --git a/lib/sass/compiler/connection.rb b/lib/sass/compiler/connection.rb
index d59f46d..4fbde9d 100644
--- a/lib/sass/compiler/connection.rb
+++ b/lib/sass/compiler/connection.rb
@@ -13,8 +13,6 @@ module Sass
       def initialize
         @mutex = Mutex.new
         @stdin, @stdout, @stderr, @wait_thread = begin
-          Open3.popen3(*CLI::COMMAND, '--embedded', chdir: __dir__)
-        rescue Errno::ENOENT
           require_relative '../elf'
 
           raise if ELF::INTERPRETER.nil?

@joshuap
Copy link

joshuap commented Sep 23, 2024

Given that it works on nixos container running on a normal linux kernel, the ld-linux and glibc in nix clearly works with foreign binaries. On normal kernel, executing a foreign binary linked with unknown ld-linux should result in ENONET. I don't have a real nixos installation, so I can only suspect that nixos kernel is not throwing ENONET, but instead running something completely different and unexpected. In my opinion that is a bug in nixos because it differs from real linux kernel, but nixos people might disagree and say it's a feature.

@joshuap Can you please try if the following patch helps?

diff --git a/lib/sass/compiler/connection.rb b/lib/sass/compiler/connection.rb
index d59f46d..4fbde9d 100644
--- a/lib/sass/compiler/connection.rb
+++ b/lib/sass/compiler/connection.rb
@@ -13,8 +13,6 @@ module Sass
       def initialize
         @mutex = Mutex.new
         @stdin, @stdout, @stderr, @wait_thread = begin
-          Open3.popen3(*CLI::COMMAND, '--embedded', chdir: __dir__)
-        rescue Errno::ENOENT
           require_relative '../elf'
 
           raise if ELF::INTERPRETER.nil?

@ntkme your patch worked! It looks like that Open3 command is not raising anything. I tried running it directly in the console and this is the result:

irb(main):011> command
=> 
["/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/ext/sass/dart-sass/src/dart",
 "/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/ext/sass/dart-sass/src/sass.snapshot"]
irb(main):012> dir
=> "/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/lib/sass/compiler"
irb(main):036> result = Open3.popen3(*command, '--embedded', chdir: dir)
=> [#<IO:fd 14>, #<IO:fd 16>, #<IO:fd 18>, #<Process::Waiter:0x00007fffcd1bf420 sleep>]
irb(main):037> result[1].read # stdout
=> ""
irb(main):038> result[2].read # stderr
=> "Could not start dynamically linked executable: /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.3/ext/sass/dart-sass/src/dart\nNixOS cannot run dynamically linked executables intended for generic\nlinux environments out of the box. For more information, see:\nhttps://nix.dev/permalink/stub-ld\n"

@ntkme
Copy link
Member

ntkme commented Sep 23, 2024

Ok, it runs out the unexpected behavior is not coming from nixos kernel, but a config: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/stub-ld.nix

This is something new in NixOS 24.05.

@ntkme
Copy link
Member

ntkme commented Sep 23, 2024

NixOS/nixpkgs#344080

@ntkme
Copy link
Member

ntkme commented Sep 28, 2024

@joshuap A new workaround is shipped with v1.79.4, and it should work out of box now. Please give it a try.

@joshuap
Copy link

joshuap commented Oct 6, 2024

@joshuap A new workaround is shipped with v1.79.4, and it should work out of box now. Please give it a try.

Unfortunately I'm seeing the same issue, I think this should work?

λ  jekyll-website master ✗ bundle info sass-embedded
  * sass-embedded (1.79.4)
	Summary: Use dart-sass with Ruby!
	Homepage: https://github.com/sass-contrib/sass-embedded-host-ruby
	Documentation: https://rubydoc.info/gems/sass-embedded/1.79.4
	Source Code: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.79.4
	Funding: https://github.com/sponsors/ntkme
	Bug Tracker: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
	Path: /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4
	Reverse Dependencies: 
		jekyll-sass-converter (3.0.0) depends on sass-embedded (~> 1.54)
λ  jekyll-website master ✗ bundle console           
irb(main):001> require 'sass-embedded'
=> false
irb(main):002> puts Sass.info
/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/connection.rb:82:in `write': Broken pipe (Errno::EPIPE)
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/connection.rb:82:in `block in write'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/connection.rb:81:in `synchronize'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/connection.rb:81:in `write'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/dispatcher.rb:92:in `send_proto'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/channel.rb:59:in `send_proto'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/host.rb:215:in `send_message0'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/host.rb:106:in `block in version_request'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/host.rb:173:in `block in await0'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/host.rb:199:in `listen'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/host.rb:172:in `await0'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/host.rb:105:in `version_request'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler.rb:200:in `info'
	from /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/embedded.rb:45:in `info'
	from (irb):2:in `<main>'
	from <internal:kernel>:187:in `loop'
	from /nix/store/242p2y8f445hz2ig30bbh8baakn6qnzr-bundler-2.5.6/lib/ruby/gems/3.3.0/gems/bundler-2.5.6/lib/bundler/cli/console.rb:20:in `run'
	... 12 levels...
/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/connection.rb:53: warning: Could not start dynamically linked executable: /home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/ext/sass/dart-sass/src/dart
/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/connection.rb:53: warning: NixOS cannot run dynamically linked executables intended for generic
/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/connection.rb:53: warning: linux environments out of the box. For more information, see:
/home/josh/code/joshuap/jekyll-website/.devenv/state/.bundle/ruby/3.3.0/gems/sass-embedded-1.79.4/lib/sass/compiler/connection.rb:53: warning: https://nix.dev/permalink/stub-ld
irb(main):003> 

@ntkme
Copy link
Member

ntkme commented Oct 6, 2024

Ok, I think I have found out why.

In a normal linux, there is only one ld-linux.so:

root@90c56d0ee4ef:/# ls /lib64/ld-linux-x86-64.so.2 
/lib64/ld-linux-x86-64.so.2
root@90c56d0ee4ef:/# ls /lib/ld-linux-x86-64.so.2 
/usr/bin/ls: cannot access '/lib/ld-linux-x86-64.so.2': No such file or directory
root@c6f0eb243419:/# ls /lib/ld-linux-aarch64.so.1 
/lib/ld-linux-aarch64.so.1
root@c6f0eb243419:/# ls /lib64/ld-linux-aarch64.so.1 
ls: cannot access '/lib64/ld-linux-aarch64.so.1': No such file or directory

In NixOS, there are always two of them:

bash-5.2# ls -al /nix/store/87848rvrg5c7jmplpi0iapvbxyj9kfid-glibc-2.39-52/lib/ld-linux-x86-64.so.2 
-r-xr-xr-x 1 root root 245120 Jan  1  1970 /nix/store/87848rvrg5c7jmplpi0iapvbxyj9kfid-glibc-2.39-52/lib/ld-linux-x86-64.so.2
bash-5.2# ls -al /nix/store/87848rvrg5c7jmplpi0iapvbxyj9kfid-glibc-2.39-52/lib64/ld-linux-x86-64.so.2 
-r-xr-xr-x 1 root root 245120 Jan  1  1970 /nix/store/87848rvrg5c7jmplpi0iapvbxyj9kfid-glibc-2.39-52/lib64/ld-linux-x86-64.so.2

And having two breaks some assumptions in the current workaround...

@ntkme
Copy link
Member

ntkme commented Oct 6, 2024

@joshuap Can you please help verify if the fix works by testing the following on your system?

git clone https://github.com/sass-contrib/sass-embedded-host-ruby.git
cd sass-embedded-host-ruby
bundle install
bundle exec rake compile spec

@joshuap
Copy link

joshuap commented Oct 16, 2024

@joshuap Can you please help verify if the fix works by testing the following on your system?

git clone https://github.com/sass-contrib/sass-embedded-host-ruby.git
cd sass-embedded-host-ruby
bundle install
bundle exec rake compile spec

@ntkme The tests passed!

Finished in 1.71 seconds (files took 0.23312 seconds to load)
2462 examples, 0 failures

@ntkme
Copy link
Member

ntkme commented Oct 16, 2024

@joshuap The fix has been release in 1.79.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants