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

local build / sass-embedded (1.71.0) install problem on FreeBSD #106

Open
cederom opened this issue Feb 20, 2024 · 3 comments
Open

local build / sass-embedded (1.71.0) install problem on FreeBSD #106

cederom opened this issue Feb 20, 2024 · 3 comments

Comments

@cederom
Copy link
Contributor

cederom commented Feb 20, 2024

Hey there @btashton :-)

I have problem building local preview of the website on FreeBSD 13.2 - cannot install sass-embedded (1.71.0). Would it be possible to resolve / update version conflicts please? :-)

% uname -a
FreeBSD octagon 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 GENERIC amd64

I am following instructions from README:

export GEM_HOME=$HOME/.gem # Adjust this path as you want
export PATH=$PATH:$GEM_HOME/bin
bundle exec jekyll serve

Result is:

% bundle exec jekyll serve
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Could not find jekyll-4.3.2 in any of the sources
Run `bundle install` to install missing gems.

then:

% bundle install
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Fetching gem metadata from https://rubygems.org/
Fetching gem metadata from https://rubygems.org/...........
Using rake 13.0.6
Using public_suffix 5.0.1
Using bundler 2.2.22
Using rb-fsevent 0.11.2
Using concurrent-ruby 1.2.2
Using rexml 3.2.5
Using mercenary 0.4.0
Using ffi 1.15.5
Using safe_yaml 1.0.5
Using google-protobuf 3.23.0
Using colorator 1.1.0
Using webrick 1.8.1
Using i18n 1.13.0
Using http_parser.rb 0.8.0
Using rouge 4.1.0
Using forwardable-extended 2.6.0
Using kramdown 2.4.0
Using rb-inotify 0.10.1
Using unicode-display_width 2.4.2
Using liquid 4.0.4
Using addressable 2.8.4
Using eventmachine 1.2.7
Using listen 3.8.0
Using em-websocket 0.5.3
Using kramdown-parser-gfm 1.1.0
Using terminal-table 3.0.2
Fetching sass-embedded 1.62.1
Using pathutil 0.16.2
Using jekyll-watch 2.2.1
Installing sass-embedded 1.62.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/gems/sass-embedded-1.62.1/ext/sass
/usr/local/bin/ruby31 -rrubygems /usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/gems/rake-13.1.0/exe/rake
RUBYARCHDIR\=/usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/extensions/amd64-freebsd-13/3.1/sass-embedded-1.62.1
RUBYLIBDIR\=/usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/extensions/amd64-freebsd-13/3.1/sass-embedded-1.62.1
rake aborted!
NotImplementedError: sass_embedded for x86_64-freebsd13 not available at
https://github.com/sass/dart-sass-embedded/releases/tag/1.62.1
/usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/gems/sass-embedded-1.62.1/ext/sass/Rakefile:249:in
`default_sass_embedded'
/usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/gems/sass-embedded-1.62.1/ext/sass/Rakefile:21:in `block (2
levels) in <top (required)>'
/usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/gems/sass-embedded-1.62.1/ext/sass/Rakefile:21:in `fetch'
/usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/gems/sass-embedded-1.62.1/ext/sass/Rakefile:21:in `block in <top
(required)>'
/usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/gems/rake-13.1.0/exe/rake:27:in `<main>'
Tasks: TOP => default => install => embedded.rb => sass_embedded
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in /usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/gems/sass-embedded-1.62.1 for
inspection.
Results logged to
/usr/home/cederom/.local/share/gem/ruby/3.1/ruby/3.1/extensions/amd64-freebsd-13/3.1/sass-embedded-1.62.1/gem_make.out

An error occurred while installing sass-embedded (1.62.1), and Bundler cannot continue.
Make sure that `gem install sass-embedded -v '1.62.1' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  jekyll-feed was resolved to 0.17.0, which depends on
    jekyll was resolved to 4.3.2, which depends on
      jekyll-sass-converter was resolved to 3.0.0, which depends on
        sass-embedded
@btashton
Copy link
Contributor

btashton commented Feb 21, 2024

NotImplementedError: sass_embedded for x86_64-freebsd13 not available at
https://github.com/sass/dart-sass-embedded/releases/tag/1.62.1

Looks like upstream does not support x86_64-freebsd13 not much I can do for you here.

As per the repo it has been merged with the upstream dart sass project, possibly the deps could be updated to move to this, but I'm unlikely to make the changes myself.

@btashton btashton removed their assignment Feb 21, 2024
@cederom
Copy link
Contributor Author

cederom commented Feb 21, 2024

Yup, it seems that dart-sass-embedded is abandoned and the code moved to the sass.

This one seems to be available on FreeBSD:

% pkg search sass
R-cran-sass-0.4.8              Syntactically Awesome Style Sheets ('Sass')
clamassassin-1.2.4_7           Simple virus filter wrapper for ClamAV
claws-mail-spamassassin-3.19.1 SpamAssassin plugin for Claws Mail
libsass-3.6.6                  C/C++ implementation of a Sass compiler
p5-CSS-Sass-3.6.4              Compile .scss and .sass files using LibSass
p5-Plack-Middleware-File-Sass-0.03_1 Perl extension for Sass support for all Plack frameworks
p5-Text-Sass-0.97_2            Perl implementation of http://sass-lang.com/
py39-django-libsass-0.7        Filter to compile SASS files using libsass
py39-libsass-0.23.0            Straightforward binding of libsass for Python
rubygem-bootstrap-sass-3.4.1   Bootstrap by Twitter
rubygem-dartsass-1.49.8_1      RubyGem wrapper for the Dart Sass binary
rubygem-jekyll-sass-converter-2.2.0 Basic Sass converter for Jekyll
rubygem-jekyll-sass-converter1-1.5.2 Basic Sass converter for Jekyll
rubygem-sass-3.7.4             Sass is an extension of CSS3
rubygem-sass-listen-4.0.0      Listens to file modifications
rubygem-sass-rails-rails4-6.0.0 Sass adapter for the Rails asset pipeline
rubygem-sass-rails-rails5-6.0.0 Sass adapter for the Rails asset pipeline
rubygem-sass-rails-rails50-6.0.0 Sass adapter for the Rails asset pipeline
rubygem-sass-rails-rails52-6.0.0 Sass adapter for the Rails asset pipeline
rubygem-sass-rails-rails60-6.0.0 Sass adapter for the Rails asset pipeline
rubygem-sass-rails-rails61-6.0.0 Sass adapter for the Rails asset pipeline
rubygem-sass-rails-rails70-6.0.0 Sass adapter for the Rails asset pipeline
rubygem-sassc-2.4.0            Use libsass with Ruby
rubygem-sassc-rails-rails4-2.1.2_1 Integrate SassC-Ruby into Rails
rubygem-sassc-rails-rails5-2.1.2_1 Integrate SassC-Ruby into Rails
rubygem-sassc-rails-rails50-2.1.2_1 Integrate SassC-Ruby into Rails
rubygem-sassc-rails-rails52-2.1.2_1 Integrate SassC-Ruby into Rails
rubygem-sassc-rails-rails60-2.1.2_2 Integrate SassC-Ruby into Rails
rubygem-sassc-rails-rails61-2.1.2 Integrate SassC-Ruby into Rails
rubygem-sassc-rails-rails70-2.1.2 Integrate SassC-Ruby into Rails
rubygem-sassc22-2.2.1          Use libsass with Ruby
rubygem-semantic-ui-sass-2.2.12.1 Semantic UI, converted to Sass and ready to drop into Rails & Compass
rubygem-sprockets-sass-1.3.1_1 Implements a sprockets-aware sass importer
sassc-3.6.1                    Wrapper around libsass
spamassassin-4.0.0_6           Highly efficient mail filter for identifying spam
spamassassin-devel-2024.02.06_2 Highly efficient mail filter for identifying spam
spamassassin-dqs-1.5.1_1       Real-Time DNSBL's that catch a bunch of additional spam
octagon% pkg search dart
darts-0.32_1                   C++ template library that implements Double-Array
dartsim-6.13.0_4               Dynamic Animation and Robotics Toolkit
py39-darts.util.lru-0.5        Simple dictionary with LRU behaviour in Python
rubygem-dartsass-1.49.8_1      RubyGem wrapper for the Dart Sass binary

Also jekyll-4.3.2 is available as system package:

% pkg search jekyll
rubygem-jekyll-4.3.2_1         Simple, blog aware, static site generator
rubygem-jekyll-archives-2.2.1  Archive pages for Jekyll tags and categories
rubygem-jekyll-assets-3.0.12_2 Create JavaScript/CSS assets for Jekyll sites
rubygem-jekyll-coffeescript-2.0.0 CoffeeScript converter for Jekyll
rubygem-jekyll-email-protect-1.1.0 Email protection Liquid filter for Jekyll
rubygem-jekyll-feed-0.17.0     Generates an Atom feed from Jekyll posts
rubygem-jekyll-gist-1.5.0_1    Liquid tag for displaying GitHub Gists in Jekyll sites
rubygem-jekyll-mentions-1.6.0  At-mention support for Jekyll sites
rubygem-jekyll-paginate-1.1.0_1 Built-in Pagination Generator for Jekyll
rubygem-jekyll-redirect-from-0.16.0 Handles redirection URLs for Jekyll pages and posts
rubygem-jekyll-sanity-1.6.0    Patches to make Jekyll less insane and easier
rubygem-jekyll-sass-converter-2.2.0 Basic Sass converter for Jekyll
rubygem-jekyll-sass-converter1-1.5.2 Basic Sass converter for Jekyll
rubygem-jekyll-seo-tag-2.8.0   Add metadata tags for search engines and social networks
rubygem-jekyll-sitemap-1.4.0   Automatically generate a sitemap.xml for Jekyll sites
rubygem-jekyll-watch-2.2.1     Handles rebuilding of Jekyll sites when a file changes
rubygem-jekyll3-3.9.3_1        Simple, blog aware, static site generator

What is necessary to update our website? Is it enforced anyhow by Apache template or we can freely modify it? How can I help? :-)

@cederom
Copy link
Contributor Author

cederom commented Feb 21, 2024

Okay I can see the website needs a solid update in several places. If this is Apache template then we may simply update the template?

When installed system packages and not using local home environment jekyll started to build the website.. but there was some obsolete syntax inside (reported here #110). When removed the .slash() function all works fine :-)

Update does not seem that bad :-)

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

No branches or pull requests

2 participants