Commit 9aa80cf
committed
Fix sassc: copy libsass into ext dir when Ruby >= 4.1
RubyGems no longer copies compiled extensions into the gem's lib/ tree
(ruby/rubygems@1614b036f7), breaking sassc which uses FFI with hardcoded
paths.
This commit copies libsass from the extensions directory into ext where sassc's
native.rb expects it. Sassc is deprecated and publically archived
anyway so there seems little point updating this upstream.
I chose not to use
Gem.configuration.install_extension_in_lib. Because it would set the
behaviour for all gems in the bundle, and we'd still have to copy
manually anyway, becuase the bundle isn't rebuilt between runs.1 parent f05aa62 commit 9aa80cf
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
10 | 27 | | |
11 | 28 | | |
12 | 29 | | |
| |||
0 commit comments